/* ===== All Touch Inc. — HTML/CSS/JS ===== */
/*
  Debug audit fixes:
  - Added .contact-form-label (same styling as .contact-form label) for "Attach photos" span.
  - Added .gallery-view-full spacing for keyboard-accessible "View full size" buttons.
  - Focus: :focus-visible and input/textarea :focus use outline or box-shadow (no outline removal without replacement).
  Pass 1 (Code cleanup & document foundation):
  - html: scroll-padding-top: 5rem so anchor links clear fixed header; @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }.
  - body: overscroll-behavior: none (modals/lightbox); fallbacks for --near-black, --white, --font-body.
  - .contact-address { font-style: inherit; } so <address> does not change visual design.
  - Box model and base already present: box-sizing border-box, font-size 16px on html, scroll-behavior smooth.
  Pass 2 (Responsive layout):
  - Global img { max-width: 100%; height: auto; } (gallery slider/hero override as needed).
  - body: display flex; flex-direction column; min-height 100vh; main flex: 1 0 auto (sticky footer on short pages).
  - Landscape phones: hero min-height auto + reduced padding; mobile-menu overflow-y auto; quote-modal-container max-height 90vh.
  - Mobile min font 14px: .quote-progress-labels, .quote-char-count, .quote-helper, .gallery-slider-label at 0.875rem on max-width 767px.
  - .gallery-slider-before img height: 100% so global img height:auto does not break slider.
  Pass 3 (Typography, spacing & touch):
  - touch-action: manipulation on a, button, select, input, textarea, [role="button"], [tabindex="0"].
  - Paragraph max-width: 65ch on .hero-sub, .about-story, .section-intro, .contact-page-intro p, .quote-step-sub.
  - Link distinction (WCAG 1.4.1): .contact-info a and .contact-page-intro a get text-decoration: underline (nav/btn exempt).
  - Autofill: :-webkit-autofill override for dark input backgrounds on .contact-form and .quote-field inputs.
  - .quote-pill min-height 44px + inline-flex; .quote-method-btn min-height 44px.
  - Merged duplicate body blocks (sticky footer + base styles).
  - Removed duplicate global img block (kept first one from Pass 2).
  Pass 4 (Performance & images):
  - .about-photo: added background placeholder (--charcoal-deep) to prevent white flash during image load.
  - .contact-map: added background placeholder (--charcoal-deep) for iframe loading state.
  - .gallery-pair and .gallery-pair-slider already had background: var(--charcoal-deep) — no change needed.
  Pass 7 (Cross-browser, edge cases & final sign-off):
  - Firefox scrollbar: scrollbar-width: thin + scrollbar-color on .quote-modal-container, .mobile-menu.
  - Webkit scrollbar: ::-webkit-scrollbar with thin track/thumb styling.
  - -webkit-overflow-scrolling: touch on scrollable containers (modal, mobile menu, lightbox).
  - @media print: hide nav/modals/maps/decorative, single column, black-on-white, break-inside:avoid,
    a[href]::after shows URL, @page margin 1.5cm, hero/footer simplified.
  - -webkit- prefixes already present on backdrop-filter, background-clip, text-fill-color, appearance, text-size-adjust.
  - 100dvh with 100vh fallback already on .hero. clamp(), gap, aspect-ratio, inset all within Safari 15+ target.
*/
/* Breakpoint strategy (min-width mobile-first):
   Mobile: up to 480px | Large mobile: 481–767px | Tablet: 768–1023px | Desktop: 1024–1439px | Large desktop: 1440px+
   Landscape phones: @media (max-height: 500px) and (orientation: landscape) for hero, nav, modal. */
