/* ============================================
   KOKO — Design tokens
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Nunito:wght@400;500;600;700;800&family=Alex+Brush&display=swap');

:root{
  --magenta: #a4225a;
  --magenta-deep: #7c1a44;
  --magenta-soft: #c65b85;
  --oat: #a4225a;
  --oat-deep: #7c1a44;
  --taupe: #a9987f;
  --taupe-deep: var(--magenta);
  --ink: #f9f1ea;
  --dark: #241b14;
  --white: #fffdfa;

  /* Header/Subheader ~ Adorn Condensed Sans, Body ~ All Round Gothic, Accent ~ Bickham Script Pro
     (brand-guideline fonts are licensed; these are the closest free stand-ins) */
  --display: 'Oswald', sans-serif;
  --body: 'Nunito', sans-serif;
  --script: 'Alex Brush', cursive;

  --max: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

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

body{
  margin:0;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.047em;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

.eyebrow{
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink);
}

.script{
  font-family: var(--script);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================
   Nav
   ============================================ */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(164,34,90,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(36,27,20,0.08);
}
.nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--edge);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{
  width: 132px;
  height: 132px;
  border-radius: 10px;
  object-fit: cover;
}
.brand span{
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-links{
  display:flex;
  align-items:center;
  gap: clamp(18px, 3vw, 34px);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-links a{
  position:relative;
  /* padding: 4px 0; */
  color: var(--ink);
  opacity: 0.8;
  transition: opacity .2s ease;
}
.nav-links a:hover{ opacity:1; }
.nav-links a.active{ opacity:1; color: var(--white); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height:2px;
  background: var(--white);
  border-radius: 2px;
}
.nav-cta{
  background: var(--white);
  color: var(--magenta) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.03em;
  opacity: 1 !important;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover{ background: var(--ink); transform: translateY(-1px); }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  width: 34px;
  height: 26px;
  position: relative;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1){ top:2px; }
.nav-toggle span:nth-child(2){ top:12px; }
.nav-toggle span:nth-child(3){ top:22px; }
.nav-toggle.open span:nth-child(1){ top:12px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ top:12px; transform: rotate(-45deg); }

@media (max-width: 820px){
  .site-header{ backdrop-filter: none; }
  .nav-toggle{ display:block; }
  .nav-links{
    position: fixed;
    inset: 134px 0 0 0;
    background: var(--oat);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px var(--edge) 40px;
    gap: 22px;
    font-size: 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    border-bottom: 1px solid rgba(36,27,20,0.08);
  }
  .nav-links.open{
    opacity:1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-cta{ margin-top: 8px; }
}

/* ============================================
   Drip divider — signature element
   (a row of icing "fingers" hanging from the
   seam between two sections, echoing the drip
   on KOKO's tin label)
   ============================================ */
.drip{
  display:flex;
  align-items:flex-end;
  width:100%;
  height: 44px;
  overflow:hidden;
  line-height:0;
}
.drip span{
  flex: 1 1 0;
  height: 14px;
  background: var(--drip-fg);
  border-radius: 70% 70% 0 0 / 100% 100% 0 0;
}
.drip span:nth-child(12n+1){ height: 16px; }
.drip span:nth-child(12n+2){ height: 30px; }
.drip span:nth-child(12n+3){ height: 20px; }
.drip span:nth-child(12n+4){ height: 40px; }
.drip span:nth-child(12n+5){ height: 14px; }
.drip span:nth-child(12n+6){ height: 34px; }
.drip span:nth-child(12n+7){ height: 22px; }
.drip span:nth-child(12n+8){ height: 44px; }
.drip span:nth-child(12n+9){ height: 18px; }
.drip span:nth-child(12n+10){ height: 28px; }
.drip span:nth-child(12n+11){ height: 20px; }
.drip span:nth-child(12n+12){ height: 38px; }
@media (max-width: 640px){
  .drip{ height: 30px; }
  .drip span{ height: 10px; }
  .drip span:nth-child(12n+4), .drip span:nth-child(12n+8){ height: 28px; }
}

/* ============================================
   Buttons
   ============================================ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: all .22s ease;
}
.btn-primary{
  background: var(--white);
  color: var(--magenta);
}
.btn-primary:hover{ background: var(--magenta-deep); color: var(--white); transform: translateY(-2px); }
.btn-outline{
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--oat); }
.btn-light{
  border-color: var(--ink);
  color: var(--ink);
}
.btn-light:hover{ background: var(--oat); color: var(--ink); }

/* ============================================
   Reveal on scroll
   ============================================ */
.reveal{
  opacity:0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform: translateY(0); }

/* ============================================
   Footer
   ============================================ */
.site-footer{
  background: var(--taupe-deep);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.footer-inner{
  max-width: var(--max);
  margin:0 auto;
  padding: 64px var(--edge) 36px;
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.footer-inner h4{
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 16px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 14px;
}
.footer-brand img{ width:40px; height:40px; border-radius:9px; }
.footer-brand span{ font-family: var(--display); font-size: 1.25rem; }
.footer-inner p{ opacity: 0.82; max-width: 32ch; }
.footer-inner a{ display:block; opacity:0.85; padding: 5px 0; transition: opacity .2s; }
.footer-inner a:hover{ opacity:1; color: var(--magenta-soft); }
.footer-bottom{
  border-top: 1px solid rgba(249,241,234,0.16);
  padding: 18px var(--edge) 26px;
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  opacity: 0.6;
  position: relative;
  z-index: 2;
}
@media (max-width: 760px){
  .footer-inner{ grid-template-columns: 1fr; }
}

/* ============================================
   Page header (interior pages)
   ============================================ */
.page-hero{
  padding: 72px var(--edge) 60px;
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1{
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-top: 10px;
}
.page-hero p{
  max-width: 56ch;
  font-size: 1.08rem;
  margin-top: 18px;
  opacity: 0.82;
}

/* ============================================
   Home — Hero
   ============================================ */
.hero{
  background: var(--oat);
  padding: 30px var(--edge) 0;
}
.hero-inner{
  max-width: var(--max);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items:center;
  padding-bottom: 60px;
}
.hero-copy .script{ margin-bottom: 6px; display:block; }
.hero-copy h1{
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  margin-bottom: 22px;
}
.hero-copy p{
  font-size: 1.12rem;
  max-width: 46ch;
  opacity: 0.82;
  margin-bottom: 32px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-figure{
  position:relative;
}
.hero-figure img{
  width:100%;
  border-radius: 26px 120px 26px 26px;
  box-shadow: 0 30px 60px -25px rgba(36,27,20,0.45);
}
.hero-badge{
  position:absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  color: var(--magenta);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 1.15;
  padding: 10px;
  box-shadow: 0 14px 30px -10px rgba(124,26,68,0.55);
  animation: spin 22s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.hero-badge b{ font-family: var(--body); display:block; font-size: 1.5rem; font-weight:800; }

@media (max-width: 480px){
  .hero-badge{ left: 0; bottom: -18px; width: 96px; height: 96px; font-size: 0.8rem; }
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-figure{ order:-1; max-width: 420px; margin: 0 auto; }
}

/* ============================================
   Marquee strip
   ============================================ */
.marquee{
  background: var(--ink);
  color: var(--oat);
  overflow:hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.marquee-track{
  display:inline-flex;
  gap: 40px;
  animation: marquee 16s linear infinite;
}
.marquee-track span{
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  opacity:0.9;
  display:inline-flex;
  align-items:center;
  gap:40px;
}
.marquee-track span::after{ content:"•"; color: var(--magenta-soft); margin-left:40px; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ============================================
   Section basics
   ============================================ */
.section{ padding: 88px var(--edge); }
.section-inner{ max-width: var(--max); margin:0 auto; }
.section-head{ max-width: 640px; margin-bottom: 46px; }
.section-head h2{ font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 10px; }
.section-head p{ margin-top: 16px; opacity: 0.8; font-size: 1.05rem; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* Story teaser (home) */
.story-teaser{
  background: var(--taupe-deep);
  color: var(--ink);
}
.story-teaser .section-inner{ padding: 70px var(--edge); }
.story-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px,5vw,80px);
  align-items:center;
}
.story-grid img{ border-radius: 20px; }
.story-grid .eyebrow{ color: var(--magenta-soft); }
@media (max-width: 860px){ .story-grid{ grid-template-columns: 1fr; } .story-grid img{ max-width:100%; width:100%; margin:0 auto; } }
.story-grid blockquote{
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  margin: 18px 0 22px;
}
.story-grid p.byline{ opacity:0.7; font-weight:700; font-size: 0.9rem; letter-spacing:0.03em; }

/* Product preview / grid */
.products-strip{ background: var(--oat); }
.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.product-card{
  background: var(--white);
  color: var(--dark);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 20px 40px -28px rgba(36,27,20,0.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(36,27,20,0.4); }
.product-card .img-wrap{ aspect-ratio: 4/3; overflow:hidden; }
.product-card img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.product-card:hover img{ transform: scale(1.06); }
.product-card .card-body{ padding: 22px 22px 26px; }
.product-card h3{ font-size: 1.3rem; margin-bottom: 8px; }
.product-card p{ font-size: 0.94rem; opacity:0.78; margin:0 0 14px; }
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 6px;}
.tag{
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--oat);
  color: var(--white);
  padding: 5px 11px;
  border-radius: 100px;
}

/* Values / feature trio */
.value-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card{
  background: var(--white);
  color: var(--dark);
  border-radius: 20px;
  padding: 32px 26px;
  border: 1px solid rgba(36,27,20,0.06);
}
.value-card .num{ font-family: var(--display); font-style:italic; color: var(--magenta-soft); font-size:1rem; }
.value-card h3{ font-size: 1.28rem; margin: 10px 0 10px; }
.value-card p{ opacity:0.78; font-size: 0.96rem; }
@media (max-width: 800px){ .value-grid{ grid-template-columns: 1fr; } }

/* CTA banner */
.cta-banner{
  background: var(--white);
  color: var(--magenta-deep);
  border-radius: 28px;
  padding: 56px clamp(24px,5vw,64px);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 18ch; }
.cta-banner p{ opacity:0.85; margin-top:10px; max-width: 40ch; }

/* ============================================
   About page
   ============================================ */
.about-hero{
  background: var(--oat);
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px,5vw,70px);
  align-items:center;
  padding: 20px var(--edge) 70px;
  max-width: var(--max);
  margin:0 auto;
}
.about-hero img{ border-radius: 24px; }
@media (max-width:900px){ .about-hero{ grid-template-columns:1fr; } .about-hero .img-col{ order:-1; max-width:360px; margin:0 auto; } }

.story-block{
  max-width: 760px;
  margin: 0 auto;
}
.story-block p{ margin: 0 0 22px; font-size: 1.06rem; opacity:0.86; }
.story-block p.lede{
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 700;
  opacity:1;
  color: var(--ink);
  line-height:1.5;
}

.story-intro{
  display:flex;
  align-items:flex-start;
  gap:34px;
  margin-bottom: 22px;
}
.story-intro-text{ flex:1; min-width:0; }
.story-intro-text p{ margin-bottom:0; }
.story-intro-text p + p{ margin-top:22px; }
.founder-card{
  flex: none;
  width: 200px;
  text-align:center;
}
@media (max-width: 640px){
  .story-intro{ flex-direction:column; align-items:center; }
}
.founder-photo{
  position:relative;
  width:100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  background: var(--magenta);
  overflow:hidden;
}
.founder-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.founder-overlay{
  position:absolute;
  inset:0;
  background: rgba(36,27,20,0.82);
  color: var(--ink);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  opacity:0;
  transition: opacity .25s ease;
}
.founder-overlay p{ margin:0; font-size:0.78rem; line-height:1.4; opacity:1; }
.founder-photo:hover .founder-overlay,
.founder-photo:focus-within .founder-overlay{ opacity:1; }
.founder-name{ display:block; margin-top:12px; font-family:var(--display); font-size:1rem; color:var(--ink); }
.founder-role{ display:block; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; opacity:0.7; }
@media (max-width: 640px){ .founder-card{ width:160px; } }

.pull-strip{
  background: var(--oat-deep);
  padding: 70px var(--edge);
}
.pull-strip blockquote{
  max-width: 800px;
  margin: 0 auto;
  text-align:center;
  font-family: var(--script);
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
}

.guardrail-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.guardrail-card{
  padding: 30px;
  border-radius: 18px;
}
.guardrail-card.yes{ background: rgba(164,34,90,0.08); border: 1px solid rgba(164,34,90,0.18); }
.guardrail-card.no{ background: rgba(36,27,20,0.04); border: 1px solid rgba(36,27,20,0.1); }
.guardrail-card h3{ font-size: 1.1rem; margin-bottom: 14px; }
.guardrail-card ul li{ padding: 7px 0; opacity:0.82; font-size:0.96rem; position:relative; padding-left: 22px; }
.guardrail-card ul li::before{ position:absolute; left:0; }
.guardrail-card.yes ul li::before{ content:"✓"; color: var(--ink); font-weight:800; }
.guardrail-card.no ul li::before{ content:"–"; color: var(--taupe); font-weight:800; }
@media (max-width:760px){ .guardrail-grid{ grid-template-columns:1fr; } }

/* ============================================
   Products page
   ============================================ */
.products-hero{ background: var(--oat); }
.availability-note{
  background: var(--white);
  color: var(--dark);
  border: 1px dashed rgba(164,34,90,0.4);
  border-radius: 16px;
  padding: 18px 22px;
  display:flex;
  align-items:center;
  gap: 14px;
  font-size: 0.95rem;
  max-width: 640px;
  margin-top: 28px;
}
.availability-note .dot{ width:10px; height:10px; border-radius:50%; background: var(--magenta); flex:none; }

/* ============================================
   Contact page
   ============================================ */
.contact-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px,5vw,80px);
  align-items:start;
}
.contact-info h3{ font-size:1.4rem; margin-bottom:10px; }
.contact-info p{ opacity:0.8; margin-bottom: 30px; max-width: 42ch; }
.info-row{
  display:flex;
  gap:16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(249,241,234,0.2);
}
.info-row .label{ font-weight:800; font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; color: var(--ink); width: 110px; flex:none; }
.info-row .val{ opacity:0.86; min-width:0; overflow-wrap:anywhere; }
.info-row a.val:hover{ color: var(--white); }

.field{ margin-bottom: 20px; }
.field label{ display:block; font-weight:800; font-size:0.82rem; margin-bottom:8px; letter-spacing:0.02em; }
.field input, .field textarea, .field select{
  width:100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(36,27,20,0.15);
  background: var(--white);
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--dark);
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--magenta); outline:none; }
.field textarea{ resize: vertical; min-height: 120px; }
#form-status{
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--magenta-deep);
  font-weight:700;
  font-size:0.92rem;
  display:none;
}
#form-status.show{ display:block; }

.map-note{
  border-radius: 20px;
  background: var(--taupe-deep);
  color: var(--ink);
  padding: 36px;
  margin-top: 34px;
}
.map-note .script{ color: var(--magenta-soft); }

@media (max-width: 860px){ .contact-wrap{ grid-template-columns:1fr; } }

/* WhatsApp floating button */
.whatsapp-float{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width: 30px; height: 30px; fill: var(--white); }
