body {
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  background-color: #f8f8f7;
  color: #4a3f35;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem 1rem;
  border-bottom: 1px solid #ddd;
}

header img {
  height: 150px; /* 3x original 50px */
}

nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #4a3f35;
  font-size: 2.85rem; /* 3x original ~0.95rem */
  font-family: 'Libre Baskerville', serif;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #fdfdfc;
  padding: 2rem;
  gap: 1rem;
}

.hero-img {
  flex: 1;
  min-width: 250px;
}

.hero-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero-center {
  flex: 1;
  background-color: #d4dec9;
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-center h2 {
  font-size: 4.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: white;
}

.order-button {
  background-color: #5f4c3e;
  color: white;
  padding: 1.8rem 5.4rem; /* triple the previous size */
  font-size: 2.7rem;       /* triple the previous font size */
  text-decoration: none;
  border: none;
  border-radius: 4px;
  width: fit-content;
  margin: 0 auto;
  display: inline-block;
}

.tagline {
  background-color: #e4e7e0;
  text-align: center;
  padding: 4rem; /* was 2rem */
  font-size: 2rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* Optional: ensure AOS works smoothly */
[data-aos] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.small-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem 0.5rem; /* half the homepage padding */
  border-bottom: 1px solid #ddd;
}

.small-header .logo-img {
  height: 150px; /* half of 300px */
  background: transparent;
  border: none;
}

.gallery-directory {
  padding: 4rem 2rem;
  text-align: center;
}

.gallery-options {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.gallery-option {
  text-align: center;
}

.gallery-img {
  width: 300px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.gallery-button {
  background-color: #5f4c3e;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  border: 2px solid #4a3f35;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.gallery-button:hover {
  background: #d4dec9;
}

.gallery-img.large {
  width: 600px;
}

.gallery-img {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.gallery-img:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.tagline {
  font-size: 1.35rem;
  text-align: center;
  padding: 2rem;
}

body.homepage .tagline {
  font-size: 2.7rem;
  padding: 4rem;
}

/* Enlarged form font size for order page */
form input, form textarea, form select {
  font-size: 1.5rem;
}


.order_button + .order_button {
  margin-top: 1rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

.order-button + .order-button {
  margin-top: 1rem;
}

/* ===== Mobile-first fixes (added) ===== */
img, video { max-width: 100%; height: auto; display: block; }

/* Avoid horizontal scroll everywhere */
html, body { overflow-x: hidden; }

/* Header & nav shrink on small screens */
@media (max-width: 768px) {
  header, .small-header {
    padding: 1rem 1rem 0.5rem;
  }

  header img,
  .small-header .logo-img {
    height: 80px;
  }

  nav ul { gap: 1rem; }
  nav a { font-size: 1.1rem; } /* was larger */
}

/* Hero text & buttons scale down */
@media (max-width: 768px) {
  .hero-center { padding: 1.5rem 1rem; }
  .hero-center h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .order-button {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }
  .order-button + .order-button { margin-top: 0.75rem; }
}

/* Gallery cards: prevent fixed wide images on phones */
@media (max-width: 768px) {
  .gallery-options { gap: 1.5rem; }
  .gallery-img.large { width: 100%; max-width: 420px; } /* was 600px */
  .gallery-button { font-size: 1rem; padding: 0.75rem 1rem; }
}

/* Venmo QR must not overflow */
.venmo-box img { max-width: 100% !important; height: auto; }

/* Forms: keep 16px to avoid iOS zoom, but tighten spacing on phones */
@media (max-width: 768px) {
  form input, form textarea, form select { font-size: 16px; }
}

/* Taglines: avoid large scale on phones */
@media (max-width: 768px) {
  .tagline { font-size: 1rem !important; padding: 1.25rem !important; }
}

/* Hero images stack cleanly */
.hero-row { gap: 0.75rem; }
.hero-img { min-width: 0; }