:root {
  --primary: #0098da;
  --primary-bright: #00ccff;
  --primary-deep: #00628d;
  --chrome-light: #cccccc;
  --chrome: #b3b3b3;
  --chrome-dark: #848484;
  --charcoal: #636363;
  --charcoal-deep: #393939;
  --near-black: #0a0a0f;
  --white: #f5f5f7;
  --success: #22c55e;
  --error: #ef4444;
  --cta-glow: rgba(0, 152, 218, 0.2);
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --tap-min: 44px;
  --container-narrow: min(100% - 2rem, 56rem);
  --container-wide: min(100% - 2rem, 80rem);
  --section-padding-y-mobile: 2rem;
  --section-padding-y-desktop: 5rem;
  --page-padding-x-mobile: 1rem;
  --page-padding-x-tablet: 2.5rem;
  --page-padding-x-desktop: 5rem;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* clear fixed header when jumping to anchor */
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
*, *::before, *::after { box-sizing: inherit; }

/* Global image reflow: prevent overflow; gallery/hero/slider contexts override as needed */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
body {
  margin: 0;
  background: var(--near-black, #0a0a0f);
  color: var(--white, #f5f5f7);
  font-family: var(--font-body, 'DM Sans', 'Segoe UI', Arial, sans-serif);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: flex;          /* sticky footer */
  flex-direction: column; /* sticky footer */
  min-height: 100vh;      /* sticky footer */
}
html.modal-open {
  overflow: hidden !important;
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
}
main {
  flex: 1 0 auto;
  min-width: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--near-black);
  font-weight: 700;
  border-radius: 0.25rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----- Texture ----- */
.texture-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled,
.site-header-solid {
  background: rgba(10, 10, 15, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(132, 132, 132, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem var(--page-padding-x-mobile);
}
@media (min-width: 481px) { .nav-inner { padding: 0.875rem 1.25rem; } }
@media (min-width: 768px) { .nav-inner { padding: 0.875rem var(--page-padding-x-tablet); } }
@media (min-width: 1024px) { .nav-inner { padding: 1rem var(--page-padding-x-desktop); } }
@media (min-width: 1440px) { .nav-inner { padding: 1rem 5rem; } }

.nav-logo { display: block; min-height: var(--tap-min); }
.nav-logo img {
  height: clamp(2.25rem, 5vw, 3rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; }
}
/* Prevent fixed nav from covering in-page anchors */
main section[id] {
  scroll-margin-top: 5rem;
}
.nav-links a {
  color: var(--chrome-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.375rem;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.375rem;
  right: 0.375rem;
  bottom: 0.35rem;
  height: 1px;
  background: var(--primary-bright);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--white); opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 0.375rem;
  cursor: pointer;
  border: none;
  touch-action: manipulation; /* prevent 300ms tap delay */
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--near-black);
  box-shadow: 0 0 24px var(--cta-glow);
}
.btn-primary:hover {
  background: var(--primary-bright);
  box-shadow: 0 0 40px var(--cta-glow);
}
.btn-outline {
  background: transparent;
  color: var(--chrome-light);
  border: 2px solid var(--chrome-dark);
}
.btn-outline:hover {
  border-color: var(--chrome);
  color: var(--white);
}
.btn-cta { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.nav-inner .btn-cta { display: none; }
@media (min-width: 768px) { .nav-inner .btn-cta { display: inline-flex; } }
.nav-inner .btn-cta.btn-primary,
.mobile-menu .btn-cta.btn-primary {
  border-radius: 999px;
  padding: 0.625rem 1.5rem;
  box-shadow: 0 0 24px var(--cta-glow);
}
.nav-inner .btn-cta.btn-primary:hover,
.mobile-menu .btn-cta.btn-primary:hover {
  box-shadow: 0 0 40px var(--cta-glow);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0;
  background: none;
  border: none;
  color: var(--chrome-light);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-toggle:hover { color: var(--white); }
.nav-toggle:focus-visible { outline-offset: 2px; }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu: slide-in overlay with backdrop */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 10, 15, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 5rem 1.5rem 2rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}
.mobile-menu[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
/* Landscape phones: allow scroll so nav doesn't overflow */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4rem 1rem 2rem;
    justify-content: flex-start;
  }
}
@media (min-width: 768px) { .mobile-menu { display: none !important; visibility: hidden; } }
.mobile-menu-link {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1rem;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 20rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-menu-link:hover { color: var(--primary-bright); background: rgba(255,255,255,0.05); }
.mobile-menu .btn-cta {
  margin-top: 1rem;
  width: 100%;
  max-width: 20rem;
  min-width: 0;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem var(--page-padding-x-mobile) 3rem;
}
@supports not (min-height: 100dvh) {
  .hero { min-height: 100vh; }
}
/* Landscape phones: reduce hero height so content fits without vertical overflow */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 2rem var(--page-padding-x-mobile) 1.5rem;
  }
  .hero-badges { margin-top: 0.5rem; }
}
@media (min-width: 481px) {
  .hero { padding: 4.5rem 1.25rem 3.5rem; }
}
@media (min-width: 768px) {
  .hero { padding: 5rem var(--page-padding-x-tablet) 4rem; }
}
@media (min-width: 1024px) {
  .hero { padding: clamp(5rem, 10vw, 6rem) var(--page-padding-x-desktop) clamp(3rem, 8vw, 4rem); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,98,141,0.13) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0,98,141,0.07) 0%, transparent 70%),
    var(--near-black);
}
.hero .texture-overlay { position: absolute; inset: 0; }
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-logo {
  height: clamp(3.5rem, 10vw, 6rem);
  width: auto;
  max-width: 100%;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  filter: drop-shadow(0 0 30px rgba(0,152,218,0.3));
  object-fit: contain;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 clamp(1rem, 3vw, 1.5rem);
  word-wrap: break-word;
}
.hero-title-accent {
  background: linear-gradient(to right, var(--primary), var(--primary-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--chrome-light);
  max-width: 42rem;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  width: 100%;
  max-width: 100%;
}
.hero-buttons .btn {
  width: 100%;
  min-width: 0;
}
@media (min-width: 481px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
  }
  .hero-buttons .btn { width: auto; }
}
@media (min-width: 768px) {
  .hero-buttons { gap: 1.5rem; }
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(132, 132, 132, 0.35);
  border-radius: 999px;
  font-size: clamp(0.875rem, 1.2vw, 0.9rem);
  font-weight: 600;
  color: var(--chrome-light);
  opacity: 0;
  animation: hero-badge-fade-in 0.4s ease-out forwards;
  min-height: var(--tap-min);
}
.hero-badge--1 { animation-delay: 0.2s; }
.hero-badge--2 { animation-delay: 0.4s; }
.hero-badge--3 { animation-delay: 0.6s; }

@keyframes hero-badge-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge {
    animation: none;
    opacity: 1;
  }
}

