/* =========================================================
   Italy American Construction — modern light theme
   ========================================================= */

/* Fonts bundled locally under the SIL Open Font License (see fonts/OFL-*.txt) */
/* Source Sans 3 — variable font, Latin subset, covers weights 200–900 */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Latin.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
/* Archivo Black — heading font (always set in ALL CAPS to match the logo) */
@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/ArchivoBlack-Regular.woff") format("woff"),
       url("../fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1b3a8a;
  --navy-700: #142c6b;
  --navy-900: #0d1d47;
  --red: #d32027;
  --red-600: #b5181e;
  --cream: #f7f4ee;
  --sand: #eee8dc;
  --ink: #1a1f2b;
  --ink-2: #4a5263;
  --line: #e2ddd2;
  --white: #ffffff;

  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 29, 71, .06), 0 2px 8px rgba(13, 29, 71, .06);
  --shadow: 0 10px 30px rgba(13, 29, 71, .10);
  --shadow-lg: 0 24px 60px rgba(13, 29, 71, .18);
  --header-h: 84px;
  --topbar-h: 40px;
  --open: #22c55e;
  --closed: #e11d2a;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) so the body never becomes a scroll container, which would break sticky positioning */
  overflow-x: clip;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; }
svg { fill: currentColor; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(211, 32, 39, .28); }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); }
.btn--text { padding-inline: .2em; color: var(--navy); font-weight: 600; }
.btn--text:hover { transform: none; text-decoration: underline; }
.btn--lg { padding: 1em 1.8em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; font-size: .9rem; color: var(--red); margin-bottom: .6rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ffd2d4; }
.section__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: 0; line-height: 1.08;
}
.section__title--light { color: #fff; }
.section__lead { color: var(--ink-2); font-size: 1.125rem; max-width: 62ch; }
.section__lead--light { color: rgba(255,255,255,.82); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section__head { margin-bottom: 40px; }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.link-arrow { font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.85); font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: var(--topbar-h); }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__item svg { width: 16px; height: 16px; opacity: .8; }
.topbar a.topbar__item:hover { color: #fff; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar__social { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: rgba(255,255,255,.8); }
.topbar__social:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar__social svg { width: 15px; height: 15px; }
.topbar__phone {
  display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none;
  background: var(--red); padding: 4px 12px; border-radius: 999px; margin-left: 6px; white-space: nowrap;
}
.topbar__phone:hover { background: var(--red-600); color: #fff; }
.topbar__phone svg { width: 14px; height: 14px; }
.status-dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--closed); }
.topbar__hours.is-open .status-dot { background: var(--open); }
.topbar__hours.is-open .status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--open);
  animation: statusPulse 2.4s ease-out infinite;
}
.topbar__hours.is-open .status-dot { animation: statusGlow 2.4s ease-in-out infinite; }
@keyframes statusPulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes statusGlow {
  0%, 100% { opacity: 1; }
  50%      { opacity: .7; }
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .25s var(--ease); }
.header.is-scrolled .header__inner { height: 70px; }
.brand img { height: 68px; width: auto; transition: height .25s var(--ease); }
.header.is-scrolled .brand img { height: 56px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; position: relative;
}
.nav__link svg { width: 18px; height: 18px; transition: transform .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__item--dropdown { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 520px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 14px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.mega__grid a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500;
}
.mega__grid a:hover { background: var(--cream); color: var(--red); }
.nav__item--dropdown:hover .mega,
.nav__item--dropdown.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--dropdown.is-open .nav__toggle-sub svg,
.nav__item--dropdown:hover .nav__toggle-sub svg { transform: rotate(180deg); }
.nav__mobile-cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__call { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; text-align: right; }
.header__call-label { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.header__call-num { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--navy); letter-spacing: .01em; text-transform: uppercase; }
.header__call:hover .header__call-num { color: var(--red); }

.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--cream); border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 22, 56, .86) 0%, rgba(10, 22, 56, .62) 45%, rgba(10, 22, 56, .12) 100%),
    linear-gradient(0deg, rgba(10, 22, 56, .45), transparent 40%);
}
.hero__content { padding: 80px 0 150px; }
.hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(2.1rem, 4.7vw, 3.8rem); line-height: 1.04; max-width: 17ch; margin-bottom: .35em;
  text-wrap: balance;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.9); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__controls {
  position: absolute; bottom: 82px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
}
.hero__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px);
}
.hero__arrow:hover { background: #fff; color: var(--navy-900); }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  --dot-active-w: 38px;
  --dot-grow: .3s;
  position: relative; overflow: hidden; width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,.45); transition: width var(--dot-grow) var(--ease), background .3s;
  /* own paint layer, so the rounded clip around the moving fill stays crisp */
  isolation: isolate; transform: translateZ(0);
}
.hero__dot:hover { background: rgba(255,255,255,.75); }
.hero__dot[aria-current="true"] { width: var(--dot-active-w); background: rgba(255,255,255,.4); }
/* The fill is a full-size pill that slides in from the left. It never changes size or
   shape, and it moves on the GPU, so it glides by fractions of a pixel instead of stepping.
   Its resting state is EMPTY and invisible, so there is never a "full" frame to flash
   while a new countdown starts. It only appears once the dot has finished widening (0.3 s),
   then fills over the rest of the countdown. */
