/* ==========================================================================
   FigureFirst — design tokens (brand green #3ba23b)
   ========================================================================== */
:root{
  --green:      #3BA23B;
  --green-600:  #2F8A2F;
  --green-700:  #256C25;
  --green-900:  #16301A;
  --mint-50:    #F5FBF4;
  --mint-100:   #E7F5E4;
  --mint-200:   #D3ECCE;
  --ink:        #182019;
  --ink-soft:   #5B6B5F;
  --white:      #FFFFFF;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shell-w: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 22px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5{ margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
p{ margin: 0; }
button{ font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--green); color: var(--white);
  padding: .8rem 1.2rem; z-index: 999; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{ outline: 2px solid var(--green-600); outline-offset: 3px; }

.shell{
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow{
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--green-600);
  margin: 0 0 .6rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid transparent;
}
.btn-lg{ padding: 1rem 2rem; font-size: 1rem; }
.btn-primary{ background: var(--green); color: var(--white); box-shadow: 0 10px 24px rgba(59,162,59,.28); }
.btn-primary:hover{ background: var(--green-600); transform: translateY(-2px); }
.btn-cta{ background: var(--white); color: var(--green-700); }
.btn-cta:hover{ background: var(--mint-100); transform: translateY(-2px); }
.btn-ghost{ border-color: var(--mint-200); color: var(--ink); background: var(--white); }
.btn-ghost:hover{ border-color: var(--green); color: var(--green-700); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mint-200);
}
.header-row{
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand{ display: flex; align-items: center; }
.brand-logo{ height: 42px; width: auto; }
.footer-logo{ height: 46px; width: auto; margin-bottom: 1.1rem; }

.main-nav > ul{ display: flex; align-items: center; gap: 2rem; }
.main-nav > ul > li{ position: relative; }
.main-nav > ul > li > a{
  font-family: var(--font-display);
  font-size: .93rem; font-weight: 600; padding: .4rem 0; position: relative; color: var(--ink);
}
.main-nav > ul > li > a::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--green); transition: right .25s var(--ease);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.has-children:hover > a::after{ right: 0; }

