/* ==========================================================================
   A&V Pool Service — site styles
   Edit this file, then re-run build\build.ps1 is NOT required: this file is
   copied as-is. Change it and re-upload assets/css/site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts are self-hosted (54 KB total) rather than pulled from Google Fonts.
   That removes a third-party DNS + TLS round trip before any text can render,
   which is what caused the visible font swap on page load.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;          /* variable font: one file covers the range */
  font-display: swap;
  src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/figtree-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/poppins800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy:      #0A2540;
  --navy-700:  #0E3557;
  --ink:       #12354F;
  --ink-600:   #47637C;
  --blue:      #0F73B8;   /* 5.04:1 on white - safe for small text */
  --blue-500:  #0F8FDB;   /* 3.52:1 - decorative / large text / icons only */
  --blue-deep: #0C5C93;   /* gradient end: keeps light text >= 4.5:1 over it */
  --sky:       #6FD3F5;
  --amber:     #FFB020;
  --amber-600: #E8991A;
  --amber-text:#B45309;   /* 5.02:1 on white - amber that is legible as text */

  /* Neutrals */
  --white:     #FFFFFF;
  --paper:     #F6F9FC;
  --paper-2:   #EDF3F9;
  --line:      #DCE6F0;   /* decorative dividers */
  --line-input:#6E8AA6;   /* 3.59:1 - form control boundaries (WCAG 1.4.11) */

  --ok-bg:     rgba(69,212,131,.14);
  --ok-line:   rgba(69,212,131,.5);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(10,37,64,.06), 0 8px 24px rgba(10,37,64,.07);
  --shadow-2: 0 18px 48px rgba(10,37,64,.16);

  --wrap: 1180px;
  --gutter: 22px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The header is sticky, so keep it from covering whatever just received
     focus or was jumped to by an anchor (WCAG 2.4.11 Focus Not Obscured). */
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  font-family: Figtree, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: Poppins, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.3px; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
ul.plain { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-navy { background: var(--navy); color: #D7E6F3; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.lead { font-size: 1.13rem; color: var(--ink-600); max-width: 62ch; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.kicker {
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.center { text-align: center; }
.center .lead, .center .section-head { margin-left: auto; margin-right: auto; }

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
/* Hidden off-canvas without using a negative offset, which would extend the
   page box and can break screenshots and RTL layouts. */
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; z-index: 999;
  width: auto; height: auto;
  margin: 0; padding: 12px 18px;
  overflow: visible; clip: auto; clip-path: none;
  background: var(--white); color: var(--navy);
  font-weight: 700;
  border-radius: 10px; box-shadow: var(--shadow-2);
}
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}
header :focus-visible, footer :focus-visible, .cta-band :focus-visible, .hero :focus-visible {
  outline-color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .92em 1.7em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 10px 26px rgba(255,176,32,.35); }
.btn-amber:hover { background: var(--amber-600); color: var(--navy); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-500); color: var(--white); }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: var(--white); }

.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-sm { padding: .6em 1.2em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #BFE3F7;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 4px 22px; flex-wrap: wrap; text-align: center;
  padding-top: 9px; padding-bottom: 9px;
}
.topbar .wrap > span { display: inline-flex; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
  flex-wrap: nowrap;
}
/* flex:0 0 auto, never min-width:0 - the brand name is nowrap, so a shrunk
   box would let the text spill across the nav instead of getting narrower. */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand-name {
  font-family: Poppins, sans-serif; font-weight: 800;
  font-size: 1.12rem; color: var(--navy); line-height: 1.1;
  display: block; white-space: nowrap;
}
.brand-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--blue); display: block;
  white-space: nowrap;
}

/* Never let the nav box shrink below its links: a shrunk box does not shorten
   nowrap links, it just lets them spill over the phone block beside it. */
