/* ============================================================
   THORNE TECHNOLOGY — Global Stylesheet
   Brand: Navy #002855 · Purple #5B21B6 · Green #22C55E
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --navy:         #002855;
  --navy-mid:     #003D7A;
  --purple:       #543174;
  --purple-lt:    #6B3F8F;
  --purple-pale:  #EDE6F2;
  --green:        #22C55E;  /* site UI green kept for accents */
  --green-dk:     #16A34A;
  --green-pale:   #DCFCE7;
  --white:        #FFFFFF;
  --off-white:    #F4F6F9;
  --grey-light:   #E8ECF2;
  --grey-mid:     #C4CDD9;
  --dark:         #0A1628;
  --body:         #3D4C5E;
  --muted:        #7A8CA0;
  --red:          #EF4444;
  --teal:         #0891B2;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px  rgba(0,40,85,0.08);
  --shadow-md:    0 6px 24px rgba(0,40,85,0.12);
  --shadow-lg:    0 16px 48px rgba(0,40,85,0.16);
  --transition:   0.2s ease;
  --brand-purple: #543174;   /* Actual logo purple */
  --brand-lime:   #B0CA1F;   /* Actual logo lime/yellow-green */
  --brand-dark:   #2A222D;   /* Logo near-black */
  --font:         'Plus Jakarta Sans', sans-serif;
  --nav-height:   76px;
  --bar-height:   36px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--white); color: var(--body); line-height: 1.6; font-size: 16px; overflow-x: clip; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; }
