/* ==========================================================================
   SolarEnergySupply.ca — Site styles (custom CSS)
   Loaded after global.css.
   1. Design tokens  2. Base & layout  3. Components  4. Pages  5. Grid/float fixes
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #12365A;
  --navy-900: #0B2440;
  --navy-700: #1B4772;
  --green: #399447;
  --green-700: #2B7536;   /* AA-safe green for text/buttons on white */
  --green-100: #E6F3E8;
  --orange: #F5A623;
  --orange-700: #8A5600;  /* AA-safe orange for small text on white */
  --orange-100: #FEF3DF;
  --grey: #F4F7F8;
  --grey-200: #E3E9EC;
  --grey-400: #A9B6BF;
  --grey-600: #5B6873;
  --white: #FFFFFF;
  --text: #2D3742;

  --fs-h1: clamp(2rem, 1.35rem + 2.8vw, 3.5rem);
  --fs-h2: clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 80px;
  --section-y: clamp(64px, 6vw + 32px, 112px);
  --shadow-sm: 0 1px 2px rgba(18, 54, 90, .06), 0 2px 8px rgba(18, 54, 90, .06);
  --shadow-md: 0 8px 28px rgba(18, 54, 90, .12);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--orange);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base & layout ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { -webkit-animation-duration: .01ms !important; animation-duration: .01ms !important; -webkit-transition-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* global.css floats sections: body and main must contain them (needed for the sticky header) */
body, main { display: flow-root; }
body::after, main::after { content: ""; display: table; clear: both; } /* fallback for older browsers */
main { width: 100%; }
/* Clip the closed off-canvas menu without creating a scroll container (keeps the header sticky) */
body { overflow-x: clip; }
img, svg { display: block; height: auto; }
/* global.css sets line-height on every element (*); let children inherit their parent's
   line-height instead, so headings and buttons keep tight leading */
body { line-height: var(--line-height); }
body * { line-height: inherit; }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 2.6rem; font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-size: var(--fs-h2); }
h3 { font-size: 1.3rem; font-size: var(--fs-h3); }
p, li { line-height: var(--line-height); }
p { margin: 0 0 1em; }
a { color: var(--green-700); }
a:hover, a:focus { color: var(--navy); }
.prose a, .faq-answer a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }
.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;
}

/* Tablet steps for the global grid (global.css covers desktop and < 768px) */
@media (max-width: 1023px) {
  .col3, .col20, .col4 { width: 50%; }
  .col5, .col6, .col7, .col8 { width: 100%; }
  .t-col12 { width: 100%; }
}
@media (max-width: 767px) {
  .col3, .col20, .col4 { width: 100%; }
}

/* Utilities not in global.css */
.dgrid { display: grid; }
.mxauto { margin-left: auto; margin-right: auto; }
.mw640 { max-width: 640px; } .mw760 { max-width: 760px; }
.bg-grey { background: var(--grey); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,.86); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* ---------- 3. Components ---------- */
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; -webkit-appearance: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #FFB840; color: var(--navy); box-shadow: 0 6px 18px rgba(245, 166, 35, .35); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--navy); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-700); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * .65) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.bg-navy .eyebrow { color: #9FD8A8; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head.text-center .eyebrow { justify-content: center; }
.section-head p { font-size: var(--fs-lead); color: var(--grey-600); margin: 0; }
.bg-navy .section-head p { color: rgba(255,255,255,.8); }
.lead { font-size: var(--fs-lead); }

