/* ==========================================================================
   NILA COIR FACTORY — Stylesheet
   Design language: natural fibre / woven texture motif, warm greens & browns
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Brand palette */
  --green:        #176B3A;
  --green-dark:   #0B542D;
  --leaf:         #4CAF50;
  --green-light:  #EAF6EC;
  --brown-coconut:#8A4F25;
  --brown-coir:   #B87333;
  --cream:        #FFF8EA;
  --white:        #FFFFFF;
  --gray:         #667085;

  /* Derived */
  --ink: var(--green-dark);
  --surface: var(--white);
  --surface-alt: var(--cream);
  --border-soft: rgba(23,107,58,0.14);

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --fast: .22s;
  --med: .4s;

  /* Shadow */
  --shadow-sm: 0 2px 14px rgba(11,84,45,.08);
  --shadow-md: 0 14px 36px rgba(11,84,45,.14);
  --shadow-lg: 0 24px 60px rgba(11,84,45,.18);

  --header-h: 84px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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(--font-display);
  color: var(--green-dark);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
p{ margin: 0; }

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

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--leaf);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Utility: fibre-braid divider — a woven-rope motif used instead of a plain
   underline/rule, tying the visual language back to coir itself.
   ========================================================================== */
.braid{
  display: block;
  width: 92px;
  height: 14px;
  margin-top: 14px;
}
.braid.center{ margin-left: auto; margin-right: auto; }
.braid path{ fill: none; stroke-linecap: round; }

.eyebrow-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--green);
  background: var(--green-light);
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-pill);
}
.eyebrow-tag svg{ width: 16px; height: 16px; flex-shrink: 0; }

