/* ==========================================================================
   AX Property Solutions LLC — site styles
   Palette is drawn from the logo: deep navy + steel blue, with the roofline
   gold used only as a small accent. Everything else is warm neutrals.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --surface: #ffffff;
  --navy-deep: #0f2244;

  /* Ink */
  --ink: #1e2329;
  --slate: #48515c;
  --muted: #6b7079;
  --line: rgba(30, 35, 41, .12);
  --line-strong: rgba(30, 35, 41, .22);

  /* Brand (from logo) */
  --navy: #14305e;
  --navy-hover: #0d2347;
  --blue: #3a6fb5;
  --gold: #a87a33;
  --gold-soft: #c9a463;

  /* Type */
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(1.95rem, 1.45rem + 1.8vw, 2.85rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.3vw, 2.35rem);
  --fs-h3: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;

  /* Space + shape */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.25rem, 3rem + 5vw, 7.5rem);
  --radius: 6px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* No CSS scroll-behavior: smooth — it breaks GSAP ScrollTrigger snapping. main.js smooth-scrolls anchor links instead. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.015em; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--navy-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

/* Eyebrow — the small gold diamond echoes the one in the logo. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem;
  font: 600 .78rem/1.2 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.eyebrow--on-dark { color: rgba(255, 255, 255, .78); }
.eyebrow--on-dark::before { background: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-lg { min-height: 52px; padding-inline: 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper-2); color: var(--navy-hover); }

.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: "→"; display: inline-block; margin-left: .45rem; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .94);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 62px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 1.75rem; }
.primary-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding-block: .5rem; position: relative; }
.primary-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav ul a:hover::after { transform: scaleX(1); }
.nav-phone { color: var(--slate); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--navy); }
.menu-toggle { display: none; }

@media (max-width: 1040px) { .nav-phone { display: none; } }

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .brand img { height: 52px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-right: -.6rem;
    background: none; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--ink);
  }
  .menu-toggle .ico-close { display: none; }
  .menu-toggle[aria-expanded="true"] .ico-open { display: none; }
  .menu-toggle[aria-expanded="true"] .ico-close { display: inline; }

  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(15, 34, 68, .35);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .primary-nav ul a::after { display: none; }
  .nav-phone { display: block; padding: 1rem 0 .25rem; font-size: 1.05rem; }
  .nav-quote { margin-top: .9rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
/* Hero heading picks up the logo's navy-to-steel-blue fade (colours sampled from the AX mark). */
.hero-copy h1 {
  max-width: 18ch; width: fit-content;
  color: var(--navy);
  background: linear-gradient(90deg, #0a2454 0%, #1d4580 45%, #336cb2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
.hero-sub { margin: 1rem 0 0; }
.hero-lead { margin: 1.25rem 0 2rem; max-width: 50ch; font-size: clamp(1.05rem, 1rem + .25vw, 1.15rem); color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.hero-call { margin: 0; font-size: .97rem; color: var(--slate); }
.hero-call a { font-weight: 600; color: var(--navy); text-decoration: none; }
.hero-call a:hover { text-decoration: underline; }
.hero-services { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: var(--fs-small); }
.hero-services li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-services li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.hero-services a { color: var(--slate); text-decoration: none; }
.hero-services a:hover { color: var(--navy); text-decoration: underline; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-intro { color: var(--slate); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head--row h2 { margin-bottom: 0; }

/* ---------- Services: one consistent card per service ---------- */
.services { background: var(--paper-2); border-block: 1px solid var(--line); }
.services-slides { display: grid; gap: 1.5rem; }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 26rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 40px -36px rgba(15, 34, 68, .45);
}
.service-media { position: relative; min-height: 18rem; background: var(--paper-2); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem);
}
.service-num { margin: 0 0 .6rem; font: 600 .85rem/1 var(--font-head); color: var(--gold); letter-spacing: .08em; }
.service-body h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); margin-bottom: .9rem; }
.service-body > p { color: var(--slate); max-width: 52ch; }
.service-body > .btn { margin-top: 1.5rem; }
.service-list { margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.service-list li { padding-left: 1.2rem; position: relative; }
.service-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.wash-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; margin-top: 1.25rem; }
.wash-option { padding: 1.1rem 1.15rem; background: var(--paper); border-top: 2px solid var(--navy); border-radius: 0 0 var(--radius) var(--radius); }
.wash-option h4 { margin: 0 0 .35rem; font: 600 1.02rem/1.3 var(--font-head); color: var(--ink); }
.wash-option p { margin-bottom: .6rem; font-size: .95rem; color: var(--slate); }
.wash-option .text-link { font-size: .92rem; }

@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; min-height: 0; }
  .service-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .wash-options { grid-template-columns: 1fr; } }

