/* ==========================================================================
   ABC Impact Windows & Doors — Tampa Bay
   Refined design system v2: dual-font, scroll-driven motion, nav choreography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --navy: #0b2245;
  --navy-deep: #07162b;
  --blue: #1a5fc7;
  --blue-bright: #3b82f6;
  --silver: #b8c4d4;
  --silver-light: #f0f3f7;
  --silver-mid: #7a8aa0;
  --ink: #111827;
  --ink-soft: #4b5563;
  --white: #ffffff;
  --success: #15803d;
  --amber: #d97706;
  --warm: #faf8f5;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 69, .08);
  --shadow-md: 0 8px 24px rgba(11, 34, 69, .12);
  --shadow-lg: 0 24px 56px rgba(11, 34, 69, .18);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Oswald', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 .45em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  font-family: var(--font-body); white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(26, 95, 199, .35); }
.btn--primary:hover { background: var(--navy); box-shadow: 0 6px 20px rgba(11, 34, 69, .4); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--silver-light); color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--silver-light);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.45, .05, .55, .95), box-shadow .2s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 42px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; letter-spacing: .02em; white-space: nowrap; text-transform: uppercase; }
.brand__text span { color: var(--silver-mid); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

.nav { margin-left: auto; }
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  position: relative; z-index: 130;
}
.nav__toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__menu {
  list-style: none; margin: 0; padding: 14px 0;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--silver-light); box-shadow: var(--shadow-md);
  display: none; flex-direction: column; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  overscroll-behavior: contain;
}
.nav__menu.is-open { display: flex; }
.nav__menu > li > a,
.nav__drop-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; padding: 12px 22px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
  text-align: left;
}
.nav__menu > li > a:hover, .nav__drop-btn:hover { color: var(--blue); background: var(--silver-light); }
.nav__menu > li > a[aria-current="page"] { color: var(--blue); }
.nav__caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; }
.nav__drop-btn[aria-expanded="true"] .nav__caret { transform: rotate(-135deg); }

.nav__dropdown { list-style: none; margin: 0; padding: 0 0 6px; display: none; }
.nav__dropdown.is-open { display: block; }
.nav__dropdown a {
  display: block; padding: 9px 22px 9px 36px; font-size: .9rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
}
.nav__dropdown a:hover { color: var(--blue); background: var(--silver-light); }
.nav__group-label { padding: 8px 22px 2px 36px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--silver-mid); }

.header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header__phone { display: none; font-weight: 800; color: var(--navy); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.header__phone:hover { color: var(--blue-bright); }
.header__cta { display: none; padding: 10px 20px; font-size: .9rem; }

.lang-toggle { display: inline-flex; border: 1.5px solid var(--silver); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 12px; font: inherit; font-size: .78rem;
  font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); cursor: pointer;
}
.lang-toggle button.is-active { background: var(--navy); color: #fff; }

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex; flex-direction: row; align-items: center;
    padding: 0; max-height: none; overflow: visible; background: none; border: 0; box-shadow: none; gap: 2px;
  }
  .nav__menu > li > a, .nav__drop-btn { padding: 10px 13px; width: auto; border-radius: 8px; }
  .nav__menu > li > a:hover, .nav__drop-btn:hover { background: var(--silver-light); }
  .nav__menu > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
  .nav__item--has-dropdown { position: relative; }
  .nav__dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
    background: #fff; border: 1px solid var(--silver-light); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 8px 0; display: none;
  }
  .nav__item--has-dropdown:hover .nav__dropdown,
  .nav__item--has-dropdown:focus-within .nav__dropdown,
  .nav__dropdown.is-open { display: block; }
  .nav__dropdown a { padding: 9px 18px; }
  .nav__group-label { padding: 8px 18px 2px; }
  .header__phone { display: inline; }
}
@media (min-width: 1280px) { .header__cta { display: inline-flex; } }

/* Keep the complete header usable on narrow portrait phones. */
@media (max-width: 399px) {
  .container { padding-inline: 16px; }
  .header__inner { gap: 8px; }
  .brand { gap: 7px; }
  .brand__mark { width: 34px; }
  .brand__text strong { font-size: .96rem; }
  .brand__text span { font-size: .56rem; letter-spacing: .08em; }
  .header__actions { gap: 8px; }
  .lang-toggle button { padding-inline: 9px; }
  .nav__menu > li > a, .nav__drop-btn { padding-inline: 16px; }
  .nav__dropdown a { padding-left: 30px; }
  .nav__group-label { padding-left: 30px; }
}