.hero-badge-icon {
  flex-shrink: 0;
  color: var(--primary-bright);
  width: 1.25em;
  height: 1.25em;
  display: block;
}
.hero-badge-label {
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 380px) {
  .hero-badge-label { white-space: normal; }
}

/* ----- Sections ----- */
.section {
  position: relative;
  padding: var(--section-padding-y-mobile) var(--page-padding-x-mobile);
}
@media (min-width: 481px) {
  .section { padding: 2.5rem 1.25rem; }
}
@media (min-width: 768px) {
  .section { padding: 3.5rem var(--page-padding-x-tablet); }
}
@media (min-width: 1024px) {
  .section { padding: var(--section-padding-y-desktop) var(--page-padding-x-desktop); }
}
@media (min-width: 1440px) {
  .section { padding: 5rem 5rem; }
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.section-bg-slash {
  background: rgba(57, 57, 57, 0.6);
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}
.section-bg-slash-reverse {
  background: rgba(10, 10, 15, 0.8);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  padding: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  word-wrap: break-word;
  min-width: 0;
}
@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
}
.section-title-line {
  width: clamp(4rem, 12vw, 6rem);
  height: 4px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* ----- Services ----- */
.services-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: 1fr;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 481px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1440px) {
  .services-grid { gap: 1.75rem; }
  .section-inner { max-width: 80rem; }
  .nav-inner { max-width: 80rem; }
}

.service-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(132, 132, 132, 0.5);
  background: rgba(57, 57, 57, 0.8);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  border-color: var(--chrome-dark);
  box-shadow: 0 0 30px rgba(0, 152, 218, 0.13);
}
.service-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 152, 218, 0.2);
  color: var(--primary);
  border-radius: 0.5rem;
  font-size: 1.25rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  min-width: 0;
}
.service-card p {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--chrome-light);
  margin: 0;
  line-height: 1.5;
  min-width: 0;
}
@media (max-width: 480px) {
  .service-card p { font-size: 0.875rem; }
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem var(--page-padding-x-mobile);
  border-radius: 0.75rem;
  border: 1px solid rgba(132, 132, 132, 0.4);
  background: rgba(10, 10, 15, 0.6);
  min-width: 0;
}
@media (min-width: 481px) {
  .stats-bar { padding: 2rem 1.25rem; gap: 1.5rem; }
}
@media (min-width: 768px) {
  .stats-bar { gap: 2.5rem; padding: 2rem 1.5rem; }
}
.stat {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--chrome-light);
}
@media (max-width: 480px) {
  .stat { font-size: 0.875rem; }
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-bright);
  margin-right: 0.25rem;
}
@media (min-width: 768px) { .stat-num { font-size: 1.875rem; } }
.stat-sep { color: var(--chrome-dark); display: none; }
@media (min-width: 768px) { .stat-sep { display: inline; } }

/* ----- Before & After Gallery ----- */
.section-intro {
  text-align: center;
  color: var(--chrome-light);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  max-width: 42rem;
  margin: 0 auto clamp(2rem, 5vw, 2.5rem);
  line-height: 1.5;
  min-width: 0;
}
@media (max-width: 480px) {
  .section-intro { font-size: 0.875rem; }
}

.gallery-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-pair {
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(132, 132, 132, 0.4);
  background: var(--charcoal-deep);
  min-width: 0;
}

/* Before/after slider: pull handle to reveal before vs after */
.gallery-pair-slider {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--charcoal-deep);
  touch-action: none;
  cursor: pointer;
}
.gallery-pair-slider:focus-visible { outline-offset: -2px; }

