/* ============================================================
   KESSIN SUSTAINABLE — Global Stylesheet
   Font: DM Sans | Colors: Green palette | Radius: Rounded
   ============================================================ */

/* TOKENS */
:root {
  --green-50:  #EAF3DE;
  --green-100: #C0DD97;
  --green-200: #97C459;
  --green-400: #639922;
  --green-600: #3B6D11;
  --green-800: #27500A;
  --green-900: #173404;
  --white:     #FFFFFF;
  --off-white: #F7F6F2;
  --gray-50:   #F1EFE8;
  --gray-200:  #D3D1C7;
  --gray-400:  #B4B2A9;
  --gray-600:  #888780;
  --gray-800:  #5F5E5A;
  --near-black:#1A1A18;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill:50px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --nav-h: 68px;
  --max-w: 1200px;
  --font: 'DM Sans', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--near-black); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* CONTAINER */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-600); color: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 13px 28px; border-radius: var(--radius-pill);
  border: 2px solid var(--green-600);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-1px); }
.btn-primary.btn-sm { font-size: 13px; padding: 9px 20px; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--white); color: var(--green-600);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 13px 28px; border-radius: var(--radius-pill);
  border: 2px solid var(--green-600);
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--green-50); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--white); font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 13px 4px; background: none; border: none;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 10px; }
.btn-ghost .arrow { font-size: 18px; }

.btn-white {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--green-800);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 13px 28px; border-radius: var(--radius-pill);
  border: 2px solid var(--white);
  transition: background 0.2s, transform 0.15s;
}
.btn-white:hover { background: var(--green-50); transform: translateY(-1px); }

/* ============================================================
   EYEBROW
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-600);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--green-600); border-radius: 2px;
}
.hero .eyebrow { color: var(--green-100); }
.hero .eyebrow::before { background: var(--green-100); }
.eyebrow--white { color: var(--green-100); }
.eyebrow--white::before { background: var(--green-100); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: var(--nav-h); display: flex; align-items: center; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-link { font-size: 14px; color: rgba(255,255,255,0.9); font-weight: 400; transition: color 0.3s; padding: 4px 0; position: relative; }
.nav.scrolled .nav-link { color: var(--gray-800); }
.nav.scrolled .nav-link.active { color: var(--green-600); }
.nav.scrolled .nav-link:hover { color: var(--green-600); }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: width 0.2s; }
.nav.scrolled .nav-link::after { background: var(--green-600); }
.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--white); font-weight: 500; }
/* Get in touch — white outline on transparent, green when scrolled */
.nav:not(.scrolled) .btn-primary.btn-sm {
  background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white);
}
.nav:not(.scrolled) .btn-primary.btn-sm:hover { background: rgba(255,255,255,0.15); }
/* Burger white on transparent */
.nav:not(.scrolled) .nav-burger span { background: var(--white); }
/* Logo — invert to white on transparent nav */
.nav:not(.scrolled) .nav-logo-img { filter: brightness(0) invert(1); }
.nav-logo-img { transition: filter 0.3s; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--near-black); border-radius: 2px; transition: all 0.2s; }
.nav-mobile { display: none; flex-direction: column; padding: 1rem 2rem 1.5rem; border-top: 0.5px solid var(--gray-200); }
.nav-mobile-link { font-size: 16px; font-weight: 400; color: var(--near-black); padding: 12px 0; border-bottom: 0.5px solid var(--gray-50); }
.nav-mobile-link:last-of-type { border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-img-wrap { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,30,5,0.82) 0%,
    rgba(10,30,5,0.55) 50%,
    rgba(10,30,5,0.10) 100%
  );
}
.hero-content { position: relative; z-index: 2; padding-bottom: 5rem; padding-top: 3rem; }
.hero-text { max-width: 580px; }
.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500;
  color: var(--white); line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}
.hero-h1 em { color: var(--green-100); font-style: normal; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--near-black); padding: 2rem 0; }
.trust-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.75rem 2.5rem; }
.trust-num { font-size: 22px; font-weight: 600; color: var(--green-100); line-height: 1; margin-bottom: 4px; }
.trust-label { font-size: 11px; color: var(--gray-400); line-height: 1.4; }
.trust-divider { width: 0.5px; height: 40px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 6rem 0; }
.section--green { background: var(--green-800); }
.section--offwhite { background: var(--off-white); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 500; color: var(--near-black); line-height: 1.2; margin-bottom: 0.75rem; letter-spacing: -0.3px; }
.section-title--white { color: var(--white); }
.section-sub { font-size: 16px; color: var(--gray-800); line-height: 1.7; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.5rem; align-items: stretch; }