@media (max-width: 359px) {
  .brand__text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7, 22, 43, .92) 0%, rgba(11, 34, 69, .7) 42%, rgba(11, 34, 69, .25) 100%);
}
.hero__inner { position: relative; padding: 100px 0 90px; max-width: 680px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--silver);
}
.hero__eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--blue-bright); }
.hero h1 { color: #fff; text-transform: none; letter-spacing: -.02em; font-weight: 600; }
.hero__lede { font-size: 1.15rem; color: #dbe4ee; max-width: 36em; line-height: 1.6; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 44px; padding: 0; list-style: none; }
.hero__stats li { border-left: 3px solid var(--blue-bright); padding-left: 14px; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
.hero__stats span { font-size: .84rem; color: var(--silver); }

/* Hero entrance animation */
.hero__eyebrow, .hero h1, .hero__lede, .hero__ctas, .hero__stats {
  opacity: 0; transform: translateY(24px);
  animation: heroReveal .8s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero__eyebrow { animation-delay: .15s; }
.hero h1 { animation-delay: .3s; }
.hero__lede { animation-delay: .45s; }
.hero__ctas { animation-delay: .6s; }
.hero__stats { animation-delay: .75s; }
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(120deg, var(--navy-deep), var(--blue)); color: #fff; padding: 72px 0 60px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; text-transform: none; }
.page-hero p { color: #d6e0ec; max-width: 44em; margin-bottom: 0; font-size: 1.08rem; }
.breadcrumb { font-size: .82rem; color: var(--silver); margin-bottom: 14px; }
.breadcrumb a { color: var(--silver); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--stagger { transition-delay: calc(var(--i, 0) * .1s); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--warm); }
.section--navy { background: var(--navy); color: #dbe4ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 10px; }
.section__sub { color: var(--ink-soft); font-size: 1.05rem; }
.section--navy .section__sub { color: var(--silver); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--silver-light); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .25s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--navy)); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .4em; font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: 0; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card__link {
  display: inline-block; margin-top: 16px; font-weight: 700; font-size: .9rem; text-decoration: none;
  position: relative;
}
.card__link::after { content: " →"; }
.card__link::before {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--blue);
  transition: width .25s ease;
}
.card__link:hover::before { width: 100%; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-deep); color: var(--silver); }
.trustbar__row { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 18px 0; justify-content: center; }
.trustbar__item { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; }
.trustbar__item svg { width: 18px; height: 18px; stroke: var(--blue-bright); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Split feature ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; stroke: var(--success); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 800px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 2.8rem); color: #fff; font-weight: 600; letter-spacing: .02em; }
.stats-band span { color: var(--silver); font-size: .9rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px; border: 1px solid var(--silver-light); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--silver); border-radius: var(--radius);
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 95, 199, .12); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field__error { display: none; color: #b3261e; font-size: .8rem; margin-top: 5px; font-weight: 600; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #b3261e; }
.field--invalid .field__error { display: block; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; }
.form-success {
  display: none; padding: 16px 18px; border-radius: var(--radius); margin-top: 16px;
  background: #e8f5ec; border: 1px solid #bfe3cb; color: var(--success); font-weight: 700;
}
.form-success.is-visible { display: block; }

/* ---------- Filters ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 34px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--silver); background: #fff; color: var(--ink-soft); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filterbar select {
  padding: 9px 14px; border: 1.5px solid var(--silver); border-radius: 999px;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink); background: #fff; cursor: pointer;
}
.filterbar__label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--silver-mid); }
.filter-empty { display: none; padding: 40px; text-align: center; color: var(--ink-soft); }
.filter-empty.is-visible { display: block; }
.is-hidden { display: none !important; }

/* ---------- Products ---------- */
.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--silver-light); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: var(--silver-light); color: var(--navy); text-transform: uppercase; }
.tag--blue { background: var(--blue); color: #fff; }
.spec-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; border-bottom: 1px dashed var(--silver-light); padding-bottom: 7px; }
.spec-list span { color: var(--ink-soft); }
.spec-list strong { color: var(--navy); text-align: right; }
.product-card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-hint { font-weight: 800; color: var(--navy); font-size: .95rem; }
.price-hint small { display: block; font-weight: 600; color: var(--silver-mid); font-size: .72rem; }

