/* =========================================================
   FAAMLE — Design System
   Palette derived from the Faamle wordmark:
     Sprout Green #0AA75F · Farm Blue #008FD1 · Husk Cream #F9FAE9
   Type: Baloo 2 (display, rounded — echoes the bubble wordmark)
         Work Sans (body/UI)
   Signature motif: the wave/sprout swirl from the badge mark,
   reused as dividers, bullets and ambient background shapes.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  /* ---- Color tokens ---- */
  --cream:        #F9F9F9;
  --cream-deep:   #F9F9F9;
  --white:        #FFFFFF;

  --ink:          #16291F;   /* primary text */
  --ink-soft:     #51604F;   /* secondary text */
  --ink-faint:    #8B9A87;   /* tertiary / placeholder text */

  --green-700:    #06622F;
  --green-600:    #08914E;
  --green-500:    #28BE6D;   /* primary brand */
  --green-400:    #3FBE82;
  --green-100:    #E1F3E7;
  --green-50:     #EFF8F0;

  --blue-700:     #07435F;   /* deep harbor — dark sections */
  --blue-600:     #066D9E;
  --blue-500:     #0294CB;   /* secondary brand */
  --blue-100:     #DEF0FB;
  --blue-50:      #EFF8FD;

  --line:         rgba(22,41,31,0.10);
  --line-strong:  rgba(22,41,31,0.16);

  /* ---- Type ----
     H1 uses a serif display face for editorial warmth; everything else
     (h2-h6, body, UI) uses the sans face. */
  --font-h1:      'Playfair Display', Georgia, serif;
  --font-display: 'Work Sans', system-ui, sans-serif;
  --font-body:    'Work Sans', system-ui, sans-serif;

  /* ---- Shape & elevation ----
     Cards/images are sharp-cornered throughout the site (set to 0).
     Pills (buttons, chips, tabs) keep their rounded shape — those are a
     distinct UI affordance, not "cards" or "images". */
  --r-sm: 0px;
  --r-md: 0px;
  --r-lg: 0px;
  --r-pill: 999px;

  --shadow-sm: 0 3px 14px rgba(16,32,22,0.07);
  --shadow-md: 0 16px 40px rgba(16,32,22,0.10);
  --shadow-lg: 0 24px 60px rgba(16,32,22,0.14);
  --shadow-green: 0 14px 28px rgba(10,167,95,0.28);
  --shadow-blue: 0 14px 28px rgba(0,143,209,0.26);

  --container: 1240px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ---------------------------------------------------------
   Reset & base
   --------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; color: var(--ink); font-weight: 700; }
p{ margin: 0 0 1em; }

