/* ==========================================================================
   MILLER CONSTRUCTION — ROOFING
   Design system & site styles · Built by Markitera
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  /* Brand */
  --navy-950:#081020;
  --navy-900:#0C1830;
  --navy-850:#101F3C;
  --navy-800:#152747;
  --navy-700:#1D3560;
  --steel:#3D6DA6;          /* logo blue */
  --steel-300:#7FA7D4;
  /* Action accent — the logo blue. A ramp is needed because a single mid-blue
     cannot serve both light and dark grounds: --brand reads well on white,
     --brand-400/300 keep contrast over navy. */
  --brand:#3D6DA6;          /* primary accent (logo blue) */
  --brand-600:#2F5788;      /* hover / accent text on light */
  --brand-400:#5A8BC4;      /* buttons & accents on dark grounds */
  --brand-300:#6E9BCB;      /* eyebrows, icons, CTAs on dark grounds */
  --brand-050:#EAF1F9;

  /* Neutrals */
  --ink:#101828;
  --body:#3D4756;
  --muted:#66707F;
  --line:#E3E7EE;
  --line-dark:rgba(255,255,255,.12);
  --bg:#FFFFFF;
  --bg-soft:#F4F6FA;
  --bg-mist:#EDF1F7;

  /* Type */
  --font-display:"Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:"Inter", "Segoe UI", -apple-system, sans-serif;

  /* Scale */
  --text-xs:.75rem;
  --text-sm:.875rem;
  --text-md:1rem;
  --text-lg:1.125rem;

  /* Layout */
  --container:1200px;
  --container-wide:1360px;
  --radius:10px;
  --radius-lg:16px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.08);
  --shadow-md:0 6px 16px -4px rgba(16,24,40,.12),0 2px 6px -2px rgba(16,24,40,.08);
  --shadow-lg:0 18px 40px -12px rgba(8,16,32,.28);
  --pitch:3.2deg;                /* the roof-pitch signature angle */
  --header-h:78px;
  --topbar-h:42px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
body{
  margin:0;
  font-family:var(--font-body);
  font-size:var(--text-md);
  line-height:1.65;
  color:var(--body);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--steel);text-decoration:none}