/* ---------- Gallery ---------- */
.project-card { overflow: hidden; padding: 0; }
.ba { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.ba__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .ba__img img { transform: scale(1.03); }
.ba__label {
  position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(7, 22, 43, .85);
}
.ba__label--after { background: rgba(21, 128, 61, .92); }
.project-card__body { padding: 20px 22px; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }
.project-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-card__meta svg { width: 14px; height: 14px; stroke: var(--blue); fill: none; stroke-width: 2; }
.project-card__open {
  margin-top: 14px; width: 100%; border: 1.5px solid var(--silver); background: #fff; color: var(--navy);
  border-radius: var(--radius); padding: 10px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.project-card__open:hover { border-color: var(--blue); color: var(--blue); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center;
  background: rgba(7, 22, 43, .94); padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__dialog { background: #fff; border-radius: var(--radius-lg); max-width: 980px; width: 100%; max-height: 92vh; overflow: auto; padding: 22px; position: relative; }
.lightbox__imgs { display: grid; gap: 12px; }
@media (min-width: 700px) { .lightbox__imgs { grid-template-columns: 1fr 1fr; } }
.lightbox__imgs figure { margin: 0; }
.lightbox__imgs img { border-radius: var(--radius); width: 100%; }
.lightbox__imgs figcaption { font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--navy); color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.4rem; cursor: pointer; }
.lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
@media (min-width: 1060px) { .lightbox__nav--prev { left: -56px; } .lightbox__nav--next { right: -56px; } }
.lightbox__details { margin-top: 16px; }
.lightbox__details h3 { margin-bottom: 6px; }
.lightbox__details p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonial-card { display: flex; flex-direction: column; gap: 14px; }
.testimonial-card__head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.testimonial-card__who strong { display: block; color: var(--navy); }
.testimonial-card__who span { font-size: .82rem; color: var(--ink-soft); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: .95rem; }
.testimonial-card blockquote { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.testimonial-card__project { margin-top: auto; border-top: 1px solid var(--silver-light); padding-top: 12px; font-size: .82rem; color: var(--ink-soft); display: grid; gap: 4px; }
.testimonial-card__project img { border-radius: var(--radius); margin-bottom: 8px; aspect-ratio: 3/2; object-fit: cover; }

/* ---------- Map ---------- */
.map-wrap { display: grid; gap: 30px; }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.map-svg { background: #eaf1f8; border-radius: var(--radius-lg); border: 1px solid var(--silver-light); width: 100%; }
.county-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.county-list li { background: #fff; border: 1px solid var(--silver-light); border-radius: var(--radius); padding: 16px 18px; }
.county-list strong { color: var(--navy); display: block; margin-bottom: 4px; }
.county-list span { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Contact info cards ---------- */
.info-card { display: flex; gap: 14px; align-items: flex-start; }
.info-card .card__icon { margin-bottom: 0; width: 46px; height: 46px; flex-shrink: 0; }
.info-card > div { min-width: 0; }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { margin: 0; font-size: .92rem; }
.info-card a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.info-card a[href^="tel:"] { white-space: nowrap; overflow-wrap: normal; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours-table td { padding: 9px 0; border-bottom: 1px dashed var(--silver-light); }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.emergency-banner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff;
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.emergency-banner h3 { color: #fff; margin-bottom: 4px; }
.emergency-banner p { margin: 0; color: var(--silver); font-size: .92rem; }
.emergency-banner .btn { flex-shrink: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--silver-light); border-radius: var(--radius-lg); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy)); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e0ec; max-width: 36em; margin-inline: auto; font-size: 1.05rem; }
.cta-band .hero__ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--silver); padding: 64px 0 0; font-size: .9rem; }
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__logo { width: 92px; height: auto; display: block; }
.footer__tag { margin-top: 14px; max-width: 30em; color: var(--silver); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--silver); text-decoration: none; position: relative; }
.site-footer a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--silver);
  transition: width .25s ease;
}
.site-footer a:hover { color: #fff; }
.site-footer a:hover::after { width: 100%; }
.footer__bottom { border-top: 1px solid rgba(201, 211, 222, .18); margin-top: 44px; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; color: var(--silver-mid); }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 350;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab img { width: 34px; }
.chat-fab__dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #2fbf71; border: 2px solid #fff; }

.chat-panel {
  position: fixed; right: 14px; bottom: 88px; z-index: 360;
  width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100dvh - 120px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--silver-light);
}
.chat-panel.is-open { display: flex; }
.chat-panel__header { display: flex; align-items: center; gap: 11px; padding: 13px 16px; background: var(--navy); color: #fff; }
.chat-panel__avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-panel__avatar img { width: 26px; }
.chat-panel__avatar::after { content: ""; position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: #2fbf71; border: 2px solid var(--navy); }
.chat-panel__title strong { display: block; font-size: .95rem; }
.chat-panel__title span { font-size: .74rem; color: var(--silver); }
.chat-panel__close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 6px; }

.chat-panel__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--silver-light); }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.chat-msg--bot { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); align-self: flex-start; }
.chat-msg--user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg strong { color: inherit; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; background: var(--silver-light); }
.chat-chips button {
  border: 1.5px solid var(--silver); background: #fff; color: var(--blue); border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.chat-chips button:hover { border-color: var(--blue); }
.chat-panel__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--silver-light); background: #fff; }
.chat-panel__form input { flex: 1; border: 1.5px solid var(--silver); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: .9rem; }
.chat-panel__form input:focus { border-color: var(--blue); outline: none; }
.chat-panel__form button { border: 0; border-radius: 50%; width: 42px; height: 42px; background: var(--blue); color: #fff; cursor: pointer; font-size: 1rem; flex-shrink: 0; }
.chat-panel__form button:hover { background: var(--navy); }
.chat-typing { display: inline-flex; gap: 4px; padding: 12px 16px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--silver-mid); animation: chat-bounce 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Gallery v2 — real project photo grid
   ========================================================================== */

/* Responsive photo grid */
.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* Photo card (reuses .project-card class for JS compatibility) */
.project-card--photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--silver-light);
  cursor: pointer;
  border: 1px solid var(--silver-light);
  transition: box-shadow .35s ease, transform .35s ease;
  padding: 0;
}
.project-card--photo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.project-card--photo .gallery-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.project-card--photo .gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.project-card--photo:hover .gallery-card__media img {
  transform: scale(1.06);
}

