/* =========================================================================
   Solar Sage — unofficial redesign concept by Abdullah Al Masud
   Tokens map 1:1 to Elementor Global Colors / Global Fonts (ELEMENTOR-NOTES.md).
   Breakpoints: desktop ≥1025px · tablet 768–1024px · mobile ≤767px.
   ========================================================================= */

/* ---------- Fonts (self-hosted variable WOFF2, OFL) ---------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --c-primary: #00803F;
  --c-primary-dark: #006633;
  --c-primary-soft: #E6F2E9;
  --c-secondary: #0F2E1E;
  --c-secondary-deep: #0A2015;
  --c-text: #33433A;
  --c-accent: #FF7A00;
  --c-accent-dark: #F06E00;
  --c-accent-soft: #FFF1E3;
  --c-accent-ink: #7A3A00;
  --c-accent-light: #FFB566;
  --c-muted: #5B6B61;
  --c-surface: #F4F8F2;
  --c-border: #DFE7DC;
  --c-input: #C3D1C0;
  --c-white: #FFFFFF;
  --c-error: #B42318;
  --c-success-bg: #E7F4EA;

  --font-head: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;
  --section-y: 96px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 88px;
  --header-h-scrolled: 72px;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 46, 30, 0.06), 0 8px 24px rgba(15, 46, 30, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 46, 30, 0.06), 0 12px 32px rgba(15, 46, 30, 0.12);
  --shadow-float: 0 12px 40px rgba(15, 46, 30, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Scrollbars (light) — thumb ≥3:1 against the track */
  --sb-track: #EAF1E8;
  --sb-thumb: #5B8C69;
  --sb-thumb-hover: #00803F;
  --sb-thumb-active: #006633;
}

@media (max-width: 1024px) {
  :root { --section-y: 64px; }
}
@media (max-width: 767px) {
  :root { --section-y: 48px; --gutter: 16px; --header-h: 72px; --header-h-scrolled: 64px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-secondary); line-height: 1.15; margin: 0 0 var(--s-2); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; }
h3 { font-size: clamp(20px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 var(--s-2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--c-primary); color: var(--c-white); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 400;
  background: var(--c-secondary); color: var(--c-white); padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--c-white); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Scrollbars (native, styled; demo extra) ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb);
  border: 3px solid var(--sb-track);
  border-radius: 999px;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--sb-thumb-active); }