/* Pinned services: one card on screen at a time. Only active when main.js adds
   .pin-services (desktop + motion allowed); otherwise the cards stack as above. */
.services-rail { display: none; }
.pin-services .services { padding-bottom: 0; }
.pin-services .services .section-head { margin-bottom: 0; }
.pin-services .services-stage {
  display: flex; flex-direction: column; justify-content: center;
  height: calc(100vh - var(--header-h)); padding-block: clamp(1.25rem, 3vh, 2.5rem);
}
.pin-services .services-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.services-rail button {
  position: relative; padding: .9rem 0 0; background: none; border: 0; border-top: 1px solid var(--line-strong);
  text-align: left; font: 500 .95rem/1.3 var(--font-body); color: var(--muted); cursor: pointer;
  transition: color .3s var(--ease);
}
.services-rail button::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.services-rail button span { margin-right: .5rem; font: 600 .8rem/1 var(--font-head); color: var(--gold); letter-spacing: .06em; }
.services-rail button:hover { color: var(--ink); }
.services-rail button[aria-current="true"] { color: var(--ink); }
.services-rail button[aria-current="true"]::before { transform: scaleX(1); }
.pin-services .services-slides { gap: 0; }
.pin-services .services-slides > .service { grid-area: 1 / 1; min-height: 0; height: min(34rem, calc(100vh - var(--header-h) - 9rem)); }

/* ---------- Why choose ---------- */
.why { background: var(--navy-deep); color: rgba(255, 255, 255, .82); }
.why h2, .why h3 { color: #fff; }
.why-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why-head h2 { margin-bottom: 1.1rem; }
.why-head p { margin-bottom: 2rem; max-width: 40ch; }
.why-list { counter-reset: why; border-top: 1px solid rgba(255, 255, 255, .16); }
.why-list li {
  counter-increment: why;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem;
  padding-block: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.why-list li::before { content: counter(why, decimal-leading-zero); grid-row: span 2; font: 600 .85rem/1.9 var(--font-head); color: var(--gold-soft); letter-spacing: .06em; }
.why-list h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.why-list p { margin: 0; font-size: 1rem; }

.commitment {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid var(--gold-soft);
  border-radius: 8px;
}
.commitment .eyebrow { grid-column: 1; margin-bottom: 0; align-self: end; }
.commitment h3 { grid-column: 1; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); align-self: start; }
.commitment p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 860px) {
  .why-grid, .commitment { grid-template-columns: 1fr; }
  .commitment p:not(.eyebrow) { grid-column: 1; grid-row: auto; }
}

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 40px; padding: .45rem .95rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--slate); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery-notice {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: 0 0 2rem; padding: .85rem 1rem;
  background: var(--paper-2); border-radius: var(--radius);
  font-size: var(--fs-small); color: var(--slate);
}
.gallery-notice svg { flex: none; margin-top: .15rem; color: var(--gold); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.gallery-grid li[hidden] { display: none; }
.tile { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.tile-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; }
.tile-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile-btn:hover img { transform: scale(1.04); }
.tile-btn::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(10, 22, 44, .78), transparent); pointer-events: none; }
.tile figcaption { position: absolute; left: .9rem; bottom: .8rem; right: .9rem; color: #fff; font-weight: 600; font-size: .95rem; pointer-events: none; }
.tile-example {
  position: absolute; top: .65rem; left: .65rem; padding: .25rem .55rem; border-radius: 4px;
  background: rgba(247, 245, 240, .92); color: var(--slate);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
}

@media (max-width: 1040px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-example { top: .45rem; left: .45rem; padding: .2rem .4rem; font-size: .6rem; }
  .tile figcaption { left: .6rem; right: .6rem; bottom: .55rem; font-size: .82rem; line-height: 1.25; }
}

/* Lightbox */
.lightbox { width: min(1100px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius); background: #0b1220; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 16, 28, .82); }
.lightbox-inner { position: relative; display: flex; flex-direction: column; }
.lb-img { width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; background: #0b1220; }
.lb-bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; }
.lb-caption { flex: 1; margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .8); text-align: center; }
.lightbox button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255, 255, 255, .08); border: 0; border-radius: var(--radius); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .16); }
.lb-close { position: absolute; top: .75rem; right: .75rem; z-index: 1; background: rgba(11, 18, 32, .7) !important; }

