/* ─── TSBOX™ DESIGN SYSTEM ─── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&display=swap');

:root {
  --green:      #1A7A4A;
  --green-lt:   #22A05E;
  --green-dk:   #125534;
  --green-bg:   rgba(26,122,74,.1);
  --orange:     #E85D2B;
  --orange-lt:  #FF7342;
  --orange-bg:  rgba(232,93,43,.1);
  --sky:        #2873C4;
  --ink:        #111815;
  --ink2:       #1E2B24;
  --body:       #3D4E44;
  --muted:      #6B7D73;
  --divider:    rgba(26,122,74,.12);
  --cream:      #F7FCF9;
  --white:      #FFFFFF;
  --serif:      'Fraunces', Georgia, serif;
  --sans:       'Nunito', system-ui, sans-serif;
  --nav-h:      72px;
  --radius:     14px;
  --radius-lg:  20px;
  --section-pad: 5rem 1.5rem;
  --max-w:      1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
  overflow-x: hidden; /* Added */
  width: 100%;        /* Added */
}
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--body);
  overflow-x: hidden; /* Enforces strict clipping */
  width: 100%;        /* Keeps body strictly to viewport width */
  position: relative; /* Added for overflow stability */
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--green-lt); border-radius: 3px; }

/* ═══════════════════════════
   NAV
═══════════════════════════ */
#tsbox-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255,255,255,.98);
  border-bottom: 1.5px solid rgba(26,122,74,.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26,122,74,.06), 0 4px 24px rgba(17,24,21,.05);
  gap: 1rem;
}

/* Drawer backdrop overlay */
#nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(17,24,21,.45);
  z-index: 8800;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s;
}
#nav-backdrop.visible {
  opacity: 1;
}

/* Logo */
.nav-logo-wrap {
  display: flex; flex-direction: column; line-height: 1;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 900;
  color: var(--ink); letter-spacing: -.02em;
}
.nav-logo-name span { color: var(--green); }
.nav-logo-sub {
  font-size: .58rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--green); margin-top: .1rem;
}

/* Desktop links */
.nav-links {
  display: flex; align-items: center;
  gap: .1rem; list-style: none; flex: 1;
  justify-content: center;
}
.nav-links li { position: relative; }
.nav-links a,
.nav-drop-btn {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .8rem;
  font-family: var(--sans);
  font-size: .88rem; font-weight: 800;
  color: var(--body);
  border: none; background: none; cursor: pointer;
  border-radius: 8px; text-decoration: none;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-drop-btn:hover,
.nav-links a.active {
  color: var(--green); background: var(--green-bg);
}
.chevron {
  font-size: .6rem; opacity: .55;
  transition: transform .2s;
}
.has-dropdown.drop-open .chevron { transform: rotate(180deg); }

/* Desktop dropdowns */
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff;
  border: 2px solid var(--divider);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(17,24,21,.13);
  min-width: 210px; padding: .5rem; z-index: 9100;
  flex-direction: column;
}
.has-dropdown.drop-open .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: .65rem 1rem;
  font-size: .87rem; font-weight: 700;
  color: var(--body); border-radius: 8px;
  display: block; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--green-bg); color: var(--green); }