button { font-family: var(--font); cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ── TOP UTILITY BAR ── */
.top-bar { background: var(--navy); height: var(--bar-height); display: flex; align-items: center; width: 100%; position: relative; z-index: 400; }
.top-bar-inner { max-width: 1280px; margin: 0 auto; padding: 0 48px; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.top-bar-links { display: flex; gap: 24px; }
.top-bar-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.78rem; font-weight: 500; font-family: var(--font); transition: color var(--transition); }
.top-bar-links a:hover { color: #fff; }
.top-bar-links a.active { color: #fff !important; font-weight: 800; border-bottom: 2px solid var(--brand-lime); padding-bottom: 2px; }
.top-bar-contact { display: flex; gap: 20px; align-items: center; }
.top-bar-contact a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.78rem; font-weight: 500; font-family: var(--font); transition: color var(--transition); }
.top-bar-contact a:hover { color: #fff; }
.top-bar-contact .sep { color: rgba(255,255,255,0.3); }
/* Open/Closed indicator */
.open-indicator { display: flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.open-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.open-dot.open  { background: var(--green); box-shadow: 0 0 0 2px rgba(34,197,94,0.25); animation: pulse-dot 2s infinite; }
.open-dot.closed { background: #f87171; box-shadow: 0 0 0 2px rgba(248,113,113,0.25); }
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 0 2px rgba(34,197,94,0.25)} 50%{box-shadow:0 0 0 4px rgba(34,197,94,0.1)} }
.open-text { color: rgba(255,255,255,0.85); font-family: var(--font); font-size: 0.78rem; font-weight: 600; }

/* ── PRIMARY NAV ── */
.primary-nav { position: sticky; top: 0; z-index: 500; background: var(--white); border-bottom: 2px solid var(--grey-light); box-shadow: var(--shadow-sm); }
.primary-nav .nav-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: var(--nav-height); gap: 0; }
.nav-links { display: flex; align-items: center; gap: 0; justify-content: center; }

/* Logo */
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { height: 80px; width: auto; display: block; }

/* Nav links + mega menu wrapper */
/* nav-links centred via absolute positioning above */
.nav-item  { position: relative; }
.nav-link  { display: flex; align-items: center; gap: 4px; color: var(--body); text-decoration: none; font-weight: 600; font-size: 0.83rem; padding: 7px 9px; border-radius: 8px; transition: all var(--transition); white-space: nowrap; border: none; background: none; }
.nav-link:hover, .nav-item:hover > .nav-link { background: var(--off-white); color: var(--navy); }
.nav-link.active { color: var(--green-dk); font-weight: 700; background: none; }
.nav-link .chevron { font-size: 0.6rem; color: var(--muted); transition: transform var(--transition); }
.nav-item:hover > .nav-link .chevron { transform: rotate(180deg); }

/* Divider */
.nav-divider { width: 1px; height: 24px; background: var(--grey-light); margin: 0 6px; flex-shrink: 0; }

/* Nav actions */
.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── MEGA MENU ── */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px; min-width: 560px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  /* padding-top creates an invisible bridge so mouse can travel down */
  margin-top: 0;
  z-index: 500;
}
/* Invisible bridge between nav link and mega menu */
.mega-menu::after {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-item:hover .mega-menu,
.mega-menu:hover {
  opacity: 1; visibility: visible; pointer-events: all;
}
/* Keep mega menu open when mouse is over it */
.nav-item { position: relative; }
.mega-menu::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; background: var(--white);
  border-left: 1.5px solid var(--grey-light); border-top: 1.5px solid var(--grey-light);
  transform: translateX(-50%) rotate(45deg);
}
.mega-header { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-light); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--radius); text-decoration: none; transition: background var(--transition); }
.mega-item:hover { background: var(--off-white); }
.mega-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mi-navy   { background: rgba(0,40,85,0.08); }
.mi-purple { background: rgba(91,33,182,0.08); }
.mi-green  { background: rgba(34,197,94,0.1); }
.mi-teal   { background: rgba(8,145,178,0.08); }
.mega-item-text {}
.mega-item-title { font-size: 0.875rem; font-weight: 700; color: var(--dark); display: block; margin-bottom: 2px; }
.mega-item-desc  { font-size: 0.78rem; color: var(--muted); line-height: 1.4; display: block; }
.mega-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grey-light); display: flex; justify-content: space-between; align-items: center; }
.mega-footer-link { font-size: 0.8rem; font-weight: 700; color: var(--purple); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: gap var(--transition); }
.mega-footer-link:hover { gap: 8px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius); font-family: var(--font); font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn-navy    { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(0,40,85,0.25); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,40,85,0.3); }
.btn-green   { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(34,197,94,0.3); }
.btn-green:hover { background: var(--green-dk); transform: translateY(-1px); }
.btn-purple  { background: var(--brand-purple); color: #fff; box-shadow: 0 4px 14px rgba(84,49,116,0.3); }
.btn-purple:hover { background: var(--purple-lt); transform: translateY(-1px); }
/* btn-brand = primary brand purple CTA */
.btn-brand   { background: var(--brand-purple); color: #fff; box-shadow: 0 4px 14px rgba(84,49,116,0.3); }
.btn-brand:hover { background: #6B3F8F; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(84,49,116,0.4); }
.btn-ghost   { background: transparent; color: var(--navy); border: 2px solid var(--grey-mid); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dk); background: rgba(34,197,94,0.04); }
.btn-ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.btn-white   { background: #fff; color: var(--purple); }
.btn-white:hover { background: var(--off-white); transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 9px 16px; font-size: 0.83rem; border-radius: 8px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--brand-purple); padding: 60px 0; position: relative; overflow: hidden; }
.page-hero-shape-1 { position: absolute; top: -120px; right: -120px; width: 480px; height: 480px; border-radius: 50%; background: rgba(176,202,31,0.12); pointer-events: none; }
.page-hero-shape-2 { position: absolute; bottom: -80px; left: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(176,202,31,0.08); pointer-events: none; }
.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 56px 48px 56px; display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; position: relative; z-index: 2; }
.page-hero-content { padding-bottom: 0; min-width: 0; overflow: hidden; }
.page-hero-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-lg); position: relative; z-index: 3; border: 1.5px solid rgba(255,255,255,0.15); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--green); }