/* ---------- Founder ---------- */
.founder { background: var(--surface); border-block: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
/* Clean brand panel until Jared's photo arrives; a real <img> inside .portrait fills it. */
.portrait { aspect-ratio: 4 / 5; max-width: 420px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.portrait picture img { width: 140px; height: auto; opacity: .85; }
.portrait > img { width: 100%; height: 100%; object-fit: cover; }
.founder-copy h2 { margin-bottom: .35rem; }
.founder-role { color: var(--gold); font-weight: 600; font-size: .95rem; margin-bottom: 1.4rem; }
.founder-copy > p:not(.eyebrow):not(.founder-role) { color: var(--slate); max-width: 56ch; font-size: 1.08rem; }
.founder-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.founder-quote { margin: 1.75rem 0 0; padding: 1.4rem 1.5rem; background: var(--paper); border-left: 2px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; }
.founder-quote p { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.founder-quote footer { margin-top: .75rem; font-size: var(--fs-small); color: var(--slate); font-weight: 500; }

@media (min-width: 861px) { .portrait { max-width: 360px; } }
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4 / 3; max-width: 420px; }
  /* The logo panel is only a stand-in; on small screens it just adds scroll. */
  .portrait--placeholder { display: none; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--slate); max-width: 46ch; }
.steps { margin: 2rem 0; display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.step-n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line-strong); border-radius: 50%; font: 600 .9rem/1 var(--font-head); color: var(--navy); }
.steps strong { display: block; font-weight: 600; }
.steps span:not(.step-n) { color: var(--slate); font-size: .97rem; }
.call-card { display: flex; flex-direction: column; gap: .2rem; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.call-label { font-size: var(--fs-small); color: var(--slate); }
.call-number { font: 600 clamp(1.4rem, 1.2rem + .7vw, 1.75rem)/1.3 var(--font-head); text-decoration: none; color: var(--navy); }
.call-meta { font-size: var(--fs-small); color: var(--muted); }
.call-email { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--slate); }
.strong-link--email { font-size: 1rem; overflow-wrap: anywhere; }

.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); box-shadow: 0 24px 50px -40px rgba(15, 34, 68, .35); }
.form-title { margin-bottom: .35rem; }
.form-sub { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .92rem; font-weight: 500; color: var(--ink); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2348515c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(58, 111, 181, .18); }
.field [aria-invalid="true"] { border-color: #a23b2e; }
.field-error { margin: .35rem 0 0; font-size: .85rem; color: #a23b2e; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { margin: .35rem 0 0; font-size: .85rem; color: var(--slate); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius); background: #fbeceb; color: #7e2a20; font-size: .95rem; }
.form-fine { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.quote-form button[disabled] { opacity: .7; cursor: progress; }

.form-success { text-align: center; padding: 2rem .5rem; }
.form-success svg { margin: 0 auto 1rem; color: var(--navy); stroke-width: 1.6; }
.form-success h3 { margin-bottom: .75rem; }
.form-success p { color: var(--slate); max-width: 42ch; margin-inline: auto; }
.form-success:focus { outline: none; }

.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); padding-top: 2.5rem; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.info-block h3 { font-size: 1rem; margin-bottom: .8rem; }
.info-block p { font-size: .97rem; color: var(--slate); }
.hours { margin: 0; display: grid; gap: .5rem; font-size: .97rem; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink); white-space: nowrap; }
.hours dd { margin: 0; color: var(--slate); text-align: right; }
.strong-link { font-weight: 600; font-size: 1.1rem; text-decoration: none; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 3rem + 3vw, 5rem); font-size: .95rem; color: var(--slate); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand img { width: 200px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; }
.footer-col h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; font-family: var(--font-body); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--slate); text-decoration: none; }
.footer-col a:hover { color: var(--navy); text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 3rem; padding-block: 1.5rem; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat; font-size: .85rem; color: var(--muted); }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--muted); }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile quick-action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: .6rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(247, 245, 240, .97); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn-secondary { background: var(--surface); }
  body { padding-bottom: 70px; }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .tile-btn:hover img { transform: none; }
}

/* ---------- Simple content pages (privacy, 404, thank-you) ---------- */
.page { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.page .container { max-width: calc(760px + var(--gutter) * 2); }
.page h1 { margin-bottom: 1.25rem; }
.page h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; }
.page p, .page li { color: var(--slate); }
.page ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.page-note { padding: 1rem 1.15rem; background: var(--paper-2); border-left: 2px solid var(--gold); font-size: .95rem; }

/* Larger hit areas for small text links without changing the layout. */
.text-link { padding-block: .6rem; }
.hero-call a, .footer-col a, .footer-legal a, .strong-link, .form-fine a { display: inline-block; padding-block: .7rem; margin-block: -.7rem; }