/* Nav right */
.nav-right {
  display: flex; align-items: center; gap: .8rem; flex-shrink: 0;
}
.nav-cta {
  background: var(--orange); color: #fff;
  padding: .65rem 1.3rem; border-radius: 100px;
  font-size: .9rem; font-weight: 800;
  letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(232,93,43,.3);
  transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-cta:hover { background: var(--orange-lt); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px;
  cursor: pointer; background: none; border: none;
  padding: .4rem; border-radius: 10px;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger:hover,
.nav-hamburger:focus { background: var(--green-bg); outline: none; }
.nav-hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--ink); border-radius: 2px;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── Mobile Drawer ─── */
.mobile-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); right: 0;
  height: calc(100vh - var(--nav-h));
  width: min(320px, 88vw);
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1rem 5rem;
  gap: 2px;
  z-index: 8900;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.16,1,.3,1), visibility .32s;
  box-shadow: -8px 0 40px rgba(17,24,21,.12);
  border-left: 1.5px solid rgba(26,122,74,.08);
}
.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Plain links in drawer */
.mobile-drawer .mob-link,
.mobile-drawer > a:not(.mob-cta) {
  display: flex; align-items: center;
  padding: .9rem 1rem;
  font-size: 1.05rem; font-weight: 700; color: var(--body);
  border-radius: 12px;
  min-height: 52px;
  transition: background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-drawer .mob-link:hover,
.mobile-drawer .mob-link:active,
.mobile-drawer > a:not(.mob-cta):hover { background: var(--green-bg); color: var(--green); }

/* ─── Accordion sections ─── */
.mob-accordion {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color .2s;
}
.mob-accordion.mob-acc-open {
  border-color: var(--divider);
  background: var(--cream);
}

.mob-acc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem;
  font-family: var(--sans);
  font-size: 1.05rem; font-weight: 800; color: var(--body);
  background: none; border: none; cursor: pointer;
  border-radius: 12px;
  min-height: 52px;
  transition: background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.mob-acc-btn:hover,
.mob-acc-btn:active { background: var(--green-bg); color: var(--green); }
.mob-accordion.mob-acc-open .mob-acc-btn {
  color: var(--green);
  background: var(--green-bg);
  border-radius: 12px 12px 0 0;
}

.mob-acc-chevron {
  font-size: .65rem; opacity: .5;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
  flex-shrink: 0;
}
.mob-accordion.mob-acc-open .mob-acc-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Accordion panel */
.mob-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
}
.mob-accordion.mob-acc-open .mob-acc-panel {
  max-height: 500px;
}
.mob-acc-panel a {
  display: flex; align-items: center;
  padding: .75rem 1.2rem .75rem 1.5rem;
  font-size: .98rem; font-weight: 600; color: var(--muted);
  min-height: 48px;
  transition: background .15s, color .15s;
  border-top: 1px solid var(--divider);
  -webkit-tap-highlight-color: transparent;
}
.mob-acc-panel a:hover,
.mob-acc-panel a:active {
  background: rgba(26,122,74,.06);
  color: var(--green);
}

