@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --green-deep:   #1e2c12;
  --green-mid:    #2d3f1a;
  --green-light:  #6a8c4f;
  --green-pale:   #e8f0e0;
  --amber:        #d4712a;
  --amber-light:  #f0a050;
  --parchment:    #f6f0e4;
  --parchment-2:  #ede4d0;
  --brown-dark:   #2a1e0e;
  --brown-mid:    #5c4a30;
  --brown-light:  #9c8060;
  --white:        #fdfaf4;
  --shadow-sm:    0 2px 8px rgba(42,30,14,.08);
  --shadow-md:    0 8px 28px rgba(42,30,14,.12);
  --shadow-lg:    0 20px 60px rgba(42,30,14,.18);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.25s cubic-bezier(.4,0,.2,1);
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--brown-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width:100%; display:block; }
a  { text-decoration:none; color:inherit; }
ul { list-style:none; }
button, input, textarea, select { font-family:inherit; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ─────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────── */
.container { max-width: 1160px; margin:0 auto; padding:0 32px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover { background: #c0621e; transform:translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline:hover { border-color:#fff; background:rgba(255,255,255,.08); }

.btn-dark {
  background: var(--brown-dark);
  color: #fff;
}
.btn-dark:hover { background: #3e2c14; transform:translateY(-1px); }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253,250,244,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--parchment-2);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-logo-text .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1;
}
.nav-logo-text .tagline {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brown-mid);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--brown-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--green-deep);
  color: #fff;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--green-mid); transform:translateY(-1px); box-shadow: var(--shadow-sm); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--brown-dark);
  color: var(--brown-light);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.7; color: var(--brown-light); max-width: 260px; }

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-2);
  margin-bottom: 16px;
}
.footer-col ul { display:flex; flex-direction:column; gap:10px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--brown-light);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--amber-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #5c4a30;
}

/* ─────────────────────────────────────────
   TRUST BAR
───────────────────────────────────────── */
.trust-bar {
  background: var(--brown-dark);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 28px;
  border-right: 1px solid rgba(255,255,255,.1);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--parchment-2);
}
.trust-item:last-child { border-right: none; }
.trust-item .ti-icon { font-size: 0.95rem; }

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header .eyebrow { margin-bottom: 10px; }
.section-header h2 { color: var(--brown-dark); }
.section-header p {
  font-size: 1rem;
  color: var(--brown-light);
  max-width: 500px;
  margin: 12px auto 0;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,.6); }
.section-header.light .eyebrow { color: var(--amber-light); }

/* ─────────────────────────────────────────
   CARDS — generic
───────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform:translateY(-4px); box-shadow: var(--shadow-md); }

/* ─────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, #1a2a0e 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   PILL TAGS
───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pill-green { background: var(--green-pale); color: var(--green-light); }
.pill-amber { background: #fde8d0; color: var(--amber); }
.pill-dark  { background: rgba(42,30,14,.08); color: var(--brown-mid); }

/* ─────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--parchment-2);
  border-radius: 8px;
  background: var(--parchment);
  font-size: 0.9rem;
  color: var(--brown-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,113,42,.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
.animate-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay:.1s; }
.delay-2 { animation-delay:.2s; }
.delay-3 { animation-delay:.3s; }
.delay-4 { animation-delay:.4s; }




/* ═══════════════════════════════════════════
   HAMBURGER + MOBILE MENU
═══════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 400;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--parchment);
  z-index: 350;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brown-dark);
  padding: 14px 32px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.mobile-menu a.active,
.mobile-menu a:hover { color: var(--amber); }
.mobile-menu .mobile-cta {
  margin-top: 28px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  background: var(--green-deep);
  color: #fff !important;
  padding: 16px 48px !important;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════
   TABLET (≤900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════
   MOBILE (≤640px)
═══════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Base ── */
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h2 { font-size: 1.8rem; }
  .section-header { margin-bottom: 28px; }

  /* ── Navbar ── */
  .navbar-inner { height: 62px; }
  .nav-logo-text .tagline { display: none; }

  /* ── HERO (index.html) ──
     Rethought: headline full width,
     single product image centered below,
     then 2 CTA buttons
  ── */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    padding: 52px 20px 40px !important;
    text-align: center;
  }
  .hero-text {
    padding: 0 !important;
    order: 1;
  }
  .hero-text .eyebrow { margin-bottom: 12px; }
  .hero-text h1 { font-size: 2.6rem; line-height: 1.2; }
  .hero-text p { font-size: 1rem; margin: 16px auto 28px; max-width: 340px; }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-btns .btn { width: 100%; max-width: 300px; text-align: center; }
  .hero-badge { display: none; }

  /* Single product image below buttons */
  .hero-products {
    padding: 0 !important;
    order: 2;
    margin-top: 36px;
    display: flex;
    justify-content: center;
  }
  .hero-products-grid { display: none; }
  .hero-products::after {
    content: '';
    display: block;
    width: 240px;
    height: 240px;
    background: url('../images/foxtail-noodles.webp') center/contain no-repeat;
    filter: drop-shadow(0 16px 40px rgba(30,44,18,0.25));
  }

  /* ── Trust bar ── */
  .trust-bar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
  }
  .trust-item {
    border-right: none;
    font-size: 0.72rem;
    padding: 5px 12px;
    flex: 0 0 50%;
    text-align: center;
  }

  /* ── Why cards ── */
  .why-card { padding: 22px 18px; }

  /* ── Product cards (home page grid) ── */
  .product-card { border-radius: 14px; }
  .product-img { height: 180px; }

  /* ── Newsletter ── */
  .newsletter-form {
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
  }
  .newsletter-form input {
    border-radius: 0;
    border-bottom: 1px solid var(--parchment-2);
    padding: 16px 20px;
  }
  .newsletter-form button {
    border-radius: 0;
    padding: 16px 20px;
    text-align: center;
  }

  /* ── Footer ── */
  .footer { padding: 44px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* ── Recipe teasers (home page) ── */
  .recipe-teaser-grid { grid-template-columns: 1fr !important; }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: 2rem; }

  /* ── PRODUCTS PAGE ──
     Each flavour card: image on top, details below
  ── */
  .flavour-grid { gap: 28px; }
  .flavour-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
    border-radius: 16px;
    overflow: hidden;
  }
  .flavour-img-wrap {
    height: 260px;
    min-height: unset;
    border-radius: 0;
  }
  .flavour-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background: var(--parchment);
  }
  .flavour-num {
    top: 14px;
    left: 14px;
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  .flavour-body { padding: 24px 20px 28px; }
  .flavour-info-cols { grid-template-columns: 1fr !important; gap: 20px; }
  .where-to-buy-grid { grid-template-columns: 1fr; }

  /* ── RECIPES PAGE ──
     Single column, full width cards
  ── */
  .filter-row {
    gap: 7px;
    justify-content: flex-start;
  }
  .filter-chip {
    font-size: 0.72rem;
    padding: 7px 13px;
  }
  .recipe-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .recipe-card,
  .recipe-card.featured {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
  }
  .recipe-card-img {
    height: 200px !important;
    border-radius: 0 !important;
  }
  .recipe-card.featured .recipe-card-img {
    height: 220px !important;
  }
  .recipe-card-body { padding: 22px 20px; }
  .recipe-detail-inner { grid-template-columns: 1fr !important; gap: 20px; }
  .recipe-stats { gap: 12px; }

  /* ── CONTACT PAGE ──
     Form full width, sidebar stacked below
  ── */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .form-card { padding: 26px 20px; order: 1; }
  .sidebar-stack { order: 2; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