.submenu{
  position: absolute; top: 100%; left: -1rem; margin-top: .6rem;
  min-width: 260px; background: var(--white); border: 1px solid var(--mint-200);
  border-radius: var(--radius-m); padding: .5rem; box-shadow: 0 18px 40px rgba(22,48,26,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-children:hover .submenu, .has-children:focus-within .submenu{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu li a{ display: block; padding: .6rem .8rem; border-radius: var(--radius-s); font-size: .88rem; }
.submenu li a:hover{ background: var(--mint-100); color: var(--green-700); }

.header-actions{ display: flex; align-items: center; gap: 1.1rem; }
.tel-link{ font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--green-700); display: none; }
@media (min-width: 900px){ .tel-link{ display: inline; } }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px;
}
.nav-toggle span{ width: 100%; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  max-height: 0; overflow: hidden; background: var(--white); border-top: 1px solid transparent;
  transition: max-height .35s var(--ease);
}
.mobile-nav.is-open{ max-height: 640px; border-top-color: var(--mint-200); }
.mobile-nav ul{ padding: 1rem clamp(1.25rem,4vw,2.5rem) 1.5rem; }
.mobile-nav > ul > li{ border-bottom: 1px solid var(--mint-200); }
.mobile-nav > ul > li > a{ display: block; padding: .9rem 0; font-family: var(--font-display); font-weight: 600; }
.submenu-mobile{ padding-bottom: .6rem; }
.submenu-mobile a{ display: block; padding: .5rem 0 .5rem 1rem; font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 899px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--mint-50);
  background-image:
    radial-gradient(circle, var(--mint-200) 1px, transparent 1.2px),
    linear-gradient(180deg, var(--mint-50) 0%, var(--white) 78%);
  background-size: 28px 28px, 100% 100%;
  background-position: -6px -6px, 0 0;
}
.hero::before,
.hero::after{
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.hero::before{
  width: 460px; height: 460px;
  left: -160px; top: -180px;
  background: radial-gradient(circle, rgba(59,162,59,.30) 0%, rgba(59,162,59,0) 72%);
}
.hero::after{
  width: 620px; height: 620px;
  right: -220px; bottom: -260px;
  background: radial-gradient(circle, rgba(59,162,59,.20) 0%, rgba(59,162,59,0) 70%);
}
.hero-grid{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-headline{
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 1.4rem;
}
.hero-headline em{ font-style: normal; color: var(--green); }
.hero-sub{ font-size: 1.1rem; color: var(--ink-soft); max-width: 32ch; margin-bottom: 2rem; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero slider -------------------------------------------------------------- */
.hero-visual{ display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-slider{
  position: relative;
  width: 100%; max-width: 380px; aspect-ratio: 1 / 1;
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--mint-200);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(22,48,26,.18);
}
.hero-slide{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem;
  opacity: 0; visibility: hidden;
  transform: scale(1.04);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility .7s;
}
.hero-slide.is-active{ opacity: 1; visibility: visible; transform: scale(1); }
.hero-slide-orb{
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--mint-100), var(--mint-50) 55%, transparent 75%);
  z-index: 0;
  animation: hero-orb-breathe 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes hero-orb-breathe{
  0%, 100%{ transform: scale(1) rotate(0deg); }
  50%{ transform: scale(1.06) rotate(6deg); }
}

.hero-illus-stage{
  position: relative; z-index: 1;
  width: 180px; height: 156px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s;
}
.hero-slide.is-active .hero-illus-stage{ opacity: 1; transform: translateY(0) scale(1); }
.hero-illus{ width: 100%; height: 100%; overflow: visible; }

/* Illustration part animations -------------------------------------------- */
.illus-float{ animation: illus-float 3.6s ease-in-out infinite; transform-origin: center; }
@keyframes illus-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}

.illus-beam{ animation: illus-beam 1.4s ease-in-out infinite; transform-origin: top center; }
@keyframes illus-beam{
  0%, 100%{ opacity: .18; transform: scaleY(.7); }
  50%{ opacity: 1; transform: scaleY(1); }
}

.illus-twinkle{ animation: illus-twinkle 2.2s ease-in-out infinite; transform-origin: center; }
@keyframes illus-twinkle{
  0%, 100%{ opacity: .15; transform: scale(.7); }
  50%{ opacity: 1; transform: scale(1.15); }
}

.illus-needle{ animation: illus-needle-sweep 3.6s ease-in-out infinite; }
@keyframes illus-needle-sweep{
  0%, 100%{ transform: rotate(-34deg); }
  50%{ transform: rotate(34deg); }
}

.illus-trend-dot{ offset-path: path('M46 122c18-4 30-18 44-18s24 12 40 4 34-14 44-4'); animation: illus-dot-move 3.2s ease-in-out infinite; }
@keyframes illus-dot-move{
  0%{ offset-distance: 0%; }
  100%{ offset-distance: 100%; }
}

.illus-ripple{ animation: illus-ripple 2.7s ease-out infinite; transform-origin: center; opacity: 0; }
@keyframes illus-ripple{
  0%{ transform: scale(.7); opacity: .55; }
  100%{ transform: scale(1.5); opacity: 0; }
}

.hero-slide-label{
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink);
  text-align: center; padding: 0 2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease) .3s, transform .5s var(--ease) .3s;
}
.hero-slide.is-active .hero-slide-label{ opacity: 1; transform: translateY(0); }

.hero-slide-progress{
  position: relative; z-index: 1;
  width: 120px; height: 4px; border-radius: 999px; background: var(--mint-200); overflow: hidden;
}
.hero-slide-progress-bar{ display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; }
.hero-slide.is-active .hero-slide-progress-bar{ animation: hero-progress-fill 3.2s linear forwards; }
@keyframes hero-progress-fill{
  from{ width: 0%; }
  to{ width: 100%; }
}

.hero-slider-dots{ display: flex; gap: .5rem; }
.hero-slider-dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--mint-200); transition: background .25s var(--ease), transform .25s var(--ease); }
.hero-slider-dot.is-active{ background: var(--green); transform: scale(1.25); }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .hero-slider{ max-width: 300px; }
}

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head{ max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .8rem; }
.section-lede{ color: var(--ink-soft); font-size: 1.05rem; }
.section-head--light .eyebrow{ color: var(--mint-100); }
.section-head--light h2{ color: var(--white); }

/* ==========================================================================
   Services (card grid)
   ========================================================================== */
