/* ===========================================================
   TAKWA BIO FOOD — DESIGN SYSTEM
   Palette and type sampled directly from the client's two
   brand leaflets (Facebook trade leaflet + product one-pager).
   =========================================================== */

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

:root {
  /* --- Core palette, V2 brand board --- */
  --forest: #245C22;       /* dark green — headings, nav, dark panels, footer (sampled from client's own brochure footer band) */
  --forest-deep: #245C22;  /* same dark green — kept as one consistent tone */
  --leaf: #4F8C5B;         /* readable mid green — eyebrow labels on light backgrounds */
  --leaf-light: #ACE1AF;   /* Vert principal — pale backgrounds, badges, text on dark */
  --leaf-pale: #B7E4C7;    /* Vert secondaire — alternate pale accent */
  --mango: #F28C28;        /* Orange principal — CTAs, price tags, highlights */
  --mango-deep: #D9741B;   /* pressed/hover state for orange */
  --accent-red: #FF6F61;   /* Rouge accent — callout bands, highlight moments */
  --gold: #C9A227;         /* small accent, used only for build/placeholder markers */
  --cream: #FFF8E7;        /* Fond crème — page background */
  --cream-soft: #F2E9CB;   /* card backgrounds, slightly deeper cream */
  --charcoal: #333333;     /* Texte — body copy */
  --charcoal-soft: #5E5E5E;/* secondary text */
  --white: #FFFFFF;

  /* --- Type --- */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Poppins', system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(36, 92, 34, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.script {
  font-family: var(--font-script);
  color: var(--mango);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  display: block;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--leaf);
}

p { margin: 0 0 1em; color: var(--charcoal-soft); }
.lede { font-size: 1.15rem; color: var(--charcoal); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }

/* Placeholder content marker — italic grey text for un-sourced copy */
.placeholder-text {
  font-style: italic;
  color: #8b8578;
  background: repeating-linear-gradient(
    135deg, rgba(139,133,120,0.06), rgba(139,133,120,0.06) 10px,
    rgba(139,133,120,0.12) 10px, rgba(139,133,120,0.12) 20px
  );
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  display: block;
}

/* Placeholder image block — dashed box standing in for missing photography */
.img-placeholder {
  background: repeating-linear-gradient(
    135deg, #EDE4D2, #EDE4D2 12px, #E4D9C2 12px, #E4D9C2 24px
  );
  border: 2px dashed #C6B994;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7A7362;
  font-style: italic;
  font-size: 0.92rem;
  padding: 20px;
  min-height: 220px;
}
.img-placeholder span { max-width: 240px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--mango); color: var(--white); }
.btn-primary:hover { background: var(--mango-deep); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(242,130,14,0.35); }
.btn-outline { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }
.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--forest); }

/* --- Header / Nav --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(11,74,18,0.1);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 62px; width: auto; }
nav.main-nav { display: flex; gap: 34px; align-items: center; }
nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--mango);
  transition: width 0.2s ease;
}
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }
nav.main-nav a.active { color: var(--mango); }
.nav-cta { background: var(--forest); color: var(--white) !important; padding: 18px 55px; border-radius: 999px; font-size: 1rem !important; white-space: nowrap; }
.nav-cta:hover { background: var(--forest-deep); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav { position: fixed; inset: 72px 0 0 0; background: var(--cream); flex-direction: column; padding: 32px; gap: 24px; transform: translateX(100%); transition: transform 0.25s ease; }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.6rem; color: var(--forest); cursor: pointer; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: clamp(460px, 42vw, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 75%;
  opacity: 0.55;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,92,34,0.55) 0%, rgba(36,92,34,0.75) 100%);
}
.hero-scrim-light {
  background: linear-gradient(180deg, rgba(36,92,34,0.12) 0%, rgba(36,92,34,0.38) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 28px;
  margin: 0 auto;
  text-align: center;
}
.hero-content .eyebrow { color: var(--leaf-light); }
.hero-content h1, .hero-content .script { color: var(--white); }
.hero-content .script { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.hero-content p { color: rgba(255,255,255,0.88); font-size: 1.15rem; }
.hero-cta-row { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* Page header (non-home hero, shorter) */
.page-header {
  background: var(--forest);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(242,140,40,0.18), transparent 55%);
}
.page-header .eyebrow { color: var(--leaf-light); }
.page-header h1 { color: var(--white); position: relative; font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
@media (min-width: 900px) { .page-header h1 { white-space: nowrap; } }
.page-header p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; position: relative; }

