/* ============================================================
   BABE & BABE BAKLAVA — Main Stylesheet
   ============================================================ */

/* ── Custom properties ───────────────────────────────────── */
:root {
  --cream:       #ffffff;
  --cream-dark:  #f3f0ed;   /* very light taupe */
  --text:        #2a1f14;
  --text-mid:    #5a4535;
  --gold:        #c7810b;   /* rich orange gold */
  --gold-light:  #e0a526;
  --gold-pale:   #f3dda8;
  --white:       #ffffff;
  --border:      #e3ddd7;
  --logo-green:  #afc93c;
  --logo-pink:   #f6d1dc;   /* soft pink, less salmon */
  --cone-gold:   #d59d70;
  --espresso:    #2e2925;   /* footer brown, less red */
  --taupe:       #e8e2dc;   /* light taupe footer */

  --serif:       'Cormorant Garamond', 'Georgia', serif;
  --sans:        'Lato', 'Helvetica Neue', Arial, sans-serif;

  --max-w:       1200px;
  --gutter:      1rem;
  --section-pad: 5rem 1rem;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.display-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.overline {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.body-lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-mid);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1200px){ .container { padding: 0 3rem; } }

.section { padding: var(--section-pad); }

.grid-2 {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}
@media (min-width: 600px)  { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Site header / navigation ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--logo-pink);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  background: var(--logo-pink);
  box-shadow: 0 1px 0 rgba(42,31,20,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}
@media (min-width: 768px) { .header-inner { padding: 1.25rem 2rem; } }

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img {
  height: 60px;
  width: auto;
  transition: opacity 0.2s;
}
.logo-link:hover img { opacity: 0.8; }

/* Desktop nav */
.main-nav {
  display: none;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
  .main-nav a {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 0.2rem;
  }
  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.25s;
  }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    color: var(--gold);
  }
  .main-nav a:hover::after,
  .main-nav a[aria-current="page"]::after {
    width: 100%;
  }
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--logo-pink);
  border-top: 1px solid rgba(42,31,20,0.12);
  padding: 1.5rem 1.5rem 2rem;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }

/* ── Hero / Slideshow ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  /* scroll parallax: the photo moves slower than the page */
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  will-change: transform;
}
.hero-content {
  transform: translate3d(0, var(--ty, 0px), 0);
  opacity: var(--to, 1);
  will-change: transform, opacity;
}
/* down arrow at the bottom of the hero */
.hero-arrow {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 2;
  width: 48px; height: 48px;
  margin-left: -24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  color: var(--gold);
  cursor: pointer;
  animation: heroArrowBob 2.2s ease-in-out infinite;
  transition: background 0.2s, color 0.2s;
}
.hero-arrow:hover, .hero-arrow:focus-visible { background: var(--gold-light); color: #fff; outline: none; }
@keyframes heroArrowBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) { .hero-arrow { animation: none; } }
/* sections after the hero slide up over the photo */
.hero ~ section { position: relative; z-index: 3; background-color: var(--white); }
.hero ~ section.intro-strip { background-color: var(--cream-dark); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide img, .hero-content { transform: none; opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* soft white wash behind the text, no dark overlay */
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.55) 38%,
    transparent 70%
  );
}
@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.55) 35%,
      transparent 62%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-content { padding: 0 2rem 6rem; }
}

.hero-content .overline { color: var(--gold); margin-bottom: 1rem; }
.hero-content .display-title { color: var(--text); max-width: 14ch; }
.hero-content .body-lead {
  color: var(--text-mid);
  margin-top: 1rem;
  max-width: 44ch;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid currentColor;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-light {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-light:hover {
  background: var(--white);
  color: var(--text);
}
.btn-dark {
  color: var(--text);
  border-color: var(--gold);
}
.btn-dark:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--text);
  border-color: var(--text);
}

/* ── Intro strip ──────────────────────────────────────────── */
.intro-strip {
  background: var(--cream-dark);
  padding: 3rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intro-strip .section-heading { margin-bottom: 1rem; }

/* ── Feature / Split section ──────────────────────────────── */
.split-section { padding: 5rem 1rem; }
.split-section .container { }

.split-img { overflow: hidden; }
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}
.split-img:hover img { transform: scale(1.03); }

.split-text { padding: 1rem 0; }
@media (min-width: 768px) { .split-text { padding: 2rem 0; } }
.split-text .overline { margin-bottom: 0.75rem; }
.split-text .section-heading { margin-bottom: 1.25rem; }

/* ── Product gallery ──────────────────────────────────────── */
.product-section { padding: 5rem 1rem; background: var(--cream-dark); }
.product-section .section-heading { margin-bottom: 0.5rem; }
.product-section .body-lead { margin-bottom: 3rem; }

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }

.product-card { background: var(--cream); overflow: hidden; }
.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body {
  padding: 1.25rem;
}
.product-card-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-section { padding: 5rem 1rem; }
.testimonials-header { text-align: center; margin-bottom: 3rem; }

.testimonials-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 600px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-item { margin: 0; cursor: pointer; }
.testimonial-photo { overflow: hidden; }
.testimonial-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.testimonial-item:hover img { transform: scale(1.03); }
.testimonial-item figcaption { padding: 1.1rem 1.1rem 1.2rem; background: var(--cream-dark); }
.testimonial-item blockquote { margin: 0; }
.testimonial-item blockquote p {
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.testimonial-item cite {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 3, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 600px);
  max-height: 90svh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { color: #fff; }

/* ── Story page ───────────────────────────────────────────── */
.story-hero {
  height: 60svh;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.story-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.story-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 1rem;
}
.story-hero-overlay .display-title { color: var(--white); text-align: center; }
.story-hero-overlay .body-lead { color: rgba(255,255,255,0.85); text-align: center; margin-top: 0.75rem; }

.story-body {
  padding: 4rem 1rem;
}
@media (min-width: 768px) { .story-body { padding: 6rem 2rem; } }

.story-block {
  display: grid;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto 5rem;
}
@media (min-width: 768px) {
  .story-block { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .story-block.reverse { direction: rtl; }
  .story-block.reverse > * { direction: ltr; }
}

.story-block-text { }
.story-block-text .overline { margin-bottom: 0.6rem; }
.story-block-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
}
.story-block-text p { color: var(--text-mid); line-height: 1.85; }

.story-block-img {
  overflow: hidden;
}
.story-block-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.story-full-text {
  max-width: 68ch;
  margin: 0 auto;
}
.story-full-text p { color: var(--text-mid); line-height: 1.9; margin-bottom: 1.25rem; }

.story-divider {
  text-align: center;
  margin: 3rem auto;
  color: var(--gold-light);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
}

/* ── Contact / Order forms ────────────────────────────────── */
.form-page { padding: 5rem 1rem; }
.form-page-header { text-align: center; margin-bottom: 3rem; }
.form-page-header .overline { margin-bottom: 0.5rem; }
.form-page-header .section-heading { margin-bottom: 0.75rem; }
.form-page-header p { color: var(--text-mid); max-width: 48ch; margin: 0 auto; }

.contact-layout {
  display: grid;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

.contact-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.contact-info p, .contact-info address {
  color: var(--text-mid);
  font-style: normal;
  line-height: 1.85;
}
.contact-info a:hover { color: var(--gold); }
.contact-info .separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-err { display: none; font-size: 0.8rem; color: #a3341f; margin-top: 0.35rem; }
.form-group.err input, .form-group.err select, .form-group.err textarea { border-color: #a3341f; }
.form-group.err .form-err { display: block; }
.form-msg-err { color: #a3341f; font-size: 0.85rem; margin-top: 1rem; }
.cf-turnstile { margin-top: 0.5rem; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── Menu / Flavors ───────────────────────────────────────── */
.menu-section { padding: 5rem 1rem; background: var(--cream-dark); }
.menu-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 600px) { .menu-grid { grid-template-columns: 1fr 1fr; } }

.menu-card {
  background: var(--cream);
  padding: 2rem;
  border-top: 2px solid var(--gold);
}
.menu-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
.menu-card .serving {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.menu-card ul { }
.menu-card li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gold-pale);
  font-size: 0.95rem;
  color: var(--text-mid);
}
.menu-card li:last-child { border-bottom: none; }

/* ── Footer (light taupe) ─────────────────────────────────── */
.site-footer {
  background: var(--taupe);
  color: var(--text);
  padding: 4rem 1rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
}
.footer-logo p {
  font-size: 0.8rem;
  color: rgba(42,31,20,0.7);
  line-height: 1.6;
}
.footer-nav h4, .footer-contact h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(42,31,20,0.8);
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-contact a:hover, .social-links a:hover { color: var(--gold); }
.footer-contact p, .footer-contact address {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(42,31,20,0.8);
  line-height: 1.85;
}
.footer-bottom {
  border-top: 1px solid rgba(42,31,20,0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(42,31,20,0.6);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42,31,20,0.8);
  transition: color 0.2s;
}

/* ── Decorative rule ──────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ornament-icon {
  font-size: 0.9rem;
  color: var(--gold-light);
  letter-spacing: 0.3em;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Page hero (interior) ─────────────────────────────────── */
.page-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .overline { margin-bottom: 0.5rem; }
.page-hero .section-heading { margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-mid); max-width: 52ch; margin: 0 auto; }

/* ── Success message ──────────────────────────────────────── */
.form-success {
  display: none;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}
.form-success.show { display: block; }