.gallery-slider-after,
.gallery-slider-before {
  position: absolute;
  inset: 0;
}
.gallery-slider-after picture,
.gallery-slider-after img,
.gallery-slider-before picture,
.gallery-slider-before img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.gallery-slider-before {
  width: 50%;
  overflow: hidden;
  z-index: 1;
}
.gallery-slider-before img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-position: left top;
}
.gallery-slider-before.load-failed::after,
.gallery-slider-after.load-failed::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--chrome-dark);
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.gallery-slider-before.load-failed img,
.gallery-slider-after.load-failed img { opacity: 0; }

.gallery-slider-label {
  position: absolute;
  top: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(10, 10, 15, 0.85);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}
@media (max-width: 767px) {
  .gallery-slider-label { font-size: 0.875rem; }
}
.gallery-slider-label-before { left: 0.75rem; color: var(--chrome-light); }
.gallery-slider-label-after { right: 0.75rem; color: var(--primary-bright); }

.gallery-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  z-index: 10;
  min-height: var(--tap-min);
}
.gallery-slider-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: var(--primary);
  pointer-events: none;
}
.gallery-slider-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  pointer-events: none;
}

.gallery-pair-caption {
  padding: 0.875rem 1rem;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--chrome-light);
  text-align: center;
  margin: 0;
  border-top: 1px solid rgba(132, 132, 132, 0.3);
  font-family: var(--font-body);
  min-width: 0;
}
@media (max-width: 480px) {
  .gallery-pair-caption { font-size: 0.875rem; }
}
.gallery-view-full {
  display: block;
  width: 100%;
  margin: 0.75rem 1rem 1rem;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}
.gallery-lightbox[data-open="true"] {
  visibility: visible;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox { transition: none; }
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.gallery-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}
@media (max-width: 767px) {
  .gallery-lightbox {
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
  }
  .gallery-lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    padding-top: 4rem;
    padding-left: var(--page-padding-x-mobile);
    padding-right: var(--page-padding-x-mobile);
    padding-bottom: 1rem;
  }
  .gallery-lightbox-img {
    max-height: calc(100vh - 8rem);
  }
  .gallery-lightbox-close {
    position: fixed;
    top: 1rem;
    right: var(--page-padding-x-mobile);
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    padding: 0.75rem 1rem;
    z-index: 101;
  }
  .gallery-lightbox-actions {
    margin-top: auto;
    padding-top: 1rem;
  }
}
.gallery-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.375rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.gallery-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.gallery-lightbox-close {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
}

.section-cta {
  text-align: center;
  margin: 0;
  min-width: 0;
}
.section-cta .btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (min-width: 481px) {
  .section-cta .btn { width: auto; max-width: none; }
}