h1{ font-family: var(--font-h1); font-weight:700; font-size: clamp(2.5rem, 4.4vw, 4rem); letter-spacing: -0.01em; text-shadow: 0 2px 8px rgba(0,0,0,.12); }
h2{ font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3{ font-size: clamp(1.3rem, 1.8vw, 1.5rem); }
h4{ font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }

.lede{ font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }

:focus-visible{ outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

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

/* ---------------------------------------------------------
   Layout helpers
   --------------------------------------------------------- */
.container{ width:100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }
.section{ padding: var(--section-pad) 0; }
.section-tight{ padding: clamp(40px,5vw,64px) 0; }
.bg-white{ background: var(--white); }
.bg-cream-deep{ background: var(--cream-deep); }
.bg-green{ background: var(--green-500); color: var(--white); }
.bg-blue-deep{ background: var(--blue-500); color: var(--white); }
.bg-green-deep{ background: var(--green-500); color: var(--white); }

.section-head{ max-width: 680px; margin: 0 0 48px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head .eyebrow{ justify-content:center; }
.section-head.center .lede{ margin-inline:auto; }

.eyebrow{
  display:none;
  align-items:center; gap:8px;
  font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow svg{ width:16px; height:16px; flex-shrink:0; }
.eyebrow i{ font-size:14px; line-height:1; flex-shrink:0; }
.eyebrow.on-dark{ color: var(--green-400); }
.eyebrow.blue{ color: var(--blue-600); }

.grid{ display:grid; gap: 10px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-5{ grid-template-columns: repeat(5, 1fr); }
.grid-6{ grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1080px){
  .grid-6{ grid-template-columns: repeat(3, 1fr); }
  .grid-5{ grid-template-columns: repeat(3, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6{ grid-template-columns: 1fr; }
  :root{ --section-pad: 56px; }
}

.flex{ display:flex; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.gap-sm{ gap:10px; } .gap-md{ gap:18px; } .gap-lg{ gap:32px; }

.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family: var(--font-body); font-weight:500; font-size: .88rem; line-height:1;
  padding: 10px 20px; border-radius: var(--r-pill);
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn i{ font-size:16px; line-height:1; }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn-primary{ background: var(--green-500); color: var(--white); box-shadow: var(--shadow-green); }
.btn-primary:hover{ background: var(--green-600); }

.btn-blue{ background: var(--blue-500); color:var(--white); box-shadow: var(--shadow-blue); }
.btn-blue:hover{ background: var(--blue-600); }

.btn-outline{ background: transparent; border-width:1.5px; border-color: var(--blue-500); color: var(--blue-500); }
.btn-outline:hover{ background: var(--blue-500); color: var(--white); }

.btn-outline-light{ background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover{ background: rgba(255,255,255,.14); border-color: var(--white); }

.btn-white{ background: var(--white); color: var(--green-700); box-shadow: var(--shadow-md); }
.btn-white:hover{ background: var(--cream); }

.btn-sm{ padding: 10px 20px; font-size: .88rem; }
.btn-block{ width:100%; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */
.nav{
  position: sticky; top:0; z-index: 80;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .25s ease;
}
.nav.nav-hide{ transform: translateY(-100%); box-shadow: none; }
.nav-row{
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center;
  height: 80px; gap: 16px;
}
.nav-logo{ display:flex; align-items:center; justify-content:center; }
.nav-logo img{ height: 62px; width:auto; }

.nav-links{ display:flex; align-items:center; gap: 6px; }
.nav-links a{
  font-weight:600; font-size: .95rem; color: var(--ink-soft);
  padding: 9px 16px; border-radius: var(--r-pill); white-space:nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--green-700); background: var(--green-100); }
.nav-links-partner{ display:none; }
.nav-cta{ display:flex; align-items:center; gap:12px; justify-content:flex-end; }
.nav-call{
  width:42px; height:42px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--green-100); color: var(--green-500); transition: background .15s ease, color .15s ease;
}
.nav-call:hover{ background: var(--green-500); color:#fff; }
.nav-call svg{ width:19px; height:19px; }
.nav-call i{ font-size:17px; line-height:1; display:flex; align-items:center; justify-content:center; }
.nav-burger{ display:none; background:none; border:none; padding:8px; }
.nav-burger svg{ width:26px; height:26px; color: var(--ink); }
.nav-burger i{ font-size:22px; line-height:1; color: var(--ink); }

@media (max-width: 920px){
  .nav-row{ grid-template-columns: auto 1fr auto; height:72px; }
  .nav-links{
    position:fixed; inset: 72px 0 0 0; background: var(--white);
    flex-direction:column; align-items:stretch; gap:0; padding: 8px 24px 24px;
    transform: translateY(-12px); opacity:0; pointer-events:none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--shadow-md); z-index:79; overflow-y:auto;
  }
  .nav-links a{ width:100%; padding: 16px 14px; margin:0; border-bottom:1px solid var(--line); border-radius:0; }
  .nav-links a:last-child{ border-bottom:none; }
  .nav-links a.nav-links-partner{
    display:flex; align-items:center; justify-content:center;
    margin-top:16px; padding:14px; border-bottom:none; border-radius: var(--r-pill);
    background: var(--green-500); color:#fff; font-weight:600;
    transition: background .15s ease;
  }
  .nav-links a.nav-links-partner:hover{ background: var(--green-600); color:#fff; }
  .nav-links.open{ opacity:1; pointer-events:auto; transform: translateY(0); }
  .nav-burger{ display:block; order:-1; }
  .nav-cta .btn span.long{ display:none; }
  .nav-cta .btn{ display:none; } /* keep mobile header to call icon + burger only */
}

/* ---------------------------------------------------------
   Hero slider — split screen: product photo on a light panel,
   solid brand-color content panel, numbered pagination.
   --------------------------------------------------------- */
.hero-slider{ position:relative; height: min(82vh, 660px); min-height: 460px; overflow:hidden; }
.hero-slide{
  position:absolute; inset:0; opacity:0; visibility:hidden;
  display:grid; grid-template-columns: 1fr 1fr;
}
.hero-slide.active{ opacity:1; visibility:visible; }
.hero-slide{ transition: opacity .6s ease; }
html.gsap-on .hero-slide{ transition: none; }

.hs-media{
  position:relative; overflow:hidden;
}
.hs-product-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hs-content{
  position:relative; display:flex; flex-direction:column; justify-content:center;
  padding: 56px clamp(32px,6vw,76px) 90px; color:#fff; overflow:hidden;
}
.hs-content-inner{ max-width: 480px; }
.hs-content h1{ color:#fff; font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom:18px; }
.hs-content p{ color: rgba(255,255,255,.9); max-width:42ch; margin-bottom:30px; font-size:1.02rem; }

.hs-pagination{
  position:absolute; left: clamp(32px,6vw,76px); right: clamp(32px,6vw,76px); bottom: 36px;
  display:flex; align-items:center; justify-content:space-between;
}
.hero-dots{ display:flex; gap:9px; }
.hero-dot{ width:8px; height:8px; border-radius:50%; background: rgba(255,255,255,.4); border:none; padding:0; transition: all .2s ease; }
.hero-dot.active{ background: #fff; width:24px; border-radius: var(--r-pill); }

.hs-nav-group{ display:flex; align-items:center; gap:14px; }
.hs-counter{ font-family: var(--font-display); font-weight:800; font-size:1.3rem; color: rgba(255,255,255,.55); letter-spacing:.02em; }
.hs-counter-current{ color:#fff; }

.hero-arrow{
  position:relative; z-index:3; width:38px; height:38px; border-radius:50%;
  background: rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.4); color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease;
}
.hero-arrow:hover{ background: rgba(255,255,255,.32); }
.hero-arrow svg{ width:16px; height:16px; }
.hero-arrow i{ font-size:14px; line-height:1; }

@media (max-width: 820px){
  .hero-slider{ height: auto; min-height: 0; }
  .hero-slide{ position:relative; opacity:1; visibility:visible; display:none; grid-template-columns: 1fr; }
  .hero-slide.active{ display:grid; }
  .hs-media{ min-height: 240px; }
  .hs-content{ padding: 40px 24px 64px; }
  .hs-content-inner{ max-width:none; }
  .hs-pagination{ left:24px; right:24px; bottom:24px; }
}

/* Full-height homepage hero variant. Subtract the sticky nav's height
   (80px desktop) so the pagination dots at the bottom stay on-screen
   without needing to scroll. */
.hero-slider-full{ height: calc(100vh - 80px); }
@media (max-width: 820px){
  .hero-slider-full{ height: auto; }
}

/* ---------------------------------------------------------
   Page hero band (simple, for inner pages)
   --------------------------------------------------------- */
.page-hero{ position:relative; min-height:85vh; padding: clamp(56px,7vw,84px) 0 clamp(48px,6vw,64px); overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; }
.page-hero .container{ position:relative; z-index:1; }

/* ---------------------------------------------------------
   Full-bleed photo storytelling section ("Naturally Sourced")
   --------------------------------------------------------- */
.photo-section{
  position:relative; width:100%; min-height:100vh; display:flex; align-items:flex-end; justify-content:center;
  background-size: cover; background-position: center; background-repeat:no-repeat; overflow:hidden;
}
.photo-section::after{
  content:''; position:absolute; inset:0; 
}
.photo-section .container{ position:relative; z-index:1; width:100%; display:flex; justify-content:center; align-items:flex-end; padding-bottom: clamp(24px, 3.5vw, 40px); }
.photo-section-content{ width:100%; max-width:none; color:#fff; display:flex; justify-content:center; }
.photo-section-content h2{ color:#fff; font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom:18px; }
.photo-section-content p{
  width:min(1100px, 100%); margin:0; padding: clamp(8px, 1vw, 12px) clamp(12px, 1.6vw, 18px);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 10px;
  text-align:center; color: var(--ink); font-size: clamp(1rem, 1.2vw, 1.15rem); font-weight: 600;
  background: rgba(255,255,255,.7); border: 1px solid rgba(16, 41, 24, .16);
  border-radius: 999px; box-shadow: none;
}
.photo-section-content p span{ display:inline-flex; align-items:center; }
.photo-section-sep{ color: var(--green-600); font-size: 0.7rem; line-height: 1; }

/* ---------------------------------------------------------
   Video storytelling section
   --------------------------------------------------------- */
.video-section{ position:relative; min-height: 78vh; display:flex; align-items:center; overflow:hidden; background: var(--ink); }
.video-section video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.video-section::after{ content:''; position:absolute; inset:0; background: rgba(6,20,13,.5); }
.video-section .container{ position:relative; z-index:1; }
.video-section-content{ max-width: 600px; color:#fff; }
.video-section-content h2{ color:#fff; margin-bottom:16px; }
.video-section-content p{ color: rgba(255,255,255,.88); margin-bottom: 26px; }
.video-mute-btn{
  position:absolute; z-index:2; bottom:24px; right:24px; width:44px; height:44px; border-radius:50%;
  background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4); color:#fff;
  display:flex; align-items:center; justify-content:center; backdrop-filter: blur(4px);
}
.video-mute-btn svg{ width:20px; height:20px; }
.video-mute-btn i{ font-size:18px; line-height:1; }

/* ---------------------------------------------------------
   Sticky utility buttons (WhatsApp / Contact / Back-to-top)
   --------------------------------------------------------- */
.sticky-stack{
  position:fixed; bottom: 20px; z-index: 90;
  display:flex; flex-direction:column; gap:12px; align-items:flex-end;
}
.sticky-stack-right{ right: 20px; align-items:flex-end; }
.sticky-stack-left{ left: 20px; align-items:flex-start; }
.sticky-btn{
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md); border:none; cursor:pointer; position:relative;
  color:#fff; transition: transform .15s ease;
}
.sticky-btn svg{ width:24px; height:24px; }
.sticky-btn i{ font-size:21px; line-height:1; }
.sticky-btn:hover{ transform: translateY(-2px) scale(1.04); }
.sticky-whatsapp{
  background:#25D366;
  animation: whatsapp-pulse 2.8s ease-in-out infinite;
}
.sticky-whatsapp::after{
  content:''; position:absolute; inset:0; border-radius:50%; pointer-events:none;
  animation: whatsapp-ring 2.8s ease-out infinite;
}
.sticky-whatsapp:hover{ animation-play-state: paused; }
.sticky-whatsapp:hover::after{ animation-play-state: paused; opacity:0; }
@keyframes whatsapp-pulse{
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@keyframes whatsapp-ring{
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce){
  .sticky-whatsapp, .sticky-whatsapp::after{ animation:none; }
}
.sticky-top{
  width:38px; height:38px; background: rgba(255,255,255,.9); color: var(--ink-soft);
  box-shadow: var(--shadow-sm); border:1px solid var(--line);
  opacity:0; pointer-events:none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease, color .15s ease;
}
.sticky-top svg{ width:17px; height:17px; }
.sticky-top i{ font-size:15px; line-height:1; }
.sticky-top:hover{ background: var(--green-500); color:#fff; border-color: var(--green-500); }
.sticky-top.show{ opacity:.75; pointer-events:auto; transform: translateY(0); }
.sticky-top.show:hover{ opacity:1; }
.sticky-btn[data-tip]::before{
  content: attr(data-tip); position:absolute; right: 60px; top:50%; transform: translateY(-50%);
  background: var(--ink); color:#fff; padding:6px 12px; border-radius: var(--r-sm);
  font-size:.8rem; font-weight:600; white-space:nowrap; opacity:0; pointer-events:none; transition: opacity .15s ease;
}
.sticky-stack-left .sticky-btn[data-tip]::before{ right:auto; left:60px; }
.sticky-btn:hover[data-tip]::before{ opacity:1; }
@media (max-width: 600px){
  .sticky-stack-right{ right:14px; bottom:14px; }
  .sticky-stack-left{ left:14px; bottom:14px; }
  .sticky-btn{ width:46px; height:46px; }
  .sticky-btn[data-tip]::before{ display:none; }
}

/* ---------------------------------------------------------
   Simple stats strip (used on distributor.php)
   --------------------------------------------------------- */
.stats{ background: var(--cream-deep); padding: 44px 24px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align:center; }
.stat-num{ font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--green-500); font-weight:700; }
.stat-label{ font-size: .92rem; color: var(--ink-soft); font-weight:600; margin-top:4px; }
@media (max-width: 720px){ .stats-grid{ grid-template-columns: repeat(2,1fr); gap: 28px 16px; } }

/* ---------------------------------------------------------
   Story section — pinned 3-column scrollytelling (homepage)
   Stage 0 = stats, stages 1-3 = narrative text either side while the
   center image crossfades. Pure CSS `position:sticky` handles the pin;
   GSAP/ScrollTrigger (if loaded) just toggles which panel is visible as
   the user scrolls through the tall outer container.
   --------------------------------------------------------- */
.story-section{ position:relative; }
.story-sticky{
  display:flex; align-items:center; padding: 56px 0; position:relative;
  background-image: url('../img/banners/faamle-products.jpg');
  background-size:cover; background-position:center;
}
.story-sticky::before{
  content:''; position:absolute; inset:0; background: rgba(249,249,249,.93); z-index:0;
}
.story-grid{ position:relative; z-index:1; }
/* The tall pinned scrollytelling treatment only activates once GSAP/ScrollTrigger
   has actually loaded and taken over — see html.gsap-on. Without it, this is
   just a normal-height block showing stage 0 (the stats), so there's never a
   dead, un-animated scroll zone if the CDN fails to load. */
html.gsap-on .story-section{ height: 400vh; }
html.gsap-on .story-sticky{
  position:sticky; top:0; height:100vh; overflow:hidden; padding:0;
}
.story-grid{ display:grid; grid-template-columns: 1fr 0.9fr 1fr; gap: 28px; align-items:center; width:100%; }
.story-col{ position:relative; min-height: 260px; }
.story-panel{
  position:absolute; inset:0; opacity:0; pointer-events:none;
  display:flex; flex-direction:column; justify-content:center;
}
.story-panel.active{ opacity:1; pointer-events:auto; }
.story-panel .eyebrow{ margin-bottom:10px; }
.story-panel h3{ margin-bottom:12px; font-size: clamp(1.3rem,2vw,1.7rem); }
.story-panel p{ color: var(--ink-soft); margin-bottom:0; max-width:34ch; }
.story-panel .btn{ margin-top:20px; width:fit-content; }

.stat-grid-1row{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-grid-1row .stat-cell .stat-num,
.stat-grid-1row .stat-cell .stat-text{ font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
.stat-grid-1row .stat-cell .stat-label{ font-size:.68rem; line-height:1.25; }
.stat-cell{ display:flex; flex-direction:column; gap:4px; }
.stat-cell .stat-num, .stat-cell .stat-text{
  font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.3rem);
  font-weight:800; color: var(--green-500); line-height:1;
}
.stat-cell .stat-label{ font-size:.82rem; color: var(--ink-soft); font-weight:600; }

.story-center{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.story-image-frame{ position:relative; width:100%; max-width:360px; aspect-ratio: 1/1; overflow:hidden; box-shadow: var(--shadow-md); }
.story-image{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; }
.story-image.active{ opacity:1; }
.story-dots{ display:flex; gap:9px; }
.story-dot{ width:8px; height:8px; border-radius:50%; background: var(--line-strong); transition: all .2s ease; }
.story-dot.active{ background: var(--green-500); width:26px; border-radius: var(--r-pill); }

@media (max-width: 920px){
  .story-section{ height: 320vh; }
  .story-grid{ grid-template-columns: 1fr; text-align:center; }
  .story-col{ min-height: 180px; }
  .story-center{ order:-1; }
  .story-panel{ align-items:center; }
  .story-panel p{ max-width:42ch; margin-inline:auto; }
  .stat-grid-1row{ max-width:320px; margin-inline:auto; grid-template-columns: repeat(2,1fr); gap:16px; }
  .stat-grid-1row .stat-cell .stat-num, .stat-grid-1row .stat-cell .stat-text{ font-size: 1.6rem; }
  .stat-grid-1row .stat-cell .stat-label{ font-size:.78rem; }
  .story-image-frame{ max-width:230px; }
}

/* ---------------------------------------------------------
   About snippet - short intro (homepage only)
   --------------------------------------------------------- */
.about-snippet-section{ background-image: url('../assets/pattern.jpg'); background-repeat: repeat; }
.cat-section{ background-image: url('../assets/pattern.jpg'); background-repeat: repeat; }
.about-snippet-grid{ position:relative; display:grid; grid-template-columns: 1.1fr 0.9fr; align-items:center; gap: clamp(32px,5vw,64px); }
.about-snippet-content p{ color: var(--ink-soft); max-width:52ch; margin-bottom:28px; font-size:1.05rem; }
.about-snippet-grid.no-media{ grid-template-columns: 1fr; text-align:center; }
.about-snippet-grid.no-media .about-snippet-content{ max-width:640px; margin-inline:auto; }
.about-snippet-grid.no-media .about-snippet-content p{ margin-inline:auto; }
@media (max-width:820px){
  .about-snippet-grid{ grid-template-columns:1fr; text-align:center; }
  .about-snippet-content p{ margin-inline:auto; }
}

/* ---------------------------------------------------------
   Story section 2 — pinned scrollytelling, 2 columns
   (media left crossfading through 4 stages, merged text +
   stats + CTA right). Mirrors .story-section's pin/crossfade
   pattern with its own class names + JS hook (#story2Section
   in js/animations.js) so index.php's story section and its
   controller are untouched.
   --------------------------------------------------------- */
.story2-section{ position:relative; }
.story2-sticky{ position:relative; overflow:hidden; display:flex; align-items:center; padding: 64px 0; }
html.gsap-on .story2-section{ height: 400vh; }
html.gsap-on .story2-sticky{ position:sticky; top:0; height:100vh; overflow:hidden; padding:0; }

/* Background + overlay span the full slide (image and text both sit on top) */
.story2-bg{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition: opacity .6s ease; }
.story2-bg.active{ opacity:1; }
html.gsap-on .story2-bg{ transition:none; }

/* No .container here on purpose — the media column runs edge-to-edge
   (no side padding) so the product image can render bigger; the text
   column carries its own padding to line up with the rest of the page. */
.story2-grid{ position:relative; z-index:1; display:grid; grid-template-columns: 1fr 1fr; align-items:stretch; width:100%; }

.story2-media{ position:relative; display:flex; align-items:center; justify-content:center; min-height:420px; }
.story2-fg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center bottom;
  opacity:0; transition: opacity .5s ease;
}
.story2-fg.active{ opacity:1; }
html.gsap-on .story2-fg{ transition:none; }

.story2-text{ position:relative; display:flex; flex-direction:column; justify-content:center; padding: 40px clamp(24px,5vw,64px) 40px clamp(28px,4vw,56px); }
.story2-panel-stack{ position:relative; min-height: 320px; }
.story2-panel{ position:absolute; inset:0; opacity:0; pointer-events:none; display:flex; flex-direction:column; justify-content:center; }
.story2-panel.active{ opacity:1; pointer-events:auto; }
.story2-panel h3{
  color: var(--blue-700); margin-bottom:16px; font-size: clamp(1.8rem,2.8vw,2.4rem);
  text-shadow: 0 2px 10px rgba(2,148,203,.18);
}
.story2-panel p{ color: var(--ink-soft); margin-bottom:0; max-width:46ch; }
.story2-panel .btn{ margin-top:24px; width:fit-content; }

.story2-stats-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 18px 14px; max-width:480px; margin-bottom:8px; }
.story2-stats-grid .stat-cell .stat-num,
.story2-stats-grid .stat-cell .stat-text{ font-size: clamp(1.3rem, 2vw, 1.7rem); }

.story2-dots{ display:flex; gap:9px; margin-top:28px; }
.story2-dot{ width:8px; height:8px; border-radius:50%; background: var(--line-strong); border:none; padding:0; cursor:pointer; transition: all .2s ease; }
.story2-dot.active{ background: var(--green-500); width:26px; border-radius: var(--r-pill); }

@media (max-width:920px){
  /* Disable the pin/tall-scroll on mobile — stacking media + a full text
     panel inside a fixed 100vh sticky box has no room to breathe there,
     which was clipping the top of the product image. Falls back to a
     normal-height block (still shows stage 0, same safety-first pattern
     as .story-section without GSAP). */
  html.gsap-on .story2-section{ height: auto; }
  html.gsap-on .story2-sticky{ position:relative; height:auto; overflow:visible; padding: 48px 0; }
  .story2-grid{ grid-template-columns: 1fr; text-align:center; }
  .story2-media{ min-height:260px; order:-1; }
  .story2-panel{ align-items:center; }
  .story2-panel p{ margin-inline:auto; }
  .story2-panel .btn{ margin-inline:auto; }
  .story2-stats-grid{ grid-template-columns: repeat(2,1fr); margin-inline:auto; }
  .story2-dots{ justify-content:center; }
}

/* ---------------------------------------------------------
   Category tiles — light tint background (matches products.php
   category coloring), full-width image on top (homepage only)
   --------------------------------------------------------- */
.cat-tile{
  display:flex; flex-direction:column; text-decoration:none;
  border-radius: var(--r-lg); overflow:hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.cat-tile:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-tile-media{
  width:100%; aspect-ratio: 16/9; display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.cat-tile-media img{ width:100%; height:100%; object-fit:cover; }
.cat-tile-body{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding: 12px 20px; }
.cat-tile-body h3{ margin-bottom:0; font-size:1.15rem; }
.cat-tile-cta{
  flex-shrink:0; width:34px; height:34px; border-radius:50%; color:#fff;
  display:flex; align-items:center; justify-content:center; transition: transform .2s ease;
}
.cat-tile-cta svg{ width:15px; height:15px; }
.cat-tile-cta i{ font-size:14px; line-height:1; }
.cat-tile:hover .cat-tile-cta{ transform: translateX(4px); }

/* ---------------------------------------------------------
   Gifting banner — full-width split, replaces the Gift Packs tile
   --------------------------------------------------------- */
.gifting-section{ background: var(--green-50); }
.gifting-banner{
  display:grid; grid-template-columns: 2fr 3fr; align-items:stretch;
  border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--shadow-md); min-height:300px;
}
.gifting-media{ background-size:60%; background-position:center; background-repeat:no-repeat; background-color: var(--blue-500); }
.gifting-content{
  background: var(--blue-500); color:#fff; display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  padding: clamp(32px,4vw,56px);
}
.gifting-content h2{ color:#fff; margin-bottom:14px; }
.gifting-content p{ color: rgba(255,255,255,.88); max-width:44ch; margin-bottom:26px; }
.gifting-content .btn{ width:fit-content; }
@media (max-width:760px){
  .gifting-banner{ grid-template-columns:1fr; }
  .gifting-media{ min-height:220px; }
}

/* ---------------------------------------------------------
   Manufacturing Excellence — icon-card grid, same visual
   language as the "Built on Quality" bento (homepage only)
   --------------------------------------------------------- */
.mfg-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.mfg-card{
  aspect-ratio: 1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:14px; padding:20px; border-radius: var(--r-lg); color:#fff;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.mfg-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mfg-icon{
  width:52px; height:52px; flex-shrink:0; border-radius:50%;
  background: rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center;
}
.mfg-icon svg{ width:26px; height:26px; }
.mfg-icon i{ font-size:22px; line-height:1; }
.mfg-card h4{ color:#fff; margin-bottom:0; font-size:.98rem; }
@media (max-width:700px){ .mfg-grid{ grid-template-columns: repeat(2,1fr); } }

/* ---------------------------------------------------------
   Quality bento grid — "Why Faamle" with more punch (homepage only)
   Numbered, icon-led, vivid brand-color blocks instead of photos.
   --------------------------------------------------------- */
.quality-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap:16px;
}
.quality-card{
  position:relative; border-radius: var(--r-lg); padding: 30px 28px; color:#fff;
  display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.quality-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quality-feature{ grid-column: 1; grid-row: 1 / span 2; padding: 40px 36px; }
.quality-grid .quality-card:nth-child(2){ grid-column:2; grid-row:1; }
.quality-grid .quality-card:nth-child(3){ grid-column:3; grid-row:1; }
.quality-grid .quality-card:nth-child(4){
  grid-column: 2 / span 2; grid-row:2; flex-direction:row; align-items:center; gap:22px;
}
.quality-grid .quality-card:nth-child(4) .quality-icon{ margin-bottom:0; flex-shrink:0; }
.quality-num{
  position:absolute; top:20px; right:24px; font-family: var(--font-display); font-weight:800;
  font-size: clamp(2.4rem,4vw,3.6rem); color: rgba(255,255,255,.18); line-height:1;
}
.quality-icon{ width:52px; height:52px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; color:#fff; }
.quality-icon svg{ width:100%; height:100%; }
.quality-icon i{ font-size:26px; line-height:1; }
.quality-feature .quality-icon i{ font-size:32px; line-height:1; }
.quality-feature .quality-icon{ width:64px; height:64px; margin-bottom:22px; }
.quality-card h3{ color:#fff; margin-bottom:8px; }
.quality-feature h3{ font-size: clamp(1.5rem,2.4vw,1.9rem); }
.quality-card p{ color: rgba(255,255,255,.86); margin-bottom:0; font-size:.92rem; }
@media (max-width:920px){
  .quality-grid{ grid-template-columns: 1fr 1fr; }
  .quality-feature{ grid-column: 1 / span 2; grid-row:1; }
  .quality-grid .quality-card:nth-child(2){ grid-column:1; grid-row:2; }
  .quality-grid .quality-card:nth-child(3){ grid-column:2; grid-row:2; }
  .quality-grid .quality-card:nth-child(4){ grid-column: 1 / span 2; grid-row:3; flex-direction:column; align-items:flex-start; }
  .quality-grid .quality-card:nth-child(4) .quality-icon{ margin-bottom:18px; }
}
@media (max-width:600px){
  .quality-grid{ grid-template-columns: 1fr; }
  .quality-feature, .quality-grid .quality-card:nth-child(2),
  .quality-grid .quality-card:nth-child(3), .quality-grid .quality-card:nth-child(4){ grid-column:1; grid-row:auto; }
}

/* ---------------------------------------------------------
   Cards: category / feature / value / bestseller
   --------------------------------------------------------- */
.card{
  background: var(--white); border-radius: var(--r-md); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }

.icon-tile{
  width: 56px; height:56px; border-radius: var(--r-sm);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  background: var(--green-100); color: var(--green-500); flex-shrink:0;
}
.icon-tile svg{ width:28px; height:28px; }
.icon-tile i{ font-size:24px; line-height:1; }
.icon-tile.blue{ background: var(--blue-100); color: var(--blue-500); }

.cat-card{ display:flex; flex-direction:column; height:100%; }
.cat-card .more{ margin-top:auto; display:inline-flex; align-items:center; gap:6px; font-weight:700; color: var(--green-500); font-size:.92rem; }
.cat-card .more svg{ width:16px; height:16px; transition: transform .15s ease; }
.cat-card .more i{ font-size:14px; line-height:1; transition: transform .15s ease; }
.cat-card:hover .more svg{ transform: translateX(4px); }

.feature-card{ display:flex; flex-direction:column; }

.value-card{ text-align:left; }

/* Bestseller product tile */
.product-tile{
  background: var(--white); border-radius: var(--r-md); overflow:hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column; cursor:pointer;
}
.product-tile:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-art{
  aspect-ratio: 1/1; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.product-art svg{ width: 56%; height:56%; }
.product-art i{ font-size:32px; line-height:1; }
.product-body{ padding: 18px 20px 22px; }
.product-tag{
  display:inline-block; font-size:.58rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  color: var(--green-500); background: var(--green-50); padding: 2px 5px; border-radius: var(--r-pill); margin-bottom:10px;
  line-height:1.6; border:none;
}
.product-body h4{ margin-bottom:4px; }
.product-body p{ color: var(--ink-soft); font-size: .92rem; margin-bottom: 12px; }
.variant-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{
  font-size:.78rem; font-weight:600; color: var(--ink-soft); background: var(--cream-deep);
  padding: 4px 11px; border-radius: var(--r-pill); border:1px solid var(--line);
}

/* category accent theming — driven by inline custom properties set from PHP,
   e.g. style="--cat-bg:#FBEAD9;--cat-tint:#FDF3E9;--cat-accent:#B9763D;--cat-deep:#7A4E24" */
.product-art{ background: var(--cat-tint, var(--green-50)); color: var(--cat-deep, var(--green-500)); }
.product-tag{ background: var(--cat-tint, var(--green-50)); color: var(--cat-deep, var(--green-500)); }

/* Image-led category card (homepage "Featured Categories") */
.category-photo-card{
  position:relative; border-radius: var(--r-lg); overflow:hidden; aspect-ratio: 16/10;
  display:flex; flex-direction:column; justify-content:flex-end; text-decoration:none;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  background: var(--cat-bg, var(--cream-deep));
}
.category-photo-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-photo-card .cp-image{
  position:absolute; inset:0; background-size: cover; background-position:center;
  transition: transform .4s ease;
}
.category-photo-card:hover .cp-image{ transform: scale(1.06); }
.category-photo-card .cp-fade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,15,10,0) 0%, rgba(6,15,10,.45) 30%, rgba(6,15,10,.92) 100%);
}
.category-photo-card .cp-content{ position:relative; z-index:1; padding: 28px 28px; color:#fff; }
.category-photo-card .cp-content .cat-tag-sm{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  background: rgba(255,255,255,.22); padding:4px 10px; border-radius: var(--r-pill); margin-bottom:10px;
  backdrop-filter: blur(3px);
}
.category-photo-card h3{ color:#fff; margin-bottom:6px; font-size:1.4rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.category-photo-card p{ color: rgba(255,255,255,.92); font-size:.92rem; margin-bottom:0; max-width:46ch; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.category-photo-card .more{
  color:#fff; margin-top:10px; display:inline-flex; align-items:center; gap:6px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4); transition: color .2s ease;
}
.category-photo-card .more svg{ width:16px; height:16px; flex-shrink:0; transition: transform .25s ease; }
.category-photo-card .more i{ font-size:14px; line-height:1; flex-shrink:0; transition: transform .25s ease; }
.category-photo-card:hover .more{ color: var(--cat-bg, #fff); }
.category-photo-card:hover .more svg{ transform: translateX(8px); }
@media (max-width: 720px){ .category-photo-card{ aspect-ratio: 4/3; } }

/* ---------------------------------------------------------
   "Why Faamle" cards — brand-color bg, image collapses on hover
   to reveal full description
   --------------------------------------------------------- */
.why-card{
  position:relative; overflow:hidden; display:flex; flex-direction:column;
  color:#fff; aspect-ratio: 3/4; box-shadow: var(--shadow-sm);
}
.why-card-image{
  height:70%; background-size:cover; background-position:center;
  transition: height .4s cubic-bezier(.4,0,.2,1);
}
.why-card-body{
  flex:1; display:flex; flex-direction:column; justify-content:center;
  padding: 22px 24px; min-height:0;
}
.why-card-body h3{ color:#fff; margin-bottom:0; transition: margin .3s ease; }
.why-card-body p{
  color: rgba(255,255,255,.88); font-size:.92rem;
  max-height:0; opacity:0; overflow:hidden;
  transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
  margin-top:0; margin-bottom:0;
}
.why-card:hover .why-card-image{ height:20%; }
.why-card:hover .why-card-body h3{ margin-bottom:10px; }
.why-card:hover .why-card-body p{ max-height:220px; opacity:1; margin-top:4px; }
@media (max-width: 720px){
  .why-card{ aspect-ratio: 4/5; }
  /* Touch devices can't hover — show the description by default instead. */
  .why-card-image{ height:55%; }
  .why-card-body p{ max-height:220px; opacity:1; margin-top:4px; }
}
/* ---------------------------------------------------------
   About — "Join Us" 6th leadership-grid card
   --------------------------------------------------------- */
.join-us-card{ padding:0; background: var(--blue-500); color:#fff; display:flex; }
.join-us-body{ padding: 40px 26px 26px; display:flex; flex-direction:column; gap:16px; justify-content:center; }
.join-us-card h3{ color:#fff; margin-bottom:0; font-size:1.3rem; }
.join-us-intro{ color: rgba(255,255,255,.78); font-size:.88rem; margin-bottom:0; }
.join-us-row{ display:flex; gap:14px; align-items:center; }
.join-us-row + .join-us-row{ margin-top:2px; padding-top:16px; border-top:1px solid rgba(255,255,255,.16); }
.join-us-row .icon-tile{ width:42px; height:42px; margin-bottom:0; flex-shrink:0; }
.join-us-row .icon-tile svg{ width:22px; height:22px; }
.join-us-row .icon-tile i{ font-size:18px; line-height:1; }
.join-us-row h5{ color:#fff; font-size:.92rem; margin-bottom:3px; }
.join-us-row p{ color: rgba(255,255,255,.78); font-size:.85rem; margin-bottom:0; }
.join-us-row p a{ color:#fff; font-weight:700; text-decoration:none; }

/* ---------------------------------------------------------
   About — Our Story redesigned layout
   --------------------------------------------------------- */
.story-layout{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items:stretch; }
.story-layout-image{ position:relative; min-height:420px; }
.story-layout-photo{
  display:block; position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center;
  box-shadow: var(--shadow-md);
}
.story-layout-badge{
  position:absolute; left:-18px; bottom:-18px; background: var(--green-500); color:#fff;
  padding: 18px 22px; display:flex; flex-direction:column; box-shadow: var(--shadow-lg);
}
.story-layout-badge-num{ font-family: var(--font-display); font-weight:800; font-size:2rem; line-height:1; }
.story-layout-badge-label{ font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; margin-top:6px; line-height:1.3; color: var(--green-100); }

.story-chapter{ display:flex; gap:22px; margin-top:34px; padding-top:30px; border-top:1px solid var(--line); }
.story-chapter:first-of-type{ margin-top:28px; }
.story-chapter-year{
  flex-shrink:0; width:76px; font-family: var(--font-display); font-weight:800;
  font-size:1.3rem; color: var(--green-600);
}
.story-chapter-body h4{ margin-bottom:8px; }
.story-chapter-body p{ color: var(--ink-soft); margin-bottom:0; }

@media (max-width: 880px){
  .story-layout{ grid-template-columns: 1fr; gap:32px; }
  .story-layout-image{ min-height:0; }
  .story-layout-photo{ position:static; height:auto; aspect-ratio: 16/10; }
  .story-chapter{ flex-direction:column; gap:8px; }
  .story-chapter-year{ width:auto; }
}

/* ---------------------------------------------------------
   Bestsellers carousel
   --------------------------------------------------------- */
.carousel-controls{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.carousel-btn{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--green-100); color: var(--green-500); border:none;
  transition: background .15s ease, color .15s ease;
}
.carousel-btn svg{ width:17px; height:17px; }
.carousel-btn i{ font-size:15px; line-height:1; }
.carousel-btn:hover{ background: var(--green-500); color:#fff; }
.carousel-btn-plus{ background: var(--green-500); color:#fff; }
.carousel-btn-plus:hover{ background: var(--green-500); }

.carousel-viewport{
  display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:10px; scrollbar-width:none; -ms-overflow-style:none;
}
.carousel-viewport::-webkit-scrollbar{ display:none; }
.carousel-viewport .product-tile{ flex: 0 0 260px; scroll-snap-align:start; }
@media (max-width: 560px){
  .carousel-viewport .product-tile{ flex-basis: 78vw; }
}

.check-list{ display:flex; flex-direction:column; gap:18px; }
.check-item{ display:flex; gap:14px; align-items:flex-start; }
.check-mark{
  width:28px; height:28px; border-radius:50%; background: var(--green-500); color:var(--white);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px;
}
.check-mark svg{ width:16px; height:16px; }
.check-mark i{ font-size:13px; line-height:1; }
.check-item strong{ display:block; font-family: var(--font-body); font-weight:700; }
.check-item span{ color: var(--ink-soft); font-size:.95rem; }

/* ---------------------------------------------------------
   CTA banners
   --------------------------------------------------------- */
.cta-banner{
  position:relative; overflow:hidden; border-radius: var(--r-lg);
  padding: clamp(40px,6vw,64px); color: var(--white);
}
.cta-banner .motif{ position:absolute; opacity:.16; z-index:0; }
.cta-banner .motif.m1{ width:340px; top:-60px; right:-60px; }
.cta-banner .motif.m2{ width:220px; bottom:-60px; left:10%; }
.cta-banner .content{ position:relative; z-index:1; }
.benefit-row{ display:flex; flex-wrap:wrap; gap: 14px 28px; margin: 28px 0 34px; }
.benefit-row li{ display:flex; align-items:center; gap:10px; font-weight:600; }
.benefit-row svg{ width:20px; height:20px; flex-shrink:0; color: var(--green-400); }
.benefit-row i{ font-size:17px; line-height:1; flex-shrink:0; color: var(--green-400); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer{ background: var(--blue-700); color: rgba(255,255,255,.92); position:relative; overflow:hidden; }
.footer .container{ padding-left: clamp(28px,7vw,96px); padding-right: clamp(28px,7vw,96px); }
.footer-top{ position:relative; z-index:1; padding: 64px 0 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img{ height:62px; margin-bottom:16px; }
.footer-brand p{ color: rgba(255,255,255,.7); font-size:.94rem; max-width: 280px; }
.footer h5{ font-family: var(--font-body); font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color: var(--green-400); margin-bottom:18px; }
.footer-links{ display:flex; flex-direction:column; gap:11px; }
.footer-links a{ color: rgba(255,255,255,.82); font-size:.95rem; transition: color .15s ease; }
.footer-links a:hover{ color: var(--white); }
.footer-contact li{ display:flex; gap:10px; align-items:flex-start; font-size:.92rem; color: rgba(255,255,255,.82); margin-bottom:14px; }
.footer-contact li i{ width:18px; flex-shrink:0; margin-top:2px; color: var(--green-400); text-align:center; line-height:1; }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; transition: background .15s ease, border-color .15s ease;
}
.footer-social a:hover{ background: var(--green-500); border-color: var(--green-500); }
.footer-social i{ font-size:16px; line-height:1; }
.footer-bottom{
  position:relative; z-index:1; border-top:1px solid rgba(255,255,255,.14);
  padding: 22px 0; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:.85rem; color: rgba(255,255,255,.6);
}
@media (max-width: 920px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:.86rem; font-weight:700; color: var(--ink); }
.field .req{ color: var(--green-600); }
.field input, .field select, .field textarea{
  border: 1.6px solid var(--line-strong); border-radius: 8px;
  padding: 13px 16px; background: var(--white); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--green-500); outline:none; box-shadow: 0 0 0 4px var(--green-100);
}
.field textarea{ resize: vertical; min-height: 120px; }
.field .hint{ font-size:.8rem; color: var(--ink-faint); }
.field.error input, .field.error select, .field.error textarea{ border-color:#D9534F; }
.field-error-msg{ font-size:.8rem; color:#C0392B; display:none; }
.field.error .field-error-msg{ display:block; }

.form-card{ background: var(--white); border-radius: var(--r-lg); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-md); }

.map-embed{ margin-top:24px; border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--shadow-sm); height:450px; }
.map-embed iframe{ width:100%; height:100%; border:0; display:block; }
.form-success{
  display:none; text-align:center; padding: 50px 20px;
}
.form-success.show{ display:block; }
.form-success .icon-tile{ margin: 0 auto 18px; }

@media (max-width: 720px){ .form-grid{ grid-template-columns: 1fr; } .field.full{ grid-column: 1; } }

/* ---------------------------------------------------------
   Tabs / filters (products page) — centered, Google-style search
   --------------------------------------------------------- */
.search-sticky-section{
  position: sticky; top: 80px; z-index: 60; padding: 28px 0 22px;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: top .3s ease;
}
html.nav-is-hidden .search-sticky-section{ top: 0; }
.search-center-wrap{ display:flex; flex-direction:column; align-items:center; gap:20px; }
.search-box-lg{
  position:relative; width:100%; max-width: 560px;
}
.search-box-lg input{
  width:100%; padding: 14px 20px 14px 46px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--white); font-size:1rem;
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box-lg input:focus{ outline:none; border-color: var(--ink-faint); box-shadow: 0 0 0 3px rgba(22,41,31,.06); background:#fff; }
.search-box-lg span{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:20px; height:20px; color: var(--ink-faint); display:flex; }
.search-box-lg span svg{ width:20px; height:20px; }
.search-box-lg span i{ font-size:17px; line-height:1; }
.center-tabs{ justify-content:center; }

.tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.tab{
  font-weight:500; font-size:.85rem; padding: 6px 14px; border-radius: var(--r-pill);
  background: transparent; border:1px solid var(--line); color: var(--ink-soft);
  transition: all .15s ease;
}
.tab:hover{ border-color: var(--green-500); color: var(--green-600); }
.tab.active{ background: var(--green-500); color: var(--white); border-color: var(--green-500); box-shadow: none; }

.results-meta{ color: var(--ink-soft); font-size:.92rem; margin: 22px 0 6px; }
.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 1080px){ .product-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .product-grid{ grid-template-columns: 1fr; } }

.empty-state{ text-align:center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state svg{ width:64px; height:64px; margin:0 auto 16px; color: var(--ink-faint); }
.empty-state i{ font-size:52px; line-height:1; display:inline-block; margin-bottom:16px; color: var(--ink-faint); }

/* ---------------------------------------------------------
   Modal (product detail)
   --------------------------------------------------------- */
.modal-overlay{
  position:fixed; inset:0; background: rgba(11,24,17,.6); z-index: 200;
  display:flex; align-items:center; justify-content:center; padding: 24px;
  opacity:0; pointer-events:none; transition: opacity .2s ease;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal-panel{
  background: var(--white); max-width: 1140px; width:78vw;
  max-height: 88vh; overflow-y:auto; padding: 0; position:relative;
  transform: translateY(16px) scale(.98); transition: transform .22s ease;
  box-shadow: var(--shadow-lg);
  display:grid; grid-template-columns: 1.15fr 0.85fr;
}
.modal-overlay.open .modal-panel{ transform: translateY(0) scale(1); }
.modal-close{
  position:absolute; top:18px; right:18px; width:36px; height:36px; border-radius:50%;
  background: rgba(255,255,255,.9); border:none; display:flex; align-items:center; justify-content:center; z-index:3;
  box-shadow: var(--shadow-sm);
}
.modal-close svg{ width:18px; height:18px; }
.modal-close i{ font-size:16px; line-height:1; }
.modal-content{ padding: 44px 40px 40px; order:1; }
.modal-content .product-tag{ margin-bottom:14px; }
.modal-content h3{ margin-bottom:8px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.modal-content p.desc{ color: var(--ink-soft); margin-bottom:24px; font-size:1.02rem; }
.variant-label{ font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-faint); margin-bottom:10px; }
.modal-actions{ display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.modal-photo{
  order:2; position:relative; background-size:cover; background-position:center;
  min-height: 320px;
}
.modal-photo-badge{
  position:absolute; bottom:20px; left:20px; width:52px; height:52px;
  background: rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center;
  color: var(--cat-deep, var(--green-500)); box-shadow: var(--shadow-sm);
}
.modal-photo-badge svg{ width:28px; height:28px; }
.modal-photo-badge i{ font-size:22px; line-height:1; }

@media (max-width: 880px){
  .modal-panel{ width:92vw; grid-template-columns: 1fr; max-height: 90vh; }
  .modal-photo{ order:1; min-height: 220px; }
  .modal-content{ order:2; padding: 30px 24px 28px; }
}

/* ---------------------------------------------------------
   Timeline (about page)
   --------------------------------------------------------- */
.timeline{ position:relative; padding-left: 36px; }
.timeline::before{
  content:''; position:absolute; left:7px; top:6px; bottom:6px; width:2px;
  background: repeating-linear-gradient(to bottom, var(--green-500) 0 8px, transparent 8px 16px);
}
.timeline-item{ position:relative; padding-bottom: 38px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{
  position:absolute; left:-36px; top:2px; width:16px; height:16px; border-radius:50%;
  background: var(--green-500); border: 4px solid var(--cream);
}
.timeline-year{ font-family: var(--font-display); color: var(--green-500); font-size:1.3rem; font-weight:700; margin-bottom:6px; }
.timeline-item p{ color: var(--ink-soft); max-width: 560px; margin-bottom:0; }

/* ---------------------------------------------------------
   Leadership cards
   --------------------------------------------------------- */
.lead-card{ text-align:left; display:flex; flex-direction:column; padding:0; overflow:hidden; }
.lead-photo{ width:100%; aspect-ratio: 1/1; background-size:cover; background-position:center top; }
.lead-card-body{ padding: 22px 26px 26px; display:flex; flex-direction:column; gap:10px; }
.lead-name{ color: var(--blue-700); font-size: 1.2rem; margin-bottom:4px; }
.lead-role{ color: var(--ink-soft); font-weight:600; font-size:.94rem; line-height:1.4; margin-bottom:2px; }
.lead-card p.bio{ color: var(--ink-soft); font-size:.95rem; margin-bottom:0; }

/* ---------------------------------------------------------
   Inside Faamle photo gallery (about page) - vertical masonry
   --------------------------------------------------------- */
.photo-gallery{ column-count: 4; column-gap: 16px; }
.photo-gallery-item{
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--r-md);
  overflow:hidden; position:relative;
}
.photo-gallery-item img{ display:block; width:100%; height:auto; transition: transform .35s ease; }
.photo-gallery-item:hover img{ transform: scale(1.03); }
@media (max-width: 1024px){ .photo-gallery{ column-count: 3; } }
@media (max-width: 760px){ .photo-gallery{ column-count: 2; column-gap: 12px; } .photo-gallery-item{ margin-bottom:12px; } }
@media (max-width: 480px){ .photo-gallery{ column-count: 1; } }

/* ---------------------------------------------------------
   Reveal-on-scroll
   Safety-first: elements are fully visible by default. JS adds
   .pre (hidden, offset) right before observing, then swaps to .in
   when scrolled into view. If JS never runs, nothing is hidden.
   --------------------------------------------------------- */
.reveal.pre{ opacity:0; transform: translateY(18px); }
.reveal{ transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }
html.gsap-on .reveal{ transition: none; }

/* ---------------------------------------------------------
   Misc
   --------------------------------------------------------- */
.divider-motif{ width:64px; height:32px; color: var(--green-500); margin: 0 0 20px; }
.divider-motif.center{ margin-inline:auto; }

hr.rule{ border:none; border-top:1px solid var(--line); margin: 48px 0; }

.skip-link{
  position:absolute; left:-999px; top:0; background: var(--green-600); color:#fff; padding:10px 16px; z-index:999;
}
.skip-link:focus{ left:10px; top:10px; }