::-webkit-scrollbar-corner { background: var(--sb-track); }
.scroll-area {
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.scroll-area::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-area::-webkit-scrollbar-thumb { border-width: 2px; }
/* Dark variant for dark surfaces */
.scroll-dark {
  --sb-track: #12301F;
  --sb-thumb: #6FA383;
  --sb-thumb-hover: #9CCBAA;
  --sb-thumb-active: #C2E3CB;
}

/* ---------- Lenis (recommended base CSS) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
html.is-locked { overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 840px; }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--c-surface); }
.section--tight { padding-top: calc(var(--section-y) * 0.67); }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--c-muted); font-size: 18px; }
.section-head .caption { font-size: 14px; }
.caption { color: var(--c-muted); font-size: 14px; }

.grid { display: grid; gap: var(--s-3); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.split__body > .btn { margin-top: var(--s-3); }
.split--faq { grid-template-columns: 5fr 7fr; align-items: start; }
.split--faq .split__body .btn { margin-top: var(--s-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-2);
  font: 600 14px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-primary);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--c-accent); }
.section-head--center .eyebrow { justify-content: center; }
.eyebrow--light { color: #FFD7A8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-sm);
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-dark); color: var(--c-white); box-shadow: 0 8px 20px rgba(0, 128, 63, 0.25); }
.btn--accent { background: var(--c-accent); color: var(--c-secondary); }
.btn--accent:hover { background: var(--c-accent-dark); color: var(--c-secondary); box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3); }
.btn--light { background: var(--c-white); color: var(--c-secondary); }
.btn--light:hover { background: var(--c-surface); color: var(--c-secondary); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: var(--c-white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.6); color: var(--c-white); background: transparent; }
.btn--ghost-light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-secondary); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.btn-group--center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-primary); text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--c-primary-dark); text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-3);
  padding: 6px 14px; border-radius: var(--radius-pill); background: var(--c-accent); color: var(--c-secondary);
  font: 700 14px/1.2 var(--font-body); letter-spacing: 0.02em;
}
.badge .icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-color: var(--c-border);
  box-shadow: 0 6px 24px rgba(15, 46, 30, 0.08);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); transition: height 0.25s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: var(--header-h-scrolled); }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { height: 66px; width: auto; transition: height 0.25s var(--ease); }
.site-header.is-scrolled .site-header__logo img { height: 54px; }
.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.2 var(--font-body); color: var(--c-secondary); text-decoration: none; border-radius: var(--radius-sm);
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"], [data-active="true"] > .nav-link { color: var(--c-primary); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, [data-active="true"] > .nav-link::after { transform: scaleX(1); }
.nav-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.site-header__cta { flex: none; }

/* Dropdown (desktop) */
.dropdown { position: relative; }
.dropdown__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 260px;
  list-style: none; padding: 8px; background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: 12px; box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.dropdown__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dropdown.is-open > .dropdown__menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
}
.no-js .dropdown:hover > .dropdown__menu, .no-js .dropdown:focus-within > .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--c-secondary); text-decoration: none; font-weight: 500; font-size: 15px;
}
.dropdown__item .icon { width: 20px; height: 20px; color: var(--c-primary); }
.dropdown__item:hover, .dropdown__item:focus-visible { background: var(--c-surface); color: var(--c-primary); }
.dropdown__item[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* Menu toggle (hamburger → close) */
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-white); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle__bars { position: relative; width: 22px; height: 16px; display: block; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--c-secondary);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 7px; }
.menu-toggle__bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Mobile menu (slide-in panel) */
.mobile-menu { position: fixed; inset: 0; z-index: 250; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(10, 32, 21, 0.55); opacity: 0; transition: opacity 0.3s var(--ease); }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--c-white); box-shadow: var(--shadow-float);
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.mobile-menu__title { margin: 0; font: 700 18px/1 var(--font-head); color: var(--c-secondary); }
.mobile-menu__nav { padding: 12px 12px 0; }
.mobile-menu__nav > ul { list-style: none; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 12px; border: 0; background: none; text-align: left; cursor: pointer;
  font: 600 18px/1.3 var(--font-head); color: var(--c-secondary); text-decoration: none; border-radius: var(--radius-sm);
}
.mobile-link:hover, .mobile-link[aria-current="page"], [data-active="true"] > .mobile-link { color: var(--c-primary); background: var(--c-surface); }
.mobile-link .icon { width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.dropdown--mobile .dropdown__menu {
  position: static; display: none; min-width: 0; margin: 0 0 8px; padding: 4px 0 4px 12px;
  border: 0; border-left: 2px solid var(--c-border); border-radius: 0; box-shadow: none;
  opacity: 1; visibility: visible; transform: none; transition: none; margin-left: 12px;
}
.dropdown--mobile .dropdown__menu::before { display: none; }
.dropdown--mobile.is-open > .dropdown__menu { display: block; animation: fade-in 0.25s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu__foot { margin-top: auto; padding: 24px 24px 32px; border-top: 1px solid var(--c-border); background: var(--c-surface); }
.mobile-menu__label { margin: 20px 0 8px; font-weight: 600; color: var(--c-secondary); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer; color: var(--c-secondary);
}
.icon-btn:hover { background: var(--c-surface); }
.icon-btn--light { color: var(--c-white); }
.icon-btn--light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Icon lists ---------- */
.icon-list { list-style: none; display: grid; gap: 12px; margin: var(--s-3) 0 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 12px; }
.icon-list .icon { width: 22px; height: 22px; color: var(--c-primary); margin-top: 2px; }
.icon-list--compact { gap: 8px; margin-top: 8px; }
.icon-list--compact a { color: var(--c-secondary); font-weight: 500; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; min-height: min(760px, 92vh);
  padding: 112px 0 152px; color: var(--c-white); overflow: hidden; isolation: isolate;
}
.hero__media, .page-hero__media { position: absolute; inset: -32px 0; z-index: -1; }
.hero__media img, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after, .page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 32, 21, 0.92) 0%, rgba(10, 32, 21, 0.78) 42%, rgba(10, 32, 21, 0.25) 100%);
}
.hero__content { max-width: 660px; }
.hero h1 { color: var(--c-white); font-size: clamp(38px, 5vw, 62px); margin-bottom: var(--s-3); }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: rgba(255, 255, 255, 0.9); max-width: 56ch; margin-bottom: var(--s-4); }
.hero__ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: var(--s-4); font-weight: 500; font-size: 15px; }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks .icon { width: 20px; height: 20px; color: var(--c-accent-light); }