.hero__dot-fill {
  position: absolute; top: 0; left: 0; bottom: 0; width: var(--dot-active-w);
  background: #fff; border-radius: 999px;
  transform: translate3d(-100%, 0, 0); opacity: 0;
  will-change: transform, opacity; backface-visibility: hidden;
}
.hero__dot.is-timing[aria-current="true"] .hero__dot-fill {
  animation:
    dotFill max(calc(var(--fill-ms, 6000ms) - var(--dot-grow)), 1ms) linear var(--dot-grow) both,
    dotReveal 1ms linear var(--dot-grow) both;
}
.hero__dot.is-frozen .hero__dot-fill { animation-play-state: paused; }
@keyframes dotFill { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes dotReveal { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Trust strip ---------- */
.trust { position: relative; z-index: 2; margin-top: -54px; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.trust__item { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__num { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); line-height: 1; text-transform: uppercase; }
.trust__num--text { color: var(--red); }
.trust__label { display: block; margin-top: 6px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }

/* ---------- Intro / features ---------- */
.intro__head { max-width: 860px; }
.feature__body { padding: 20px 22px 24px; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: contain; width: 100%; background: #fff; max-width: 520px; margin-inline: auto; }
.about__badge {
  position: absolute; right: -18px; bottom: 28px; background: var(--navy); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 220px;
}
.about__badge-year { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.about__badge-text { display: block; margin-top: 4px; font-size: .95rem; color: rgba(255,255,255,.85); }
.about__text p { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 1.4em 0 1.8em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.about__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service.is-highlight { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211,32,39,.18), var(--shadow); }
.service__img { overflow: hidden; }
.service__img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: 1.1rem; margin-bottom: .3em; }
.service p { color: var(--ink-2); font-size: .98rem; flex: 1; }
.service__link {
  align-self: flex-start; border: 0; background: none; padding: 0; color: var(--red); font-weight: 700;
  display: inline-flex; align-items: center; gap: .4em;
}
.service__link::after { content: "→"; transition: transform .2s var(--ease); }
.service__link:hover::after { transform: translateX(4px); }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 16px); }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 10px 7px 16px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--navy); }
.filter__count {
  min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--cream); color: var(--ink-2);
  font-size: .78rem; font-weight: 700; text-align: center; transition: background .2s, color .2s;
}
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter.is-active .filter__count { background: rgba(255,255,255,.18); color: #fff; }
.gal-meta { margin: 0 0 16px; color: var(--ink-2); font-size: .95rem; }
.gal-meta strong { color: var(--navy-900); }

.gal-stage { position: relative; }
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 14px;
}
.gallery-grid.is-entering-next { animation: galInNext .45s var(--ease); }
.gallery-grid.is-entering-prev { animation: galInPrev .45s var(--ease); }
@keyframes galInNext { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes galInPrev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.g-item { border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.g-item--wide { grid-column: span 2; grid-row: span 2; }
.g-item button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; position: relative; }
.g-item button:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(10,22,56,.8)); opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.g-item button:hover img, .g-item button:focus-visible img { transform: scale(1.06); }
.g-item button:hover span, .g-item button:focus-visible span { opacity: 1; transform: none; }