/* Hero typography */
.page-hero h1 { font-size: clamp(2rem,3.8vw,3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin-bottom: 18px; }
.page-hero h1 .accent { color: var(--green); }
.page-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.75; max-width: 540px; margin-bottom: 36px; font-weight: 300; }
.hero-trust { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; align-items: stretch; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #fff; font-weight: 600; }
.trust-icon { width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* Stat card inside hero */
.stat-card-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.stat-card-label::before { content: ''; width: 12px; height: 2px; background: var(--green); border-radius: 2px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-box { background: var(--off-white); border-radius: var(--radius); padding: 14px; border-left: 3px solid var(--navy); }
.stat-box:nth-child(even) { border-left-color: var(--green); }
.stat-val { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 2px; }
.stat-box:nth-child(even) .stat-val { color: var(--green-dk); }
.stat-key { font-size: 0.72rem; color: var(--muted); }
.status-chip { background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: #065F46; }
.status-chip .dot { width: 7px; height: 7px; background: #10B981; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(16,185,129,0.4)}50%{opacity:.7;box-shadow:0 0 0 4px rgba(16,185,129,0)} }

/* ── SECTION LABELS ── */
.section-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.35); color: var(--green-dk); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 16px; }
.section-label::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.section-label.on-dark { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); color: var(--green); }
.section-label.green { background: var(--green-pale); border-color: rgba(34,197,94,0.3); color: var(--green-dk); }
.section-h2 { font-size: clamp(1.8rem,2.8vw,2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--dark); margin-bottom: 14px; }
.section-h2.white { color: #fff; }
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 560px; }

/* ── LAYOUT WRAPPERS ── */
.w  { max-width: 1280px; margin: 0 auto; padding: 88px 48px; }
.w-sm { max-width: 1280px; margin: 0 auto; padding: 60px 48px; }
.bg-white     { background: var(--white); }
.bg-off-white { background: var(--off-white); border-top: 1px solid var(--grey-light); border-bottom: 1px solid var(--grey-light); }
.bg-navy      { background: var(--navy); }
.bg-purple    { background: var(--purple); }

/* ── TICKER ── */
.ticker-wrap  { background: var(--brand-dark); padding: 7px 0; overflow: hidden; width: 100%; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.ticker-track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.ticker-item .dot { color: var(--green); margin-right: 8px; }

/* ── SERVICE CARDS ── */
.svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.svc-grid-3 { grid-template-columns: repeat(3,1fr); }
.svc-grid-2 { grid-template-columns: repeat(2,1fr); }
.svc-card { background: var(--white); border: 1.5px solid var(--grey-light); border-radius: var(--radius-lg); padding: 32px 28px; transition: all 0.25s; position: relative; overflow: hidden; }
.svc-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--brand-purple),var(--brand-lime)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.svc-card:hover { border-color: var(--brand-purple); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card-top { height: 4px; border-radius: 4px; margin-bottom: 24px; }
.top-navy   { background: var(--brand-dark); }
.top-purple { background: var(--brand-purple); }
.top-green  { background: var(--brand-lime); }
.top-teal   { background: var(--green); }
.svc-icon { width: 50px; height: 50px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.svc-title { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; letter-spacing: -0.01em; }
.svc-desc  { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.svc-list  { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.svc-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.82rem; color: var(--body); line-height: 1.4; }
.feat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.svc-link { font-size: 0.82rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 5px; color: var(--green-dk); transition: gap var(--transition), color var(--transition); }
.svc-link:hover { gap: 9px; color: var(--brand-purple); }

/* ── WHY/FEATURE CARDS ── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.feature-grid-4 { grid-template-columns: repeat(4,1fr); }
.feature-grid-2 { grid-template-columns: repeat(2,1fr); }
.feature-card { padding: 28px; border: 1.5px solid var(--grey-light); border-radius: var(--radius-lg); background: var(--white); transition: all var(--transition); }
.feature-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.feature-card.dark { border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); }
.feature-card.dark:hover { border-color: rgba(91,33,182,0.4); }
.feature-icon { width: 46px; height: 46px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.feature-h { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.feature-h.white { color: #fff; }
.feature-p { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }
.feature-p.dim { color: rgba(255,255,255,0.45); }

/* ── PROCESS STEPS ── */
.process-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.process-step { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 32px 26px; transition: background var(--transition); }
.process-step:hover { background: rgba(255,255,255,0.08); }
.step-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.step-num::before { content: ''; width: 20px; height: 1px; background: var(--green); }
.step-h { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.step-p { font-size: 0.84rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ── TESTIMONIAL CARDS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
/* Review carousel nav buttons */
#rev-prev:hover, #rev-next:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
#rev-prev:hover, #rev-next:hover { background: var(--off-white); }
.testi-card { background: var(--white); border: 1.5px solid var(--grey-light); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.testi-card:hover { border-color: var(--purple); box-shadow: var(--shadow-md); }
.testi-stars { color: var(--green); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.testi-quote { font-size: 0.9rem; color: var(--body); line-height: 1.8; font-style: italic; border-left: 3px solid var(--purple); padding-left: 16px; margin-bottom: 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--grey-light); padding-top: 18px; }
.testi-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--navy),var(--purple)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.82rem; color: #fff; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: 0.875rem; color: var(--dark); }
.testi-co   { font-size: 0.76rem; color: var(--muted); }

/* ── CTA BAND ── */
.cta-band { padding: 72px 48px; }
.cta-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.cta-h { font-size: clamp(1.7rem,2.8vw,2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 10px; }
.cta-sub { color: rgba(255,255,255,0.65); font-size: 1rem; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── PARTNER LOGOS ── */
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partner-chip { padding: 10px 20px; border-radius: var(--radius); border: 1.5px solid var(--grey-light); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); transition: all var(--transition); cursor: default; }
.partner-chip:hover { border-color: var(--navy); color: var(--navy); background: var(--off-white); }
.partners-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 36px; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 0.82rem; font-weight: 700; color: var(--dark); }
.form-label .req { color: var(--red); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--grey-light); border-radius: var(--radius); font-family: var(--font); font-size: 0.9rem; color: var(--dark); background: var(--white); outline: none; transition: border-color var(--transition), box-shadow var(--transition); appearance: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,40,85,0.08); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey-mid); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8CA0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent-box { background: var(--off-white); border: 1px solid var(--grey-light); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.consent-box input { accent-color: var(--navy); margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.consent-text { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.consent-text a { color: var(--purple); text-decoration: none; font-weight: 600; }

/* ── FAQ ACCORDION ── */
.faq-item { border: 1.5px solid var(--grey-light); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.faq-q { width: 100%; background: var(--white); border: none; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font); font-size: 0.95rem; font-weight: 700; color: var(--dark); cursor: pointer; text-align: left; transition: background var(--transition); }
.faq-q:hover { background: var(--off-white); }
.faq-q.open { color: var(--purple); background: rgba(91,33,182,0.04); }
.faq-chevron { font-size: 0.75rem; color: var(--muted); transition: transform 0.25s; flex-shrink: 0; margin-left: 16px; }
.faq-q.open .faq-chevron { transform: rotate(180deg); color: var(--purple); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 22px; font-size: 0.9rem; color: var(--muted); line-height: 1.75; border-top: 0 solid var(--grey-light); transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-a.open { max-height: 800px; display: block; padding: 16px 22px 18px; border-top-width: 1px; }

/* ── FOOTER ── */
footer { background: #2A222D; }
/* footer-top → footer-body */
/* footer-grid → footer-inner */
/* footer-logo updated */


.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.75; margin-bottom: 24px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 10px; }
.footer-contact-item a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--transition); }
.footer-contact-item a:hover { color: #fff; }
.footer-col-h { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(34,197,94,0.25); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-links a.current { color: #fff; font-weight: 700; }
.footer-bottom-wrap { background: rgba(0,0,0,0.25); border-top: 1px solid rgba(176,202,31,0.2); width: 100%; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 18px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.78rem; }
.footer-copy a { color: rgba(255,255,255,0.25); text-decoration: none; margin-left: 14px; transition: color var(--transition); }
.footer-copy a:hover { color: rgba(255,255,255,0.5); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge { border: 1px solid rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 6px; font-size: 0.68rem; color: rgba(255,255,255,0.3); font-weight: 600; letter-spacing: 0.06em; }

/* ── COOKIE BANNER ── */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--dark); border-top: 3px solid var(--green); padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 -8px 32px rgba(0,0,0,0.3); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
#cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.6; max-width: 680px; }
.cookie-text a { color: var(--green); text-decoration: none; font-weight: 600; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-accept { background: var(--green); color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-family: var(--font); font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: all var(--transition); }
.btn-cookie-accept:hover { background: var(--green-dk); }
.btn-cookie-decline { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2); padding: 9px 18px; border-radius: 8px; font-family: var(--font); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all var(--transition); }
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.75); }

/* ── UNDER CONSTRUCTION CARD ── */
.under-construction { background: var(--white); border: 1.5px solid var(--grey-light); border-radius: 24px; padding: 56px 52px; max-width: 560px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; margin: 60px auto; }
.under-construction::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--purple), var(--green)); }
.uc-icon { width: 88px; height: 88px; border-radius: 50%; background: var(--off-white); border: 2px solid var(--grey-light); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; margin: 0 auto 28px; }

/* ── RESPONSIVE ── */


/* Mobile nav toggle */
.mobile-nav-toggle { display: none; background: none; border: 1.5px solid var(--grey-light); border-radius: 8px; padding: 8px 10px; font-size: 1.1rem; color: var(--navy); margin-left: auto; }

.hero-rotator-word {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  color: var(--green);
  line-height: 1.15;
}
.hero-rotator-word.active {
  opacity: 1;
  transform: translateY(0);
}
.hero-rotator-spacer {
  display: block;
  visibility: hidden;
  white-space: nowrap;
  line-height: 1.15;
  /* Width = widest word — set by JS */
}

/* Footer top accent bar removed */
/* Footer logo invert stays white on dark bg — already handled inline */

/* Override inline svc-link colour variants — all brand green */
.lc-navy, .lc-purple, .lc-green, .lc-teal { color: var(--green-dk) !important; }
.lc-navy:hover, .lc-purple:hover, .lc-green:hover, .lc-teal:hover { color: var(--brand-purple) !important; }

/* Centred sticky section sub-nav */
.subnav-wrap {
  position: sticky;
  top: var(--nav-height, 76px);
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.subnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.subnav-inner::-webkit-scrollbar { display: none; }

.stab {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.stab:hover,
.stab.active {
  color: var(--brand-purple) !important;
  border-bottom-color: var(--brand-purple) !important;
}

/* Threat popup modal */
.threat-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 9998; top: 0;
  align-items: center; justify-content: center; padding: 24px;
}
.threat-modal-overlay.open { display: flex; }
.threat-modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; max-width: 520px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.threat-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--off-white); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.threat-card-click { cursor: pointer; }
.threat-card-click:hover { border-color: var(--brand-purple) !important; }

/* Full-width section subtitle */
.section-sub-wide { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 100%; }

/* Allow section subtitles after h2 to span full width in context */
.section-h2 + p.section-sub,
.section-h2 ~ p.section-sub { max-width: 100%; }

/* ── REDESIGNED FOOTER ── */
footer { background: var(--brand-dark); }
footer::before { content:''; display:block; height:3px; background:linear-gradient(90deg,var(--brand-purple),var(--brand-lime),var(--green)); }
.footer-body { max-width:1400px; margin:0 auto; padding:64px 40px 52px; }
.footer-inner { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:56px; border-bottom:1px solid rgba(255,255,255,0.07); padding-bottom:48px; }
.footer-brand-col {}
.footer-logo { display:inline-flex; align-items:center; margin-bottom:18px; text-decoration:none; }

/* ── Hero rotator fix — ensure words stack correctly ── */
#hero-rotator-wrap {
  display: block;
  position: relative;
  height: 1.2em;
  overflow: visible;
}
.hero-rotator-word {
  position: absolute !important;
  top: 0; left: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  white-space: nowrap;
  color: var(--green);
  line-height: 1.15;
  pointer-events: none;
}

/* ── Footer layout fixes ── */
footer { background: var(--brand-dark); overflow: hidden; }
.footer-body { max-width: 1400px; margin: 0 auto; padding: 64px 48px 52px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 48px;
  width: 100%;
}
.footer-col-h {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(34,197,94,0.25);
  white-space: nowrap;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-links a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer-contact-item a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-contact-item a:hover { color: #fff; }
.footer-badge {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.footer-bottom-wrap {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-copy a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-copy a:hover { color: rgba(255,255,255,0.7); }

/* ── Tier card Most Popular header fix ── */
.tier-card { position: relative; overflow: hidden; }
.tier-card.popular { border-color: var(--brand-purple); box-shadow: 0 4px 24px rgba(84,49,116,0.18); }

/* ── Sub-nav centering ── */




/* ================================================================
   RESPONSIVE / MOBILE — comprehensive overhaul
   Breakpoints: 1100px (tablet), 768px (large phone), 480px (small)
   ================================================================ */

/* ── 1100px — tablet landscape ─────────────────────────────── */
@media (max-width: 1100px) {
  .nav-inner { padding: 0 24px; }
  .w, .w-sm, .cta-band { padding-left: 28px; padding-right: 28px; }
  .page-hero-inner { padding: 48px 28px; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-body { padding: 48px 28px 40px; }
  .tier-card { padding: 24px 20px; }
}

/* ── 960px — tablet / hamburger ─────────────────────────── */
@media (max-width: 960px) {
  .mobile-nav-toggle { display: flex !important; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff;
    padding: 80px 24px 32px;
    z-index: 9999 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
  }
  .nav-links.mobile-open .nav-item { width: 100%; }
  .nav-links.mobile-open .nav-link,
  .nav-links.mobile-open .nav-link.home {
    width: 100%; padding: 12px 0;
    border-bottom: 1px solid var(--grey-light);
    font-size: 1rem; font-weight: 600;
  }
  .nav-links.mobile-open .nav-divider { display: none; }
  .nav-links.mobile-open .mega-menu {
    position: static; transform: none; box-shadow: none; border: none;
    border-radius: 0; padding: 8px 0 8px 16px;
    opacity: 1; visibility: visible; pointer-events: all; display: none;
    background: var(--off-white); margin: 0;
  }
  .nav-links.mobile-open .nav-item.mega-open .mega-menu { display: block; }
  .nav-links.mobile-open .mega-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .nav-links.mobile-open .mega-item { padding: 8px; }
  .nav-links.mobile-open .mega-footer { display: none; }
  .nav-links.mobile-open .mega-header { padding: 10px 8px 6px; font-size: 0.7rem; }
  .nav-actions { gap: 8px; flex-shrink: 0; }
  .nav-actions .btn-ghost { display: none; }
  /* On mobile, nav-inner becomes flex instead of grid */
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .top-bar-inner { padding: 0 20px; }
  .top-bar-contact .sep { display: none; }
  .top-bar-contact a:nth-child(3) { display: none; }
  .page-hero-inner { grid-template-columns: 1fr; padding: 40px 24px 48px; gap: 32px; }
  .page-hero-content { padding-bottom: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid-3 { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid-2 { grid-template-columns: 1fr 1fr; }
  .process-row { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-btns { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .w, .w-sm, .cta-band { padding-left: 24px; padding-right: 24px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; text-align: center; gap: 8px; }

  /* Admin sidebar — slide-out on mobile */
  .shell { flex-direction: column; }
  .sidebar {
    width: 100% !important; height: auto !important;
    position: relative !important; top: auto !important;
    flex-direction: row; align-items: center;
    padding: 10px 16px; min-height: 56px;
  }
  .sb-brand img { height: 26px; }
  .sb-user { border: none; padding: 0; flex-direction: row; align-items: center; gap: 8px; }
  .sb-user-name { font-size: 0.85rem; margin: 0; }
  .sb-user-role { display: none; }
  .sb-nav { display: none; }
  .sb-nav.sb-mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0;
    width: min(280px, 85vw); height: 100vh;
    background: #2A222D; z-index: 999;
    padding: 20px 16px; overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  }
  .sb-mobile-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 998;
  }
  .sb-bottom { display: none; }
  .sb-mobile-toggle {
    display: flex !important; margin-left: auto;
    background: rgba(255,255,255,0.12); border: none; color: #fff;
    border-radius: 8px; padding: 8px 12px; font-size: 0.85rem;
    cursor: pointer; align-items: center; gap: 6px;
  }
  .main { min-height: auto; width: 100%; overflow-x: hidden; }
  .content { padding: 16px !important; }
  .topbar { padding: 12px 16px; }
  .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.tbl { min-width: 540px; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  input, select, textarea { min-height: 44px; }
  .mobile-nav-toggle { min-height: 44px; min-width: 44px; }
  a[href^="tel"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── 768px — phones ─────────────────────────────────────── */
@media (max-width: 768px) {
  .top-bar { height: auto; padding: 4px 0; }
  .top-bar-inner { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 6px 16px; justify-content: space-between; align-items: center; }
  .top-bar-links { gap: 12px; flex-wrap: wrap; }
  .top-bar-contact { font-size: 0.78rem; gap: 8px; flex-wrap: wrap; }
  /* Hide email on mobile, show phone only */
  .top-bar-contact a[href^="mailto"] { display: none; }
  .open-indicator { display: none; }
  .nav-inner {
    padding: 0 16px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  :root { --nav-height: 60px; }
  .subnav-wrap { top: 60px; }
  /* Ensure logo doesn't shrink */
  .nav-logo { flex-shrink: 0; min-width: 0; }
  /* Actions sit to the right, don't overlap */
  .nav-actions {
    flex-shrink: 0;
    margin-left: auto;
    gap: 8px;
  }

  /* All multi-col grids → single column */
  .svc-grid, .svc-grid-3 { grid-template-columns: 1fr; }
  .feature-grid, .feature-grid-2 { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .split-left-layout { display: flex !important; flex-direction: column !important; gap: 28px !important; }
  .two-col-layout { display: flex !important; flex-direction: column !important; gap: 28px !important; }
  .location-layout { display: flex !important; flex-direction: column !important; gap: 24px !important; }

  /* Hero */
  .page-hero { padding: 36px 0; }
  .page-hero-inner { padding: 32px 16px 40px; }
  .page-hero-sub { font-size: 0.925rem; }
  .hero-actions { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; flex-wrap: wrap; }
  .hero-actions .btn,
  .hero-actions a.btn { width: 100% !important; justify-content: center !important; text-align: center !important; box-sizing: border-box; }
  #hero-h1 { font-size: clamp(2rem, 7vw, 3rem) !important; }

  /* Stat grids */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-bar-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }

  /* CTAs */
  .cta-band { padding-left: 16px; padding-right: 16px; }
  .cta-inner { gap: 20px; padding: 36px 0; }
  .cta-h { font-size: 1.4rem; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* Layout */
  .w, .w-sm { padding-left: 16px; padding-right: 16px; }
  .tier-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-input, .form-select, .form-textarea { font-size: 1rem; padding: 12px 14px; }
  .btn-lg { padding: 14px 24px; font-size: 0.925rem; }
  .process-step { padding: 24px; }
  .subnav-inner { justify-content: flex-start; padding: 0 16px; overflow-x: auto; }
  .stab { padding: 12px 14px; font-size: 0.78rem; white-space: nowrap; }
  .page-hero-card { padding: 24px; width: 100%; box-sizing: border-box; }
  /* Centre the "How It Works" label on mobile */
  .stat-card-label { justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr !important; gap: 28px !important; width: 100%; box-sizing: border-box; }
  .footer-body { padding: 40px 16px 32px; overflow: hidden; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Portal */
  .pcard-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .portal-form-row { grid-template-columns: 1fr !important; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.72rem; }
}

/* ── 480px — small phones ───────────────────────────────── */
@media (max-width: 480px) {
  .section-h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .section-sub { font-size: 0.9rem; }
  .nav-actions .btn-green { font-size: 0.78rem; padding: 8px 14px; }
  .nav-logo-img { height: 40px !important; width: auto !important; max-width: 150px !important; }
  .nav-links.mobile-open .mega-grid { grid-template-columns: 1fr; }
  .page-hero-inner { padding: 28px 16px 36px; gap: 24px; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  /* Equal height trust badges */
  .hero-trust .trust-item {
    min-height: 52px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px;
    height: 100%;
    box-sizing: border-box;
  }
  /* Keep 3rd badge from orphaning — span full width */
  .hero-trust .trust-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .trust-item { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 8px; justify-content: center; }
  .stat-val { font-size: 1.4rem; }
  .stat-key { font-size: 0.7rem; }
  .svc-card { padding: 20px; }
  .feature-card { padding: 20px; }
  .btn { padding: 11px 20px; font-size: 0.875rem; }
  .btn-lg { padding: 13px 22px; font-size: 0.9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tier-card { padding: 20px 16px; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-col-h { margin-bottom: 12px; }
  .step-num { font-size: 0.65rem; margin-bottom: 10px; }
  .step-h { font-size: 0.95rem; }
  .step-p { font-size: 0.82rem; }
  #cookie-banner { padding: 16px; }
  .cookie-inner { flex-direction: column; gap: 12px; }
  .cookie-btns { width: 100%; justify-content: stretch; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
  .repair-table-row { grid-template-columns: 1fr !important; }
  .m365-slide { min-width: 100% !important; }
  section { padding-top: 48px; padding-bottom: 48px; }
  .testi-card { padding: 20px; }
  .testi-quote { font-size: 0.875rem; }
  .svc-cards-grid { grid-template-columns: 1fr !important; }
  .tab-btn { flex: 1; font-size: 0.8rem; padding: 10px 8px; }
}

/* ── Global mobile safety ────────────────────────────────── */
body { max-width: 100%; }
.primary-nav { overflow: visible; }
.page-hero, header { overflow: hidden; }
.ticker-wrap { overflow: hidden; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.hero-actions { flex-wrap: wrap; }
.sb-mobile-toggle { display: none; }

/* ── Location pages responsive ───────────────────────────── */
.location-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .location-layout {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  .location-layout > div:last-child {
    /* Move map/trust box above content on narrow screens */
    order: -1;
  }
}

/* Stat bars on location pages — 2x2 on mobile */
.stat-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 640px) {
  .stat-bar-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}

/* Service cards grid on hub pages */
.svc-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .svc-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Location pill links — wrap cleanly */
.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Map iframe always full width */
iframe[src*="openstreetmap"] {
  width: 100% !important;
  max-width: 100%;
}

/* Locations hub grid — 2 col on mobile */
@media (max-width: 600px) {
  /* The locations hub 4-col grid */
  .locations-hub-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Portal mobile improvements */
@media (max-width: 768px) {
  .portal-wrap { padding: 16px; min-height: auto; }
  .portal-card { padding: 24px 16px; width: 100%; box-sizing: border-box; }
  .portal-shell { flex-direction: column; }
  .portal-sidebar { width: 100%; position: relative; height: auto; }
  .portal-content { padding: 16px; }
  /* Portal form rows */
  .portal-form-row { grid-template-columns: 1fr !important; }
  /* Portal tables */
  .repairs-table-wrap, .tickets-table-wrap { overflow-x: auto; }
}

/* ── Homepage Hero — class-based responsive ─────────────── */
.home-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 26px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
#hero-h1 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-rotator-line {
  display: block;
  position: relative;
  height: 1.18em;
  overflow: hidden; /* hidden not visible — prevents spill on mobile */
}
.hero-rotator-spacer {
  display: block;
  visibility: hidden;
  white-space: nowrap;
}
.hero-sub-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 300;
}

/* ── Homepage hero responsive ─────────────────────────── */
@media (max-width: 960px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 28px 56px;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .home-hero-inner {
    padding: 36px 16px 48px;
    gap: 32px;
  }
  #hero-h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .hero-sub-text {
    font-size: 0.95rem;
    margin-bottom: 28px;
    max-width: 100%;
  }
  .hero-badge-pill {
    font-size: 0.68rem;
    padding: 5px 14px;
  }
  .hero-rotator-line {
    overflow: hidden;
  }
}
@media (max-width: 480px) {
  .home-hero-inner {
    padding: 28px 16px 40px;
  }
}

/* ── Responsive grid classes (covers all inline layouts) ── */

/* two-col-layout: content + sidebar (1fr Xpx or 1fr 1fr) */
.two-col-layout {
  display: grid;
  align-items: start;
  width: 100%;
}
.two-col-layout > * { min-width: 0; }
@media (max-width: 768px) {
  .two-col-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  /* Reverse order on some layouts so sidebar appears after content */
  .two-col-layout.sidebar-first > *:last-child { order: -1; }
}

/* auto-grid-3: 3-column repeat grids */
.auto-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .auto-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .auto-grid-3 { grid-template-columns: 1fr !important; }
}

/* pricing-row: asymmetric columns like 2.5fr 2fr 1.5fr */
.pricing-row {
  display: grid;
}
@media (max-width: 768px) {
  .pricing-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
}

/* Ensure all button groups wrap */
.cta-btns, .hero-actions, .btn-group {
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .cta-btns .btn, .hero-actions .btn, .btn-group .btn {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Hamburger stays on top when menu is open */
.mobile-nav-toggle {
  position: relative;
  z-index: 10000;
}
/* Mobile nav open state — show a close X at top */
.nav-links.mobile-open::before {
  content: '';
  display: block;
  height: 60px;
  flex-shrink: 0;
}

/* ── Partner logo badges ───────────────────────────────────── */
.partner-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
  cursor: default;
}
.partner-badge:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.partner-badge span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.partner-badge svg {
  flex-shrink: 0;
}

/* ── Location chips ─────────────────────────────────────── */
.location-chip {
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 16px;border-radius:100px;
  border:1.5px solid var(--grey-light);background:var(--white);
  font-size:0.82rem;font-weight:600;color:var(--dark);
  text-decoration:none;transition:all var(--transition);
}
.location-chip:hover {
  border-color:var(--brand-purple);color:var(--brand-purple);
  background:rgba(84,49,116,0.04);
}

/* ── Timeline steps (residential turnaround) ────────────── */
.timeline-step {
  display: grid;
  grid-template-columns: 36px 2px 1fr;
  gap: 0 14px;
  align-items: start;
  min-height: 56px;
}
.ts-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.8rem; font-weight: 800;
  flex-shrink: 0; position: relative; z-index: 1;
}
.ts-line {
  width: 2px; background: var(--grey-light);
  min-height: 40px; margin: 0 auto;
  grid-row: 1; grid-column: 2;
  align-self: stretch;
}
.ts-content {
  padding: 6px 0 20px;
  font-size: 0.875rem; color: var(--body); line-height: 1.6;
}
.ts-content strong { color: var(--dark); }
@media (max-width: 480px) {
  .timeline-step { grid-template-columns: 30px 2px 1fr; }
  .ts-dot { width: 30px; height: 30px; font-size: 0.72rem; }
}
@keyframes tt-fab-in{from{opacity:0;transform:scale(0.5);}to{opacity:1;transform:scale(1);}}

/* ── Cyber Essentials popup ──────────────────────────── */
#ce-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#ce-popup.open { display: flex; }


/* ── Ticker marquee ─────────────────────────── */
.ticker-wrap {
  padding: 6px 0;
  overflow: hidden;
  background: var(--navy);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 55s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticker-item .dot { color: var(--brand-lime); font-size: 0.5rem; flex-shrink: 0; }


/* ── Partners marquee ───────────────────────── */
.partners-marquee-wrap {
  overflow: hidden;
  width: 100%;
}
.partners-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 50s linear infinite;
}
.partners-marquee-wrap:hover .partners-marquee-track { animation-play-state: paused; }
.partner-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  border-right: 1px solid var(--grey-light);
  height: 56px;
}
.partner-logo {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-item:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