/* Stats bar */
.stats-section { position: relative; z-index: 2; margin-top: -72px; }
.stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: var(--s-4) var(--s-2);
}
.stat { text-align: center; padding: 8px 16px; }
.stat + .stat { border-left: 1px solid var(--c-border); }
.stat__value { margin: 0 0 4px; font: 700 clamp(30px, 3vw, 40px)/1.1 var(--font-head); color: var(--c-primary); font-variant-numeric: tabular-nums; }
.stat__label { margin: 0; color: var(--c-muted); font-size: 15px; line-height: 1.4; }
.stats--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: none; border: 1px solid var(--c-border); margin-top: var(--s-4); padding: var(--s-3) 0; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; display: flex; align-items: center; min-height: 460px; padding: 96px 0;
  color: var(--c-white); overflow: hidden; isolation: isolate;
}
.page-hero h1 { color: var(--c-white); max-width: 18ch; }
.page-hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: rgba(255, 255, 255, 0.9); max-width: 60ch; margin-bottom: var(--s-4); }
.page-hero__lead:last-child { margin-bottom: 0; }
.page-hero--compact { min-height: 0; padding: 72px 0 56px; color: var(--c-text); background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.page-hero--compact h1 { color: var(--c-secondary); }
.page-hero--compact .page-hero__lead { color: var(--c-muted); }
.page-hero--offer { min-height: 540px; }

/* ---------- Icon boxes & cards ---------- */
.icon-box h3 { margin-top: 0; }
.icon-box p { color: var(--c-muted); font-size: 16px; }
.icon-box__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary);
}
.icon-box__icon .icon { width: 26px; height: 26px; }
.section--surface .icon-box:not(.icon-box--card) .icon-box__icon { background: var(--c-white); }
.icon-box__illustration { width: 72px; height: 72px; margin-bottom: 20px; }
.icon-box--card, .card, .image-card, .blog-card, .testimonial, .step, .team-card {
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.icon-box--card { padding: var(--s-4); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.icon-box--card:hover, .image-card:hover, .blog-card:hover, .team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.icon-box--large p { font-size: 17px; }
.card { padding: var(--s-5); }

.image-card, .blog-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.image-card__media, .blog-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-surface); }
.image-card__media img, .blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.image-card:hover img, .blog-card:hover img { transform: scale(1.04); }
.image-card__body, .blog-card__body { padding: 28px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.image-card__body p { color: var(--c-muted); font-size: 16px; }
.image-card__body .text-link { margin-top: auto; }

.blog-card__meta { color: var(--c-muted); font-size: 14px; margin-bottom: 8px; }
.blog-card__body > p:not(.blog-card__meta):not(.blog-card__author) { color: var(--c-muted); font-size: 16px; }
.blog-card__author { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--c-secondary); }
.blog-card__author .icon { width: 18px; height: 18px; color: var(--c-primary); }

/* Steps */
.steps { list-style: none; counter-reset: none; }
.step { position: relative; padding: var(--s-4); }
.step__num { position: absolute; top: 20px; right: 24px; font: 800 36px/1 var(--font-head); color: #DCE9DE; }
.step__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%; background: var(--c-secondary); color: var(--c-accent-light); }
.step__icon .icon { width: 24px; height: 24px; }
.step p { color: var(--c-muted); font-size: 16px; }

