/* ==========================================================================
   Treeconuts Biotech - treeconuts.com
   Palette: Treeconuts Leaf Green #4E8752 · Earthy Brown #3E2723 · Cream #FFFDF6
   Type: Cormorant Garamond (display) + Hanken Grotesk (text)
   ========================================================================== */

:root{
  --green:#4E8752;
  --green-deep:#2F5A33;
  --green-soft:#E7EFE7;
  --brown:#3E2723;
  --brown-2:#7A513C;
  --brown-soft:#F1E7DB;
  --cream:#FFFDF6;
  --cream-2:#F8F4E9;
  --ink:#2E251F;
  --ink-2:#6B5F55;
  --line:#E5DCCE;
  --white:#FFFFFF;
  --shadow:0 12px 32px rgba(62,39,35,.10);
  --radius:10px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Hanken Grotesk', system-ui, sans-serif;
  font-size:17px;
  line-height:1.6;
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-weight:600;
  color:var(--brown);
  line-height:1.12;
  margin:0;
  text-wrap:balance;
}
p{ margin:0; color:var(--ink-2); text-wrap:pretty; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.nowrap{ white-space:nowrap; }

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

/* ---------- shared bits ---------- */
.eyebrow{
  display:block;
  font-size:12.5px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--brown-2);
  margin-bottom:14px;
}
.section{ padding:96px 0; }
.section--band{ background:var(--cream-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:42px; }
.section-head p{ margin-top:14px; font-size:18px; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:'Hanken Grotesk', sans-serif;
  font-size:15.5px; font-weight:600;
  padding:15px 28px; border-radius:6px;
  border:1.5px solid transparent;
  text-decoration:none; cursor:pointer;
  transition:background .18s, color .18s, border-color .18s, transform .18s;
}
.btn--solid{ background:var(--green); color:#fff; }
.btn--solid:hover{ background:var(--green-deep); transform:translateY(-1px); }
.btn--ghost{ border-color:var(--brown); color:var(--brown); background:transparent; }
.btn--ghost:hover{ background:var(--brown); color:var(--cream); }
.btn--light{ border-color:rgba(255,255,255,.85); color:#fff; background:transparent; }
.btn--light:hover{ background:rgba(255,255,255,.14); }

.photo{
  background:
    linear-gradient(160deg, rgba(62,39,35,.06), rgba(78,135,82,.08)),
    var(--brown-soft);
  border:1px solid var(--line);
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  color:var(--brown-2); font-size:13px; letter-spacing:.06em;
  text-align:center; padding:14px;
  min-height:120px;
}
img.photo{
  display:block; width:100%; object-fit:cover; padding:0;
  background:var(--brown-soft);
}

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity:1; transform:none; }
}

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  background:rgba(255,253,246,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; gap:24px;
  width:100%; max-width:none; margin:0;
  padding:14px clamp(28px, 6vw, 96px);
}
.nav-logo{ display:flex; align-items:center; flex:0 0 auto; }
.nav-logo img{ width:220px; height:auto; object-fit:contain; }
.nav nav{ margin-left:auto; }
.nav-links{
  display:flex; gap:20px; list-style:none; margin:0; padding:0;
  font-size:14.5px; font-weight:500;
}
.nav-links a{ text-decoration:none; color:var(--ink-2); transition:color .15s; }
.nav-links a:hover{ color:var(--green-deep); }
.nav .btn{ margin-left:4px; padding:11px 20px; font-size:14.5px; white-space:nowrap; }
.nav-menu-toggle{
  display:none;
  width:42px; height:42px;
  border:1px solid rgba(203,185,163,.72);
  border-radius:10px;
  background:rgba(255,255,255,.72);
  color:var(--brown);
  align-items:center; justify-content:center;
  padding:0; cursor:pointer;
  box-shadow:0 8px 20px rgba(62,39,35,.08);
  transition:background .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.nav-menu-toggle:hover,
.nav-menu-toggle.is-open{
  background:var(--cream);
  border-color:#C8DAC8;
  color:var(--green-deep);
  box-shadow:0 10px 24px rgba(62,39,35,.12);
  transform:translateY(-1px);
}
.nav-menu-toggle svg{
  width:22px; height:22px;
  fill:none; stroke:currentColor; stroke-width:2;
  stroke-linecap:round;
  transition:transform .2s ease;
}
.nav-menu-toggle.is-open svg{ transform:rotate(90deg); }
.mobile-menu{
  display:grid;
  position:absolute;
  left:clamp(16px, 4vw, 34px); right:clamp(16px, 4vw, 34px); top:calc(100% + 8px);
  background:rgba(255,253,246,.98);
  border:1px solid rgba(229,220,206,.95);
  border-radius:12px;
  box-shadow:0 18px 36px rgba(62,39,35,.14);
  padding:8px;
  opacity:0;
  transform:translateY(-8px) scale(.985);
  transform-origin:top right;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  overflow:hidden;
}
.mobile-menu[hidden]{ display:none; }
.mobile-menu.is-open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.mobile-menu a{
  display:flex; align-items:center;
  min-height:44px;
  border-radius:8px;
  color:var(--ink);
  font-size:15px; font-weight:600;
  padding:0 14px;
  text-decoration:none;
  transition:background .15s, color .15s, transform .15s;
}
.mobile-menu a:hover{ background:var(--green-soft); color:var(--green-deep); transform:translateX(2px); }

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:640px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  color:#fff;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(78,135,82,.42), transparent 60%),
    linear-gradient(180deg, rgba(28,48,31,.72), rgba(28,48,31,.82) 52%, rgba(48,35,27,.92)),
    url("../assets/photos/coconut-field.jpg") center/cover no-repeat;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image:repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; max-width:860px; padding:110px 28px; }
.hero-kicker{
  font-size:13px; font-weight:600; letter-spacing:.24em; text-transform:uppercase;
  color:#CFE3CF; margin-bottom:22px;
}
.hero h1{
  font-size:clamp(44px, 6.4vw, 72px);
  color:#fff; font-weight:600;
}
.hero p{
  color:#E9EDE4; font-size:19px; max-width:580px;
  margin:24px auto 36px;
}
.hero-ctas{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- trust bar ---------- */
.trustbar{ background:var(--brown); color:#E9DECF; }
.trustbar-inner{
  display:flex; align-items:center; justify-content:center;
  padding:18px 28px;
  font-size:13px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
}
.trustbar-group{ display:flex; align-items:center; gap:22px; }
.trustbar-group[aria-hidden="true"]{ display:none; }
.trustbar-item{ display:inline-flex; align-items:center; white-space:nowrap; }
.trustbar-item + .trustbar-item::before{
  content:""; width:5px; height:5px; border-radius:50%;
  background:#A9886B; margin-right:22px; flex:0 0 auto;
}

/* ---------- about ---------- */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-top:8px; }
.about-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:40px 38px; box-shadow:var(--shadow);
}
.about-card h3{ font-size:27px; margin-bottom:14px; }
.about-card .eyebrow{ color:var(--green-deep); margin-bottom:10px; }
.about-card p + p{ margin-top:14px; }

/* ---------- advantage ---------- */
.adv-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
.adv-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 24px;
}
.adv-icon{
  width:48px; height:48px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--green-deep);
  background:var(--green-soft);
  border:1px solid #C8DAC8;
  margin-bottom:18px;
}
.adv-icon svg{
  width:25px; height:25px;
  fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round;
}
.adv-card h3{ font-size:23px; margin-bottom:10px; }
.adv-card p{ font-size:15.5px; }