.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 0.5px solid var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  color: var(--near-black);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card--featured { border-color: var(--green-100); border-width: 1.5px; }

.product-card-img-wrap {
  height: 240px; background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 1.5rem;
}
.product-card-img-wrap--dark { background: var(--off-white); }
.product-card-img { width: 100%; height: 100%; object-fit: contain; }
.product-card-img--blend { mix-blend-mode: multiply; }
.product-card-img--blend-dark { mix-blend-mode: multiply; }

.product-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-badge {
  display: inline-flex; align-items: center;
  background: var(--green-50); color: var(--green-800);
  font-size: 11px; font-weight: 500; padding: 3px 10px;
  border-radius: var(--radius-pill); align-self: flex-start;
}
.product-card-title { font-size: 22px; font-weight: 500; color: var(--near-black); }
.product-card-tag { font-size: 12px; color: var(--gray-600); font-weight: 400; margin-top: -2px; }
.product-card-desc { font-size: 14px; color: var(--gray-800); line-height: 1.65; margin-top: 4px; }
.product-card-features { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.product-card-features li { font-size: 13px; color: var(--gray-800); display: flex; align-items: center; gap: 7px; }
.product-card-features li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green-600); flex-shrink: 0; }
.product-card-link { margin-top: auto; padding-top: 1rem; font-size: 14px; font-weight: 500; color: var(--green-600); display: flex; align-items: center; gap: 4px; }
.product-card:hover .product-card-link { gap: 8px; }

/* ============================================================
   WHY KESSIN
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.why-sub { font-size: 16px; color: rgba(255,255,255,0.72); line-height: 1.7; margin: 1rem 0 2rem; }
.why-right { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.5rem; }
.why-feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.why-icon {
  font-size: 11px; font-weight: 600; color: var(--green-400);
  background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md); padding: 6px 10px;
  flex-shrink: 0; letter-spacing: 0.05em; margin-top: 2px;
}
.why-feature-title { font-size: 16px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.why-feature-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ============================================================
   RESEARCH TEASER
   ============================================================ */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.research-desc { font-size: 16px; color: var(--gray-800); line-height: 1.7; margin-bottom: 1rem; }