.main-nav { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.main-nav a {
  font-weight: 600; font-size: .96rem; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { border-color: var(--amber); color: var(--navy); }
.main-nav a[aria-current="page"] { border-color: var(--amber); color: var(--navy); }

/* Must come AFTER the base rules above, or equal specificity means the
   uncompacted font size wins and the row overflows. */
@media (max-width: 1320px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: .9rem; }
  .header-phone { padding: 8px 13px; }
  .brand img { height: 48px; }
}

.header-cta { display: flex; align-items: center; gap: 16px; flex: none; }

/* Sized to sit beside the nav without visually crowding it: the number is
   kept close to nav-link size rather than shouting at 1.12rem. */
.header-phone {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.header-phone:hover { text-decoration: none; border-color: var(--blue-500); background: var(--paper); }
.header-phone-ico { flex: none; color: var(--blue-500); }
.header-phone .num { font-family: Poppins, sans-serif; font-weight: 700; font-size: 1rem; color: var(--navy); line-height: 1.2; }

.menu-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  border: 0; border-radius: var(--radius-sm);
  font-family: Poppins, sans-serif; font-weight: 600; font-size: .9rem;
  padding: 10px 14px; cursor: pointer;
  min-height: 42px;
}
.menu-icon { font-size: 1.05rem; line-height: 1; }

.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
/* Belt and braces: even if the menu was left open and the viewport grows,
   the mobile panel must never appear beside the desktop nav. */
@media (min-width: 1151px) {
  .mobile-nav, .mobile-nav.open { display: none; }
}
.mobile-nav ul { list-style: none; padding: 8px 0 16px; }
.mobile-nav a {
  display: block; padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.mobile-nav li:last-child a { border-bottom: 0; }

/* ---------- Hero ----------
   Full-bleed photograph behind the copy, sized like the original site:
   min(660px, 88vh). The scrim keeps the text above 4.5:1 over the image. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(660px, 88vh);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
/* Opacity stays high across the copy column (roughly the left 58%) so light
   text clears 4.5:1 over the brightest part of the photograph, then falls away
   on the right so the picture still reads. */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(7,27,47,.95) 0%,
    rgba(7,27,47,.90) 40%,
    rgba(7,27,47,.74) 58%,
    rgba(7,27,47,.34) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-top: clamp(44px, 9vw, 84px);
  padding-bottom: clamp(44px, 9vw, 84px);
}
.hero-copy { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero h1 .line2 { color: var(--sky); display: block; }
.hero p { color: #D7E8F6; }
.hero .lead { color: #D7E8F6; font-size: 1.16rem; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #EAF6FF;
  padding: 8px 17px; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.hero .btn-row { margin-top: 28px; }
.hero-badges {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-badge {
  display: flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 600; color: #DFEEFB;
}
.hero-badge svg { flex: none; }
/* Slow Ken Burns drift, matching the original site's 28s cycle. WCAG 2.2.2
   requires a way to stop motion that starts on its own and runs longer than
   five seconds, so the pause button is not optional decoration. */
.hero-img {
  animation: kenburns 28s ease-in-out infinite;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  50%  { transform: scale(1.16) translate3d(-2.2%, -1.6%, 0); }
  100% { transform: scale(1.06) translate3d(0, 0, 0); }
}
.hero.is-paused .hero-img { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; transform: none; }
}

.motion-toggle {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 7px 13px;
  background: rgba(10, 37, 64, .82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-pill);
  font-family: Figtree, sans-serif; font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.motion-toggle:hover { background: rgba(10, 37, 64, .95); }
.motion-toggle .ico-play { display: none; }
.motion-toggle[aria-pressed="true"] .ico-play { display: block; }
.motion-toggle[aria-pressed="true"] .ico-pause { display: none; }
/* Hidden when the visitor's OS already asks for reduced motion: nothing moves,
   so a pause control would be meaningless. */
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
}

.wave { display: block; line-height: 0; }
.wave svg { width: 100%; height: auto; display: block; }

/* ---------- Page banner (inner pages) ---------- */
.banner {
  background: linear-gradient(125deg, var(--navy), var(--blue-deep));
  color: var(--white);
  padding: 52px 0 56px;
}
.banner h1 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 12px; }
.banner p { color: #D7E8F6; max-width: 66ch; margin: 0; }
.crumbs { font-size: .85rem; color: #BCD8EE; margin-bottom: 12px; }
.crumbs a { color: #BCD8EE; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-current] { color: var(--white); }

/* ---------- Stat strip ---------- */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; padding-top: 30px; padding-bottom: 30px;
}
.stat .big {
  font-family: Poppins, sans-serif; font-weight: 800;
  font-size: 1.5rem; color: var(--navy); display: block; line-height: 1.2;
}
.stat .label { font-size: .85rem; color: var(--ink-600); font-weight: 500; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-1); transform: translateY(-3px); }
/* The image is taken out of flow so the container's aspect-ratio always wins.
   Left in flow, a percentage height cannot resolve against an auto-height
   parent, so each photo fell back to its own ratio and cards came out uneven
   (commercial.jpg is 3:2, the rest are 5:4). */
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  overflow: hidden;
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { margin: 0; font-size: 1.14rem; }
.card p { font-size: .96rem; color: var(--ink-600); margin: 0; }
.card .more {
  margin-top: auto; padding-top: 6px;
  font-weight: 700; font-size: .9rem; color: var(--blue);
}
.card:hover .more { text-decoration: underline; }
.tag {
  align-self: flex-start;
  font-family: Poppins, sans-serif;
  font-size: .66rem; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--navy); background: var(--amber);
  padding: 4px 10px; border-radius: 5px;
}
.tag-quiet { background: var(--paper-2); color: var(--blue); }

/* Stretched link makes the whole card clickable without nesting <a> */
.card-link::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.card { position: relative; }

/* ---------- Why-us list ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 54px; align-items: center;
}
.split-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.split-photo img { width: 100%; }

.why-list { list-style: none; }
.why-list li {
  display: flex; gap: 16px;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 0; }
.why-list .ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(15,143,219,.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.why-list h3 { font-size: 1.03rem; margin: 0 0 3px; }
.why-list p { font-size: .95rem; color: var(--ink-600); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .n {
  font-family: Poppins, sans-serif; font-weight: 800; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.6px var(--sky);
  display: block; margin-bottom: 8px; line-height: 1;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .95rem; color: var(--ink-600); margin: 0; }

.steps.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 22px; }
@media (max-width: 1000px) { .steps.steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .steps.steps-5 { grid-template-columns: 1fr; } }

/* Numbered DIY list inside the dark side card */
.diy-list { list-style: none; counter-reset: none; margin-top: 14px; }
.diy-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .93rem; color: #C9DCEE; }
.diy-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  font-family: Poppins, sans-serif; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 0;
}
.checklist svg { flex: none; margin-top: 4px; color: var(--blue-500); }

/* ---------- Reviews ---------- */
.review {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 13px;
}
.stars { color: var(--amber-text); letter-spacing: 2px; font-size: 1rem; }
.review blockquote { margin: 0; font-size: .99rem; color: var(--ink); }
.review figcaption { margin-top: auto; }
.review .name { font-family: Poppins, sans-serif; font-weight: 700; color: var(--navy); font-size: .95rem; }
.review .meta { font-size: .85rem; color: var(--ink-600); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 4px;
  font-family: Poppins, sans-serif; font-weight: 600; font-size: 1.04rem;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--blue); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary .sign { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; max-width: 72ch; color: var(--ink-600); }

/* ---------- Gallery ---------- */
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.gallery-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.gallery-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-item .cap { padding: 18px 20px; }
.gallery-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.gallery-item p { font-size: .92rem; color: var(--ink-600); margin: 0; }

/* ---------- Service areas ---------- */
/* Compact index of city names. Detail lives on the city pages themselves. */
.city-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.city-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.city-link:hover {
  border-color: var(--blue-500);
  color: var(--blue);
  background: var(--paper);
  text-decoration: none;
}
@media (max-width: 1000px) { .city-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .city-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .city-list { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: .88rem; font-weight: 600; color: var(--ink);
}

.zip-check {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 30px;
}
.zip-check h2 { color: var(--white); }
.zip-check p { color: #C9DCEE; }
.zip-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.zip-form input {
  flex: 1 1 180px; min-width: 150px;
  border: 1.5px solid rgba(255,255,255,.62); background: rgba(255,255,255,.1);
  color: var(--white); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 1rem;
}
.zip-form input::placeholder { color: rgba(255,255,255,.6); }
.zip-result {
  margin-top: 16px; padding: 16px 18px;
  border: 1px solid rgba(191,227,247,.35); background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
}
.zip-result[hidden] { display: none; }
.zip-result .rt { font-family: Poppins, sans-serif; font-weight: 700; display: block; margin-bottom: 4px; color: var(--white); }
.zip-result .rb { font-size: .93rem; color: #D7E8F6; }
.zip-result.is-yes { background: var(--ok-bg); border-color: var(--ok-line); }
.zip-result.is-maybe { background: rgba(255,176,32,.16); border-color: rgba(255,176,32,.55); }

/* ---------- Service detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 46px; align-items: start; }
.detail-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-1); }
.side-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.side-card h3 { font-size: 1.02rem; margin-bottom: 13px; }
.side-card ul { list-style: none; }
.sitemap-cols { columns: 3; column-gap: 32px; }
@media (max-width: 860px) { .sitemap-cols { columns: 2; } }
@media (max-width: 560px) { .sitemap-cols { columns: 1; } }
.side-card li { margin-bottom: 9px; }
.side-card li a { font-weight: 600; font-size: .94rem; }
.side-card.navy { background: var(--navy); color: #C9DCEE; border-color: var(--navy); }
.side-card.navy h3 { color: var(--white); }
.side-card.navy p { color: #C9DCEE; font-size: .93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 48px; align-items: start; }
.contact-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; }
.contact-card h2, .contact-card h3 { color: var(--white); }
.contact-card > p { color: #C9DCEE; }
.contact-line { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.contact-line .label { font-size: .76rem; font-weight: 700; color: #9FC3E0; letter-spacing: .4px; text-transform: uppercase; display: block; }
.contact-line a, .contact-line .val { color: var(--white); font-weight: 600; }
/* inline-block, not inline-flex: a flex link will not wrap, and the office
   address has to wrap on a narrow phone. Still meets the 24px target size. */
.contact-line a { display: inline-block; min-height: 24px; padding: 2px 0; }
.contact-line a:hover { color: var(--sky); }

/* ---------- Forms ---------- */
.quote-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-1);
}
/* minmax(0,1fr), not 1fr: a plain 1fr takes its minimum from the widest
   <select> option, which pushes the form wider than its container. */
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--navy); }
.field .req { color: #C2410C; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line-input); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: inherit; font-size: 1rem;
  color: var(--ink); background: var(--white);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #C2410C;
}
.field .err { font-size: .82rem; color: #C2410C; font-weight: 600; }
.field .err[hidden] { display: none; }
.form-note { font-size: .84rem; color: var(--ink-600); margin-top: 12px; }
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.form-status { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E7F7EE; border: 1px solid #9BDCBB; color: #17603C; }
.form-status.bad { background: #FDECEA; border: 1px solid #F1B0A8; color: #8A2318; }

.recaptcha-field { margin: 4px 0 18px; }
.recaptcha-field .err { display: block; margin-top: 8px; }
.recaptcha-fallback {
  border: 1.5px dashed var(--line-input); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .86rem; color: var(--ink-600); background: #F7F4EC;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(125deg, var(--navy), var(--blue-deep));
  color: var(--white); text-align: center; padding: 68px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D7E8F6; max-width: 54ch; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Prose (privacy / accessibility) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.3rem; margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-600); }
.prose .updated { font-size: .9rem; color: var(--ink-600); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9DCEE; padding-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 38px; padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 54px; width: auto; background: var(--white); border-radius: 10px; padding: 5px; }
.footer-brand .name { font-family: Poppins, sans-serif; font-weight: 800; color: var(--white); font-size: 1.08rem; }
.site-footer h2 { color: var(--white); font-size: .95rem; margin-bottom: 15px; letter-spacing: .3px; font-family: Poppins, sans-serif; font-weight: 700; }
.site-footer p { color: #A9C3DC; font-size: .93rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: .93rem; }
/* Footer link lists are one link per line, not prose, so the WCAG 2.5.8
   inline exception does not apply - give them a real 24px target. */
.site-footer li a { display: inline-block; min-height: 24px; padding: 2px 0; }
.site-footer a { color: #C9DCEE; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px 26px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px;
  font-size: .84rem; color: #9DB8D1;
}
.footer-bottom a { color: #9DB8D1; }
.footer-bottom a:hover { color: #fff; }

/* Accessibility mark: the universal access symbol linking to the statement.
   Deliberately not a third-party "certified" badge - it points at a page that
   states the target, what has been done, and the known limitations. */
.a11y-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-sm);
  color: #C9DCEE; text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.a11y-badge:hover {
  border-color: var(--sky); background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none;
}
.a11y-badge svg { flex: none; }
.a11y-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.a11y-badge-text strong {
  font-family: Poppins, sans-serif; font-weight: 700;
  font-size: .82rem; color: #fff; letter-spacing: .3px;
}
.a11y-badge-text span { font-size: .72rem; }

.made-by { display: inline-flex; align-items: center; gap: 6px; }
.made-by .heart { color: #FF5A6E; flex: none; }
.made-by a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--navy); padding: 10px 14px;
  box-shadow: 0 -6px 18px rgba(0,0,0,.22);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber); color: var(--navy);
  font-family: Poppins, sans-serif; font-weight: 700;
  border-radius: var(--radius-pill); padding: 13px; text-decoration: none;
}

/* ---------- Responsive ---------- */
/* The desktop nav needs ~1150px to hold seven links plus the logo, phone and
   quote button without crowding. Below that the hamburger takes over. */
@media (max-width: 1150px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 1000px) {
  /* Photograph reads as a backdrop on phones, so darken it further and let the
     hero size to its content instead of holding 660px. */
  .hero { min-height: min(560px, 82vh); }
  .hero-img { object-position: 62% center; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(7,27,47,.86) 0%,
      rgba(7,27,47,.90) 45%,
      rgba(7,27,47,.94) 100%);
  }
  .split, .contact-grid, .detail { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* The top bar and the fixed call bar both carry the phone number, so the
     header only needs the brand and the menu button. */
  .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .brand-tag { display: none; }
  .brand img { height: 46px; }
  .brand-name { font-size: 1.02rem; white-space: nowrap; }
  .header-row { gap: 12px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .call-bar { display: block; }
  .section { padding: 58px 0; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .city-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  /* Only the hours line survives on a phone; the rest is repeated in the footer. */
  .topbar .wrap > span:nth-child(n+2) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .quote-form { padding: 22px; }
}

/* Narrowest phones: the logo, wordmark and menu button must still fit 320px
   without horizontal scrolling (WCAG 1.4.10 Reflow). */
@media (max-width: 430px) {
  .brand img { height: 42px; }
  .brand-name { font-size: .88rem; }
  .menu-word { display: none; }
  .menu-toggle { padding: 10px 13px; gap: 0; }
  .header-row { gap: 8px; }
  /* Longhand on purpose: the `padding` shorthand here would also zero the
     vertical padding that .header-row sets, collapsing the header. */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .contact-card, .quote-form, .zip-check, .side-card { padding: 20px; }
  .contact-line .ico { width: 34px; height: 34px; }
  .contact-line { gap: 10px; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .call-bar, .cta-band, .btn { display: none !important; }
  body { padding: 0; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ---------- Email address behind reCAPTCHA (footer + contact card) ----------
   Both spots sit on navy, so the button reads like the links around it. */
.email-reveal { display: block; }
.email-reveal-btn {
  appearance: none; background: none; border: 0; padding: 2px 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-block; min-height: 24px;          /* WCAG 2.5.8 target */
}
.site-footer .email-reveal-btn { color: #C9DCEE; }
.site-footer .email-reveal-btn:hover { color: var(--white); }
.contact-line .email-reveal-btn { color: var(--white); font-weight: 600; }
.contact-line .email-reveal-btn:hover { color: var(--sky); }
.email-reveal-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.email-reveal-btn[disabled] { opacity: .75; cursor: progress; }
.email-reveal-panel { margin-top: 10px; }
.email-reveal-panel[hidden] { display: none; }
.email-reveal-hint { margin: 0 0 6px; font-size: .86rem; color: #C9DCEE; }
.email-reveal-captcha { max-width: 100%; min-height: 78px; }
.email-reveal-status { display: block; font-size: .86rem; margin-top: 6px; color: #C9DCEE; }
.email-reveal-status:empty { display: none; }
.email-reveal-status.is-bad { color: #FFC9C9; }     /* 9.6:1 on navy */

/* ---------- Language switch (English / Español) — header, beside Get a Quote ---------- */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  min-height: 40px; padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy); color: var(--navy); background: var(--white);
  font-family: Poppins, sans-serif; font-weight: 600; font-size: .88rem; line-height: 1; text-decoration: none;
}
.lang-switch:hover { background: var(--navy); color: var(--white); text-decoration: none; }
/* Shown as a compact "ES" / "EN" pill; the full language name is kept for
   screen readers (the visible code is hidden from them to avoid repetition). */
.lang-switch .lang-long {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.lang-switch .lang-short { display: inline; letter-spacing: .02em; }
/* Tighter spacing so the pill fits beside Get a Quote at every width. */
.header-row { gap: 14px; }
.header-cta { gap: 10px; }
.main-nav { gap: 15px; }
.header-phone { padding: 6px 12px 6px 10px; }
@media (max-width: 1320px) { .main-nav { gap: 13px; } }
html[lang^="es"] .main-nav { gap: 12px; }
html[lang^="es"] .main-nav a { font-size: .9rem; }
@media (max-width: 1320px) { html[lang^="es"] .main-nav { gap: 10px; } html[lang^="es"] .main-nav a { font-size: .86rem; } }
@media (max-width: 1150px) { .header-row { gap: 10px; } .header-cta { gap: 8px; } }
@media (max-width: 400px) {
  .lang-switch { padding: 7px 10px; }
  .lang-switch svg { display: none; }
}
@media (max-width: 360px) {
  .header-row { gap: 6px; }
  .header-cta { gap: 6px; }
  .brand img { height: 36px; }
  .brand-name { font-size: .8rem; }
  .menu-toggle { padding: 10px 11px; }
}
.mobile-nav .lang-item a { font-weight: 700; }

/* ---------- Footer: last updated + accessibility menu button ---------- */
.last-updated { color: #9DB8D1; }
.footer-a11y-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: #9DB8D1; text-decoration: underline; text-underline-offset: 3px;
}
.footer-a11y-btn:hover { color: #fff; }
.footer-a11y-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Google's reCAPTCHA box is a fixed 304px wide. On the narrowest phones,
   scale it down so the form never scrolls sideways (WCAG 1.4.10 Reflow). */
@media (max-width: 380px) {
  .recaptcha-field .g-recaptcha { transform: scale(.78); transform-origin: 0 0; height: 62px; }
}
/* The top bar spans are flex items, which drop the space before the inner
   "Se habla español" phrase - put it back. */
.topbar .wrap > span > span[lang] { margin-left: .32em; }
/* A 1fr column can't shrink below its widest child (the 304px reCAPTCHA),
   which pushed the contact page wider than a 320px phone. */
@media (max-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
