@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/Proxima Nova Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/Proxima Nova Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/Proxima Nova Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("../assets/fonts/Proxima Nova Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #2A2F35;
  --green-primary: #6E9A3A;
  --green-logo: #84B445;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --warm-gray: #D8D3C7;
  --slate-gray: #7A7E82;
  --husk-tan: #C9A876;
  --coconut-flesh: #E8D9B5;

  --max-width: 1180px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body.no-scroll { overflow: hidden; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition: opacity 0.5s ease;
}

#preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-mark {
  width: 84px;
  height: auto;
  animation: preloader-pop 1.1s ease infinite;
}

@keyframes preloader-pop {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-mark { animation: none; }
  html { scroll-behavior: auto; }
}

body {
  font-family: "Proxima Nova", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green-primary); color: var(--white); }
.btn-primary:hover { background: #5F8730; }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--warm-gray);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-header .logo img { height: 40px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
}
.main-nav a:hover { color: var(--green-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
}

/* ---------- Hero (split layout) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 640px;
  color: var(--white);
  padding: 0;
}

.hero-content {
  position: relative;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  padding: 56px clamp(24px, 4vw, 56px);
  overflow: hidden;
}

.hero-text { max-width: 100%; }

.hero-media { min-width: 0; }

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 1;
}

/* Fallback image sits behind the video; only visible if video fails,
   is disabled below, or reduced motion is requested. */
.hero-bg-fallback { z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-logo);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: clamp(14.5px, 1.3vw, 16px);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; clear: both; }

.hero-kiko {
  float: right;
  height: 180px;
  width: auto;
  margin: 0 0 12px 18px;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,0.3));
}

@media (max-width: 1100px) {
  .hero-kiko { height: 150px; }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-media { min-height: 260px; order: -1; }
  .hero-content { padding: 44px clamp(20px, 5vw, 44px); }
  .hero h1 { font-size: clamp(28px, 4vw, 38px); }
  .hero p.lead { font-size: clamp(15px, 2vw, 17px); }
  .hero-kiko { height: 210px; }
}

@media (max-width: 600px) {
  .hero-video { display: none; }
  .hero-content { padding: 40px 20px; }
  .hero-kiko { display: none; }
}

/* ---------- Section shared ---------- */
section { padding: 88px 0; }

.section-head { max-width: 620px; margin-bottom: 48px; }

.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 14px; }

.section-head p { color: var(--slate-gray); font-size: 15.5px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head-with-kiko {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.kiko-accent { display: block; }
.kiko-accent-products { height: 150px; width: auto; flex-shrink: 0; }

@media (max-width: 900px) {
  .kiko-accent-products { display: none; }
  .section-head-with-kiko { max-width: 620px; }
}

/* ---------- Journey / 3-step ---------- */
.journey { background: var(--white); }

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

.journey-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-card .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.journey-card .step-kiko {
  display: block;
  width: 168px;
  height: 168px;
  margin-bottom: 16px;
}

.journey-card .step-kiko img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.journey-card h3 { font-size: 19px; margin-bottom: 10px; }
.journey-card p { color: var(--slate-gray); font-size: 14.5px; }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(42,47,53,0.08); }

.product-card .thumb {
  height: 220px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-card .thumb img { max-height: 100%; object-fit: contain; }

.product-card .info { padding: 22px 24px; }
.product-card h3 { font-size: 18px; margin-bottom: 6px; }
.product-card p { color: var(--slate-gray); font-size: 13.5px; margin-bottom: 18px; }

/* ---------- Wave divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
}

/* ---------- Farm story ---------- */
.farm-story { background: var(--charcoal); color: var(--white); }

.farm-story .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.farm-story .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-logo);
  margin-bottom: 14px;
}

.farm-story h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 18px; }
.farm-story p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 28px; max-width: 480px; }

.farm-story .media { border-radius: var(--radius); overflow: hidden; }
.farm-story .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-top: 1px solid var(--warm-gray); border-bottom: 1px solid var(--warm-gray); padding: 36px 0; }

.trust-strip .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; color: var(--charcoal); }
.trust-item .badge-circle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-item:nth-child(1) .badge-circle { background: #DCEBCB; }
.trust-item:nth-child(2) .badge-circle { background: var(--coconut-flesh); }
.trust-item:nth-child(3) .badge-circle { background: #D9E8F0; }
.trust-item:nth-child(4) .badge-circle { background: #F3D9D0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kiko-accent-cta {
  position: absolute;
  left: 6%;
  bottom: 0;
  height: 220px;
  width: auto;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.18));
}

@media (max-width: 1100px) {
  .kiko-accent-cta { height: 170px; left: 2%; }
}

@media (max-width: 900px) {
  .kiko-accent-cta { display: none; }
}

.cta-band h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 15.5px; margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer .logo img { height: 34px; margin-bottom: 16px; }
.site-footer p.tagline { font-size: 13.5px; max-width: 280px; }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--green-logo); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .journey-grid, .products-grid { grid-template-columns: 1fr; }
  .farm-story .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .trust-strip .row { justify-content: flex-start; }
  section { padding: 64px 0; }

  .site-header { position: relative; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--warm-gray);
    padding: 12px 24px 24px;
    gap: 4px;
    z-index: 50;
  }
  .main-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--warm-gray); }
  .main-nav.is-open a:last-child { border-bottom: none; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
}

@media (max-width: 600px) {
  .site-header .container { height: 68px; }
  .site-header .logo img { height: 32px; }
  .hero { min-height: 520px; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { text-align: center; }
  .btn { padding: 13px 22px; font-size: 14px; }

  .trust-strip .row { flex-direction: column; gap: 14px; }
  .trust-item { font-size: 13.5px; }

  section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }

  .journey-card, .product-card .info { padding: 24px 20px; }
  .product-card .thumb { height: 180px; }

  .farm-story .grid { gap: 32px; }
  .farm-story .media { order: -1; aspect-ratio: 16/10; }

  .footer-grid { gap: 28px; margin-bottom: 32px; }
  .wave-divider { height: 32px; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
}

/* ---------- Kiko placement 2: interactive point & guide ----------
   Contact page (not built yet). Kiko panel sits beside the form,
   anchored to the edge nearest the fields so his gesture reads as
   pointing at them. See Docs/Planning/kiko-video-placement-system.html */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.kiko-guide-panel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.kiko-guide {
  height: 320px;
  width: auto;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.15));
}

@media (max-width: 1000px) {
  .kiko-guide { height: 240px; }
}

@media (max-width: 700px) {
  .contact-hero { grid-template-columns: 1fr; }
  .kiko-guide-panel { display: none; }
}

/* ---------- Kiko placement 3: quality check / sourcing seal ----------
   Our Farm / trust block (not built yet). Fixed-ratio panel so the
   coconut + seal graphic never crops oddly at different widths. */
.trust-block {
  display: flex;
  align-items: center;
  gap: 48px;
}

.trust-copy { flex: 1; }

.trust-kiko-panel {
  flex-shrink: 0;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}

.trust-kiko-panel video,
.trust-kiko-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .trust-block { flex-direction: column; }
  .trust-kiko-panel { max-width: 260px; }
}