/* ----- About ----- */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-width: 0;
}
@media (min-width: 768px) {
  .about-grid { gap: 3rem; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.about-photo {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(132, 132, 132, 0.5);
  box-shadow: 0 0 40px rgba(0, 152, 218, 0.13);
  aspect-ratio: 4/3;
  min-width: 0;
  background: var(--charcoal-deep, #141418);
}
.about-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 700;
  font-style: italic;
  color: var(--primary-bright);
  margin: 0 0 clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  min-width: 0;
  word-wrap: break-word;
}
@media (max-width: 480px) {
  .about-quote { font-size: 1.25rem; }
}
.about-story {
  color: var(--chrome-light);
  margin: 0 0 2rem;
  line-height: 1.6;
  font-size: clamp(0.875rem, 1vw, 1rem);
  min-width: 0;
}
@media (max-width: 480px) {
  .about-story { font-size: 0.875rem; }
}
.about-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--chrome-dark);
  min-width: 0;
}
@media (max-width: 480px) {
  .about-trust { font-size: 0.875rem; }
}
.about-trust strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--primary-bright);
  margin-right: 0.25rem;
}
.about-stat-sep { color: var(--chrome-dark); }

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  gap: 2rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .contact-grid { gap: 3rem; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-form-required-note {
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
  color: var(--chrome-dark);
  margin: 0 0 1rem;
}
@media (max-width: 480px) {
  .contact-form-required-note { font-size: 0.875rem; }
}

.contact-form-field {
  margin-bottom: 1.25rem;
}
.contact-form-field:last-of-type { margin-bottom: 1.25rem; }

.contact-form label,
.contact-form-label {
  display: block;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  font-weight: 500;
  color: var(--chrome-light);
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}
@media (max-width: 480px) {
  .contact-form label,
  .contact-form-label { font-size: 0.875rem; }
}
.contact-form-field:focus-within label { color: var(--primary-bright); }
.contact-form-field.has-error label { color: #DC2626; }
.contact-form-field.has-valid label { color: #16A34A; }

.required-indicator { color: #DC2626; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  background: var(--charcoal-deep);
  border: 2px solid var(--chrome-dark);
  border-radius: 0.375rem;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  min-height: var(--tap-min);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
@media (min-width: 481px) {
  .contact-form input,
  .contact-form textarea { font-size: 1rem; }
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--chrome-dark); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 152, 218, 0.15);
}
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.contact-form input.valid,
.contact-form textarea.valid {
  border-color: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.contact-form textarea { resize: vertical; min-height: 80px; }

.field-error {
  display: block;
  font-size: clamp(0.8rem, 1vw, 0.875rem);
  color: #DC2626;
  margin: 0.25rem 0 0;
  min-height: 1.25rem;
  animation: field-error-in 0.25s ease-out;
  word-wrap: break-word;
}
@media (max-width: 480px) {
  .field-error { font-size: 0.875rem; }
}
@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.field-error:empty { min-height: 0; margin: 0; }
.contact-form-wrapper { position: relative; }
.contact-form-banner {
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  min-width: 0;
  word-wrap: break-word;
}
@media (max-width: 480px) {
  .contact-form-banner { font-size: 0.875rem; padding: 1rem; }
}
.contact-form-banner-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--chrome-light);
}
.contact-form-banner-error a {
  color: var(--primary-bright);
  text-decoration: underline;
}
.contact-form-banner-error a:hover { color: var(--white); }

.contact-form-banner-errors {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-left: 4px solid #DC2626;
  color: var(--chrome-light);
}
.contact-form-errors-heading {
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.contact-form-errors-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.contact-form-errors-list a {
  color: var(--primary-bright);
  text-decoration: underline;
}
.contact-form-errors-list a:hover { color: var(--white); }

.contact-form-success {
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(132, 132, 132, 0.4);
  background: rgba(57, 57, 57, 0.6);
}
.contact-form-success.hidden { display: none; }
.contact-form-success-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--success);
  margin: 0 0 0.5rem;
}
.contact-form-success p:last-child {
  margin: 0;
  color: var(--chrome-light);
  font-size: 1rem;
}
.contact-form-wrapper:has(.contact-form-success:not([hidden])) .contact-form {
  display: none;
}
.contact-form-wrapper:has(.contact-form-success:not([hidden])) .contact-form-banner {
  display: none !important;
}
.btn.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(10, 10, 15, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  left: 50%;
  top: 50%;
  margin-left: -0.625rem;
  margin-top: -0.625rem;
  color: var(--near-black);
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation: none; opacity: 0.8; }
}

.contact-upload {
  min-height: 100px;
  margin-bottom: 1.25rem;
  border: 2px dashed var(--chrome-dark);
  border-radius: 0.375rem;
  background: rgba(57, 57, 57, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease;
  padding: 1rem;
}
.contact-upload:focus-within { border-color: var(--primary); }
.contact-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  min-height: var(--tap-min);
}
.upload-label {
  padding: 0.75rem 1rem;
  font-size: 16px;
  color: var(--chrome-dark);
  cursor: pointer;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.upload-label:hover { color: var(--chrome-light); }

.btn-block { width: 100%; }

.contact-address { font-style: inherit; }
.contact-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1rem;
  min-width: 0;
}
@media (max-width: 480px) {
  .contact-info h3 { font-size: 1rem; }
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  min-width: 0;
}
.contact-info li {
  margin-bottom: 1rem;
  color: var(--chrome-light);
  font-size: clamp(0.875rem, 1vw, 1rem);
  word-wrap: break-word;
}
@media (max-width: 480px) {
  .contact-info li { font-size: 0.875rem; }
}
.contact-info a {
  color: inherit;
  text-decoration: none;
}
.contact-info a:hover { color: var(--primary-bright); }

.contact-map {
  aspect-ratio: 16/9;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(132, 132, 132, 0.5);
  min-width: 0;
  max-width: 100%;
  background: var(--charcoal-deep, #141418);
}
.contact-map img,
.contact-map iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  border: 0;
}
.contact-map img { object-fit: cover; }