/* ---------- Header ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 800; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--grey-200); box-shadow: 0 4px 18px rgba(18,54,90,.06); }
.site-header .containerBox { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-icon { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.22rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { color: var(--green-700); }
.brand-tag { font-size: .66rem; font-weight: 600; letter-spacing: .12em; color: var(--grey-600); text-transform: uppercase; margin-top: 4px; white-space: nowrap; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name span { color: var(--orange); }
.site-footer .brand-tag { color: #B8C7D6; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a.nav-link {
  position: relative; display: block; padding: 10px 14px; border-radius: 8px;
  font-weight: 600; color: var(--navy); text-decoration: none; transition: color .2s, background .2s;
}
.main-nav a.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a.nav-link:hover::after, .main-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a.nav-link[aria-current="page"] { color: var(--green-700); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--grey);
  color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-backdrop { display: none; }

@media (max-width: 1100px) {
  .main-nav { gap: 14px; }
  .main-nav a.nav-link { padding: 10px 10px; }
  .main-nav a.nav-link::after { left: 10px; right: 10px; }
}
@media (max-width: 991px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(360px, 100%);
    flex-direction: column; align-items: stretch; gap: 24px; padding: 24px 20px 32px;
    background: var(--white); box-shadow: -10px 0 30px rgba(18,54,90,.12); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a.nav-link { padding: 14px 12px; font-size: 1.08rem; border-bottom: 1px solid var(--grey-200); border-radius: 0; }
  .main-nav a.nav-link::after { display: none; }
  .main-nav a.nav-link[aria-current="page"] { background: var(--green-100); border-radius: 8px; }
  .main-nav .btn { width: 100%; }
  .nav-backdrop {
    display: block; position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; background: rgba(11,36,64,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: -1;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .main-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 420px) {
  .brand-icon { width: 38px; height: 38px; }
  .brand-name { font-size: 1.02rem; }
  .brand-tag { font-size: .58rem; letter-spacing: .08em; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grey); padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 7vw, 110px); }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.18), rgba(245,166,35,0) 65%); pointer-events: none;
}
.hero .rowBox { align-items: center; row-gap: 48px; }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.1rem, 1.3rem + 2.5vw, 3.3rem); }
.hero h1 em { font-style: normal; color: var(--green-700); }
.hero-text p { font-size: var(--fs-lead); max-width: 560px; }
.hero-text p + p { color: var(--grey-600); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.hero-points svg { width: 20px; height: 20px; color: var(--green-700); }
.hero-media { position: relative; }
.hero-media .media-frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: #E8F1F6; }
.hero-media .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-md); max-width: 260px;
}
.hero-badge .icon-circle { width: 44px; height: 44px; flex: none; }
.hero-badge strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.25; }
.hero-badge span { font-size: .82rem; color: var(--grey-600); }
@media (max-width: 767px) { .hero-badge { left: 12px; bottom: 12px; padding: 10px 14px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.86); padding: clamp(56px, 6vw, 96px) 0 clamp(56px, 6vw, 88px); }
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%;
  border: 60px solid rgba(245,166,35,.12); pointer-events: none;
}
.page-hero h1 { color: var(--white); max-width: 820px; margin-bottom: 18px; }
.page-hero p { max-width: 720px; font-size: var(--fs-lead); margin-bottom: .6em; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: #B8C7D6; }
.breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,.35); }
.breadcrumb a { color: #B8C7D6; text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--orange); font-weight: 600; }

/* ---------- Icon circle ---------- */
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--green-100); color: var(--green-700); flex: none;
}
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle.orange { background: var(--orange-100); color: var(--orange-700); }
.icon-circle.navy { background: #E3EBF3; color: var(--navy); }

/* ---------- Product cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 639px) { .card-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--grey-200); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card .card-media { aspect-ratio: 3 / 2; background: var(--grey); overflow: hidden; }
.product-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.04); }
.product-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.product-card h3 { margin-bottom: 10px; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; } /* whole card clickable */
.product-card p { color: var(--grey-600); flex: 1; }
.product-card .link-arrow { position: relative; margin-top: 6px; }
.product-card:focus-within { box-shadow: var(--focus); }
.product-card h3 a:focus-visible { box-shadow: none; }
.bg-grey .product-card { border-color: transparent; box-shadow: var(--shadow-sm); }

/* ---------- Segments ---------- */
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1023px) { .segments { grid-template-columns: 1fr; gap: 24px; } }
.segment {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.segment:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.segment img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.segment-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.segment-body p { color: var(--grey-600); flex: 1; }
@media (min-width: 640px) and (max-width: 1023px) {
  .segment { flex-direction: row; }
  .segment img { width: 42%; aspect-ratio: auto; }
}

/* ---------- Feature list (why choose / approach) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 639px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--grey-200); transition: border-color .25s, box-shadow .25s;
}
.feature:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--grey-600); font-size: .97rem; }
.bg-navy .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.bg-navy .feature:hover { border-color: var(--orange); }
.bg-navy .feature p { color: rgba(255,255,255,.75); }
.bg-navy .feature .icon-circle { background: rgba(245,166,35,.15); color: var(--orange); }

.note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 18px; border-radius: 10px;
  background: var(--orange-100); color: #6B4500; font-size: .92rem;
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.bg-navy .note { background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; counter-reset: step; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .steps { grid-template-columns: 1fr; gap: 18px; } }
.step { position: relative; padding: 30px 26px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; font-weight: 800; font-size: 1.05rem;
  background: var(--navy); color: var(--white); border: 4px solid var(--orange-100);
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--grey-600); font-size: .97rem; }
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 56px; left: calc(26px + 60px); right: -22px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--grey-400) 0 6px, transparent 6px 12px);
  }
}

/* ---------- FAQ (native details/summary) ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--grey-200); }
.faq-item:first-child { border-top: 1px solid var(--grey-200); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; font-weight: 700; font-size: 1.08rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--grey); transition: background .2s, transform .3s var(--ease);
}
.faq-item summary .faq-icon::before, .faq-item summary .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%, -50%);
}
.faq-item summary .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] summary .faq-icon { background: var(--orange); }
.faq-item[open] summary .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item summary:hover { color: var(--green-700); }
.faq-answer { padding: 0 52px 22px 4px; color: var(--grey-600); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 var(--section-y); }
.cta-band.flush { padding-top: var(--section-y); }
.cta-box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px); border-radius: 24px; background: var(--navy); color: rgba(255,255,255,.85);
}
.cta-box::before {
  content: ""; position: absolute; right: -80px; top: -110px; width: 300px; height: 300px; border-radius: 50%; border: 48px solid rgba(245,166,35,.16);
}
.cta-box::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--green) 0 60%, var(--orange) 60% 100%);
}
.cta-box h2 { color: var(--white); margin-bottom: 10px; }
.cta-box p { margin: 0; max-width: 620px; font-size: var(--fs-lead); }
.cta-box .cta-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Split / media blocks ---------- */
.split .rowBox { align-items: center; row-gap: 40px; }
.media-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--grey); }
.media-frame img { width: 100%; height: auto; }
.mission {
  position: relative; padding: 34px 34px 34px 40px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--green);
}
.mission p { font-size: var(--fs-lead); color: var(--navy); font-weight: 500; margin: 0; }