/* --- Category split cards (Juices / Teas) --- */
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-cards.single { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
@media (max-width: 800px) { .split-cards { grid-template-columns: 1fr; } }
.category-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--forest);
}
.category-card .card-media { position: relative; height: 260px; background: var(--cream-soft); overflow: hidden; }
.category-card .card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center 75%; }
.category-card .card-media.img-placeholder { border-radius: 0; border: none; min-height: 0; height: 260px; }
.category-card .card-media::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(11,74,18,0) 0%, rgba(11,74,18,0.85) 100%);
  pointer-events: none;
}
.category-card .card-body { padding: 30px 32px 34px; color: var(--white); }
.category-card .eyebrow { color: var(--leaf-light); }
.category-card h3 { color: var(--white); font-size: 1.7rem; }
.category-card p { color: rgba(255,255,255,0.85); }
.category-card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--mango); margin-top: 6px; }

/* --- USP grid --- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  text-align: center;
}
.usp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.usp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .usp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .usp-grid, .usp-grid.cols-3, .usp-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .usp-grid, .usp-grid.cols-3, .usp-grid.cols-4 { grid-template-columns: 1fr; } }
.usp-item .usp-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.usp-item .usp-icon svg { width: 100%; height: 100%; stroke: var(--forest); fill: none; stroke-width: 1.4; }
.usp-item h4 { font-family: var(--font-display); color: var(--forest); font-size: 1.05rem; margin-bottom: 6px; }
.usp-item p { font-size: 0.92rem; }

/* --- Two column feature --- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; gap: 32px; } }
.feature-row.reverse .feature-media { order: 2; }
.feature-media img, .feature-media .img-placeholder { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.feature-media .img-placeholder { min-height: 340px; }

/* --- Bands / banners --- */
.band {
  background: var(--forest);
  color: var(--white);
  text-align: center;
}
.band h2 { color: var(--white); }
.band p { color: rgba(255,255,255,0.85); max-width: 680px; margin: 0 auto 20px; }
.band .eyebrow { color: rgba(255,255,255,0.85); }
.band-mango { background: var(--accent-red); }
.band-mango h2, .band-mango p { color: var(--white); }
.band-mango h2.nowrap-fit { white-space: nowrap; font-size: clamp(1.05rem, 4.6vw, 2.3rem); }
.band-cream { background: var(--cream-soft); }
.band-accent { background: var(--accent-red); }
.band-accent h2, .band-accent .lede, .band-accent p { color: var(--white); }
.band-accent .eyebrow { color: rgba(255,255,255,0.85); }
.band-accent .placeholder-text { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.92); border-left-color: var(--white); }
.band-cream h2 { color: var(--forest); }
.band-cream p { color: var(--charcoal-soft); }