/* Testimonials */
.testimonial { margin: 0; padding: var(--s-4); display: flex; flex-direction: column; gap: 20px; }
.stars { display: inline-flex; gap: 2px; color: var(--c-accent); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; }
.testimonial blockquote { margin: 0; font-size: 17px; color: var(--c-text); flex: 1; }
.testimonial figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.testimonial figcaption .avatar { grid-row: span 2; }
.testimonial__who { font-style: normal; font-weight: 700; color: var(--c-secondary); line-height: 1.3; }
.testimonial__role { margin: 0; font-size: 14px; color: var(--c-muted); line-height: 1.3; }
.avatar {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white); font: 700 15px/1 var(--font-head);
}
.avatar::before { content: attr(data-initials); }
.avatar--lg { width: 80px; height: 80px; font-size: 26px; margin: 0 auto 20px; }

.team-card { padding: var(--s-5) var(--s-4); text-align: center; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.team-card h3 { margin-bottom: 4px; }
.team-card__role { color: var(--c-primary); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.team-card p:last-child { color: var(--c-muted); font-size: 16px; }

/* Gallery */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.gallery li { overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--c-surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery li:hover img { transform: scale(1.04); }

/* Accordion */
.accordion { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 4px var(--s-4); box-shadow: var(--shadow-card); }
.accordion__item + .accordion__item { border-top: 1px solid var(--c-border); }
.accordion__heading { margin: 0; font-size: inherit; }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 22px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 18px/1.4 var(--font-head); color: var(--c-secondary);
}
.accordion__trigger:hover { color: var(--c-primary); }
.accordion__trigger .icon { width: 22px; height: 22px; color: var(--c-primary); transition: transform 0.3s var(--ease); }
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.3s var(--ease); }
.accordion__panel[data-collapsed] { grid-template-rows: 0fr; }
.accordion__content { overflow: hidden; }
.accordion__content p { padding-bottom: 22px; color: var(--c-muted); max-width: 68ch; }
.visually-left { margin-bottom: var(--s-4); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; padding-block: var(--s-10); color: rgba(255, 255, 255, 0.88);
  background: radial-gradient(circle at 88% 12%, rgba(255, 122, 0, 0.22), transparent 38%), var(--c-secondary);
}
.cta-band__inner { text-align: center; max-width: 760px; }
.cta-band h2 { color: var(--c-white); }
.cta-band p { font-size: 18px; margin-bottom: var(--s-4); }

/* "Like this redesign?" pitch */
.section--pitch { background: var(--c-surface); border-top: 4px solid var(--c-accent); }
.pitch { display: grid; grid-template-columns: 3fr 2fr; gap: var(--s-6); align-items: center; }
.pitch__body p:last-child { color: var(--c-muted); font-size: 18px; max-width: 58ch; }
.pitch__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }

/* ---------- Forms ---------- */
.form-notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: var(--s-3);
  border-radius: var(--radius-sm); background: var(--c-accent-soft); color: var(--c-accent-ink); font-size: 15px; line-height: 1.5;
}
.form-notice .icon { width: 20px; height: 20px; color: var(--c-accent-dark); margin-top: 1px; }
.form-notice a { color: inherit; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field__label { font-weight: 600; font-size: 15px; color: var(--c-secondary); }
.field__help { margin: 0; font-size: 14px; color: var(--c-muted); }
.field__error { margin: 0; font-size: 14px; font-weight: 500; color: var(--c-error); }
.input {
  width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid var(--c-input); border-radius: var(--radius-sm);
  background: var(--c-white); color: var(--c-text); font: 400 16px/1.4 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: #7C8A80; }
.input:hover { border-color: #9DB39A; }
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0, 128, 63, 0.2); }
.input[aria-invalid="true"], .select__trigger[aria-invalid="true"] { border-color: var(--c-error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); }
.input:disabled { background: var(--c-surface); cursor: not-allowed; }
.input--textarea { height: auto; min-height: 140px; padding: 12px 16px; resize: vertical; }
.input-affix { position: relative; }
.input-affix__text { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-weight: 600; }
.input-affix .input { padding-left: 34px; }
.form-success {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px;
  border: 1px solid #B9DEC3; border-radius: var(--radius-sm); background: var(--c-success-bg); color: #0F5C2E;
}
.form-success .icon { width: 22px; height: 22px; color: var(--c-primary); }
.form-success a { color: inherit; font-weight: 600; }

/* Custom select (listbox) */
.select { position: relative; }
.select__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 50px;
  padding: 0 14px 0 16px; border: 1.5px solid var(--c-input); border-radius: var(--radius-sm); background: var(--c-white);
  font: 400 16px/1.4 var(--font-body); color: var(--c-text); text-align: left; cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.select__trigger:hover { border-color: #9DB39A; }
.select__trigger:focus-visible, .select.is-open .select__trigger { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0, 128, 63, 0.2); }
.select__trigger .icon { width: 20px; height: 20px; color: var(--c-muted); transition: transform 0.2s var(--ease); }
.select.is-open .select__trigger .icon { transform: rotate(180deg); }
.select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__value.is-placeholder { color: #7C8A80; }
.select__list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 232px; overflow-y: auto;
  list-style: none; padding: 6px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.select.is-open .select__list { opacity: 1; transform: none; }
.select__list:focus { outline: none; }
.select__option { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.select__option:hover, .select__option.is-active { background: var(--c-surface); color: var(--c-primary-dark); }
.select__option[aria-selected="true"] { font-weight: 600; color: var(--c-primary); }
.select__option[aria-selected="true"]::after { content: ""; width: 8px; height: 14px; margin-right: 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }

/* Calculator */
.calc { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-4); align-items: start; }
.calc__form h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: var(--s-3); }
.card--dark { background: var(--c-secondary); color: rgba(255, 255, 255, 0.85); border-color: var(--c-secondary); }
.card--dark h3 { color: var(--c-white); }
.calc__status { font-size: 15px; }
.calc__figures { display: grid; gap: 16px; margin: var(--s-3) 0; }
.calc__figure { padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.calc__figure dt { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.calc__figure dd { margin: 4px 0 0; font: 700 30px/1.15 var(--font-head); color: var(--c-white); font-variant-numeric: tabular-nums; }
.calc__note { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-bottom: var(--s-3); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-6); align-items: start; }
.contact-info > p { color: var(--c-muted); }
.contact-list { list-style: none; display: grid; gap: 20px; margin: var(--s-3) 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list p { margin: 0; }
.contact-list a { color: var(--c-secondary); font-weight: 500; }
.contact-list__icon { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); }
.contact-list__label { font-weight: 700; color: var(--c-secondary); font-size: 15px; }
.map-placeholder { margin: var(--s-4) 0 0; }
.map-placeholder img { width: 100%; border-radius: var(--radius); border: 1px solid var(--c-border); }
.map-placeholder figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.contact-form-card h2 { font-size: clamp(24px, 2.4vw, 30px); }

/* 404 */
.error-page { text-align: center; padding-block: var(--s-10) var(--s-12); }
.error-page__code { margin: 0; font: 800 clamp(112px, 18vw, 200px)/0.9 var(--font-head); color: var(--c-primary); letter-spacing: -0.04em; }
.error-page .eyebrow { justify-content: center; margin-top: var(--s-3); }
.error-page__lead { color: var(--c-muted); font-size: 18px; max-width: 52ch; margin-inline: auto; }
.error-page__path { margin: var(--s-3) auto; max-width: 560px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--c-surface); border: 1px dashed var(--c-border); }
.error-page__path p { margin: 0; }
.error-page__path-label { font-size: 13px; color: var(--c-muted); }
.error-page__path code { word-break: break-all; color: var(--c-secondary); }
.error-page .btn-group { margin-top: var(--s-4); }
.error-page__links { margin-top: var(--s-8); }
.error-page__links h2 { font-size: 22px; }
.error-page__links ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: var(--s-3); }
.error-page__links a {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: 12px;
  color: var(--c-secondary); font-weight: 600; text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.error-page__links a:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-card); color: var(--c-primary); }