a:hover{color:var(--brand-600)}
h1,h2,h3,h4,h5{margin:0 0 .5em;color:var(--ink);font-family:var(--font-display);text-transform:uppercase;line-height:1.04;letter-spacing:.005em;font-weight:700}
h1{font-size:clamp(2.6rem,6vw,4.4rem)}
h2{font-size:clamp(2rem,4vw,3rem)}
h3{font-size:clamp(1.35rem,2.4vw,1.7rem)}
h4{font-size:1.15rem;letter-spacing:.03em}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.2em}
strong{color:var(--ink)}
::selection{background:var(--brand);color:#fff}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:2px}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--navy-900);color:#fff;padding:.75rem 1.25rem;z-index:200;font-weight:600}
.skip-link:focus{left:0;color:#fff}

.container{width:min(var(--container),92vw);margin-inline:auto}
.container-wide{width:min(var(--container-wide),94vw);margin-inline:auto}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  font-family:var(--font-display);font-weight:600;text-transform:uppercase;
  letter-spacing:.06em;font-size:1.05rem;line-height:1;
  padding:1.02rem 1.7rem;border-radius:6px;border:2px solid transparent;
  cursor:pointer;transition:transform .18s var(--ease),background .18s,border-color .18s,color .18s,box-shadow .18s;
  white-space:nowrap;
}
.btn svg{width:1em;height:1em;flex:none;transition:transform .18s var(--ease)}
.btn:hover svg{transform:translateX(4px)}
.btn-primary{background:var(--brand);color:#fff;box-shadow:0 6px 18px -6px rgba(61,109,166,.55)}
.btn-primary:hover{background:var(--brand-600);color:#fff;transform:translateY(-2px)}
.btn-navy{background:var(--navy-800);color:#fff}
.btn-navy:hover{background:var(--navy-700);color:#fff;transform:translateY(-2px)}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-ghost:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.08);transform:translateY(-2px)}
.btn-ghost-dark{background:transparent;color:var(--navy-800);border-color:rgba(21,39,71,.35)}
.btn-ghost-dark:hover{border-color:var(--navy-800);color:var(--navy-800);background:rgba(21,39,71,.05);transform:translateY(-2px)}
.btn-sm{padding:.72rem 1.15rem;font-size:.95rem}

/* text-link with arrow */
.arrow-link{
  display:inline-flex;align-items:center;gap:.45rem;font-family:var(--font-display);
  text-transform:uppercase;letter-spacing:.07em;font-weight:600;font-size:1rem;color:var(--brand-600);
}
.arrow-link svg{width:.95em;height:.95em;transition:transform .18s var(--ease)}
.arrow-link:hover{color:var(--navy-800)}
.arrow-link:hover svg{transform:translateX(4px)}

/* ---------- Eyebrow / headings ---------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:.65rem;
  font-family:var(--font-display);font-weight:600;text-transform:uppercase;
  letter-spacing:.18em;font-size:.95rem;color:var(--brand-600);margin-bottom:.9rem;
}
.eyebrow::before{content:"";width:34px;height:3px;background:var(--brand);flex:none}
.eyebrow.center{justify-content:center}
.on-dark .eyebrow{color:var(--brand-300)}
.section-head{max-width:780px;margin-bottom:2.6rem}
.section-head.center{margin-inline:auto;text-align:center}
.section-head.center .eyebrow{justify-content:center}
.section-head p{font-size:1.06rem;color:var(--muted);margin-top:.9rem}
.on-dark .section-head p,
.section-head.on-dark p,
.section-dark .section-head p,
.tex-dark .section-head p{color:#B9C3D6}

/* ---------- Sections ---------- */
.section{padding-block:clamp(4rem,8vw,6.5rem);position:relative}
.section-soft{background:var(--bg-soft)}.section-dark,
.tex-dark{background:var(--navy-900);color:#C6CFDF}.section-dark h2,
.section-dark h3,
.section-dark h4,
.tex-dark h2,
.tex-dark h3,
.tex-dark h4{color:#fff}
.section-navy-flat{background:var(--navy-850)}
/* textured dark section */
.tex-dark{position:relative;isolation:isolate;background:linear-gradient(155deg,var(--navy-900) 0%,var(--navy-850) 60%,var(--navy-800) 100%)}
.tex-dark::before{
  content:"";position:absolute;inset:0;z-index:-1;opacity:.05;
  background:url("../img/texture.png") center/720px repeat;
}
/* pitched (angled) edges — the roofline motif */
.pitch-top{clip-path:polygon(0 0,100% 3.4vw,100% 100%,0 100%)} /* rises to the right like a roof */
.pitch-bottom{clip-path:polygon(0 0,100% 0,100% calc(100% - 3.4vw),0 100%)}
.pitch-both{clip-path:polygon(0 0,100% 3.4vw,100% calc(100% - 3.4vw),0 100%)}
.pitch-top.section,.pitch-both.section{padding-top:calc(clamp(4rem,8vw,6.5rem) + 3.4vw)}
.pitch-bottom.section,.pitch-both.section{padding-bottom:calc(clamp(4rem,8vw,6.5rem) + 3.4vw)}

/* ghost watermark word */
.ghost-word{
  position:absolute;right:0;top:.5rem;z-index:0;pointer-events:none;user-select:none;
  font-family:var(--font-display);font-weight:800;text-transform:uppercase;
  font-size:clamp(5rem,14vw,11rem);line-height:1;color:transparent;
  -webkit-text-stroke:1px rgba(16,24,40,.07);white-space:nowrap;
}
.section-dark .ghost-word,.tex-dark .ghost-word{-webkit-text-stroke:1px rgba(255,255,255,.06)}

/* ---------- Top bar ---------- */
.topbar{
  background:var(--navy-950);color:#AAB6CB;font-size:.83rem;
  position:relative;z-index:60;
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:var(--topbar-h)}
.topbar-note{display:flex;align-items:center;gap:.5rem;letter-spacing:.02em}
.topbar-note .dot{width:6px;height:6px;border-radius:50%;background:var(--brand);flex:none}
.topbar-links{display:flex;align-items:center;gap:1.4rem}
.topbar a{color:#D5DDEA;font-weight:500;display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap}
.topbar a:hover{color:#fff}
.topbar a svg{width:14px;height:14px;color:var(--brand)}
@media (max-width:700px){
  .topbar-note{display:none}
  .topbar-inner{justify-content:center}
}
@media (max-width:560px){
  .topbar{font-size:.78rem}
  .topbar-links{width:100%;justify-content:space-between;gap:.9rem}
}
@media (max-width:390px){
  .topbar-links a:first-child{display:none}
  .topbar-links{justify-content:center}
}

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky;top:0;z-index:120;background:#fff;
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s;
}
.site-header.scrolled{box-shadow:0 10px 30px -12px rgba(8,16,32,.18)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:var(--header-h)}
.brand{display:flex;align-items:center;flex:none}
.brand img{height:52px;width:auto}
.nav-desktop{display:flex;align-items:center;gap:.35rem}
.nav-desktop > li{list-style:none;position:relative}
.nav-desktop{margin:0;padding:0}
.nav-link{
  display:inline-flex;align-items:center;gap:.4rem;padding:.9rem .85rem;
  font-family:var(--font-display);font-weight:600;text-transform:uppercase;
  letter-spacing:.07em;font-size:1.02rem;color:var(--navy-800);background:none;border:0;cursor:pointer;
  position:relative;
}
.nav-link::after{
  content:"";position:absolute;left:.85rem;right:.85rem;bottom:.45rem;height:3px;
  background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .22s var(--ease);
}
.nav-link:hover{color:var(--navy-800)}
.nav-link:hover::after,.nav-link[aria-expanded="true"]::after,.nav-link.active::after{transform:scaleX(1)}
.nav-link svg{width:12px;height:12px;transition:transform .2s;color:var(--brand-600)}
.nav-link[aria-expanded="true"] svg{transform:rotate(180deg)}
.header-cta{display:flex;align-items:center;gap:1.1rem;flex:none}
.header-phone{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15}
.header-phone .lbl{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:600}
.header-phone a{font-family:var(--font-display);font-weight:700;font-size:1.35rem;color:var(--navy-800);letter-spacing:.02em}
.header-phone a:hover{color:var(--brand-600)}
@media (max-width:1350px){.header-phone{display:none}}

/* Mega menu */
.mega{
  position:absolute;left:50%;transform:translateX(-50%) translateY(14px);top:100%;
  width:min(1080px,94vw);background:#fff;border-radius:0 0 var(--radius-lg) var(--radius-lg);
  box-shadow:var(--shadow-lg);border:1px solid var(--line);border-top:3px solid var(--brand);
  padding:2rem 2.2rem;display:grid;grid-template-columns:1.05fr 1.15fr 1fr .95fr;gap:2.2rem;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s;
}
/* Bridge the dead zone between the nav link and the panel. Without it the
   pointer leaves the <li> subtree mid-travel, hover is lost, and the menu
   snaps shut before it can be reached. */
.mega::before{
  content:"";position:absolute;left:0;right:0;bottom:100%;height:32px;
}
.has-mega{position:static!important}
.has-mega .mega{left:50%}
.site-header .header-inner{position:relative}
.has-mega:hover .mega,.has-mega:focus-within .mega,.mega.open{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);
}
.mega-col h4{
  font-size:.95rem;letter-spacing:.16em;color:var(--brand-600);margin-bottom:1rem;
  padding-bottom:.6rem;border-bottom:2px solid var(--bg-mist);
}
.mega-col ul{list-style:none;margin:0;padding:0;display:grid;gap:.14rem}
.mega-col a{
  display:flex;align-items:center;gap:.5rem;padding:.42rem .5rem;margin-inline:-.5rem;border-radius:6px;
  color:var(--body);font-size:.94rem;font-weight:500;
}
.mega-col a::before{content:"";width:5px;height:5px;background:var(--line);flex:none;transform:rotate(45deg);transition:background .15s}
.mega-col a:hover{background:var(--bg-soft);color:var(--navy-800)}
.mega-col a:hover::before{background:var(--brand)}
.mega-promo{
  background:linear-gradient(160deg,var(--navy-850),var(--navy-800));border-radius:var(--radius);
  padding:1.5rem;color:#C6CFDF;display:flex;flex-direction:column;justify-content:flex-end;min-height:230px;
  position:relative;overflow:hidden;isolation:isolate;
}
.mega-promo::before{content:"";position:absolute;inset:0;z-index:-1;background:url("../img/standing-seam.jpg") center/cover;opacity:.28}
.mega-promo-res::before{background-image:url("../img/aerial-house-reroof.jpg")}
.mega-promo h5{font-family:var(--font-display);text-transform:uppercase;color:#fff;font-size:1.35rem;margin:0 0 .35rem;line-height:1.1}
.mega-promo p{font-size:.85rem;margin-bottom:.9rem;color:#C6CFDF}

/* Mobile nav */
.nav-toggle{
  display:none;background:none;border:0;cursor:pointer;padding:.5rem;margin-right:-.5rem;
  flex-direction:column;gap:5px;z-index:120;
}
.nav-toggle span{display:block;width:26px;height:3px;background:var(--navy-800);border-radius:2px;transition:transform .25s var(--ease),opacity .2s}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.drawer{
  position:fixed;inset:0;z-index:110;background:var(--navy-950);color:#fff;
  transform:translateX(100%);transition:transform .32s var(--ease);
  overflow-y:auto;padding:calc(var(--header-h) + 1.5rem) 6vw 3rem;
  display:none;
}
.drawer.open{transform:translateX(0)}
.drawer ul{list-style:none;margin:0;padding:0}
.drawer > ul > li{border-bottom:1px solid var(--line-dark)}
.drawer a,.drawer .drawer-group-btn{
  display:flex;align-items:center;justify-content:space-between;width:100%;
  padding:1.05rem 0;color:#fff;font-family:var(--font-display);font-weight:600;
  text-transform:uppercase;letter-spacing:.07em;font-size:1.25rem;background:none;border:0;cursor:pointer;text-align:left;
}
.drawer .drawer-group-btn svg{width:14px;height:14px;color:var(--brand);transition:transform .2s}
.drawer .drawer-group-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.drawer-sub{display:none;padding:0 0 1rem}
.drawer-sub.open{display:block}
.drawer-sub .sub-label{color:var(--brand);font-family:var(--font-display);letter-spacing:.14em;font-size:.85rem;text-transform:uppercase;font-weight:600;margin:1rem 0 .2rem}
.drawer-sub a{font-family:var(--font-body);text-transform:none;letter-spacing:0;font-size:1rem;font-weight:400;padding:.5rem 0;color:#C9D2E2}
.drawer-sub a:hover{color:#fff}
.drawer .drawer-cta{margin-top:2rem;display:grid;gap:1rem}
.drawer .drawer-cta .btn{justify-content:center;padding:1.02rem 1.7rem;font-size:1.15rem;border-radius:6px}
.drawer .drawer-cta .btn-primary{background:var(--brand)}
.drawer .drawer-cta .btn-primary:hover{background:var(--brand-600)}
.drawer .drawer-cta .btn-ghost{border:2px solid rgba(255,255,255,.55)}
@media (max-width:1240px){
  .nav-desktop,.header-cta .btn{display:none}
  .nav-toggle{display:flex}
  .drawer{display:block}
  .brand img{height:46px}
}
@media (min-width:1241px) and (max-width:1400px){
  .nav-link{padding-inline:.6rem;font-size:.96rem;letter-spacing:.05em}
  .nav-link::after{left:.6rem;right:.6rem}
}

/* ---------- Hero ---------- */
.hero{
  position:relative;color:#fff;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;
  min-height:min(88vh,860px);
  padding:calc(var(--header-h) + 2rem) 0 7rem;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 4vw),0 100%);
  margin-top:calc(var(--header-h) * -1);
}
.hero-media{position:absolute;inset:0;z-index:-2}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-scrim{
  position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(78deg,rgba(8,16,32,.94) 0%,rgba(10,20,40,.82) 34%,rgba(12,24,48,.45) 62%,rgba(12,24,48,.25) 100%);
}
.hero-scrim::after{
  content:"";position:absolute;inset:0;opacity:.06;
  background:url("../img/texture.png") center/720px repeat;
}
.hero-inner{position:relative;display:grid;gap:1.4rem;max-width:820px}
.hero .eyebrow{color:var(--brand-300);margin-bottom:0}
.hero h1{color:#fff;margin:0;font-weight:800;text-wrap:balance}
.hero h1 .accent{color:var(--brand);-webkit-text-stroke:0}
.hero-lead{font-size:clamp(1.02rem,1.5vw,1.2rem);line-height:1.7;color:#E8EDF5;max-width:620px;margin:0;text-shadow:0 1px 2px rgba(6,12,24,.55)}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:.6rem}
.hero-chips{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;margin-top:1.6rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.18)}
.hero-chip{display:flex;align-items:center;gap:.55rem;font-size:.9rem;color:#C9D2E2;font-weight:500}
.hero-chip svg{width:17px;height:17px;color:var(--brand);flex:none}

/* Page hero (interior) */
.page-hero{
  position:relative;color:#fff;isolation:isolate;overflow:hidden;
  padding:calc(var(--header-h) + 4.5rem) 0 6rem;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 3vw),0 100%);
  margin-top:calc(var(--header-h) * -1);
  background:var(--navy-900);
}
.page-hero .hero-media img{object-position:center 35%}
.page-hero h1{color:#fff;margin:0;font-size:clamp(2.4rem,5vw,3.7rem);text-wrap:balance}
.page-hero .hero-lead{margin-top:1rem}
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;font-size:.85rem;color:#9FACC2;margin-bottom:1.4rem}
.breadcrumb a{color:#C9D2E2;font-weight:500}
.breadcrumb a:hover{color:#fff}
.breadcrumb .sep{color:var(--brand);font-weight:700}
.breadcrumb .current{color:#8D9BB4}

/* ---------- Trust / credential strip ---------- */
.trust-strip{background:var(--navy-950);position:relative;z-index:2;padding-block:1.4rem}
.trust-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2.5rem}
.trust-item{display:flex;align-items:center;gap:.8rem;color:#C9D2E2;font-size:.92rem;font-weight:500}
.trust-item svg,.trust-item img{width:30px;height:30px;color:var(--brand);flex:none}
.trust-item b{display:block;color:#fff;font-family:var(--font-display);text-transform:uppercase;letter-spacing:.05em;font-size:1.06rem;font-weight:600;line-height:1.1}
.trust-item span{display:block;font-size:.8rem;color:#8D9BB4}
@media (max-width:900px){.trust-inner{justify-content:center;text-align:left}}

/* ---------- Cards ---------- */
.grid{display:grid;gap:1.6rem}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:1024px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}}

/* Photo card (services / systems / industries) */
.pcard{
  position:relative;display:flex;flex-direction:column;background:#fff;border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);border:1px solid var(--line);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.pcard:hover{transform:translateY(-6px);box-shadow:var(--shadow-md)}
.pcard-media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--navy-850)}
.pcard-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.pcard:hover .pcard-media img{transform:scale(1.06)}
.pcard-media::after{content:"";position:absolute;inset:0;background:linear-gradient(185deg,transparent 55%,rgba(8,16,32,.5))}
.pcard-tag{
  position:absolute;left:1rem;top:1rem;z-index:2;background:var(--navy-900);color:#fff;
  font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;font-weight:600;
  font-size:.8rem;padding:.34rem .7rem;border-left:3px solid var(--brand);
}
.pcard-body{padding:1.5rem 1.5rem 1.6rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.pcard-body h3{margin:0;font-size:1.45rem}
.pcard-body p{margin:0;font-size:.94rem;color:var(--muted);flex:1}
.pcard-body .arrow-link{margin-top:.9rem}
.pcard-link::after{content:"";position:absolute;inset:0;z-index:3}
.pcard-accent{position:absolute;left:0;right:0;top:0;height:4px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease);z-index:4}
.pcard:hover .pcard-accent{transform:scaleX(1)}

/* Icon card (benefits) */
.icard{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.8rem 1.6rem;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s;
}
.icard:hover{transform:translateY(-5px);box-shadow:var(--shadow-md);border-color:transparent}
.icard::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand);transform:scaleY(0);transform-origin:top;transition:transform .3s var(--ease)}
.icard:hover::before{transform:scaleY(1)}
.icard .num{
  font-family:var(--font-display);font-weight:800;font-size:2.6rem;color:transparent;
  -webkit-text-stroke:1.5px var(--brand);line-height:1;display:block;margin-bottom:.8rem;
}
.icard-icon{
  width:56px;height:56px;border-radius:10px;background:var(--navy-850);display:grid;place-items:center;margin-bottom:1.1rem;
}
.icard-icon img{width:32px;height:32px;object-fit:contain}
.icard-icon svg{width:28px;height:28px;color:var(--brand)}
.icard h3{font-size:1.3rem;margin-bottom:.4rem}
.icard p{font-size:.93rem;color:var(--muted);margin:0}
.section-dark .icard,.tex-dark .icard{background:rgba(255,255,255,.04);border-color:var(--line-dark);backdrop-filter:blur(4px)}
.section-dark .icard p,.tex-dark .icard p{color:#AAB6CB}

/* ---------- Split (two-column) blocks ---------- */
.split{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(2.5rem,5vw,4.5rem);align-items:center}
.split.reverse{grid-template-columns:1fr 1.05fr}
.split.reverse .split-media{order:2}
@media (max-width:920px){.split,.split.reverse{grid-template-columns:1fr}.split.reverse .split-media{order:0}}
.split-media{position:relative}
.split-media .main-img{border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:100%;aspect-ratio:4/3.1;object-fit:cover}
.split-media .float-img{
  position:absolute;right:-2rem;bottom:-2.4rem;width:46%;border-radius:var(--radius);
  border:6px solid #fff;box-shadow:var(--shadow-lg);aspect-ratio:4/3;object-fit:cover;
}
.split-media .badge-float{
  position:absolute;left:-1.4rem;top:-1.4rem;background:var(--brand);color:#fff;border-radius:var(--radius);
  padding:1.1rem 1.3rem;text-align:center;box-shadow:var(--shadow-md);
}
.split-media .badge-float b{display:block;font-family:var(--font-display);font-size:2.3rem;font-weight:800;line-height:1}
.split-media .badge-float span{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;font-weight:600}
@media (max-width:920px){.split-media .float-img{right:0;bottom:-1.6rem}.split-media{margin-bottom:2rem}}

/* checklist */
.checklist{list-style:none;padding:0;margin:1.4rem 0;display:grid;gap:.7rem}
.checklist.cols{grid-template-columns:1fr 1fr}
@media (max-width:640px){.checklist.cols{grid-template-columns:1fr}}
.checklist li{display:flex;gap:.7rem;align-items:flex-start;font-size:.97rem;color:var(--body)}
.checklist li svg{width:20px;height:20px;color:var(--brand);flex:none;margin-top:2px}
.checklist li b{color:var(--ink)}.section-dark .checklist li,
.tex-dark .checklist li{color:#C6CFDF}.section-dark .checklist li b,
.tex-dark .checklist li b{color:#fff}

/* ---------- Certifications ---------- */
.cert-grid{display:grid;gap:1.6rem;position:relative;z-index:1}
.cert-card{
  display:grid;grid-template-columns:200px 1fr;gap:2rem;align-items:center;
  background:rgba(255,255,255,.05);border:1px solid var(--line-dark);border-radius:var(--radius-lg);
  padding:2rem;backdrop-filter:blur(4px);
  transition:transform .25s var(--ease),border-color .25s,background .25s;
}
.cert-card:hover{transform:translateY(-4px);border-color:rgba(61,109,166,.5);background:rgba(255,255,255,.07)}
.cert-badge{
  display:grid;place-items:center;background:#fff;border-radius:var(--radius);
  padding:1.2rem;min-height:150px;box-shadow:var(--shadow-md);
}
.cert-badge img{max-width:100%;max-height:120px;width:auto;height:auto;object-fit:contain}
.cert-icon{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--navy-850)}
.cert-icon svg{width:44px;height:44px;color:var(--brand)}
.cert-body h3{color:#fff;font-size:1.55rem;margin-bottom:.15rem}
.cert-sub{
  font-family:var(--font-display);text-transform:uppercase;letter-spacing:.12em;
  font-size:.85rem;font-weight:600;color:var(--brand);margin:0 0 .9rem;
}
.cert-text{color:#B9C3D6;font-size:.97rem;margin-bottom:1rem}
.cert-points{list-style:none;margin:0 0 1rem;padding:0;display:grid;gap:.45rem}
.cert-points li{display:flex;gap:.6rem;align-items:flex-start;font-size:.92rem;color:#C6CFDF}
.cert-points li svg{width:17px;height:17px;color:var(--brand);flex:none;margin-top:3px}
.cert-link{color:var(--brand-300)}
.cert-link:hover{color:#fff}
.cert-note{
  margin-top:2rem;text-align:center;font-size:.92rem;color:#B9C3D6;
  padding-top:1.6rem;border-top:1px solid var(--line-dark);
}

/* ---------- Certificate gallery ---------- */
.cert-docs{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
@media (max-width:860px){.cert-docs{grid-template-columns:repeat(2,1fr);gap:1.5rem}}
@media (max-width:560px){.cert-docs{grid-template-columns:1fr;max-width:400px;margin-inline:auto}}

.cert-doc{
  display:flex;flex-direction:column;gap:1rem;padding:0;border:0;background:none;
  cursor:zoom-in;text-align:center;font:inherit;color:inherit;
}
.cert-doc-frame{
  position:relative;display:block;overflow:hidden;
  aspect-ratio:4/3;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:transform .28s var(--ease),box-shadow .28s var(--ease),border-color .28s;
}
/* absolute inset keeps the letterbox deterministic — percentage heights on a
   flow/grid child don't resolve reliably against an aspect-ratio box */
.cert-doc-frame img{
  position:absolute;inset:1.1rem;
  width:calc(100% - 2.2rem);height:calc(100% - 2.2rem);
  object-fit:contain;object-position:center;
  transition:transform .35s var(--ease);
}
.cert-doc:hover .cert-doc-frame,.cert-doc:focus-visible .cert-doc-frame{
  transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--brand);
}
.cert-doc:hover .cert-doc-frame img{transform:scale(1.03)}
.cert-doc-hover{
  position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:.5rem;
  background:rgba(12,24,48,.82);color:#fff;opacity:0;transition:opacity .25s var(--ease);
  font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;font-size:.85rem;font-weight:600;
}
.cert-doc-hover svg{width:30px;height:30px;color:var(--brand)}
.cert-doc:hover .cert-doc-hover,.cert-doc:focus-visible .cert-doc-hover{opacity:1}
.cert-doc-meta b{display:block;font-family:var(--font-display);text-transform:uppercase;letter-spacing:.05em;font-size:1.08rem;color:var(--ink)}
.cert-doc-meta span{display:block;font-size:.82rem;color:var(--muted);margin-top:.15rem}
.cert-verify{
  margin-top:2.4rem;text-align:center;font-size:.92rem;color:var(--muted);
  padding-top:1.6rem;border-top:1px solid var(--line);
}
.cert-verify strong{color:var(--ink)}

/* Lightbox */
.doc-modal{
  border:0;padding:0;background:transparent;max-width:min(1000px,94vw);max-height:94vh;
  overflow:visible;color:#fff;
}
.doc-modal::backdrop{background:rgba(6,12,24,.9);backdrop-filter:blur(3px)}
.doc-modal-fig{margin:0;display:flex;flex-direction:column;gap:.9rem;align-items:center}
.doc-modal-fig img{
  max-width:100%;max-height:82vh;width:auto;height:auto;display:block;
  border-radius:var(--radius);box-shadow:0 30px 70px -20px rgba(0,0,0,.8);background:#fff;
}
.doc-modal-fig figcaption{
  font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;
  font-size:.95rem;font-weight:600;color:#fff;text-align:center;
}
.doc-modal-close{
  position:absolute;top:-.5rem;right:-.5rem;transform:translate(50%,-50%);
  width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  background:var(--brand);color:#fff;display:grid;place-items:center;
  box-shadow:0 8px 20px -6px rgba(0,0,0,.6);transition:background .18s,transform .18s var(--ease);
}
.doc-modal-close svg{width:20px;height:20px}
.doc-modal-close:hover{background:var(--brand-600);transform:translate(50%,-50%) scale(1.08)}
@media (max-width:640px){
  .doc-modal-close{top:0;right:0;transform:translate(25%,-25%);width:38px;height:38px}
  .doc-modal-close:hover{transform:translate(25%,-25%) scale(1.08)}
}
@media (max-width:760px){
  .cert-card{grid-template-columns:1fr;gap:1.4rem;padding:1.5rem;text-align:center}
  .cert-badge{min-height:0;padding:1.4rem;max-width:230px;margin-inline:auto}
  .cert-icon{margin-inline:auto}
  .cert-points li{text-align:left}
  .cert-card .arrow-link{justify-content:center}
}

/* ---------- Stats band ---------- */
.stats-band{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
@media (max-width:900px){.stats-band{grid-template-columns:repeat(2,1fr)}}
.stat{border-left:3px solid var(--brand);padding-left:1.2rem}
.stat .num{
  font-family:var(--font-display);font-weight:800;font-size:clamp(2.6rem,4.5vw,3.6rem);
  color:#fff;line-height:1;display:flex;align-items:baseline;gap:.1em;
}
.stat .num .suffix{color:var(--brand);font-size:.6em}
.stat .lbl{margin-top:.45rem;font-size:.9rem;color:#AAB6CB;text-transform:uppercase;letter-spacing:.08em;font-family:var(--font-display);font-weight:600}
/* Accent details that sit on navy: the mid blue drops to ~3.3:1 there, so use
   the lighter step reserved for dark grounds. */
.stat .num .suffix{color:var(--brand-300)}
.section-dark .cert-sub,.tex-dark .cert-sub,
.section-dark .arrow-link,.tex-dark .arrow-link{color:var(--brand-300)}
.section-dark .arrow-link:hover,.tex-dark .arrow-link:hover{color:#fff}

/* ---------- Process ---------- */
.process{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem;counter-reset:step}
@media (max-width:900px){.process{grid-template-columns:1fr}}
.step{
  position:relative;background:#fff;border-radius:var(--radius);padding:2.2rem 1.7rem 1.9rem;
  border:1px solid var(--line);box-shadow:var(--shadow-sm);
}
.step .step-num{
  position:absolute;top:-1.35rem;left:1.6rem;width:2.7rem;height:2.7rem;border-radius:8px;
  background:var(--brand);color:#fff;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:800;font-size:1.4rem;box-shadow:0 8px 18px -6px rgba(61,109,166,.6);
}
.step h3{font-size:1.35rem;margin:.4rem 0 .5rem}
.step p{font-size:.94rem;color:var(--muted);margin:0}
.step .step-icon{
  display:grid;place-items:center;width:64px;height:64px;border-radius:12px;
  background:var(--navy-850);margin-bottom:1rem;
}
.step .step-icon img{width:36px;height:36px;object-fit:contain}

/* ---------- Systems index (jump nav + rows) ---------- */
.jump-nav{
  position:sticky;top:var(--header-h);z-index:50;background:#fff;border-bottom:1px solid var(--line);
  box-shadow:0 8px 20px -14px rgba(8,16,32,.25);
}
.jump-nav-inner{display:flex;gap:.4rem;overflow-x:auto;padding-block:.7rem;scrollbar-width:none}
.jump-nav-inner::-webkit-scrollbar{display:none}
.jump-chip{
  flex:none;padding:.5rem 1rem;border-radius:99px;border:1px solid var(--line);
  font-family:var(--font-display);font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  font-size:.9rem;color:var(--navy-800);white-space:nowrap;transition:background .18s,color .18s,border-color .18s;
}
.jump-chip:hover,.jump-chip.active{background:var(--navy-800);border-color:var(--navy-800);color:#fff}/* chips on dark sections */
.section-dark .jump-chip,
.tex-dark .jump-chip,
/* chips on dark sections */
.tex-dark .jump-chip{color:#D5DDEA;border-color:rgba(255,255,255,.28)}
.section-dark .jump-chip:hover,.tex-dark .jump-chip:hover{background:var(--brand);border-color:var(--brand);color:#fff}

.system-row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.2rem,4.5vw,4rem);align-items:center;padding-block:clamp(2.8rem,5vw,4.2rem)}
.system-row + .system-row{border-top:1px solid var(--line)}
.system-row:nth-child(even) .system-media{order:2}
@media (max-width:920px){.system-row{grid-template-columns:1fr}.system-row:nth-child(even) .system-media{order:0}}
.system-media{position:relative}
.system-media img{border-radius:var(--radius-lg);box-shadow:var(--shadow-md);aspect-ratio:16/11;object-fit:cover;width:100%}
.system-media .sys-index{
  position:absolute;top:-1.1rem;left:-1.1rem;background:var(--navy-900);color:transparent;
  -webkit-text-stroke:1.5px var(--brand);font-family:var(--font-display);font-weight:800;
  font-size:2.2rem;padding:.35rem .8rem;border-radius:8px;line-height:1;box-shadow:var(--shadow-md);
}
.system-copy h3{font-size:clamp(1.7rem,2.6vw,2.2rem)}
.system-copy .sys-points{list-style:none;margin:1.2rem 0 1.4rem;padding:0;display:grid;gap:.55rem}
.system-copy .sys-points li{display:flex;gap:.6rem;font-size:.95rem}
.system-copy .sys-points li svg{width:18px;height:18px;color:var(--brand);flex:none;margin-top:3px}
.system-copy .sys-points b{color:var(--ink)}

/* ---------- Spec table ---------- */
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-block:1.5rem}
.spec-cell{background:#fff;padding:1.25rem 1.3rem}
.spec-cell .k{font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:600;margin-bottom:.3rem}
.spec-cell .v{font-family:var(--font-display);font-weight:700;font-size:1.35rem;color:var(--navy-800);text-transform:uppercase;letter-spacing:.02em}

/* ---------- Testimonials ---------- */
.t-slider{display:grid;grid-auto-flow:column;grid-auto-columns:min(420px,86%);gap:1.4rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:0.4rem .3rem 1.4rem;scrollbar-width:thin}
.t-card{
  scroll-snap-align:start;background:#fff;border-radius:var(--radius);border:1px solid var(--line);
  padding:1.9rem;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:1rem;
}
.t-stars{display:flex;gap:.2rem;color:var(--brand)}
.t-stars svg{width:17px;height:17px}
.t-quote{font-size:.98rem;color:var(--body);margin:0;flex:1}
.t-who{display:flex;align-items:center;gap:.9rem;border-top:1px solid var(--line);padding-top:1rem}
.t-who .avatar{
  width:44px;height:44px;border-radius:50%;background:var(--navy-800);color:#fff;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:700;font-size:1.1rem;flex:none;
}
.t-who b{display:block;color:var(--ink);font-size:.95rem}
.t-who span{font-size:.8rem;color:var(--muted)}

/* ---------- Projects ---------- */
.filter-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem}
.filter-chip{
  padding:.55rem 1.1rem;border-radius:99px;border:1.5px solid var(--line);background:#fff;cursor:pointer;
  font-family:var(--font-display);font-weight:600;text-transform:uppercase;letter-spacing:.06em;font-size:.92rem;color:var(--navy-800);
  transition:background .18s,color .18s,border-color .18s;
}
.filter-chip:hover{border-color:var(--navy-800)}
.filter-chip.active{background:var(--brand);border-color:var(--brand);color:#fff}
.project-card .pcard-body .meta{display:flex;flex-wrap:wrap;gap:.4rem .9rem;font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.project-card .pcard-body .meta svg{width:13px;height:13px;color:var(--brand);margin-right:.25rem;vertical-align:-2px}

/* ---------- FAQ ---------- */
.faq{display:grid;gap:.9rem;max-width:860px}
.faq details{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);overflow:hidden;
}
.faq summary{
  list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:1.15rem 1.4rem;font-family:var(--font-display);font-weight:600;text-transform:uppercase;
  letter-spacing:.04em;font-size:1.12rem;color:var(--navy-800);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary .fx{
  width:28px;height:28px;border-radius:6px;background:var(--bg-mist);display:grid;place-items:center;flex:none;
  transition:background .2s,transform .25s var(--ease);
}
.faq summary .fx svg{width:14px;height:14px;color:var(--navy-800);transition:color .2s}
.faq details[open] summary .fx{background:var(--brand);transform:rotate(45deg)}
.faq details[open] summary .fx svg{color:#fff}
.faq .faq-body{padding:0 1.4rem 1.3rem;font-size:.95rem;color:var(--muted)}

/* ---------- CTA banner ---------- */
.cta-banner{
  position:relative;isolation:isolate;overflow:hidden;color:#fff;
  background:linear-gradient(120deg,var(--navy-950),var(--navy-800));
  border-radius:var(--radius-lg);padding:clamp(2.5rem,5vw,4rem);
  display:grid;grid-template-columns:1.4fr auto;gap:2rem;align-items:center;
  box-shadow:var(--shadow-lg);
}
.cta-banner::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.14;background:url("../img/hero-deck.jpg") center/cover}
.cta-banner::after{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--brand)}
.cta-banner h2{color:#fff;font-size:clamp(1.9rem,3.4vw,2.8rem);margin-bottom:.4rem}
.cta-banner p{color:#C6CFDF;margin:0;max-width:560px}
.cta-actions{display:flex;flex-direction:column;gap:.9rem;align-items:stretch}
.cta-actions .call{
  display:flex;align-items:center;gap:.8rem;justify-content:center;color:#fff;
  font-family:var(--font-display);font-weight:700;font-size:1.6rem;letter-spacing:.02em;
}
.cta-actions .call svg{width:22px;height:22px;color:var(--brand)}
.cta-actions .call:hover{color:var(--brand)}
@media (max-width:780px){.cta-banner{grid-template-columns:1fr}}

/* ---------- Insights / articles ---------- */
.post-card .pcard-media{aspect-ratio:16/9}
.featured-post{display:grid;grid-template-columns:1.1fr 1fr;align-items:stretch}
.featured-post .pcard-media{aspect-ratio:auto;min-height:320px}
.featured-post .pcard-media img{height:100%}
.featured-post .pcard-body{padding:2.4rem}
@media (max-width:840px){
  .featured-post{grid-template-columns:1fr}
  .featured-post .pcard-media{min-height:220px}
  .featured-post .pcard-body{padding:1.6rem}
}
.post-meta{display:flex;gap:.9rem;align-items:center;font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:600}
.post-meta .cat{color:var(--brand-600)}
.article-body{max-width:780px;margin-inline:auto;font-size:1.05rem}
.article-body h2{font-size:1.9rem;margin-top:2.2rem}
.article-body h3{font-size:1.4rem;margin-top:1.8rem}
.article-body img{border-radius:var(--radius);margin-block:1.6rem}
.article-body blockquote{
  margin:1.8rem 0;padding:1.2rem 1.6rem;border-left:4px solid var(--brand);
  background:var(--bg-soft);border-radius:0 var(--radius) var(--radius) 0;font-style:italic;color:var(--ink);
}
.article-hero-meta{display:flex;gap:1.2rem;align-items:center;color:#AAB6CB;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;font-weight:600}
.article-hero-meta .cat{color:var(--brand-300)}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,4vw,3.5rem);align-items:start}
@media (max-width:920px){.contact-grid{grid-template-columns:1fr}}
.form-card{background:#fff;border-radius:var(--radius-lg);border:1px solid var(--line);box-shadow:var(--shadow-md);padding:clamp(1.6rem,3vw,2.6rem)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
.form-grid .full{grid-column:1/-1}
@media (max-width:600px){.form-grid{grid-template-columns:1fr}}
.field label{display:block;font-size:.82rem;font-weight:600;color:var(--ink);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.4rem}
.field label .req{color:var(--brand-600)}
.field input,.field select,.field textarea{
  width:100%;padding:.85rem 1rem;border:1.5px solid var(--line);border-radius:8px;
  font:inherit;font-size:.95rem;color:var(--ink);background:#fff;transition:border-color .18s,box-shadow .18s;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--steel);box-shadow:0 0 0 4px rgba(61,109,166,.14)}
.field textarea{min-height:130px;resize:vertical}
.field .err{display:none;font-size:.8rem;color:#C42B1C;margin-top:.35rem}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:#C42B1C}
.field.invalid .err{display:block}
.form-note{font-size:.8rem;color:var(--muted);margin-top:1rem}
.form-success{display:none;background:#EFFAF1;border:1px solid #BFE8C8;color:#19703A;border-radius:8px;padding:1rem 1.2rem;margin-top:1.2rem;font-size:.95rem}
.form-success.show{display:block}

.info-card{background:var(--navy-900);color:#C6CFDF;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg)}
.info-card .info-body{padding:clamp(1.6rem,3vw,2.4rem);display:grid;gap:1.5rem}
.info-card h3{color:#fff}
.info-row{display:flex;gap:1rem;align-items:flex-start}
.info-row .ic{width:44px;height:44px;border-radius:9px;background:rgba(61,109,166,.15);display:grid;place-items:center;flex:none}
.info-row .ic svg{width:20px;height:20px;color:var(--brand)}
.info-row b{display:block;color:#fff;font-family:var(--font-display);text-transform:uppercase;letter-spacing:.06em;font-size:1.05rem;margin-bottom:.15rem}
.info-row a{color:#C9D2E2}
.info-row a:hover{color:var(--brand)}
.info-map{background:var(--navy-950);padding:1.6rem;text-align:center}
.info-map img{margin-inline:auto;max-height:220px;width:auto}
.info-map .cities{font-size:.82rem;color:#8D9BB4;margin-top:1rem;line-height:1.8}

/* ---------- Service area ---------- */
.area-wrap{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:center}
@media (max-width:900px){.area-wrap{grid-template-columns:1fr}}
.area-map{background:linear-gradient(160deg,var(--navy-900),var(--navy-800));border-radius:var(--radius-lg);padding:2.5rem;box-shadow:var(--shadow-lg)}
.area-map img{margin-inline:auto}
.city-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1.4rem}
@media (max-width:520px){.city-grid{grid-template-columns:1fr}}
.city{display:flex;align-items:center;gap:.6rem;font-size:.95rem;color:var(--body);font-weight:500}
.city svg{width:16px;height:16px;color:var(--brand);flex:none}
/* City list on dark service-area sections. On navy the light-ground body
   colour lands near 1.7:1 and is effectively unreadable. */
.section-dark .city,
.tex-dark .city,
.area-wrap .on-dark .city{color:#C9D2E2}
.section-dark .city svg,.tex-dark .city svg,.area-wrap .on-dark .city svg{color:var(--brand-300)}

/* ---------- Footer ---------- */
.pre-footer{background:var(--bg-soft);padding-block:0 clamp(4rem,7vw,6rem)}
.site-footer{background:var(--navy-950);color:#9FACC2;font-size:.92rem;position:relative;overflow:hidden}
.site-footer::before{content:"";position:absolute;inset:0;opacity:.04;background:url("../img/texture.png") center/720px repeat;pointer-events:none}
.footer-main{
  position:relative;display:grid;
  grid-template-columns:1.5fr .9fr .9fr .9fr 1.05fr;
  gap:2.2rem;padding-block:4rem 3rem;
}
@media (max-width:1180px){
  .footer-main{grid-template-columns:1.4fr 1fr 1fr;row-gap:2.8rem}
  .footer-brand{grid-column:1/-1;max-width:640px}
  .footer-brand p{max-width:520px}
}
@media (max-width:760px){.footer-main{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.footer-main{grid-template-columns:1fr}}
.footer-brand img{height:64px;width:auto;margin-bottom:1.2rem}
.footer-brand p{max-width:300px;font-size:.9rem}
/* Footer credential seals — no light plates; artwork sits on the dark ground */
.footer-seals{display:flex;align-items:center;gap:1.6rem;flex-wrap:wrap;margin-top:1.5rem}
.footer-seal{
  display:inline-flex;align-items:center;justify-content:center;
  transition:transform .2s var(--ease),filter .2s var(--ease);
}
.footer-seal img{width:auto;display:block}
.footer-seal-bbb img{height:44px}
.footer-seal-gaf img{height:74px;filter:drop-shadow(0 2px 8px rgba(0,0,0,.5))}
.footer-seal:hover{transform:translateY(-3px)}
.footer-seal-bbb:hover img{filter:brightness(1.12)}
.footer-seal-gaf:hover img{filter:drop-shadow(0 4px 10px rgba(61,109,166,.4))}
.footer-badges{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.badge-pill{
  border:1px solid var(--line-dark);border-radius:6px;padding:.38rem .6rem;font-size:.68rem;
  text-transform:uppercase;letter-spacing:.06em;font-weight:600;color:#C9D2E2;display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;
}
.badge-pill svg{width:13px;height:13px;color:var(--brand)}
.footer-col h4{color:#fff;font-size:1.1rem;letter-spacing:.12em;margin-bottom:1.2rem}
.footer-col h4::after{content:"";display:block;width:30px;height:3px;background:var(--brand);margin-top:.55rem}
.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.footer-col a{color:#9FACC2;transition:color .15s,padding-left .2s var(--ease)}
.footer-col a:hover{color:#fff;padding-left:4px}
.footer-contact li{display:flex;gap:.7rem;align-items:flex-start}
.footer-contact svg{width:17px;height:17px;color:var(--brand);flex:none;margin-top:3px}
.footer-bottom{position:relative;border-top:1px solid var(--line-dark);padding-block:1.4rem;display:flex;flex-wrap:wrap;gap:.6rem 2rem;justify-content:space-between;font-size:.8rem;color:#66748C}
.footer-bottom a{color:#8D9BB4}
.footer-bottom a:hover{color:#fff}

/* On navy a mid blue is muddy against the ground and too low contrast for a
   white label (3.5:1). Inverting to a light ground with a navy label fixes
   both: the CTA pops and the text clears AA. */
.section-dark .btn-primary,
.tex-dark .btn-primary,
.cta-banner .btn-primary,
.hero .btn-primary,
.page-hero .btn-primary,
.mega-promo .btn-primary,
.drawer .btn-primary,
.tex-dark .btn-primary{background:var(--brand-300);color:var(--navy-950);
  box-shadow:0 6px 18px -6px rgba(110,155,203,.45)}
.section-dark .btn-primary:hover,
.tex-dark .btn-primary:hover,
.cta-banner .btn-primary:hover,
.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.mega-promo .btn-primary:hover,
.drawer .btn-primary:hover{background:#8FB4DC;color:var(--navy-950)}

/* ---------- Reveal animations ---------- */
/* Content is VISIBLE by default. The reveal animation only engages once JS is
   confirmed running (html.js), so a script failure can never leave the page
   blank — and it is disabled outright inside the Elementor editor, where the
   IntersectionObserver never fires and content would otherwise stay hidden. */
.reveal{opacity:1;transform:none}
html.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
html.js .reveal.in{opacity:1;transform:none}
body.elementor-editor-active .reveal,
body.elementor-editor-active .reveal.in{opacity:1 !important;transform:none !important}
.reveal-d1{transition-delay:.08s}
.reveal-d2{transition-delay:.16s}
.reveal-d3{transition-delay:.24s}
.reveal-d4{transition-delay:.32s}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}}

/* ---------- Utilities ---------- */
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}
.center{text-align:center}
.lead-lg{font-size:1.12rem;color:var(--muted)}
.two-col-text{columns:2;column-gap:3rem}
@media (max-width:820px){.two-col-text{columns:1}}
.divider-slim{height:1px;background:var(--line);border:0;margin-block:2.5rem}
.prose{max-width:820px}
.prose h2{font-size:1.9rem;margin-top:2rem}
.prose h3{font-size:1.4rem;margin-top:1.6rem}
.kicker-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:2.4rem}
.kicker-row .section-head{margin-bottom:0}

/* Print */
@media print{
  .topbar,.site-header,.drawer,.jump-nav,.cta-banner,.site-footer .footer-badges{display:none!important}
  .hero,.page-hero{clip-path:none;min-height:0;color:#000}
}

/* ==========================================================================
   ELEMENTOR LAYER
   The design is loaded into Elementor as native widgets (heading, text-editor,
   button, icon-list, toggle). Elementor puts our classes on the widget WRAPPER
   and renders its own inner markup, so these rules re-apply the Miller design
   to that structure. Prefixed mr-* to avoid clashing with the static markup.
   ========================================================================== */

/* container behaves like .container */
body .elementor .elementor-section.section > .elementor-container,
body .elementor .elementor-section.hero > .elementor-container,
body .elementor .elementor-section.page-hero > .elementor-container,
body .elementor .elementor-section.pre-footer > .elementor-container{
  width:min(1200px,92vw);
}

/* section padding/anchors survive because .section etc. sit on the section */
body .elementor .elementor-section.hero,
body .elementor .elementor-section.page-hero{display:flex;align-items:center}
body .elementor .elementor-section.hero > .elementor-container,
body .elementor .elementor-section.page-hero > .elementor-container{position:relative;z-index:2}
body .elementor .elementor-section.hero .elementor-widget-wrap,
body .elementor .elementor-section.page-hero .elementor-widget-wrap{align-content:center}

/* ---- headings ---- */
body .elementor .elementor-widget-heading .elementor-heading-title{
  font-family:var(--font-display);text-transform:uppercase;font-weight:700;
  line-height:1.04;letter-spacing:.005em;color:var(--ink);margin:0;
}
body .elementor .elementor-widget-heading h1.elementor-heading-title{font-size:clamp(2.6rem,6vw,4.4rem);font-weight:800}
body .elementor .elementor-widget-heading h2.elementor-heading-title{font-size:clamp(2rem,4vw,3rem)}
body .elementor .elementor-widget-heading h3.elementor-heading-title{font-size:clamp(1.35rem,2.4vw,1.7rem)}
body .elementor .hero .elementor-widget-heading .elementor-heading-title,
body .elementor .page-hero .elementor-widget-heading .elementor-heading-title,
body .elementor .section-dark .elementor-widget-heading .elementor-heading-title,
body .elementor .tex-dark .elementor-widget-heading .elementor-heading-title{color:#fff}
body .elementor .hero .elementor-heading-title .accent{color:var(--brand)}

/* ---- eyebrow ---- */
body .elementor .elementor-widget.mr-eyebrow .elementor-heading-title{
  display:inline-flex;align-items:center;gap:.65rem;
  font-family:var(--font-display);font-weight:600;text-transform:uppercase;
  letter-spacing:.18em;font-size:.95rem;color:var(--brand-600);
}
body .elementor .elementor-widget.mr-eyebrow .elementor-heading-title::before{
  content:"";width:34px;height:3px;background:var(--brand);flex:none;
}
body .elementor .hero .elementor-widget.mr-eyebrow .elementor-heading-title,
body .elementor .page-hero .elementor-widget.mr-eyebrow .elementor-heading-title,
body .elementor .section-dark .elementor-widget.mr-eyebrow .elementor-heading-title,
body .elementor .tex-dark .elementor-widget.mr-eyebrow .elementor-heading-title{color:var(--brand-300)}
body .elementor .elementor-widget.mr-eyebrow{margin-bottom:.9rem!important}

/* ---- body text ---- */
body .elementor .elementor-widget-text-editor{
  font-family:var(--font-body);font-size:1rem;line-height:1.65;color:var(--body);
}
body .elementor .elementor-widget-text-editor p{margin:0 0 1em}
body .elementor .elementor-widget-text-editor p:last-child{margin-bottom:0}
body .elementor .section-dark .elementor-widget-text-editor,
body .elementor .tex-dark .elementor-widget-text-editor{color:#B9C3D6}
/* Constrain the TEXT, not the widget: a narrow widget lets the next widget
   (the buttons) flow up alongside it inside .elementor-widget-wrap's flex row.
   `> *` deliberately avoids .elementor-widget-container — Elementor 4.x removed
   that wrapper, so the widget's direct child is the content element itself. */
body .elementor .elementor-widget.mr-hero-lead > *{
  font-size:clamp(1.02rem,1.5vw,1.2rem);line-height:1.7;color:#E8EDF5;max-width:620px;
  text-shadow:0 1px 2px rgba(6,12,24,.55);
}
body .elementor .elementor-widget.mr-lead-lg > *{font-size:1.12rem;color:var(--muted)}
body .elementor .elementor-widget.mr-cert-note > *,
body .elementor .elementor-widget.mr-cert-verify > *,
body .elementor .elementor-widget.mr-form-note > *{font-size:.92rem;color:var(--muted);text-align:center}
/* These note widgets also sit on navy (the credentials section), where the
   muted grey lands at 3.5:1. */
body .elementor .section-dark .elementor-widget.mr-cert-note > *,
body .elementor .tex-dark .elementor-widget.mr-cert-note > *,
body .elementor .section-dark .elementor-widget.mr-cert-verify > *,
body .elementor .tex-dark .elementor-widget.mr-cert-verify > *{color:#B9C3D6}

/* ---- buttons ---- */
body .elementor .elementor-widget.mr-btn{width:auto!important}
body .elementor .elementor-widget.mr-btn .elementor-button-wrapper{display:inline-block}
body .elementor .elementor-widget.mr-btn .elementor-button{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  font-family:var(--font-display);font-weight:600;text-transform:uppercase;
  letter-spacing:.06em;font-size:1.05rem;line-height:1;
  padding:1.02rem 1.7rem;border-radius:6px;border:2px solid transparent;
  background:var(--brand);color:#fff;
  transition:transform .18s var(--ease),background .18s,border-color .18s,color .18s;
}
body .elementor .elementor-widget.mr-btn .elementor-button:hover{transform:translateY(-2px)}
body .elementor .elementor-widget.mr-btn-primary .elementor-button{background:var(--brand);color:#fff;box-shadow:0 6px 18px -6px rgba(61,109,166,.55)}
body .elementor .elementor-widget.mr-btn-primary .elementor-button:hover{background:var(--brand-600)}
/* Mirror of the static rule above: on navy grounds invert the CTA to a light
   ground with a navy label. Elementor renders buttons as .mr-btn-primary, so
   the .btn-primary rule cannot reach them — without this the WordPress build
   quietly diverges from the static design. */
body .elementor .hero .elementor-widget.mr-btn-primary .elementor-button,
body .elementor .page-hero .elementor-widget.mr-btn-primary .elementor-button,
body .elementor .section-dark .elementor-widget.mr-btn-primary .elementor-button,
body .elementor .tex-dark .elementor-widget.mr-btn-primary .elementor-button{
  background:var(--brand-300);color:var(--navy-950);
  box-shadow:0 6px 18px -6px rgba(110,155,203,.45);
}
body .elementor .hero .elementor-widget.mr-btn-primary .elementor-button:hover,
body .elementor .page-hero .elementor-widget.mr-btn-primary .elementor-button:hover,
body .elementor .section-dark .elementor-widget.mr-btn-primary .elementor-button:hover,
body .elementor .tex-dark .elementor-widget.mr-btn-primary .elementor-button:hover{
  background:#8FB4DC;color:var(--navy-950);
}
body .elementor .elementor-widget.mr-btn-navy .elementor-button{background:var(--navy-800);color:#fff}
body .elementor .elementor-widget.mr-btn-navy .elementor-button:hover{background:var(--navy-700)}
body .elementor .elementor-widget.mr-btn-ghost .elementor-button{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
body .elementor .elementor-widget.mr-btn-ghost .elementor-button:hover{border-color:#fff;background:rgba(255,255,255,.08)}
body .elementor .elementor-widget.mr-btn-ghost-dark .elementor-button{background:transparent;color:var(--navy-800);border-color:rgba(21,39,71,.35)}
body .elementor .elementor-widget.mr-btn-ghost-dark .elementor-button:hover{border-color:var(--navy-800);background:rgba(21,39,71,.05)}
body .elementor .elementor-widget.mr-btn-sm .elementor-button{padding:.72rem 1.15rem;font-size:.95rem}

/* ---- icon list (checklists) ---- */
body .elementor .elementor-widget.mr-checklist .elementor-icon-list-items{display:grid;gap:.7rem}
body .elementor .elementor-widget.mr-checklist.cols .elementor-icon-list-items{grid-template-columns:1fr 1fr}
@media (max-width:640px){body .elementor .elementor-widget.mr-checklist.cols .elementor-icon-list-items{grid-template-columns:1fr}}
body .elementor .elementor-widget.mr-checklist .elementor-icon-list-item{align-items:flex-start;gap:.7rem;font-size:.97rem;color:var(--body)}
body .elementor .elementor-widget.mr-checklist .elementor-icon-list-icon{color:var(--brand);margin-top:3px}
/* the kit colours the <i> itself, so inheriting from the span is not enough */
body .elementor .elementor-widget.mr-checklist .elementor-icon-list-icon i{font-size:15px;color:var(--brand)}
body .elementor .elementor-widget-icon-list .elementor-icon-list-icon i,
body .elementor .elementor-widget-icon-list .elementor-icon-list-icon svg{color:var(--brand);fill:var(--brand)}
body .elementor .section-dark .elementor-widget.mr-checklist .elementor-icon-list-item,
body .elementor .tex-dark .elementor-widget.mr-checklist .elementor-icon-list-item{color:#C6CFDF}

/* ---- FAQ toggle ---- */
body .elementor .elementor-widget.mr-faq .elementor-toggle{display:grid;gap:.9rem;max-width:860px}
body .elementor .elementor-widget.mr-faq .elementor-toggle-item{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);overflow:hidden;
}
body .elementor .elementor-widget.mr-faq .elementor-tab-title{
  padding:1.15rem 1.4rem;font-family:var(--font-display);font-weight:600;
  text-transform:uppercase;letter-spacing:.04em;font-size:1.12rem;color:var(--navy-800);
  flex-direction:row-reverse;
}
body .elementor .elementor-widget.mr-faq .elementor-toggle-icon{
  width:28px;height:28px;border-radius:6px;background:var(--bg-mist);
  display:grid;place-items:center;flex:none;color:var(--navy-800);
}
body .elementor .elementor-widget.mr-faq .elementor-tab-content{padding:0 1.4rem 1.3rem;font-size:.95rem;color:var(--muted)}

/* ---- images ---- */
body .elementor .elementor-widget-image img{border-radius:var(--radius)}

/* keep widget rhythm close to the original spacing */
body .elementor .elementor-widget:not(:last-child){margin-bottom:1.1rem}
body .elementor .elementor-widget-heading + .elementor-widget-text-editor{margin-top:-.2rem}

/* two-column sections: restore the design's gap + vertical centring
   (Elementor's "no gap" columns sit flush against each other) */
body .elementor .elementor-section > .elementor-container > .elementor-col-50{align-items:center}
body .elementor .elementor-section > .elementor-container > .elementor-col-50:first-child{padding-right:clamp(1.25rem,2.5vw,2.25rem)}
body .elementor .elementor-section > .elementor-container > .elementor-col-50:last-child{padding-left:clamp(1.25rem,2.5vw,2.25rem)}
body .elementor .elementor-section > .elementor-container > .elementor-col-50 > .elementor-widget-wrap{align-content:center}
@media (max-width:1024px){
  body .elementor .elementor-section > .elementor-container > .elementor-col-50:first-child,
body .elementor .elementor-section > .elementor-container > .elementor-col-50:last-child{padding-inline:0}
  body .elementor .elementor-section > .elementor-container > .elementor-col-50:first-child{margin-bottom:2.5rem}
}
/* the floating overlap image must not spill into the next column */
body .elementor .elementor-col-50 .split-media{width:100%}

/* centred section heads (the .section-head.center wrapper is gone once the
   text becomes individual widgets) */
body .elementor .elementor-widget.mr-center{text-align:center}
body .elementor .elementor-widget.mr-center > *{margin-inline:auto;max-width:780px}
body .elementor .elementor-widget.mr-eyebrow.mr-center .elementor-heading-title{justify-content:center}

/* Hero/page-hero art is the Elementor section background (natively swappable).
   The design's directional scrim is re-applied here rather than as a flat
   Elementor overlay, which washed the photograph out. */
body .elementor .elementor-section.hero,
body .elementor .elementor-section.page-hero{
  position:relative;isolation:isolate;
}
body .elementor .elementor-section.hero::before,
body .elementor .elementor-section.page-hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(78deg,
    rgba(8,16,32,.94) 0%,
    rgba(10,20,40,.82) 34%,
    rgba(12,24,48,.45) 62%,
    rgba(12,24,48,.25) 100%);
}
body .elementor .elementor-section.page-hero::before{
  background:linear-gradient(78deg,
    rgba(8,16,32,.94) 0%,
    rgba(10,20,40,.86) 45%,
    rgba(12,24,48,.62) 100%);
}
body .elementor .elementor-section.hero > .elementor-container,
body .elementor .elementor-section.page-hero > .elementor-container{
  position:relative;z-index:2;
}
/* the Elementor background layer sits under the scrim */
body .elementor .elementor-section.hero > .elementor-background-overlay,
body .elementor .elementor-section.page-hero > .elementor-background-overlay{z-index:1}