/* ---------- products ---------- */
.prod-grid{ display:grid; grid-template-columns:1.06fr .94fr; gap:32px; align-items:stretch; }
.prod-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  border-top:4px solid var(--brown);
  padding:36px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:20px;
}
.prod-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.prod-head h3{ font-size:29px; }
.tag{
  font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--green-deep); background:var(--green-soft);
  border:1px solid #C8DAC8; border-radius:99px; padding:5px 13px; white-space:nowrap;
}
.prod-card .photo{ height:190px; }
.prod-ec{
  font-size:15px; font-weight:700; color:var(--green-deep); letter-spacing:.02em;
}
.spec dt{
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brown-2); margin-bottom:4px;
}
.spec dd{ margin:0 0 16px; font-size:15.5px; color:var(--ink); }
.spec dd:last-child{ margin-bottom:0; }

/* ---------- applications ---------- */
.apps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.app-tile{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; text-align:center;
}
.app-tile .photo{ height:110px; min-height:110px; }
.app-tile h4{ font-family:'Hanken Grotesk',sans-serif; font-size:15px; font-weight:600; color:var(--ink); margin-top:13px; }
.app-tile span{ display:block; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--brown-2); margin-top:3px; }

/* ---------- gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:22px; }
.gallery-tile{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:18px; text-align:left;
  display:flex; flex-direction:column; gap:10px;
}
.gallery-tile .photo{ height:122px; min-height:122px; border-radius:8px; }
.gallery-tile h4{ font-family:'Hanken Grotesk',sans-serif; font-size:15px; font-weight:700; color:var(--ink); margin:2px 0 0; }
.gallery-tile p{ font-size:14px; line-height:1.5; }

/* ---------- certifications ---------- */
.cert-carousel{
  padding:0;
}
.cert-track{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:18px;
  padding:0;
}
.cert-track::-webkit-scrollbar{ display:none; }
.cert-track.is-dragging{
  cursor:grabbing;
  scroll-snap-type:none;
  scroll-behavior:auto;
  user-select:none;
}
.cert{
  width:100%;
  min-width:0;
  min-height:220px;
  display:flex; flex-direction:column; align-items:center; gap:11px; text-align:center;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px 20px;
}
.cert-seal{
  width:76px; height:76px; border-radius:50%;
  border:1.5px solid #CBB9A3; background:var(--cream);
  display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond',serif; font-size:21px; font-weight:600; color:var(--brown-2);
  box-shadow:inset 0 0 0 6px rgba(203,185,163,.18);
}
.cert h3{ font-family:'Hanken Grotesk',sans-serif; font-size:15px; font-weight:800; color:var(--brown); }
.cert p{ font-size:13.5px; color:var(--ink-2); max-width:205px; }
.cert-dots{
  display:none;
  justify-content:center;
  align-items:center;
  gap:9px;
  padding-top:4px;
}
.cert-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  border:0;
  padding:0;
  background:#CBB9A3;
  opacity:.55;
  cursor:pointer;
  transition:opacity .15s, transform .15s, background .15s;
}
.cert-dot.is-active{
  background:var(--green);
  opacity:1;
  transform:scale(1.35);
}
.cert-dot:focus-visible{
  outline:2px solid var(--green);
  outline-offset:4px;
}