.error-page__links .icon { color: var(--c-primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-secondary); color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: var(--s-6); padding-block: var(--s-10) var(--s-6); }
.site-footer__logo { display: inline-block; padding: 12px 18px; margin-bottom: var(--s-3); background: var(--c-white); border-radius: var(--radius); }
.site-footer__logo img { height: 76px; width: auto; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__heading { margin-bottom: var(--s-2); font: 700 16px/1.3 var(--font-head); color: var(--c-white); letter-spacing: 0; }
.site-footer__links { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; }
.icon-list--footer { margin-top: 0; }
.icon-list--footer .icon { color: var(--c-accent-light); width: 20px; height: 20px; }
.social { list-style: none; display: flex; gap: 10px; margin-top: var(--s-3); }
.social a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22); color: var(--c-white); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { background: var(--c-primary); border-color: var(--c-primary); }
.social .icon { width: 18px; height: 18px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: var(--s-3); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.7);
}
.site-footer__bottom p { margin: 0; }

/* Concept credit strip (pitch element, every page) */
.concept-credit { background: var(--c-secondary-deep); color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.concept-credit__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
.concept-credit p { margin: 0; }
.concept-credit strong { color: var(--c-white); font-weight: 600; }
.concept-credit__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .concept-credit a { color: var(--c-accent-light); text-decoration: underline; }
.site-footer .concept-credit a:hover { color: var(--c-white); }

/* ---------- Demo extras ---------- */
/* Scroll progress (only shown once GSAP drives it) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: 3px; pointer-events: none; display: none; }
.has-progress .scroll-progress { display: block; }
.scroll-progress__bar { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left center; }

/* Preloader (first load only) */
.preloader { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; background: var(--c-white); }
.show-preloader .preloader { display: grid; animation: preloader-failsafe 0.4s ease 4s forwards; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__logo { width: 150px; height: auto; }
.preloader__track { display: block; width: 160px; height: 3px; border-radius: 3px; background: var(--c-border); overflow: hidden; }
.preloader__bar { display: block; width: 100%; height: 100%; background: var(--c-primary); transform: scaleX(0); transform-origin: left center; }
.no-gsap .preloader__logo { animation: fade-in 0.5s ease both; }
.no-gsap .preloader__bar { transition: transform 1s var(--ease); }
.no-gsap .preloader.is-loading .preloader__bar { transform: scaleX(1); }
.preloader.is-leaving { opacity: 0; transition: opacity 0.35s ease; }

/* Demo notice popup (bottom-left) */
.demo-notice {
  position: fixed; left: 24px; bottom: 24px; z-index: 150; width: min(360px, calc(100vw - 120px));
  padding: 20px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(16px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.demo-notice.is-visible { opacity: 1; transform: none; }
.demo-notice__title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 700 16px/1.3 var(--font-head); color: var(--c-secondary); }
.demo-notice__title .icon { color: var(--c-accent); width: 20px; height: 20px; }
.demo-notice__text { font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
.demo-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Chatbot (bottom-right) */
.chatbot-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 160; width: 60px; height: 60px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-primary); color: var(--c-white); cursor: pointer; box-shadow: var(--shadow-float);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chatbot-launcher:hover { background: var(--c-primary-dark); transform: translateY(-2px); }
.chatbot-launcher .icon { width: 26px; height: 26px; }
.chatbot-launcher__close { display: none; }
.chatbot-launcher[aria-expanded="true"] .chatbot-launcher__open { display: none; }
.chatbot-launcher[aria-expanded="true"] .chatbot-launcher__close { display: block; }
.chatbot-launcher__badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: grid; place-items: center; background: var(--c-accent); color: var(--c-secondary); font: 700 12px/1 var(--font-body);
  border: 2px solid var(--c-white);
}
.chatbot-window {
  position: fixed; right: 24px; bottom: 100px; z-index: 160; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden; background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: 20px; box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(16px) scale(0.98); transform-origin: bottom right;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.chatbot-window.is-open { opacity: 1; transform: none; }
.chatbot-window__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--c-secondary); color: var(--c-white); }
.chatbot-window__avatar { width: 40px; height: 40px; padding: 5px; border-radius: 50%; background: var(--c-white); object-fit: contain; }
.chatbot-window__heading { flex: 1; min-width: 0; }
.chatbot-window__title { margin: 0; font: 700 16px/1.2 var(--font-head); color: var(--c-white); }
.chatbot-window__badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--c-accent-soft); color: var(--c-accent-ink); font-size: 12px; font-weight: 600; }
.chatbot-window__messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FBFCFA; }
.chat-msg { max-width: 86%; padding: 10px 14px; font-size: 15px; line-height: 1.5; border-radius: 14px; overflow-wrap: anywhere; }
.chat-msg--bot { align-self: flex-start; background: var(--c-surface); color: var(--c-text); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--c-primary); color: var(--c-white); border-bottom-right-radius: 4px; }
.chat-msg a { color: inherit; font-weight: 600; }
.chatbot-window__typing { padding: 0 16px 8px; background: #FBFCFA; }
.typing-dots { display: inline-flex; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--c-surface); }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--c-muted); animation: typing 1s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chatbot-window__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--c-border); }
.chip {
  padding: 6px 12px; border: 1px solid #BFD8C6; border-radius: var(--radius-pill); background: var(--c-white);
  color: var(--c-primary-dark); font: 600 13px/1.2 var(--font-body); cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { background: var(--c-primary-soft); border-color: var(--c-primary); }
.chatbot-window__form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-border); }
.chatbot-window__form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--c-input); border-radius: var(--radius-pill);
  font: 400 15px/1.4 var(--font-body); color: var(--c-text);
}
.chatbot-window__form input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0, 128, 63, 0.2); }
.chatbot-window__send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-primary); color: var(--c-white); cursor: pointer; }
.chatbot-window__send:hover { background: var(--c-primary-dark); }
.chatbot-window__send .icon { width: 20px; height: 20px; }
.chatbot-window__note { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--c-muted); text-align: center; }