.audience { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1023px) { .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .audience { grid-template-columns: 1fr; } }
.audience li {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 26px 16px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm); font-weight: 700; color: var(--navy); line-height: 1.3;
}

/* ---------- Product category sections (Products page) ---------- */
.cat-nav { position: -webkit-sticky; position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--grey-200); }
.cat-nav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.cat-nav a {
  display: block; white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--grey-200);
  font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.cat-nav a:hover, .cat-nav a.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.category { padding: clamp(56px, 6vw, 96px) 0; scroll-margin-top: calc(var(--header-h) + 70px); }
.category:nth-of-type(even) { background: var(--grey); }
.category .rowBox { align-items: center; row-gap: 36px; }
.category:nth-of-type(even) .rowBox { flex-direction: row-reverse; }
.category .cat-num { font-weight: 800; color: var(--orange-700); font-size: .9rem; letter-spacing: .12em; }
.category h2 { margin-top: 6px; }
.considerations { margin: 26px 0 30px; padding: 24px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey-200); }
.category:nth-of-type(even) .considerations { border-color: transparent; box-shadow: var(--shadow-sm); }
.considerations h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-700); margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B7536' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.list-2up { columns: 2; column-gap: 30px; }
.list-2up li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 639px) { .list-2up { columns: 1; } }