.research-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.research-stats { display: flex; gap: 2.5rem; padding-top: 1.5rem; border-top: 0.5px solid var(--gray-200); }
.research-stat { display: flex; flex-direction: column; }
.research-stat-num { font-size: 28px; font-weight: 600; color: var(--green-800); line-height: 1; }
.research-stat-label { font-size: 12px; color: var(--gray-600); margin-top: 4px; max-width: 150px; line-height: 1.4; }
.research-right { display: flex; align-items: center; justify-content: center; }
.research-img { width: 100%; max-width: 480px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ============================================================
   FACTORY STRIP
   ============================================================ */
.factory-strip {
  position: relative; min-height: 420px;
  display: flex; align-items: center; overflow: hidden;
}
.factory-img-wrap { position: absolute; inset: 0; }
.factory-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.factory-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,5,0.85) 0%, rgba(10,30,5,0.4) 100%);
}
.factory-content { position: relative; z-index: 2; padding: 5rem 2rem; }
.factory-text { max-width: 560px; }
.factory-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 500; color: var(--white); line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.3px; }
.factory-sub { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section { background: var(--off-white); }
.cta-banner {
  background: var(--white); border: 0.5px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.cta-title { font-size: 1.6rem; font-weight: 500; color: var(--near-black); margin-bottom: 0.5rem; line-height: 1.25; }
.cta-sub { font-size: 15px; color: var(--gray-800); line-height: 1.6; }
.cta-right { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; min-width: 220px; }
.cta-btn { justify-content: flex-start; }
.cta-btn-icon { font-size: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-800); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 0.5px solid rgba(255,255,255,0.12); }
.footer-logo-img { height: 40px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 14px; color: var(--green-100); line-height: 1.65; margin-bottom: 1.5rem; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact-link { font-size: 14px; color: var(--green-200); transition: color 0.15s; }
.footer-contact-link:hover { color: var(--white); }
.footer-address { font-size: 13px; color: var(--green-400); margin-top: 4px; }
.footer-nav { display: flex; gap: 3rem; }
.footer-nav-col { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-400); margin-bottom: 4px; }
.footer-nav-link { font-size: 14px; color: var(--green-100); transition: color 0.15s; }
.footer-nav-link:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 12px; color: var(--green-400); }
.footer-certs { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-cert-badge {
  font-size: 11px; font-weight: 500; color: var(--green-100);
  background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.15);
  padding: 3px 10px; border-radius: var(--radius-pill);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card--featured { grid-column: 1 / -1; flex-direction: row; }
  .product-card--featured .product-card-img-wrap { height: 280px; min-width: 280px; flex-shrink: 0; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .research-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-inner .btn-primary { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-mobile.open { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card--featured { flex-direction: column; }
  .product-card--featured .product-card-img-wrap { min-width: unset; height: 220px; }
  .trust-grid { gap: 0; }
  .trust-divider { display: none; }
  .trust-item { width: 50%; padding: 1rem; }
  .cta-banner { flex-direction: column; padding: 2rem; }
  .hero { min-height: 75vh; }
  .hero-h1 { font-size: 2rem; }
  .section { padding: 4rem 0; }
  .footer-nav { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .research-stats { flex-direction: column; gap: 1.25rem; }
  .trust-item { width: 100%; }
  .trust-divider { width: 60%; height: 0.5px; }
}

/* FOOTER LEGAL LINKS */
.footer-legal-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
}
.footer-legal-link {
  font-size: 12px; color: var(--green-400);
  transition: color 0.15s;
}
.footer-legal-link:hover { color: var(--white); }

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.9);
  background: none; border: none; cursor: pointer;
  padding: 4px 0;
  font-family: var(--font);
  transition: color 0.2s;
}
.nav.scrolled .nav-dropdown-toggle { color: var(--gray-800); }
.nav.scrolled .nav-dropdown-toggle:hover { color: var(--green-600); }
.nav-dropdown-toggle:hover { color: var(--white); }

.nav-dropdown-arrow {
  font-size: 10px; display: inline-block;
  transition: transform 0.2s;
  margin-top: 1px;
}
.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

/* Underline to match nav-link style */
.nav-dropdown-toggle::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; width: 0; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px; transition: width 0.2s;
}
.nav.scrolled .nav-dropdown-toggle::after { background: var(--green-600); }
.nav-dropdown.open .nav-dropdown-toggle::after { width: 100%; }

/* Dropdown menu */
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 0.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px;
  min-width: 220px;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Small triangle pointer */
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--white);
  border-left: 0.5px solid var(--gray-200);
  border-top: 0.5px solid var(--gray-200);
}

.nav-dropdown-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: var(--radius-md);
  transition: background 0.15s;
}
.nav-dropdown-item:hover { background: var(--off-white); }
.nav-dropdown-item-title {
  font-size: 14px; font-weight: 500; color: var(--near-black);
}
.nav-dropdown-item-desc {
  font-size: 12px; color: var(--gray-600);
}

/* MOBILE DROPDOWN */
.nav-mobile-dropdown { display: flex; flex-direction: column; }
.nav-mobile-dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 400; color: var(--near-black);
  background: none; border: none; cursor: pointer;
  padding: 12px 0; border-bottom: 0.5px solid var(--gray-50);
  font-family: var(--font); width: 100%; text-align: left;
}
.nav-mobile-arrow {
  font-size: 10px; transition: transform 0.2s;
}
.nav-mobile-dropdown.open .nav-mobile-arrow { transform: rotate(180deg); }
.nav-mobile-submenu {
  display: none; flex-direction: column;
  padding: 4px 0 4px 1rem;
  border-left: 2px solid var(--green-50);
  margin: 4px 0 8px;
}
.nav-mobile-submenu.open { display: flex; }
.nav-mobile-sublink {
  font-size: 15px; color: var(--gray-800);
  padding: 8px 0; border-bottom: none;
  transition: color 0.15s;
}
.nav-mobile-sublink:hover { color: var(--green-600); }