/* Reveal-on-scroll (single orchestrated fade-up) */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 18px; height: 18px; }
.btn-primary{
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(23,107,58,.28);
}
.btn-primary:hover{ background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23,107,58,.34); }
.btn-secondary{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-secondary:hover{ background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-outline{
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover{ background: var(--green); color: var(--white); transform: translateY(-2px); }
.btn-cream{
  background: var(--cream);
  color: var(--green-dark);
}
.btn-cream:hover{ background: var(--white); transform: translateY(-2px); }
.btn-sm{ padding: 11px 22px; font-size: 0.9rem; }
.btn-block{ width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,248,234,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--med) var(--ease), padding var(--med) var(--ease);
}
.site-header.is-scrolled{
  box-shadow: var(--shadow-sm);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height var(--med) var(--ease);
}
.site-header.is-scrolled .header-inner{ height: 68px; }

.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img{ height: 52px; width: 52px; object-fit: contain; transition: height var(--med) var(--ease), width var(--med) var(--ease); }
.site-header.is-scrolled .brand img{ height: 42px; width: 42px; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--green-dark);
  line-height: 1.1;
}
.brand-name span{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--brown-coconut);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.main-nav{ display: flex; align-items: center; gap: 4px; }
.main-nav a{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--green-dark);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.main-nav a:hover{ background: var(--green-light); color: var(--green); }
.main-nav a.active{ background: var(--green); color: var(--white); }

.header-actions{ display: flex; align-items: center; gap: 14px; }

.hamburger{
  display: none;
  width: 46px; height: 46px;
  border: none;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hamburger span{
  display: block;
  width: 20px; height: 2px;
  background: var(--green-dark);
  position: relative;
  transition: background var(--fast) var(--ease);
}
.hamburger span::before, .hamburger span::after{
  content: '';
  position: absolute;
  left: 0; width: 20px; height: 2px;
  background: var(--green-dark);
  transition: transform var(--fast) var(--ease), top var(--fast) var(--ease);
}
.hamburger span::before{ top: -6px; }
.hamburger span::after{ top: 6px; }
.hamburger.is-open span{ background: transparent; }
.hamburger.is-open span::before{ top: 0; transform: rotate(45deg); }
.hamburger.is-open span::after{ top: 0; transform: rotate(-45deg); }

.mobile-nav{
  display: none;
  position: fixed;
  top: var(--header-h); right: 0; bottom: 0; left: 0;
  background: var(--cream);
  z-index: 490;
  padding: 28px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.mobile-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green-dark);
  padding: 16px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a.active{ color: var(--green); }
.mobile-nav .btn{ margin-top: 26px; }

@media (max-width: 940px){
  .main-nav{ display: none; }
  .header-actions .btn{ display: none; }
  .hamburger{ display: flex; }
  .mobile-nav{ display: block; }
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */
.hero{
  position: relative;
  min-height: 650px;
  display: flex;
  overflow: hidden;
  background: var(--green-dark);
}
.hero-slide{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease);
  display: flex;
  align-items: center;
}
.hero-slide.is-active{ opacity: 1; visibility: visible; z-index: 2; }
.hero-slide img{
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.hero-slide .overlay{
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg, rgba(11,84,45,.86) 0%, rgba(23,107,58,.62) 46%, rgba(23,107,58,.24) 100%);
  z-index: 1;
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.hero-content-inner{ max-width: 620px; }
.hero-content .eyebrow-tag{ background: rgba(255,255,255,.16); color: var(--white); }
.hero-content h1{
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-top: 18px;
  font-weight: 700;
}
.hero-content p{
  color: rgba(255,255,255,.92);
  font-size: 1.1rem;
  margin-top: 18px;
  max-width: 520px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-controls{
  position: absolute;
  z-index: 5;
  bottom: 32px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.hero-arrow{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.5);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast) var(--ease);
  flex-shrink: 0;
}
.hero-arrow:hover{ background: rgba(255,255,255,.28); }
.hero-arrow svg{ width: 20px; height: 20px; }
.hero-dots{ display: flex; gap: 10px; }
.hero-dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  padding: 0;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.hero-dot.is-active{ background: var(--white); transform: scale(1.25); }

@media (max-width: 720px){
  .hero{ min-height: 550px; }
  .hero-content .eyebrow-tag{ font-size: .78rem; }
  .hero-actions{ margin-top: 24px; }
  .hero-controls{ bottom: 20px; }
}

/* ==========================================================================
   Page Hero (inner pages)
   ========================================================================== */
.page-hero{
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background: var(--green-dark);
}
.page-hero img{ position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after{
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(11,84,45,.82) 0%, rgba(23,107,58,.72) 100%);
  z-index: 1;
}
.page-hero-content{ position: relative; z-index: 2; max-width: 720px; }
.page-hero-content .eyebrow-tag{ background: rgba(255,255,255,.16); color: var(--white); }
.page-hero h1{ color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-top: 18px; }
.page-hero p{ color: rgba(255,255,255,.92); font-size: 1.08rem; margin-top: 16px; }

/* ==========================================================================
   Section spacing
   ========================================================================== */
.section{ padding: 100px 0; }
.section-tight{ padding: 72px 0; }
.section-alt{ background: var(--green-light); }
.section-cream{ background: var(--cream); }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 14px; }
.section-head p{ color: var(--gray); margin-top: 18px; font-size: 1.05rem; }

@media (max-width: 720px){
  .section{ padding: 70px 0; }
  .section-tight{ padding: 54px 0; }
  .section-head{ margin-bottom: 40px; }
}

/* ==========================================================================
   Trust / Feature cards
   ========================================================================== */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 38px 30px;
  border: 1px solid var(--border-soft);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  position: relative;
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-num{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--green-light);
  -webkit-text-stroke: 1.5px var(--leaf);
  line-height: 1;
}
.feature-icon{
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg{ width: 26px; height: 26px; color: var(--green); }
.feature-card h3{ font-size: 1.2rem; margin-top: 16px; }
.feature-card p{ color: var(--gray); margin-top: 10px; font-size: 0.97rem; }

@media (max-width: 900px){
  .feature-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Product cards
   ========================================================================== */
.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.product-card{
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media{ aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img{ transform: scale(1.08); }
.product-body{ padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3{ font-size: 1.12rem; }
.product-body p{ color: var(--gray); font-size: 0.93rem; flex: 1; }
.product-body .btn{ margin-top: 6px; align-self: flex-start; }

@media (max-width: 1080px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .product-grid, .product-grid.cols-3{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Split section (image + content)
   ========================================================================== */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media{ order: 2; }
.split-media{ position: relative; }
.split-media img{
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 5/4.4;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.split-media .badge-float{
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.split-media .badge-float svg{ width: 30px; height: 30px; color: var(--leaf); flex-shrink: 0; }
.split-media .badge-float strong{ display: block; font-family: var(--font-display); color: var(--green-dark); font-size: 1.02rem; }
.split-media .badge-float span{ color: var(--gray); font-size: 0.86rem; }

.check-list{ margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.check-list li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--ink);
}
.check-list svg{ width: 22px; height: 22px; color: var(--leaf); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 940px){
  .split{ grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-media{ order: 0; }
  .split-media .badge-float{ left: 16px; bottom: -20px; padding: 14px 18px; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  position: relative;
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band::before{
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-band::after{
  content: '';
  position: absolute;
  left: 10%; bottom: -110px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-text{ position: relative; z-index: 1; max-width: 560px; }
.cta-text h2{ color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-text p{ color: rgba(255,255,255,.9); margin-top: 12px; font-size: 1.02rem; }
.cta-actions{ position: relative; z-index: 1; flex-shrink: 0; }

@media (max-width: 720px){
  .cta-band{ padding: 44px 28px; }
}

/* ==========================================================================
   Wholesale / approach cards (3-up, icon top)
   ========================================================================== */
.pillar-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pillar-card{
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  text-align: left;
}
.pillar-card .feature-icon{ background: var(--white); }
.pillar-card h3{ font-size: 1.14rem; margin-top: 18px; }
.pillar-card p{ color: var(--gray); margin-top: 10px; font-size: 0.96rem; }

@media (max-width: 900px){
  .pillar-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   About page specific
   ========================================================================== */
.about-lead{
  max-width: 780px;
  font-size: 1.12rem;
  color: var(--ink);
}
.about-lead p + p{ margin-top: 16px; }

.location-card{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.location-info{ padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.location-info .brand-block{ display: flex; align-items: center; gap: 14px; }
.location-info .brand-block img{ height: 56px; width: 56px; object-fit: contain; }
.location-info .brand-block strong{ font-family: var(--font-display); font-size: 1.2rem; color: var(--green-dark); }
.location-info address{
  font-style: normal;
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.7;
}
.location-map{ min-height: 320px; background: var(--green-light); }
.location-map iframe{ width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

@media (max-width: 900px){
  .location-card{ grid-template-columns: 1fr; }
  .location-info{ padding: 36px 28px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--green-dark);
  color: rgba(255,255,255,.86);
  padding: 72px 0 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img{ height: 50px; width: 50px; object-fit: contain; }
.footer-brand strong{ font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.footer-col h4{ color: var(--white); font-size: 1rem; margin-bottom: 18px; font-family: var(--font-display); }
.footer-col p{ color: rgba(255,255,255,.72); font-size: 0.95rem; max-width: 320px; }
.footer-links a{
  display: block;
  color: rgba(255,255,255,.78);
  padding: 7px 0;
  font-size: 0.96rem;
  transition: color var(--fast) var(--ease);
}
.footer-links a:hover{ color: var(--white); }
.footer-address{ font-style: normal; color: rgba(255,255,255,.78); font-size: 0.96rem; line-height: 1.7; }
.footer-bottom{
  padding: 26px var(--gutter);
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
}

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr; gap: 34px; }
}

/* ==========================================================================
   Misc
   ========================================================================== */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

.lazy-fade{ opacity: 0; transition: opacity .5s var(--ease); }
.lazy-fade.is-loaded{ opacity: 1; }