.services{ padding: clamp(3rem, 6vw, 5.5rem) 0; }
.service-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card{
  padding: 2.25rem 2rem;
  border-radius: var(--radius-l);
  background: var(--mint-50);
  border: 1px solid var(--mint-200);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.service-card:hover{
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: 0 24px 48px -18px rgba(22,48,26,.22);
}
.service-card-icon{
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius-m);
  background: var(--white); color: var(--green);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 18px -6px rgba(59,162,59,.3);
}
.service-card-icon svg{ width: 30px; height: 30px; }
.service-card h3{ font-size: 1.2rem; margin-bottom: .6rem; line-height: 1.3; }
.service-card p{ color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.5rem; }
.service-card-link{
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--green-700);
  transition: gap .25s var(--ease);
}
.service-card-link:hover{ gap: .7rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about{ padding: clamp(3rem, 6vw, 5.5rem) 0; background: var(--mint-50); }
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.about-block{ background: var(--white); border: 1px solid var(--mint-200); border-radius: var(--radius-l); padding: clamp(1.75rem, 3vw, 2.5rem); }
.about-block h2{ font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 1rem; line-height: 1.15; }
.about-block p{ color: var(--ink-soft); }
@media (max-width: 780px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Team
   ========================================================================== */
.team{ padding: clamp(3rem, 6vw, 5.5rem) 0; }
.team-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; }
.team-card{ padding: 2rem 1.75rem; border: 1px solid var(--mint-200); border-radius: var(--radius-l); background: var(--white); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.team-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(22,48,26,.2); }
.team-avatar{
  width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem;
}
.team-card h3{ font-size: 1.2rem; margin-bottom: .2rem; }
.team-role{ color: var(--green-700); font-weight: 600; font-size: .88rem; margin-bottom: .75rem; font-family: var(--font-display); }
.team-about{ color: var(--ink-soft); font-size: .95rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials{ padding: clamp(3rem, 6vw, 5.5rem) 0; background: var(--green-900); color: var(--white); }
.testi-carousel{ max-width: 760px; }
.testi-track{ position: relative; min-height: 200px; }
.testi-slide{
  margin: 0; position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateX(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.testi-slide.is-active{ opacity: 1; visibility: visible; transform: translateX(0); position: relative; }
.testi-slide blockquote{
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; margin: 0 0 1.5rem; color: var(--white);
}
.testi-slide figcaption{ color: var(--mint-100); font-weight: 700; font-family: var(--font-display); font-size: .95rem; }
.testi-controls{ display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.testi-btn{
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.testi-btn:hover{ background: var(--green); border-color: var(--green); }
.testi-dots{ display: flex; gap: .5rem; }
.testi-dot{ width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background .25s var(--ease), transform .25s var(--ease); }
.testi-dot.is-active{ background: var(--green); transform: scale(1.25); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{ padding: clamp(3rem, 6vw, 4.5rem) 0; background: linear-gradient(120deg, var(--green) 0%, var(--green-700) 100%); }
.cta-band-inner{
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band h2{ color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); max-width: 34ch; line-height: 1.15; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--mint-50); color: var(--ink); padding: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--mint-200); }
.footer-grid{
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--mint-200);
}
.footer-brand p{ color: var(--ink-soft); font-size: .93rem; margin-bottom: 1.25rem; }
.social-row{ display: flex; gap: .75rem; }
.social-row a{
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--mint-200); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--green-700); transition: background .25s var(--ease), color .25s var(--ease);
}
.social-row a:hover{ background: var(--green); color: var(--white); }
.footer-col h5{ font-family: var(--font-display); font-size: .85rem; letter-spacing: .02em; color: var(--green-700); margin-bottom: 1rem; font-weight: 700; }
.footer-col p{ color: var(--ink-soft); font-size: .93rem; margin-bottom: .5rem; }
.footer-col a:hover{ color: var(--green-700); }
.hours-list li{ display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--ink-soft); padding: .35rem 0; border-bottom: 1px dashed var(--mint-200); }

.footer-bottom{
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 0; font-size: .82rem; color: var(--ink-soft);
}
.footer-bottom a{ text-decoration: underline; text-underline-offset: 3px; }

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

/* Scroll to top ------------------------------------------------------------ */
.scroll-top{
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(22,48,26,.28);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 50;
}
.scroll-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }

/* Scroll reveal -------------------------------------------------------------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