/* ----- Contact page intro ----- */
.contact-page { padding-top: clamp(4rem, 12vw, 5rem); }
.contact-page-intro {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3rem) var(--page-padding-x-mobile) 2rem;
  text-align: center;
  min-width: 0;
}
@media (min-width: 481px) {
  .contact-page-intro { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (min-width: 768px) {
  .contact-page-intro { padding: clamp(2rem, 6vw, 3rem) var(--page-padding-x-tablet) 2rem; }
}
@media (min-width: 1024px) {
  .contact-page-intro { padding: clamp(2rem, 6vw, 3rem) var(--page-padding-x-desktop) 2rem; }
}
.contact-page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1rem;
  word-wrap: break-word;
  min-width: 0;
}
@media (max-width: 480px) {
  .contact-page-intro h1 { font-size: 1.5rem; }
}
.contact-page-intro p { color: var(--chrome-light); margin: 0 0 1rem; }
.contact-page-intro a {
  color: var(--primary-bright);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
  display: inline-block;
  padding: 0.5rem 0.25rem;
  min-height: var(--tap-min);
  line-height: 1.4;
  box-sizing: border-box;
}
.contact-page-intro a:hover { text-decoration: underline; opacity: 0.9; }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid rgba(132, 132, 132, 0.4);
  background: rgba(57, 57, 57, 0.5);
  padding: 3rem var(--page-padding-x-mobile) 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer { padding: 3rem var(--page-padding-x-tablet) 2rem; }
}
@media (min-width: 1024px) {
  .site-footer { padding: 3rem var(--page-padding-x-desktop) 2rem; }
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--page-padding-x-tablet);
  }
}
@media (min-width: 1024px) {
  .footer-inner {
    justify-content: space-between;
    text-align: left;
    padding: 0 var(--page-padding-x-desktop);
  }
}
.footer-logo img {
  height: 2rem;
  width: auto;
  opacity: 0.9;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .footer-inner nav { gap: 2rem; } }
.footer-inner nav a {
  color: var(--chrome-light);
  text-decoration: none;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  font-weight: 500;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  transition: color 0.2s ease;
}
@media (max-width: 480px) {
  .footer-inner nav a { font-size: 0.875rem; padding: 0.5rem 0.25rem; }
}
.footer-inner nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-social-link {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  width: 48px;
  height: 48px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--chrome-dark);
  border-radius: 50%;
  color: var(--chrome-light);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.footer-social-link:hover {
  transform: scale(1.1);
}
.footer-social-link:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}
.footer-social-link--facebook:hover {
  border-color: #1877F2;
  color: #1877F2;
}
.footer-social-link--instagram:hover {
  border-color: #E4405F;
  color: #E4405F;
}
.footer-social-link--google:hover {
  border-color: #4285F4;
  color: #4285F4;
}

/* ===== Pass 3: Touch, links, autofill, paragraph readability ===== */

/* Touch-action: prevent 300ms tap delay on all interactive elements */
a, button, select, input, textarea, [role="button"], [tabindex="0"] {
  touch-action: manipulation;
}

/* Paragraph readability: cap line length on wide screens */
.hero-sub,
.about-story,
.section-intro,
.contact-page-intro p,
.quote-step-sub { max-width: 65ch; }

/* Link distinction in body text: underline (nav/buttons exempt per WCAG guidance) */
.contact-info a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--chrome-dark); }
.contact-info a:hover { text-decoration-color: var(--primary-bright); }
.contact-page-intro a { text-decoration: underline; text-underline-offset: 2px; }

/* Autofill: override yellow/blue browser autofill to match dark inputs */
.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill,
.quote-field input:-webkit-autofill,
.quote-other-describe input:-webkit-autofill {
  -webkit-text-fill-color: var(--white, #f5f5f7);
  -webkit-box-shadow: 0 0 0 1000px var(--charcoal-deep, #393939) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.footer-tagline {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  color: var(--chrome-dark);
  margin: 0 0 0.5rem;
}
@media (max-width: 480px) {
  .footer-tagline { font-size: 0.875rem; }
}
.footer-copy {
  font-size: clamp(0.875rem, 0.5rem + 0.5vw, 0.8125rem);
  color: var(--charcoal);
  margin: 0;
}
@media (max-width: 480px) {
  .footer-copy { font-size: 0.875rem; }
}

/* ===== Quote modal (multi-step) ===== */
.quote-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.quote-modal.is-open {
  display: flex !important;
}
.quote-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.quote-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--charcoal-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1.5rem 2rem;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.quote-modal.is-open .quote-modal-container {
  transform: scale(1);
  opacity: 1;
}
.quote-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s ease;
}
.quote-modal-close:hover { color: var(--primary-bright); }
.quote-modal-close:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 2px; }

.quote-progress { margin-bottom: 1.5rem; }
.quote-progress-text {
  font-size: 0.875rem;
  color: var(--chrome-light);
  margin: 0 0 0.5rem;
}
.quote-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.quote-progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.quote-progress-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--chrome-dark);
}
@media (max-width: 767px) {
  .quote-progress-labels,
  .quote-char-count,
  .quote-helper { font-size: 0.875rem; }
}
.quote-progress-label { transition: color 0.2s; }
.quote-progress-label.is-active { color: var(--primary-bright); }