/* ---------- Animation states (progressive enhancement) ---------- */
html.js:not(.anim-fallback):not(.anim-off) [data-animate] { opacity: 0; }
.anim-fallback [data-animate], .anim-off [data-animate] { opacity: 1 !important; transform: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .site-header__cta { margin-left: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: var(--s-5); }
  .calc, .contact-layout { gap: var(--s-4); }
  .card { padding: var(--s-4); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; }
  .stats--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--inline .stat:nth-child(2) { border-left: 1px solid var(--c-border); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pitch { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .hero__media::after, .page-hero__media::after { background: linear-gradient(90deg, rgba(10, 32, 21, 0.9) 0%, rgba(10, 32, 21, 0.72) 60%, rgba(10, 32, 21, 0.45) 100%); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-header__cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .site-header__logo img { height: 56px; }
  .site-header.is-scrolled .site-header__logo img { height: 48px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .split, .split--faq, .calc, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .split__media { order: -1; }
  .hero { min-height: 0; padding: 72px 0 128px; }
  .hero__media::after, .page-hero__media::after { background: rgba(10, 32, 21, 0.78); }
  .hero .btn-group .btn, .page-hero .btn-group .btn { width: 100%; }
  .page-hero { min-height: 0; padding: 72px 0; }
  .page-hero--compact { padding: 48px 0 40px; }
  .stats { padding: 20px 8px; }
  .stat { padding: 8px; }
  .stat__label { font-size: 14px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .card { padding: var(--s-3); }
  .accordion { padding: 0 var(--s-3); }
  .accordion__trigger { font-size: 17px; padding: 18px 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding-top: var(--s-8); }
  .error-page__links ul { grid-template-columns: minmax(0, 1fr); }
  .btn { white-space: normal; text-align: center; }
  .demo-notice { left: 16px; bottom: 16px; width: calc(100vw - 108px); padding: 16px; }
  .chatbot-launcher { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .chatbot-window { right: 16px; left: 16px; width: auto; bottom: 84px; height: min(560px, calc(100dvh - 108px)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
  .btn:hover, .icon-box--card:hover, .image-card:hover, .blog-card:hover, .team-card:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .chatbot, .demo-notice, .preloader, .scroll-progress, .cta-band { display: none !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* GSAP drives these entrances when available; CSS transitions are the fallback. */
.has-gsap .demo-notice, .has-gsap .chatbot-window { transition: none; }
/* Keep the header (and its animated close icon) above the open mobile menu. */
.menu-open .site-header { z-index: 260; }
