/* =====================================================
   COCO GINGEMBRE — coco-gingembre.ch
   Palette: coconut cream / ginger amber / terracotta
   ===================================================== */

:root {
  /* Core palette */
  --coconut: #FBF4E4;          /* coconut cream — page bg */
  --coconut-soft: #F5EAD2;     /* slightly deeper cream */
  --coconut-deep: #EFDFBF;     /* card / panel cream */
  --ginger: #D88A2E;           /* ginger amber — primary accent */
  --ginger-deep: #B36A18;      /* hover / depth */
  --ginger-light: #F2C77A;     /* light amber wash */
  --terra: #B7563A;            /* terracotta — secondary accent */
  --terra-deep: #8E3D26;       /* deep terra for backgrounds */
  --terra-soft: #D88B6F;       /* light terra */
  --charcoal: #2B1F17;         /* near-black text */
  --charcoal-soft: #5A4636;    /* muted body */
  --leaf: #4F6B3A;             /* small green hint (subtle) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--coconut);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ginger); color: var(--coconut); }

/* ================ TYPOGRAPHY ================ */

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.5rem;
}
.eyebrow-light { color: var(--ginger-light); }

.lead {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--terra-deep);
  margin-bottom: 1.5rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

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

strong { font-weight: 600; color: var(--charcoal); }
em { font-style: italic; }

/* ================ LAYOUT ================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow { max-width: 760px; }

.section {
  padding: 7rem 0;
  position: relative;
}
.section-light { background: var(--coconut); }
.section-cream { background: var(--coconut-soft); }
.section-terra {
  background: var(--terra-deep);
  color: var(--coconut);
}
.section-terra h2,
.section-terra h3,
.section-terra h4 { color: var(--coconut); }
.section-terra .lead { color: var(--ginger-light); }
.section-amber {
  background: var(--ginger);
  color: var(--charcoal);
}
.section-dark {
  background: var(--charcoal);
  color: var(--coconut);
}
.section-dark h2 { color: var(--coconut); }

.section-head {
  margin-bottom: 4rem;
  max-width: 720px;
}
.section-head-light .section-num { color: var(--ginger-light); }
.section-num {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--terra);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

/* ================ NAV ================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 244, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 31, 23, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — both words same color, no separator */
.logo {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.logo:hover { color: var(--terra); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--terra); }

.nav-cta {
  background: var(--ginger);
  color: var(--charcoal) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover {
  background: var(--ginger-deep);
  color: var(--coconut) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
}

/* ================ BUTTONS ================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--ginger);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--ginger-deep);
  color: var(--coconut);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(179, 106, 24, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--coconut);
}
.btn-dark {
  background: var(--charcoal);
  color: var(--coconut);
}
.btn-dark:hover {
  background: var(--terra-deep);
  transform: translateY(-2px);
}
.btn-large {
  padding: 1.15rem 2.4rem;
  font-size: 1.05rem;
}

/* ================ HERO ================ */

.hero {
  padding: 9rem 0 6rem;
  position: relative;
  background:
    radial-gradient(ellipse at top right, var(--ginger-light) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--terra-soft) 0%, transparent 55%),
    var(--coconut);
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-left { animation: fadeUp 0.9s ease 0.1s both; }
.hero-right {
  animation: fadeUp 0.9s ease 0.3s both;
  position: relative;
}

h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}
.h1-line { display: block; }
.h1-amp {
  color: var(--ginger-deep);
  padding-left: 0.5em;
}
.h1-italic {
  font-style: italic;
  color: var(--terra);
  font-weight: 500;
  padding-left: 1em;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  aspect-ratio: 4/5;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* ================ PLACEHOLDERS ================ */

.placeholder {
  background: var(--terra-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--coconut);
  position: relative;
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.05) 20px,
      rgba(255,255,255,0.05) 40px
    );
}
.placeholder-snack { background: linear-gradient(135deg, var(--terra-soft), var(--ginger)); }
.placeholder-maison { background: linear-gradient(135deg, var(--terra), var(--terra-deep)); aspect-ratio: 4/3; border-radius: 8px; }
.placeholder-machine { background: linear-gradient(135deg, var(--ginger-deep), var(--terra)); aspect-ratio: 4/3; border-radius: 8px; }
.placeholder-label {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.4rem;
  z-index: 2;
  margin-bottom: 0.5rem;
}
.placeholder-caption {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 2;
}

/* ================ MAISON SECTION ================ */

.maison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.maison-text p {
  color: rgba(251, 244, 228, 0.85);
  font-size: 1.05rem;
}