/* Page controls mirror the hero: arrows with dots between them */
.gal-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.gal-controls[hidden] { display: none; }
.gal-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-900);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.gal-arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gal-arrow:active { transform: scale(.94); }
.gal-arrow svg { width: 26px; height: 26px; }
.gal-dots { display: flex; gap: 8px; }
.gal-dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(27,58,138,.25);
  transition: width .3s var(--ease), background .3s;
}
.gal-dot:hover { background: rgba(27,58,138,.5); }
.gal-dot[aria-current="true"] { width: 30px; background: var(--navy); }

/* Wide screens: arrows sit on either side of the grid, dots stay centered below */
@media (min-width: 1300px) {
  .gal-arrow { position: absolute; top: calc(50% - 36px); transform: translateY(-50%); }
  .gal-arrow:active { transform: translateY(-50%) scale(.94); }
  .gal-arrow--prev { left: -72px; }
  .gal-arrow--next { right: -72px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8, 14, 32, .94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: 14px; font-weight: 600; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; background: none;
  color: #fff; font-size: 2.6rem; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center;
}
.lightbox__nav:hover { background: #fff; color: var(--navy-900); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Testimonials ---------- */
.testimonials {
  background:
    radial-gradient(circle at 85% 10%, rgba(211,32,39,.25), transparent 40%),
    linear-gradient(135deg, var(--navy-900), var(--navy));
  color: #fff;
}
.t-nav { display: flex; gap: 10px; }
.t-nav__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s, color .2s;
}
.t-nav__btn:hover { background: #fff; color: var(--navy-900); }
.t-nav__btn svg { width: 24px; height: 24px; }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px;
  scrollbar-width: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  scroll-snap-align: start; margin: 0; background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 30px 28px 26px; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow);
}
.t-card::before {
  content: "“"; font-family: Georgia, serif; font-size: 5rem; line-height: .8; color: var(--red); opacity: .9;
  display: block; height: 42px;
}
.t-card blockquote { margin: 0 0 1.2em; flex: 1; font-size: 1.03rem; color: var(--ink-2); }
.t-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.t-card figcaption strong { color: var(--navy-900); font-size: 1.05rem; }
.t-card figcaption span { color: var(--ink-2); font-size: .92rem; }
.t-card figcaption span::before { content: "from "; }
.t-progress { height: 3px; background: rgba(255,255,255,.2); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.t-progress span { display: block; height: 100%; width: 30%; background: #fff; border-radius: 3px; transition: transform .3s var(--ease), width .3s; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.accordion { display: grid; gap: 12px; }
.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.acc[open] { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.06rem;
  color: var(--navy-900); position: relative;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b3a8a'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.acc[open] summary::after { transform: rotate(45deg); background-color: #fde4e5; }
.acc__body { padding: 0 22px 4px; overflow: hidden; }
.acc__body p { color: var(--ink-2); }

/* ---------- Contact / form ---------- */
.contact { background: linear-gradient(var(--cream), var(--cream)) top / 100% 46% no-repeat; }
.contact__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.estimate { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); border-top: 5px solid var(--red); }
.form-note { color: var(--ink-2); font-size: .92rem; }
.req { color: var(--red); }
.form { display: grid; gap: 16px; }
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form__group legend { font-weight: 700; color: var(--navy-900); margin-bottom: 10px; padding: 0; }
.form__group--inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.form__group--inline legend { width: 100%; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__row--3 { grid-template-columns: 1.3fr 1fr .8fr; }

.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 24px 14px 8px;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label {
  position: absolute; left: 15px; top: 16px; color: var(--ink-2); pointer-events: none;
  transition: top .18s var(--ease), font-size .18s, color .18s; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 30px);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field--select label { top: 6px; font-size: .78rem; font-weight: 600; color: var(--navy); }
.field--select select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a5263'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27,58,138,.12); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field__error { display: block; color: var(--red); font-size: .85rem; min-height: 0; margin-top: 4px; font-weight: 600; }
.field__error:empty { display: none; }
#financingGroup .field__error { width: 100%; }

.radio {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line);
  border-radius: 999px; cursor: pointer; font-weight: 600; transition: border-color .2s, background .2s;
}
.radio input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--navy); background: #eef2fb; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fine { font-size: .85rem; color: var(--ink-2); text-align: center; margin: 0; }

.form-success { text-align: center; padding: 30px 10px; }
.form-success svg { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: #e7f7ee; fill: #1e9b57; margin: 0 auto 12px; }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; text-transform: uppercase; }
.form-success p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }

.info { display: grid; gap: 20px; }
.info__card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.info__card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; }
.info__card h4 { margin: 22px 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info__list li { display: flex; gap: 14px; align-items: flex-start; }
.info__list svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: #eef2fb; fill: var(--navy); }
.info__list a { text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.4; padding-top: 2px; word-break: break-word; }
.info__list a:hover { color: var(--red); }
.info__list small { color: var(--ink-2); font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .98rem; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--ink-2); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding-top: 64px; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__cols { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.9; }
.footer__brand img { background: #fff; border-radius: 10px; padding: 8px; margin-bottom: 16px; width: 150px; }
.footer__social { display: flex; gap: 10px; margin-top: 12px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer__social a:hover { background: var(--red); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .9rem; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { margin: 0; }

/* ---------- Floating UI ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease), visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 26px; height: 26px; }
.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1025px) {
  html { scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 12px); }
  .topbar { position: sticky; top: 0; z-index: 101; height: var(--topbar-h); }
  .header { top: var(--topbar-h); }
}

@media (max-width: 1180px) {
  .header__call { display: none; }
  .nav__link { padding: 10px 9px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  /* backdrop-filter would trap the fixed off-canvas menu inside the header */
  .header { backdrop-filter: none; background: #fff; }
  .brand img { height: 58px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; z-index: 120;
    padding: 90px 22px 28px; overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; padding: 15px 4px; font-size: 1.1rem; justify-content: space-between; }
  .nav__link::after { display: none; }
  .mega {
    position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 10px;
    opacity: 1; visibility: visible; display: none;
  }
  .nav__item--dropdown:hover .mega { transform: none; }
  .nav__item--dropdown.is-open .mega { display: block; transform: none; }
  .nav__item--dropdown:hover:not(.is-open) .nav__toggle-sub svg { transform: none; }
  .mega__grid a { padding: 8px 10px; font-size: .98rem; }
  .nav__mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
  .burger { z-index: 130; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8,14,32,.45); z-index: 99; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-auto-rows: 150px; gap: 12px; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .about__badge { right: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__inner > .topbar__item:first-child { display: none; }
  .topbar__hours { font-size: .85rem; }
  .topbar__social { display: none; }
  .info__list a { font-size: .95rem; }
  .trust { margin-top: -40px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero__content { padding: 64px 0 110px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  /* Category chips become one swipeable row */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -20px; padding: 2px 20px 6px; scroll-padding-inline: 20px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { scroll-snap-align: start; }
  .gal-controls { gap: 10px; }
  .gal-arrow { width: 44px; height: 44px; }
  .g-item span { opacity: 1; transform: none; font-size: .88rem; padding: 24px 10px 8px; }
  /* Inside one category every caption is the same, so only label the mixed Featured set */
  .gallery-grid:not([data-cat="featured"]) .g-item span { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 22px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox img { max-height: 70vh; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    box-shadow: 0 -6px 20px rgba(13,29,71,.15); padding-bottom: env(safe-area-inset-bottom); background: #fff;
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-weight: 700; text-decoration: none; }
  .mobile-bar__call { background: var(--navy); color: #fff; }
  .mobile-bar__call svg { width: 18px; height: 18px; }
  .mobile-bar__est { background: var(--red); color: #fff; }
  .mobile-bar a:hover { color: #fff; }
  body { padding-bottom: 54px; }
  .to-top { bottom: 72px; right: 14px; width: 44px; height: 44px; }
}

@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .t-track { grid-auto-columns: 88%; gap: 14px; }
  .t-nav { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__arrow { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section__head--split { display: block; }
}

@media (max-width: 374px) {
  .hero__title { font-size: 1.6rem; }
  .trust__num { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__dot[aria-current="true"] .hero__dot-fill { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
