/* ==========================================================================
   WJMProjects — main stylesheet
   Palette: navy / warm off-white / stone / white. Font: Manrope.
   ========================================================================== */

:root {
  --navy: #1c2b47;
  --navy-deep: #131f36;
  --navy-soft: #2e4066;
  --ink: #232a38;
  --muted: #5c6472;
  --off-white: #faf8f3;
  --stone: #c9bba3;
  --stone-light: #f0ebe0;
  --stone-border: #e3dccc;
  --brass: #a3782f;
  --brass-dark: #86621f;
  --white: #ffffff;
  --green: #2e7d4f;
  --red: #b3402e;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(19, 31, 54, 0.08);
  --shadow-md: 0 6px 24px rgba(19, 31, 54, 0.10);
  --shadow-lg: 0 16px 48px rgba(19, 31, 54, 0.16);
  --header-h: 76px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.75rem;
}
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.bg-off { background: var(--off-white); }
.bg-stone { background: var(--stone-light); }
.bg-navy { background: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brass); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brass-dark); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.75); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); border-color: var(--stone-border); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; margin-right: auto; }
.logo strong { font-size: 1.45rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo span { font-size: 1.45rem; font-weight: 300; color: var(--brass); letter-spacing: -0.02em; }

.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  font-weight: 600; font-size: 0.98rem; color: var(--ink); text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--stone-light); }
.main-nav a[aria-current="page"] { color: var(--brass); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.header-phone svg { flex: none; }
.header-phone:hover { color: var(--brass); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.6rem; margin: 0; cursor: pointer;
  border-radius: 8px;
}
.nav-toggle .bar {
  display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px;
  margin: 5px 0; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: var(--white); border-bottom: 1px solid var(--stone-border);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1.25rem 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 0.85rem 0.5rem; font-size: 1.08rem; border-bottom: 1px solid var(--stone-light); }
  .main-nav li:last-child a { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .main-nav .nav-quote-btn { display: inline-flex; margin-top: 1rem; width: 100%; }
}
@media (min-width: 1021px) { .main-nav .nav-quote-btn { display: none; } }
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone svg { width: 22px; height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg picture { display: contents; }
/* Bias the crop upwards so the building stays in frame on wide screens. */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  /* Tuned so the photo reads clearly while white hero text stays above 4.5:1 contrast. */
  background: linear-gradient(100deg, rgba(19,31,54,0.90) 0%, rgba(19,31,54,0.74) 45%, rgba(19,31,54,0.34) 100%);
}
.hero-content { position: relative; max-width: 40rem; }
.hero .eyebrow { color: var(--stone); }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.6rem; }
.hero-phone { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.hero-phone a { color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 800; }
.hero-phone a:hover { color: var(--stone); }
.hero-trust { margin-top: 0.4rem; font-size: 0.95rem; color: rgba(255,255,255,0.88); }

/* Mobile: a full-bleed background would crop away most of the photo's width,
   so the image becomes its own 3:2 band above the text (art-directed source). */
@media (max-width: 767px) {
  .hero { display: flex; flex-direction: column; padding: 0 0 clamp(2.5rem, 8vw, 3.25rem); }
  .hero-bg { position: relative; aspect-ratio: 3 / 2; width: 100%; }
  .hero-bg img { object-position: center center; }
  .hero-bg::after {
    background: linear-gradient(to bottom,
      rgba(19,31,54,0) 74%, rgba(19,31,54,0.45) 90%, var(--navy-deep) 100%);
  }
  .hero > .container { padding-top: 1.75rem; }
  .hero-content { max-width: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #fff; padding: 1.1rem 0; }
.trust-bar ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.75rem;
}
.trust-bar li { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.98rem; }
.trust-bar svg { color: var(--stone); flex: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--stone-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-link {
  font-weight: 700; color: var(--brass); text-decoration: none; font-size: 0.98rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.card-link:hover { color: var(--brass-dark); text-decoration: underline; }

.center-cta { text-align: center; margin-top: 2.75rem; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-body .btn { margin-top: 0.75rem; }
.split-facts { display: flex; gap: 2.5rem; margin: 1.5rem 0 0.5rem; padding: 0; list-style: none; }
.split-facts strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.split-facts span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-img { order: -1; } }

/* ---------- Projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.25rem; }
.filter-btn {
  font: inherit; font-weight: 700; font-size: 0.92rem;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--stone-border); cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.project-card { text-align: left; }
.project-card .card-img { position: relative; cursor: zoom-in; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.project-tags span {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--stone-light); color: var(--navy-soft);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.project-loc { color: var(--brass); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }

/* Before / after slider */
.ba-slider { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0; touch-action: none; background: var(--stone-light); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.35); cursor: ew-resize;
}
.ba-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 700;
  box-shadow: var(--shadow-md);
}
.ba-label {
  position: absolute; top: 0.75rem; z-index: 2;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(19,31,54,0.8); color: #fff; padding: 0.3rem 0.75rem; border-radius: 999px;
}
.ba-label--before { left: 0.75rem; }
.ba-label--after { right: 0.75rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 22, 38, 0.93);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,0.85); text-align: center; margin-top: 1rem; font-size: 0.98rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 1.1rem; }
.why-icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  background: var(--stone-light); color: var(--brass);
  display: grid; place-items: center;
}
.why-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.why-item p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; counter-reset: step; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: var(--white); border: 1px solid var(--stone-border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; position: relative;
}
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 1rem; font-weight: 800; color: var(--brass);
  letter-spacing: 0.06em; margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.12rem; }