/* ---------- export ---------- */
.export-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; margin-top:8px; }
.export-grid h3{ font-size:21px; margin-bottom:8px; }
.export-grid p{ font-size:15.5px; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1.35fr 1fr; gap:56px; align-items:start; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:18px; }
.field label{
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brown-2);
}
.field input, .field select, .field textarea{
  width:100%;
  font-family:'Hanken Grotesk',sans-serif; font-size:15.5px; color:var(--ink);
  background:var(--white); border:1px solid var(--line); border-radius:6px;
  padding:13px 14px; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.field textarea{ min-height:120px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--green); box-shadow:0 0 0 3px rgba(78,135,82,.14);
}
.contact-info{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 32px; box-shadow:var(--shadow);
}
.contact-info h3{ font-size:23px; margin-bottom:22px; }
.info-item{
  display:grid; grid-template-columns:120px 1fr; gap:18px;
  padding:16px 0; border-top:1px solid var(--line);
}
.info-item:last-child{ border-bottom:1px solid var(--line); }
.info-item span{
  display:block; font-size:12px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--brown-2);
}
.info-item a, .info-item p{ font-size:16px; color:var(--ink); text-decoration:none; overflow-wrap:anywhere; }
.info-item a:hover{ color:var(--green-deep); }
.inquiry{ min-width:0; }
.inquiry-success[hidden]{ display:none !important; }
.inquiry-success{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  background:var(--white);
  border:1px solid rgba(203,185,163,.78);
  border-radius:var(--radius);
  padding:34px 32px;
  box-shadow:var(--shadow);
  min-height:260px;
}
.inquiry-success:focus{ outline:none; }
.inquiry-success:focus-visible{
  outline:2px solid var(--green);
  outline-offset:4px;
}
.inquiry-success-icon{
  width:52px; height:52px; border-radius:50%;
  flex:0 0 52px;
  display:flex; align-items:center; justify-content:center;
  color:var(--green);
  background:var(--green-soft);
  border:1px solid #C8DAC8;
  margin-bottom:20px;
  overflow:hidden;
}
.inquiry-success-icon svg{
  display:block;
  width:28px; height:28px;
  fill:none; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round;
}
.inquiry-success h3{ font-size:27px; margin-bottom:10px; color:var(--ink); }
.inquiry-success p{ font-size:16px; color:var(--ink-2); }
.form-error{
  margin:0 0 18px;
  padding:13px 14px;
  border:1px solid #E2A6A0;
  border-radius:6px;
  background:#FFF4F2;
  color:var(--ink);
  font-size:15px;
}
.form-error a{ color:var(--green-deep); font-weight:700; }
.btn[disabled]{
  opacity:.68;
  cursor:not-allowed;
  transform:none;
}
@media (prefers-reduced-motion: no-preference){
  #inquiry-form,
  .inquiry-success{
    transition:opacity .45s ease, transform .45s ease;
  }
  #inquiry-form.is-leaving{ opacity:0; transform:translateY(-22px); }
  .inquiry-success.is-entering{ opacity:0; transform:translateY(22px); }
  .inquiry-success.is-visible{ opacity:1; transform:none; }
}