/* --- Product cards (flavours / teas) --- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card .product-media { aspect-ratio: 4/3; overflow: hidden; }
.product-card .product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
.product-card .product-media.img-placeholder { border-radius: 0; aspect-ratio: 4/3; min-height: 0; }
.product-card .product-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin-bottom: 6px; }
.product-card .tagline { font-family: var(--font-script); color: var(--mango); font-size: 1.2rem; margin-bottom: 10px; display: block; }
.nutri-table { width: 100%; border-collapse: collapse; margin-top: auto; font-size: 0.85rem; }
.nutri-table td { padding: 5px 0; border-bottom: 1px solid #EFE7D6; color: var(--charcoal-soft); }
.nutri-table td:last-child { text-align: right; font-weight: 600; color: var(--forest); }
.chip { display: inline-block; background: var(--leaf-light); color: var(--forest-deep); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* --- Timeline (Our Story) --- */
.timeline { position: relative; margin-top: 50px; }
.timeline::before { content:''; position: absolute; left: 20px; top: 0; bottom: 0; width: 3px; background: var(--leaf-pale); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 42px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: 11px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mango); border: 4px solid var(--cream);
}
.timeline-item .year { font-family: var(--font-display); color: var(--mango); font-weight: 700; font-size: 1.1rem; }
.timeline-item h4 { font-family: var(--font-display); color: var(--forest); font-size: 1.15rem; margin: 2px 0 6px; }
.timeline-item p { font-size: 0.95rem; margin: 0; }
.band-cream .timeline-item::before { border-color: var(--cream-soft); }
@media (max-width: 600px) { .timeline-item { padding-left: 52px; } }

/* --- Quote block --- */
.quote-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
  position: relative;
}
.quote-block .quote-mark { font-family: var(--font-display); font-size: 4rem; color: var(--leaf-pale); line-height: 0.5; display: block; margin-bottom: 10px; }
.quote-block p.quote-text { font-size: 1.2rem; color: var(--forest); font-style: italic; font-family: var(--font-body); }
.quote-block .quote-attrib { font-weight: 700; color: var(--forest); font-style: normal; }

/* --- Values grid (mission/vision/values) --- */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.values-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
.values-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 800px) { .values-grid, .values-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values-grid, .values-grid.cols-4 { grid-template-columns: 1fr; } }
.value-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.value-card h4 { color: var(--mango); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }

/* --- Contact page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-grid.single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-detail .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--leaf-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail .icon svg { width: 20px; height: 20px; stroke: var(--forest-deep); fill: none; stroke-width: 1.6; }
.contact-detail h4 { margin-bottom: 4px; font-size: 1rem; }
.form-fake label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--forest); margin: 16px 0 6px; }
.form-fake input, .form-fake textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid #E1D6BC; font-family: var(--font-body); background: var(--white); }
.form-fake textarea { min-height: 110px; resize: vertical; }

/* --- Trade partner strip --- */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 800px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-chip { background: var(--white); border-radius: var(--radius-sm); padding: 18px 10px; text-align: center; font-weight: 600; font-size: 0.85rem; color: var(--forest); box-shadow: 0 4px 12px rgba(36,92,34,0.08); }

/* --- Footer --- */
footer.site-footer { background: var(--forest-deep); color: rgba(255,255,255,0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
footer.site-footer a { display: block; color: rgba(255,255,255,0.72); font-size: 0.92rem; margin-bottom: 10px; }
footer.site-footer a:hover { color: var(--mango); }
footer.site-footer .brand-col img { height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); }
footer.site-footer .brand-col p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.footer-legal a { display: inline; margin-bottom: 0; color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: var(--mango); }
.footer-legal .sep { color: rgba(255,255,255,0.3); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
footer.site-footer .social-row a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 0; padding: 0; }
footer.site-footer .social-row a svg { display: block; flex-shrink: 0; }
footer.site-footer .social-row a:hover { background: var(--mango); }

/* Section heading helper */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0 0 44px; }

/* --- Signature line (site-wide, before footer) --- */
.signature-band {
  text-align: center;
  padding: 50px 0;
  background: var(--cream-soft);
}
.signature-band p {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--forest);
  margin: 0;
  font-weight: 600;
}

/* --- Placeholder image (small, for individual cards without photography) --- */
.img-placeholder.small { min-height: 160px; font-size: 0.82rem; }

/* --- Editor note style (kept out of production build, shown only when explicitly used) --- */
.build-note {
  background: #FFF4D6;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #6b5a12;
  margin-top: 10px;
}

/* Single-line heading on wide screens (centred even if wider than its container) */
@media (min-width: 900px) { .nowrap-wide { white-space: nowrap; width: max-content; margin-left: 50%; transform: translateX(-50%); } }