.quote-steps { position: relative; min-height: 200px; }
.quote-step {
  display: none;
  animation: quote-step-out 0.25s ease;
}
.quote-step-visible { display: block; animation: quote-step-in 0.3s ease-out; }
@keyframes quote-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes quote-step-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-8px); }
}
.quote-step.go-back { animation: quote-step-back 0.25s ease-out; }
@keyframes quote-step-back {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.quote-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--white);
}
.quote-step-sub { color: var(--chrome-light); font-size: 0.9375rem; margin: 0 0 1rem; }

.quote-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.quote-service-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: left;
  background: rgba(57, 57, 57, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  min-height: var(--tap-min);
}
.quote-service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--cta-glow);
}
.quote-service-card.is-selected {
  border-color: var(--primary);
  background: rgba(0, 152, 218, 0.12);
  box-shadow: 0 0 16px var(--cta-glow);
}
.quote-service-icon { flex-shrink: 0; color: var(--primary-bright); }
.quote-service-icon svg { display: block; }
.quote-service-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--primary-bright);
  opacity: 0;
  transition: opacity 0.2s;
}
.quote-service-card.is-selected .quote-service-check { opacity: 1; }

.quote-other-describe { margin-top: 1rem; }
.quote-other-describe label { display: block; margin-bottom: 0.25rem; font-size: 0.875rem; color: var(--chrome-light); }
.quote-other-describe input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--near-black);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  min-height: var(--tap-min);
  box-sizing: border-box;
}
.quote-other-describe input:focus { border-color: var(--primary); outline: none; }

.quote-form-grid { display: flex; flex-direction: column; gap: 1rem; }
.quote-field label, .quote-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--chrome-light); margin-bottom: 0.25rem; }
.quote-label-hint { font-weight: 400; color: var(--chrome-dark); }
.quote-field input, .quote-field select, .quote-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--near-black);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  min-height: var(--tap-min);
  box-sizing: border-box;
}
.quote-field input:focus, .quote-field select:focus, .quote-field textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 152, 218, 0.15);
}
.quote-field textarea { min-height: 80px; resize: vertical; }
.quote-char-count { font-size: 0.75rem; color: var(--chrome-dark); display: block; margin-top: 0.25rem; }

.quote-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quote-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(57, 57, 57, 0.5);
  color: var(--chrome-light);
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.quote-pill:hover { border-color: var(--chrome); color: var(--white); }
.quote-pill.is-selected { border-color: var(--primary); background: rgba(0, 152, 218, 0.15); color: var(--primary-bright); }