/* Hover overlay */
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 22, 43, .92) 0%, rgba(7, 22, 43, .4) 35%, transparent 65%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.project-card--photo:hover .gallery-card__overlay {
  opacity: 1;
  pointer-events: auto;
}
.gallery-card__overlay h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.25;
}
.gallery-card__overlay p {
  color: var(--silver);
  font-size: .82rem;
  margin: 0;
}
.gallery-card__overlay .project-card__open {
  margin-top: 12px;
  width: auto;
  align-self: flex-start;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
  padding: 8px 18px;
  font-size: .82rem;
}
.gallery-card__overlay .project-card__open:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
}

/* Card body below image */
.project-card--photo .project-card__body {
  padding: 14px 18px 16px;
}
.project-card--photo .project-card__body h3 {
  font-size: .92rem;
  margin-bottom: 5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--navy);
}
.project-card--photo .project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: 0;
}
.project-card--photo .project-card__meta .tag {
  font-size: .65rem;
  padding: 2px 9px;
}

/* Lightbox single-image centering */
.lightbox__imgs--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}
.lightbox__imgs--single img {
  max-height: 70vh;
  object-fit: contain;
}

/* Featured work on homepage (uses real photos) */
.featured-work .ba__img { aspect-ratio: 4 / 3; }
.featured-work .ba__img img { object-fit: cover; }