/* ---------- footer ---------- */
.footer{
  background:linear-gradient(150deg, #2A1C15, #3C2B21);
  color:#CBB9A3; padding:64px 0 32px;
}
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:44px; }
.footer h4{
  font-family:'Hanken Grotesk',sans-serif; font-size:13px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:#E9DECF; margin-bottom:16px;
}
.footer-brand img{ height:130px; width:auto; max-width:230px; object-fit:contain; }
.footer-brand p{ color:#A9947C; margin-top:18px; max-width:300px; font-size:15px; }
.footer ul{ list-style:none; margin:0; padding:0; }
.footer ul li{ margin-bottom:9px; }
.footer a{ color:#CBB9A3; text-decoration:none; font-size:15px; transition:color .15s; }
.footer a:hover{ color:#fff; }
.footer-bottom{
  margin-top:48px; padding-top:22px; border-top:1px solid rgba(203,185,163,.25);
  font-size:13px; color:#8E7A64;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 1280px){
  .nav-links{ display:none; }
  .nav-menu-toggle{ display:inline-flex; }
}
@media (max-width: 960px){
  .section{ padding:72px 0; }
  .section-head h2{ font-size:34px; }
  .about-grid, .prod-grid, .contact-grid{ grid-template-columns:1fr; }
  .adv-grid, .export-grid{ grid-template-columns:1fr; gap:20px; }
  .apps-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .nav nav{ margin-left:auto; }
}
@media (max-width: 560px){
  .form-row{ grid-template-columns:1fr; }
  .contact-grid{ gap:28px; }
  .inquiry-success{
    min-height:0;
    margin-top:4px;
    padding:24px 22px;
    border-radius:10px;
    box-shadow:0 10px 26px rgba(62,39,35,.10);
  }
  .inquiry-success-icon{
    width:44px;
    height:44px;
    flex-basis:44px;
    margin-bottom:16px;
  }
  .inquiry-success-icon svg{
    width:23px;
    height:23px;
  }
  .inquiry-success h3{
    font-size:24px;
    margin-bottom:6px;
  }
  .inquiry-success p{
    font-size:16px;
    line-height:1.45;
  }
  .hero{ min-height:0; align-items:flex-start; }
  .hero-inner{ padding:42px 22px 28px; }
  .hero h1{ font-size:clamp(38px, 12vw, 50px); }
  .hero p{ font-size:17px; margin:16px auto 22px; }
  .hero-ctas{ gap:12px; }
  .hero-ctas .btn{ width:min(100%, 310px); justify-content:center; padding:13px 20px; }
  .apps-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
  .app-tile{ padding:10px; }
  .app-tile .photo{ height:96px; min-height:96px; }
  .app-tile h4{ font-size:14px; margin-top:10px; }
  .app-tile span{ font-size:11px; }
  .gallery-grid{ grid-template-columns:1fr; }
  .gallery-tile{ padding:20px; gap:12px; }
  .gallery-tile .photo{ height:210px; min-height:210px; }
  .gallery-tile h4{ font-size:18px; }
  .gallery-tile p{ font-size:16px; }
  .cert-carousel{
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
    margin:0 -28px;
    padding:0 0 6px;
  }
  .cert-track{
    display:grid;
    grid-auto-flow:column;
    scroll-padding-inline:28px;
    grid-auto-columns:min(78vw, 300px);
    grid-template-columns:none;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:0 28px 12px;
    cursor:grab;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
    scrollbar-width:none;
  }
  .cert{
    width:min(78vw, 300px);
    min-width:min(78vw, 300px);
    min-height:236px;
    scroll-snap-align:center;
    padding:26px 22px;
  }
  .cert-dots{ display:flex; }
  .cert h3{ font-size:18px; }
  .cert p{ font-size:14px; line-height:1.5; }
  .nav-inner{ padding:10px 18px 10px 12px; gap:9px; }
  .nav-logo img{ width:252px; max-width:42vw; height:auto; }
  .nav .btn{ padding:9px 14px; font-size:12.5px; }
  .nav-menu-toggle{ width:40px; height:40px; }
  .mobile-menu{ left:14px; right:18px; }
  .trustbar{ overflow:hidden; }
  .trustbar-inner{
    justify-content:flex-start; gap:0; padding:16px 0;
    font-size:12px; letter-spacing:.16em;
  }
  .trustbar-group{
    flex:0 0 auto; gap:22px; padding-right:22px;
    animation:trustbar-marquee 22s linear infinite;
  }
  .trustbar-group[aria-hidden="true"]{ display:flex; }
  .trustbar-group::after{
    content:""; width:5px; height:5px; border-radius:50%;
    background:#A9886B; align-self:center; flex:0 0 auto;
  }
  .trustbar-item + .trustbar-item::before{ margin-right:22px; }
  .info-item{ grid-template-columns:1fr; gap:5px; }
}

@keyframes trustbar-marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-100%); }
}

@media (max-width: 560px) and (prefers-reduced-motion: reduce){
  .trustbar{ overflow-x:auto; }
  .trustbar-group{ animation:none; }
  .trustbar-group[aria-hidden="true"]{ display:none; }
}