/* CTA button in drawer */
.mob-cta {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 1rem !important;
  background: var(--orange) !important;
  color: #fff !important;
  padding: 1.1rem 1.5rem !important;
  border-radius: 100px !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  min-height: 56px !important;
  box-shadow: 0 6px 20px rgba(232,93,43,.3) !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ═══════════════════════════
   LAYOUT
═══════════════════════════ */
section { padding: var(--section-pad); }
.cont { max-width: var(--max-w); margin: 0 auto; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-green { background: var(--green); }
.divider { height: 2px; background: var(--divider); }

.sec-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); background: var(--green-bg);
  padding: .35rem .9rem; border-radius: 100px;
  margin-bottom: 1rem;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.08; color: var(--ink);
  font-weight: 900; letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.sec-body {
  font-size: 1.05rem; color: var(--body);
  line-height: 1.8; font-weight: 500;
  max-width: 580px;
}

/* ═══════════════════════════
   BUTTONS
═══════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange); color: #fff;
  padding: 1rem 2.2rem; border-radius: 100px;
  font-size: 1.05rem; font-weight: 800;
  min-height: 52px;
  box-shadow: 0 8px 28px rgba(232,93,43,.32);
  transition: all .25s cubic-bezier(.16,1,.3,1);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(232,93,43,.42); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green); color: #fff;
  padding: 1rem 2.2rem; border-radius: 100px;
  font-size: 1.05rem; font-weight: 800;
  min-height: 52px;
  box-shadow: 0 8px 28px rgba(26,122,74,.32);
  transition: all .25s cubic-bezier(.16,1,.3,1);
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover { background: var(--green-lt); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2.5px solid var(--green); color: var(--green);
  padding: .95rem 2rem; border-radius: 100px;
  font-size: 1.05rem; font-weight: 700; background: transparent;
  min-height: 52px;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover { background: var(--green); color: #fff; }

/* ═══════════════════════════
   PAGE HERO (subpages)
═══════════════════════════ */
.page-hero {
  padding: 4rem 1.5rem 4rem;
  background: linear-gradient(145deg, #E8F7EE 0%, #D1F0DF 50%, #BBEAD0 100%);
  position: relative; overflow: hidden;
}
.page-hero-inner { max-width: var(--max-w); position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: 1.2rem;
}
.page-hero-sub {
  font-size: 1.15rem; color: var(--body);
  max-width: 540px; line-height: 1.75;
  font-weight: 600; margin-bottom: 2rem;
}
.page-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════════════════
   CTA STRIP
═══════════════════════════ */
.cta-strip {
  background: var(--green);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  color: #fff; font-weight: 900;
  margin-bottom: .8rem; letter-spacing: -.02em;
}
.cta-strip p {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 500px; margin: 0 auto 2rem;
  font-weight: 500; line-height: 1.7;
}

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer {
  background: var(--ink2);
  padding: 3.5rem 1.5rem 2rem;
  border-top: 3px solid var(--green);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.f-logo { font-family: var(--serif); font-size: 2rem; font-weight: 900; color: #fff; }
.f-logo span { color: var(--orange); }
.f-tagline {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin: .5rem 0 1.2rem;
}
.f-addr { font-size: .9rem; color: rgba(255,255,255,.5); line-height: 2; }
.f-addr a { color: var(--green-lt); }
.f-col h4 {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.35); font-weight: 800; margin-bottom: 1.2rem;
}
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.f-col ul a {
  font-size: .95rem; color: rgba(255,255,255,.55); font-weight: 600;
  transition: color .2s;
  min-height: 44px; display: flex; align-items: center;
}
.f-col ul a:hover { color: #fff; }
.f-bottom {
  max-width: var(--max-w); margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.f-copy { font-size: .82rem; color: rgba(255,255,255,.28); font-weight: 600; }
.f-legal { display: flex; gap: 1.5rem; }
.f-legal a { font-size: .82rem; color: rgba(255,255,255,.28); font-weight: 600; }
.f-legal a:hover { color: rgba(255,255,255,.6); }

/* ═══════════════════════════
   ANIMATIONS
═══════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.revealed { opacity: 1 !important; transform: translateY(0) !important; }

/* ═══════════════════════════
   TABLET (≤1024px)
═══════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  #tsbox-nav { padding: 0 1.5rem; }
  .nav-links a, .nav-drop-btn { font-size: .82rem; padding: .5rem .65rem; }
}

/* ═══════════════════════════
   MOBILE (≤768px)
═══════════════════════════ */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 1.2rem; --nav-h: 64px; }

  /* Nav */
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }
  /* Keep CTA visible on mobile — it's the #1 conversion action */
  .nav-cta {
    display: inline-flex !important;
    font-size: .8rem;
    padding: .55rem 1rem;
    min-height: 38px;
  }
  #tsbox-nav { padding: 0 1rem; gap: .5rem; }

  /* Page hero */
  .page-hero { padding: 3rem 1.2rem 3rem; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .page-hero-sub { font-size: 1.05rem; }
  .page-hero-btns { flex-direction: column; gap: .85rem; }
  .page-hero-btns .btn-primary,
  .page-hero-btns .btn-outline { justify-content: center; width: 100%; }

  /* CTA strip */
  .cta-strip { padding: 3.5rem 1.2rem; }
  .cta-strip > div[style*="display:flex"] { flex-direction: column; align-items: center; }
  .cta-strip a { width: 100%; justify-content: center; text-align: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .f-bottom { flex-direction: column; align-items: flex-start; }

  .sec-title { font-size: clamp(1.9rem, 6vw, 2.6rem); }
  .sec-body { font-size: 1.05rem; line-height: 1.8; }
}

/* ═══════════════════════════
   SMALL MOBILE (≤480px)
═══════════════════════════ */
@media (max-width: 480px) {
  :root { --section-pad: 2.8rem 1rem; }
  .sec-title { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .btn-primary, .btn-secondary, .btn-outline {
    width: 100%; justify-content: center;
    padding: 1rem 1.5rem; font-size: 1rem;
    min-height: 52px;
  }
}