.type-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
@media (max-width: 639px) { .type-chips { grid-template-columns: 1fr; } }
.type-chip { padding: 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--grey-200); }
.type-chip strong { display: block; color: var(--navy); margin-bottom: 4px; }
.type-chip span { font-size: .9rem; color: var(--grey-600); line-height: 1.5; display: block; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 767px) { .service-grid { grid-template-columns: 1fr; gap: 22px; } }
.service-card {
  position: relative; padding: 34px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey-200);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .svc-num { position: absolute; top: 28px; right: 30px; font-size: 2.6rem; font-weight: 800; color: #7F8E99; line-height: 1; }
.service-card h3 { margin: 20px 0 10px; }
.service-card p { color: var(--grey-600); }
.service-card .check-list { margin-top: 16px; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-layout .rowBox { row-gap: 40px; align-items: flex-start; }
.contact-card { padding: 32px; border-radius: var(--radius); background: var(--navy); color: rgba(255,255,255,.86); position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card h2 { color: var(--white); font-size: 1.45rem; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-circle { width: 44px; height: 44px; border-radius: 12px; background: rgba(245,166,35,.15); color: var(--orange); }
.contact-list .icon-circle svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--white); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a { color: var(--white); }
.placeholder {
  display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px dashed currentColor; font-size: .9em; opacity: .85; font-style: italic;
}
.contact-card .note { margin-top: 26px; }

.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-md); border-top: 5px solid var(--orange); }
.form-card > h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; color: var(--navy); font-size: .95rem; padding: 0; }
.field .req { color: #B42318; margin-left: 2px; }
.field .opt { color: var(--grey-600); font-weight: 500; font-size: .85rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #C5D0D7; background: var(--white);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312365A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18,54,90,.15); }
.field .hint { font-size: .84rem; color: var(--grey-600); }
.field .error-msg { display: none; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: #B42318; }
.field.has-error .error-msg { display: flex; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .choice-group { border-color: #B42318; }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.15); }

fieldset.field { border: 0; margin: 0; padding: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; border-radius: 12px; border: 1.5px solid transparent; }
.choice-group.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .choice-group.grid2 { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid #C5D0D7;
  cursor: pointer; font-weight: 500; font-size: .95rem; transition: border-color .2s, background .2s; height: 100%;
}
.choice span::before {
  content: ""; width: 18px; height: 18px; flex: none; border: 2px solid var(--grey-400); border-radius: 50%; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.choice input[type="checkbox"] + span::before { border-radius: 5px; }
.choice input:checked + span { border-color: var(--green-700); background: var(--green-100); }
.choice input:checked + span::before { border-color: var(--green-700); box-shadow: inset 0 0 0 4px var(--white); background: var(--green-700); }
.choice input[type="checkbox"]:checked + span::before {
  box-shadow: none; background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.choice input:focus-visible + span { box-shadow: var(--focus); }

.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; border: 2px dashed #C5D0D7;
  background: var(--grey); transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--green); background: var(--green-100); }
.file-drop input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop input:focus-visible ~ .file-ui { box-shadow: var(--focus); border-radius: 6px; }
.file-drop .file-ui { display: flex; align-items: center; gap: 14px; pointer-events: none; }
.file-drop strong { color: var(--navy); display: block; }
.file-drop small { color: var(--grey-600); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green-700); }
.privacy-notice { font-size: .85rem; color: var(--grey-600); background: var(--grey); border-radius: 10px; padding: 14px 16px; margin: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-actions small { color: var(--grey-600); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(18,54,90,.25); border-top-color: var(--navy); animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { display: none; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; margin-bottom: 24px; }
.form-status.is-visible { display: flex; }
.form-status svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.form-status strong { display: block; margin-bottom: 2px; }
.form-status p { margin: 0; }
.form-status.error { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.form-status.success { background: var(--green-100); color: #1D5426; border: 1px solid #B7DDBE; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .icon-circle { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 18px; }
.form-success .icon-circle svg { width: 36px; height: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #B8C7D6; padding-top: 72px; font-size: .95rem; }
.site-footer .rowBox { row-gap: 40px; }
.site-footer h2 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #D7E1EA; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-about p { margin: 20px 0 18px; max-width: 360px; }
.footer-area { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--white); font-weight: 600; font-size: .88rem; }
.footer-area svg { width: 16px; height: 16px; color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--orange); }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .87rem; }
.footer-bottom .containerBox { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .placeholder { color: #B8C7D6; }

/* ---------- Legal / 404 ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose .draft-banner { margin-bottom: 30px; }
.notfound { text-align: center; padding: clamp(72px, 10vw, 140px) 0; }
.notfound .big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -0.04em; }
.notfound .big span { color: var(--orange); }
.notfound .quick-links { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, #button, .cta-band, .cat-nav { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 20px; }
  .page-hero h1 { color: #000; }
}

/* Footer column widths on tablet / mobile */
@media (min-width: 768px) and (max-width: 1023px) { .site-footer .col2, .site-footer .col3 { width: 33.3333%; } }
@media (max-width: 767px) { .site-footer .col2, .site-footer .col3 { width: 100%; } }

.section .rowBox { row-gap: 40px; }
@media (max-width: 1023px) {
  .hero-media { max-width: 560px; margin: 0 auto; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* ---------- 5. Fixes for the float-based global grid ---------- */
.site-header { float: none; width: 100%; }
.site-header .containerBox { padding: 0 15px; -ms-flex-wrap: nowrap; flex-wrap: nowrap; }
.footer-bottom .containerBox { padding: 0 15px; }
.cat-nav { clear: both; width: 100%; }
.cat-nav .containerBox { padding: 0 15px; display: block; }
.categories { clear: both; display: flow-root; }
.categories::after { content: ""; display: table; clear: both; }
.site-footer { float: left; }
.prose ul { padding-left: 24px; margin-bottom: 1em; }
.prose li { display: list-item; margin-bottom: 6px; }
@media (max-width: 1023px) {
  .contact-layout .col4 { width: 100%; }
  .contact-card { position: static; }
}
/* Browsers without flexbox gap (older Safari): keep spacing between buttons */
@supports not (aspect-ratio: 1 / 1) {
  .hero-actions .btn, .cta-actions .btn { margin: 0 12px 12px 0; }
}

/* ---------- 6. Font Awesome icon sizing ---------- */
.fa { line-height: 1; }
.btn .fa { font-size: 16px; -webkit-transition: -webkit-transform .2s var(--ease); transition: transform .2s var(--ease); }
.btn:hover .fa, .link-arrow:hover .fa, .product-card:hover .link-arrow .fa { -webkit-transform: translateX(3px); transform: translateX(3px); }
.link-arrow .fa { font-size: 15px; -webkit-transition: -webkit-transform .2s var(--ease); transition: transform .2s var(--ease); }
.nav-toggle .fa { font-size: 22px; width: 22px; text-align: center; }
.hero-points .fa { font-size: 19px; color: var(--green-700); }
.icon-circle .fa { font-size: 23px; }
.contact-list .icon-circle .fa { font-size: 18px; }
.form-success .icon-circle .fa { font-size: 34px; }
.note .fa { font-size: 18px; margin-top: 3px; -ms-flex-negative: 0; flex-shrink: 0; }
.footer-area .fa { font-size: 15px; color: var(--orange); }
.footer-contact .fa { width: 18px; font-size: 16px; text-align: center; margin-top: 4px; color: var(--orange); -ms-flex-negative: 0; flex-shrink: 0; }
.field .error-msg .fa { font-size: 15px; }
.hero-badge .icon-circle .fa { font-size: 20px; }

/* Mobile menu: the header's backdrop-filter would make it the containing block of the
   fixed off-canvas panel (panel then sizes to the header, not the screen). Use a solid
   header background on small screens instead. */
@media (max-width: 991px) {
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .main-nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); bottom: auto; }
}