.process-step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white); border: 1px solid var(--stone-border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.stars { color: var(--brass); display: inline-flex; gap: 2px; }
.review-card blockquote { margin: 0; font-size: 1rem; color: var(--ink); flex: 1; }
.review-meta strong { display: block; color: var(--navy); }
.review-meta span { color: var(--muted); font-size: 0.9rem; }
.reviews-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 2rem; }
.reviews-note a { font-weight: 700; }

/* ---------- Service area ---------- */
.area-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .area-wrap { grid-template-columns: 1fr; } }
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.25rem 0; list-style: none; }
.area-list li {
  background: var(--white); border: 1px solid var(--stone-border);
  padding: 0.4rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
}
.area-map {
  background: var(--navy); border-radius: var(--radius); color: #fff;
  aspect-ratio: 1 / 1; max-width: 420px; margin-inline: auto; width: 100%;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.area-map .ring { position: absolute; border: 1.5px dashed rgba(255,255,255,0.25); border-radius: 50%; }
.area-map .ring-1 { width: 34%; aspect-ratio: 1; }
.area-map .ring-2 { width: 62%; aspect-ratio: 1; }
.area-map .ring-3 { width: 90%; aspect-ratio: 1; }
.area-map-center { position: relative; text-align: center; z-index: 1; }
.area-map-center .dot { width: 14px; height: 14px; background: var(--brass); border-radius: 50%; margin: 0 auto 0.5rem; box-shadow: 0 0 0 6px rgba(163,120,47,0.3); }
.area-map-center strong { display: block; font-size: 1.2rem; }
.area-map-center span { color: var(--stone); font-size: 0.9rem; }
.area-map .town { position: absolute; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.75); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; margin-inline: auto; }
.faq-item { border: 1px solid var(--stone-border); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 0.9rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--navy);
  background: none; border: 0; cursor: pointer;
  padding: 1.15rem 3.25rem 1.15rem 1.4rem; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%;
  width: 10px; height: 10px; border-right: 2.5px solid var(--brass); border-bottom: 2.5px solid var(--brass);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 1.4rem; margin: 0 0 1.2rem; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 36rem; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .cta-phone { margin-top: 1.4rem; color: rgba(255,255,255,0.85); }
.cta-band .cta-phone a { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.25rem; }
.cta-band .cta-phone a:hover { color: var(--stone); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.78); font-size: 0.96rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { font-size: 1.35rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--stone); font-weight: 300; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--stone); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Floating mobile call button ---------- */
.floating-call {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--brass); color: #fff;
  display: none; place-items: center;
  box-shadow: var(--shadow-lg); text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.floating-call:hover { background: var(--brass-dark); transform: scale(1.05); }
@media (max-width: 767px) { .floating-call { display: grid; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 42rem; margin: 0; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--stone); }

/* ---------- Service detail rows ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--stone-border); }
.service-row:last-of-type { border-bottom: 0; }
.service-row-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.service-row h2 { font-size: 1.6rem; }
.service-row ul { color: var(--muted); padding-left: 1.2rem; margin: 0 0 1.25rem; }
.service-row li { margin-bottom: 0.35rem; }
.service-row .service-examples { font-size: 0.95rem; color: var(--muted); background: var(--off-white); border-left: 3px solid var(--stone); padding: 0.85rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1.25rem; }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row-img { order: -1; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.form-field .optional { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink);
  padding: 0.8rem 1rem; border: 1.5px solid var(--stone-border); border-radius: var(--radius-sm);
  background: var(--white); width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,43,71,0.12);
}
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--red); }
.form-error { color: var(--red); font-size: 0.88rem; font-weight: 600; display: none; }
.form-field.has-error .form-error { display: block; }
.form-consent { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.form-consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--navy); }
.form-consent label { font-weight: 500; font-size: 0.92rem; color: var(--muted); }
.form-status { border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-weight: 600; display: none; margin-top: 1.25rem; }
.form-status.is-success { display: block; background: #e8f4ec; color: var(--green); border: 1px solid #bfe0cb; }
.form-status.is-error { display: block; background: #fbeae7; color: var(--red); border: 1px solid #efc4bc; }
.btn .spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; display: none; animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-panel { background: var(--off-white); border: 1px solid var(--stone-border); border-radius: var(--radius); padding: 1.9rem; }
.contact-panel h3 { font-size: 1.05rem; }
.contact-panel ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-panel li { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; align-items: flex-start; }
.contact-panel svg { flex: none; color: var(--brass); margin-top: 3px; }
.contact-panel a { font-weight: 700; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.hours-table td { padding: 0.35rem 0; }
.hours-table td:last-child { text-align: right; color: var(--muted); }

/* ---------- Prose (legal pages, about) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { color: var(--ink); }
.prose li { margin-bottom: 0.4rem; }
.placeholder-note {
  background: #fdf6e3; border: 1px dashed #d9b44a; color: #7a6212;
  border-radius: var(--radius-sm); padding: 0.9rem 1.2rem; font-size: 0.93rem; margin: 1.5rem 0;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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