.quote-severity-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.quote-severity-card {
  display: block;
  padding: 1rem;
  text-align: left;
  background: rgba(57, 57, 57, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.quote-severity-card strong { display: block; margin-bottom: 0.25rem; }
.quote-severity-card span { font-size: 0.875rem; color: var(--chrome-light); }
.quote-severity-card:hover { border-color: var(--primary); }
.quote-severity-card.is-selected { border-color: var(--primary); background: rgba(0, 152, 218, 0.12); }

.quote-upload-zone {
  border: 2px dashed var(--primary);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: background 0.2s;
}
.quote-upload-zone.is-dragover { background: rgba(0, 152, 218, 0.08); }
.quote-upload-zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.quote-upload-icon { display: block; color: var(--primary); margin-bottom: 0.5rem; }
.quote-upload-text { display: block; color: var(--chrome-light); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.quote-upload-browse { margin-top: 0.5rem; }
.quote-upload-mobile { display: none; }
.quote-upload-count { font-size: 0.875rem; color: var(--chrome-dark); margin: 0.5rem 0; }
.quote-thumbnails { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.quote-thumb { position: relative; width: 80px; height: 80px; border-radius: 0.375rem; overflow: hidden; background: var(--charcoal); }
.quote-thumb img { width: 100%; height: 100%; object-fit: cover; }
.quote-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.quote-skip-step { color: var(--primary-bright); font-size: 0.875rem; }
.quote-skip-step:hover { text-decoration: underline; }

.quote-contact-method { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quote-method-btn {
  padding: 0.5rem 1rem;
  min-height: var(--tap-min);
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--chrome-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.quote-method-btn:hover { border-color: var(--chrome); color: var(--white); }
.quote-method-btn.is-selected { border-color: var(--primary); background: rgba(0, 152, 218, 0.2); color: var(--primary-bright); }

.quote-field-checkbox { margin-top: 1rem; }
.quote-checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--chrome-light); }
.quote-checkbox-label input { width: auto; min-height: auto; margin-top: 0.2rem; }
.quote-helper { display: block; font-size: 0.75rem; color: var(--chrome-dark); margin-top: 0.25rem; }

.quote-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.quote-back { display: none; }
.quote-modal[data-step="1"] .quote-back { display: none; }
.quote-modal[data-step="2"] .quote-back,
.quote-modal[data-step="3"] .quote-back,
.quote-modal[data-step="4"] .quote-back,
.quote-modal[data-step="5"] .quote-back { display: inline-flex; }

.quote-success { text-align: center; padding: 2rem 0; }
.quote-success-icon { color: var(--success); margin-bottom: 1rem; }
.quote-success-icon svg { display: inline-block; }
.quote-success-icon svg path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: quote-draw-check 0.5s ease-out forwards;
}
@keyframes quote-draw-check {
  to { stroke-dashoffset: 0; }
}
.quote-success-title { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--white); }
.quote-success-msg { color: var(--chrome-light); margin: 0 0 1rem; }
.quote-success-ref { font-size: 0.9375rem; color: var(--chrome-light); margin: 0 0 1.5rem; }
.quote-success-ref strong { font-family: var(--font-mono); color: var(--primary-bright); }
.quote-error-banner {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.375rem;
  margin-top: 1rem;
  text-align: center;
}
.quote-error-banner p { margin: 0 0 0.75rem; color: var(--chrome-light); }
.quote-retry { margin-top: 0.5rem; }
.quote-make-other-wrap { margin-top: 0.5rem; }
.quote-success-close { margin-top: 0.5rem; }

@media (max-width: 767px) {
  .quote-modal { padding: 0.5rem; align-items: flex-start; }
  .quote-modal-container { max-width: 95vw; max-height: 95vh; padding: 1rem 1rem 1.5rem; }
  .quote-service-grid { grid-template-columns: 1fr; }
  .quote-upload-zone { display: none; }
  .quote-upload-mobile { display: block; margin-bottom: 0.5rem; }
  .quote-upload-mobile-btn { width: 100%; }
  .quote-modal-footer { flex-direction: column; }
  .quote-modal-footer .btn { width: 100%; }
  .quote-next { order: -1; }
}
/* Quote modal: landscape phones — cap height so content is scrollable */
@media (max-height: 500px) and (orientation: landscape) {
  .quote-modal-container { max-height: 90vh; }
  .quote-modal { padding: 0.5rem; align-items: flex-start; }
}

/* ===== Cross-browser: scrollbar styling ===== */

/* Firefox */
.quote-modal-container,
.mobile-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--chrome-dark, #848484) transparent;
}

/* Webkit/Blink (Chrome, Safari, Edge) */
.quote-modal-container::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}
.quote-modal-container::-webkit-scrollbar-track,
.mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}
.quote-modal-container::-webkit-scrollbar-thumb,
.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--chrome-dark, #848484);
  border-radius: 3px;
}

/* iOS momentum scroll for overflow containers */
.quote-modal-container,
.mobile-menu,
.gallery-lightbox-content {
  -webkit-overflow-scrolling: touch;
}

/* ===== Print stylesheet ===== */
@media print {
  @page { margin: 1.5cm; }

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    display: block;
    min-height: auto;
  }

  /* Hide non-essential UI */
  .site-header,
  .nav-toggle,
  .mobile-menu,
  .skip-link,
  .hero-bg,
  .texture-overlay,
  .section-bg,
  .gallery-lightbox,
  .quote-modal,
  .contact-map,
  .contact-upload,
  .gallery-slider-handle,
  .gallery-view-full,
  .btn-cta,
  .btn-primary,
  .btn-outline,
  .footer-social,
  .section-title-line,
  .hero-badges,
  .hero-buttons,
  .section-cta,
  .contact-form-submit,
  .js-open-quote-modal { display: none !important; }

  main { flex: none; }
  img { max-width: 100% !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555 !important; }
  nav a[href]::after,
  .footer-logo a[href]::after,
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  a.js-open-quote-modal::after { content: none; }

  .hero { min-height: auto !important; padding: 1cm 0 !important; }
  .hero-logo { filter: none !important; }
  .hero-title-accent { -webkit-text-fill-color: #000 !important; background: none !important; }
  .section { padding: 0.5cm 0 !important; }

  .gallery-grid,
  .services-grid,
  .about-grid,
  .contact-grid { display: block !important; }

  .gallery-pair,
  .service-card,
  .about-photo,
  .about-content { break-inside: avoid; margin-bottom: 0.5cm; }

  .gallery-pair-slider { aspect-ratio: auto; position: static; }
  .gallery-slider-after,
  .gallery-slider-before { position: static; width: 100% !important; }
  .gallery-slider-before { display: none; }
  .gallery-slider-after img { height: auto !important; }

  .site-footer { border-top: 1pt solid #ccc !important; padding: 0.5cm 0 !important; }
  .footer-inner { display: block !important; text-align: center; }
  .footer-inner nav { display: none !important; }
  .footer-logo img { opacity: 1 !important; }
  .footer-copy { display: block; margin-top: 0.25cm; }
}