/* Cycle */
.cycle {
  border-top: 1px solid rgba(251, 244, 228, 0.2);
  padding-top: 4rem;
  margin-bottom: 5rem;
}
.cycle-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.cycle-intro {
  font-size: 1.05rem;
  color: rgba(251, 244, 228, 0.85);
  max-width: 720px;
  margin-bottom: 3rem;
}
.cycle-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.cycle-step {
  background: rgba(251, 244, 228, 0.06);
  padding: 2rem;
  border-radius: 12px;
  border-top: 3px solid var(--ginger);
}
.cycle-step-num {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--ginger-light);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.cycle-step h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.cycle-step p {
  font-size: 0.95rem;
  color: rgba(251, 244, 228, 0.8);
}

/* Independence (inside maison section) */
.independence {
  border-top: 1px solid rgba(251, 244, 228, 0.2);
  padding-top: 4rem;
}
.independence-title {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
}
.indep-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.indep-quote {
  position: relative;
  padding-left: 3rem;
}
.quote-mark {
  font-family: 'Lora', serif;
  font-size: 7rem;
  line-height: 0.8;
  color: var(--ginger-light);
  position: absolute;
  top: -1rem;
  left: 0;
}
.indep-quote p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ginger-light);
}
.indep-text p {
  font-size: 1.05rem;
  color: rgba(251, 244, 228, 0.85);
}
.indep-text strong { color: var(--coconut); }

/* ================ PRODUCT SECTION ================ */

.product-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-text p { font-size: 1.05rem; }

.product-facts {
  background: var(--coconut-deep);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--ginger);
  position: sticky;
  top: 6rem;
}
.product-facts h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.facts { display: flex; flex-direction: column; }
.fact {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(43, 31, 23, 0.1);
}
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact:first-child { padding-top: 0; }
.fact dt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-deep);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.fact dd {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.4;
}

/* ================ MACHINE SECTION ================ */

.machine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.machine-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 1rem 0 1.5rem;
  color: var(--charcoal);
}
.machine-text .lead { color: var(--terra-deep); }
.machine-text p { color: var(--charcoal); }
.machine-note {
  font-size: 0.95rem;
  font-style: italic;
}
.machine-note a {
  color: var(--terra-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-light {
  background: rgba(43, 31, 23, 0.12);
  color: var(--charcoal);
}

/* ================ SHOP CTA ================ */

.shop-card {
  text-align: center;
  padding: 2rem 0;
}
.shop-card h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 1rem 0 2rem;
}
.shop-card p {
  font-size: 1.1rem;
  color: rgba(251, 244, 228, 0.85);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.shop-note {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 1.5rem;
  color: rgba(251, 244, 228, 0.6) !important;
}

/* ================ LEGAL PAGES ================ */

/* When a full legal page (not section inside main) */
.legal-page { padding-top: 9rem; }

.back-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--terra-deep);
  margin-bottom: 3rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.back-link:hover {
  color: var(--ginger-deep);
  transform: translateX(-3px);
}

.legal { padding: 6rem 0; }
.legal-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin: 2.5rem 0 0.8rem;
  font-weight: 600;
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p {
  font-size: 1rem;
  color: var(--charcoal-soft);
  line-height: 1.7;
}
.legal-content a {
  color: var(--terra-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--ginger-deep); }
.legal .lead { color: var(--terra-deep); margin-bottom: 2rem; }

/* ================ FOOTER ================ */

.footer {
  background: var(--charcoal);
  color: var(--coconut);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(251, 244, 228, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: rgba(251, 244, 228, 0.65);
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 1rem;
}
.logo-footer {
  font-size: 1.3rem;
  color: var(--coconut);
}
.footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ginger-light);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-weight: 500;
}
.footer h4:first-child { margin-top: 0; }
.footer-col p {
  font-size: 0.92rem;
  color: rgba(251, 244, 228, 0.75);
}
.footer-col a {
  color: var(--ginger-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--ginger); }
.footer-bottom {
  border-top: 1px solid rgba(251, 244, 228, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(251, 244, 228, 0.5);
}
.footer-top {
  color: var(--ginger-light);
  transition: color 0.2s ease;
}
.footer-top:hover { color: var(--ginger); }

/* ================ ANIMATIONS ================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================ RESPONSIVE ================ */

@media (max-width: 900px) {
  .section { padding: 5rem 0; }
  .hero { padding: 7rem 0 4rem; }
  .legal { padding: 4rem 0; }

  .hero-inner,
  .product-grid,
  .maison-grid,
  .indep-grid,
  .machine-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-facts {
    position: static;
  }

  .cycle-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--coconut);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(43, 31, 23, 0.1);
    box-shadow: 0 8px 24px -8px rgba(43, 31, 23, 0.15);
  }
  .menu-open .nav-links { display: flex; }

  .h1-amp, .h1-italic { padding-left: 0; }

  .indep-quote { padding-left: 0; padding-top: 4rem; }
  .quote-mark { font-size: 5rem; }

  .container { padding: 0 1.25rem; }
  .nav-inner { padding: 0.9rem 1.25rem; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .lead { font-size: 1.15rem; }
  .lede { font-size: 1.05rem; }
  .btn { padding: 0.85rem 1.4rem; font-size: 0.9rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
