/* ==========================================================================
   Stewart Professional Services: main stylesheet (v2, photo redesign)
   Mobile-first. No framework, no build step.
   Colors, fonts and spacing live in the :root variables below.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --black:    #05080d;   /* header / logo background */
  --navy-950: #070e17;
  --navy-900: #0b1a2b;
  --navy-800: #0e2236;
  --navy-700: #17324f;
  --blue-600: #0677e8;   /* brand blue, sampled from Thomas's logo */
  --blue-btn: #0570de;   /* same blue, a hair darker so white button text passes WCAG AA */
  --blue-700: #0559b8;   /* blue text/links on white, hover state */
  --blue-400: #3b8ef0;   /* blue text/icons on dark backgrounds */
  --blue-50:  #edf5ff;
  --silver:   #d9dce0;
  --white:    #ffffff;
  --gray-50:  #f5f7fa;
  --gray-100: #eceff4;
  --gray-200: #dde3ea;
  --gray-300: #c7d0db;
  --gray-500: #64748a;
  --gray-700: #3b4a5c;
  --text:     #142233;

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11,26,43,.06), 0 2px 8px rgba(11,26,43,.05);
  --shadow:    0 2px 4px rgba(11,26,43,.05), 0 12px 32px rgba(11,26,43,.09);
  --shadow-lg: 0 6px 12px rgba(11,26,43,.08), 0 24px 60px rgba(11,26,43,.16);
  --container: 1200px;
  --header-h: 68px;
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.7;
  color: var(--text); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-700); text-underline-offset: .18em; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: #d3deea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--gray-700); }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.3rem); color: var(--gray-700); }

/* Eyebrow with a tiny roofline accent */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M1 13 13 2l12 11' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M1 13 13 2l12 11' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section-head--center .eyebrow { justify-content: center; }
.section--navy .eyebrow, .on-dark .eyebrow { color: var(--blue-400); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--white); color: var(--navy-900); padding: .75rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Icons (inline SVG sprite) ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Roofline motif (SVG divider) ---------- */
.roofline { position: absolute; left: 0; right: 0; width: 100%; height: clamp(34px, 4.6vw, 64px); pointer-events: none; }
.roofline--bottom { bottom: -1px; }
.roofline--top { top: -1px; transform: scaleY(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: .95rem 1.65rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; text-align: center; border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-btn); color: var(--white); box-shadow: 0 6px 18px rgba(5,112,222,.28); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); box-shadow: 0 10px 24px rgba(5,112,222,.34); transform: translateY(-1px); }
.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--black); color: var(--white); transform: translateY(-1px); }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.75); color: var(--white); background: rgba(255,255,255,.04); }
.btn--outline-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--ghost { color: var(--navy-800); background: var(--gray-100); }
.btn--ghost:hover { background: var(--navy-800); color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { min-height: 46px; padding: .6rem 1.1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,8,13,.94); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--white); cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: var(--white); }
.icon-btn .icon { width: 24px; height: 24px; }
.header-call { display: none; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: #dbe5f0; text-decoration: none; transition: color .2s var(--ease); }
.site-nav a:hover { color: var(--white); }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--black); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 32px rgba(0,0,0,.4);
}
.site-nav.is-open ul { padding: .5rem 1.25rem 1.25rem; }
.site-nav.is-open li a { display: block; padding: 1rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 980px) {
  :root { --header-h: 88px; }
  .brand img { height: 60px; }
  .menu-toggle, .header-call-icon { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul, .site-nav.is-open ul { display: flex; gap: 2rem; padding: 0; }
  .site-nav.is-open li a { display: inline; padding: 0; border: 0; font-size: 1rem; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--blue-400); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav a:hover::after { transform: scaleX(1); }
  .header-call { display: inline-flex; }
}

/* ---------- Photo helpers ---------- */
.bg-photo { position: absolute; inset: 0; overflow: hidden; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.bg-overlay { position: absolute; inset: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #d6e1ed; background: var(--navy-950); isolation: isolate; }
.hero .bg-photo img { object-position: 45% 60%; }
.hero .bg-overlay {
  background:
    linear-gradient(180deg, rgba(5,8,13,.5) 0%, rgba(5,8,13,0) 24%, rgba(5,8,13,0) 70%, rgba(5,8,13,.35) 100%),
    linear-gradient(90deg, rgba(7,14,23,.9) 0%, rgba(9,22,38,.74) 45%, rgba(9,22,38,.42) 100%);
}
.hero-inner { position: relative; padding-block: clamp(3.25rem, 9vw, 7.5rem) clamp(5rem, 11vw, 9rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; padding: .45rem .9rem .45rem .7rem;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: #e6eef7;
}
.hero-kicker .icon { color: var(--blue-400); width: 18px; height: 18px; }
.hero h1 { color: var(--white); margin-bottom: .45em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1.15rem, 2.4vw, 1.32rem); max-width: 39rem; color: #d0dbe8; margin-bottom: 2.1rem; }
.trust { display: flex; align-items: center; gap: .6rem; margin: 1.75rem 0 0; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; color: var(--white); }
.trust .icon { color: var(--blue-400); }
/* Thomas's primary logo: mix-blend-mode makes the JPG's black background fall away over the dark photo */
.hero-logo { margin: 0 auto; width: 100%; max-width: 230px; }
.hero-logo img { width: 100%; height: auto; mix-blend-mode: lighten; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
@media (min-width: 980px) {
  .hero { min-height: min(86vh, 860px); display: flex; flex-direction: column; justify-content: center; }
  .hero-grid { grid-template-columns: 1.45fr 1fr; gap: 3rem; }
  .hero-logo { max-width: 400px; }
}
.hero .roofline { color: var(--white); }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } .service-media { aspect-ratio: 3 / 2; } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }
.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray-100); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,43,0) 55%, rgba(11,26,43,.35) 100%); }
.service-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 2.1rem 1.4rem 1.4rem; }
.service-icon {
  position: absolute; top: -28px; left: 1.25rem; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px; background: var(--white); color: var(--blue-700);
  box-shadow: 0 6px 18px rgba(11,26,43,.16); border: 1px solid var(--gray-100);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .4rem; }
.service-tagline { font-weight: 600; color: var(--navy-800); margin-bottom: .55rem; font-size: 1.02rem; line-height: 1.5; }
.service-card p { font-size: 1rem; color: var(--gray-700); line-height: 1.6; }
.service-note {
  font-size: .9rem !important; background: var(--blue-50); border-left: 3px solid var(--blue-600);
  padding: .65rem .8rem; border-radius: 0 8px 8px 0; color: var(--navy-800) !important;
}
.service-card .btn { margin-top: auto; width: 100%; font-size: .86rem; letter-spacing: .04em; padding: .8rem 1rem; min-height: 52px; }
.service-card--other { background: var(--navy-900); border-color: var(--navy-900); color: #c9d6e6; justify-content: flex-end; }
.service-card--other .service-body { padding-top: 1.6rem; flex: 0 0 auto; }
.service-card--other h3, .service-card--other .service-tagline { color: var(--white); }
.service-card--other p { color: #c9d6e6; }
.service-card--other .service-icon { position: static; margin-bottom: 1.1rem; background: rgba(255,255,255,.08); color: var(--blue-400); border-color: rgba(255,255,255,.1); box-shadow: none; }
.service-card--other .other-art { flex: 1; min-height: 140px; position: relative; color: rgba(59,142,240,.14); }
.service-card--other .other-art .roofline { bottom: 0; height: 90px; }

/* ---------- Image band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center; background: var(--navy-900); }
.band .bg-photo img { object-position: 50% 55%; }
.band .bg-overlay { background: linear-gradient(180deg, rgba(7,14,23,.55) 0%, rgba(7,14,23,.72) 100%); }
.band-inner { position: relative; padding-block: clamp(6rem, 16vw, 11rem); }
.band-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.15; color: var(--white); max-width: 26ch; margin: 0 auto .7em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.band-title span { color: #9cc7ff; }
.band .btn-row { justify-content: center; }
.band .roofline { color: var(--gray-50); }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 2.5rem; }
.why-copy p { font-size: 1.15rem; color: var(--gray-700); }
.why-copy p:first-of-type { font-size: 1.25rem; color: var(--navy-900); font-weight: 600; }
.pull {
  position: relative; margin: 1.75rem 0 0; padding: 1.4rem 1.6rem 1.4rem 1.75rem; background: var(--white);
  border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--navy-900) !important; line-height: 1.4; box-shadow: var(--shadow); overflow: hidden;
}
.pull::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue-600); }
.pull small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--gray-500); margin-bottom: .35rem; letter-spacing: 0; }
.check-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--gray-200); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.check-list li { display: flex; gap: .95rem; align-items: center; padding: .85rem .5rem; font-weight: 600; color: var(--navy-900); border-bottom: 1px solid var(--gray-100); }
.check-list li:last-child { border-bottom: 0; }
.check-list .tick { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); flex: none; }
.check-list .tick .icon { width: 17px; height: 17px; stroke-width: 3; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.1fr 1fr; gap: 4.5rem; align-items: center; } }

/* ---------- About (split with photo) ---------- */
.about-grid { display: grid; gap: 2.75rem; align-items: center; }
.about-media { position: relative; margin: 0; }
.about-media .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--gray-100); }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 62%; height: 58%; border-radius: var(--radius-lg); background: var(--blue-50); z-index: -1; }
.about-badge {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.1rem; border-radius: var(--radius); background: rgba(7,14,23,.86); color: var(--white);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.about-badge img { width: 52px; height: 52px; flex: none; }
.about-badge p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.35; }
.about-badge span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: #b8c7d8; }
.about-copy p { font-size: 1.15rem; color: var(--gray-700); }
.about-callout {
  margin-top: 1.75rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--navy-900); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.4; position: relative; overflow: hidden;
}
.about-callout span { color: var(--blue-400); }
.about-callout .roofline { color: rgba(255,255,255,.05); bottom: 0; height: 60px; }
.about-callout p { position: relative; margin: 0; color: var(--white); font-size: inherit; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } .about-media { max-width: 520px; } }

/* ---------- Gallery (hidden until real job photos are added) ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: .65rem .85rem; font-size: .95rem; color: var(--gray-700); background: var(--white); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; position: relative; }
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps::before { content: ""; position: absolute; top: 52px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gray-300) 0 8px, transparent 8px 16px); }
}
.step { position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-num {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-900); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.1rem;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px rgba(6,119,232,.25);
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--gray-700); font-size: 1.05rem; }
@media (max-width: 639px) {
  .steps { gap: 1rem; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 1.1rem; align-items: start; padding: 1.25rem 1.25rem 1.3rem; }
  .step .step-num { grid-row: 1 / span 2; margin: 0; }
  .step h3 { margin-top: .7rem; }
}

/* ---------- Reviews (hidden until real reviews exist) ---------- */
.reviews-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review .stars { display: flex; gap: 2px; color: #e3a008; margin-bottom: .75rem; }
.review .stars .icon { fill: currentColor; width: 20px; height: 20px; }
.review blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.review figcaption { font-weight: 700; color: var(--navy-900); }
.review figcaption span { display: block; font-weight: 400; color: var(--gray-500); font-size: .95rem; }

/* ---------- CTA band (tools photo) ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #d3deea; background: var(--navy-900); }
.cta .bg-overlay { background: linear-gradient(180deg, rgba(7,14,23,.86), rgba(11,26,43,.9)); }
.cta-inner { position: relative; padding-block: clamp(5rem, 12vw, 8.5rem); }
.cta h2 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); color: var(--white); }
.cta p { font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: #d0dbe8; max-width: 36rem; margin: 0 auto 2.2rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Quote form ---------- */
.quote-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .quote-grid { grid-template-columns: 1fr 1.55fr; gap: 4rem; align-items: start; } .quote-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.quote-aside p { font-size: 1.12rem; color: var(--gray-700); }
.quote-photo { margin: 1.75rem 0 1.5rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--gray-100); }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-contact { display: grid; gap: .75rem; }
@media (min-width: 420px) { .quote-contact { grid-template-columns: 1fr 1fr; } }
.quote-contact .btn { min-height: 52px; }
@media (max-width: 979px) { .quote-photo { display: none; } }

.form-card { position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow-lg); overflow: hidden; }
.form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); }
.form-title { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy-900); margin: 0 0 .25rem; }
.form-sub { margin: 0 0 1.5rem; color: var(--gray-500); font-size: 1rem; }
.form-grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: .45rem; font-size: .98rem; }
.field .optional { font-weight: 400; color: var(--gray-500); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text); background: var(--gray-50);
  border: 1.5px solid var(--gray-200); border-radius: 12px; padding: .9rem 1rem; min-height: 56px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-300); }
.field textarea { min-height: 156px; resize: vertical; line-height: 1.55; }
.field ::placeholder { color: #8b98a9; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230e2236' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(6,119,232,.16); }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.upload-box { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 1.2rem; background: var(--gray-50); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.upload-box:hover, .upload-box:focus-within { border-color: var(--blue-600); background: var(--blue-50); }
.upload-help { display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 1rem; color: var(--gray-700); font-size: 1rem; }
.upload-help .icon { color: var(--blue-700); width: 24px; height: 24px; margin-top: .15rem; }
.upload-inputs { display: grid; gap: .55rem; }
.upload-inputs .up { display: grid; gap: .3rem; }
@media (min-width: 640px) { .upload-inputs .up { grid-template-columns: 5.5rem 1fr; align-items: center; gap: .75rem; } }
.upload-inputs label { font-weight: 600; font-size: .92rem; margin: 0; }
.upload-inputs input[type="file"] { min-height: 0; padding: .5rem; font-size: .9rem; background: var(--white); border-style: solid; width: 100%; }
.upload-inputs input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; font-size: .85rem; margin-right: .6rem; padding: .45rem .8rem; border: 0; border-radius: 8px;
  background: var(--navy-800); color: var(--white); cursor: pointer; transition: background-color .2s var(--ease);
}
.upload-inputs input[type="file"]::file-selector-button:hover { background: var(--blue-btn); }
.upload-status { margin: .85rem 0 0; font-size: .95rem; color: var(--gray-700); }
.upload-status.is-error { color: #b42318; font-weight: 600; }
.form-actions { margin-top: 1.6rem; }
.form-actions .btn { min-height: 60px; font-size: 1.05rem; }
.form-fineprint { margin: .9rem 0 0; font-size: .92rem; color: var(--gray-500); text-align: center; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact .roofline { color: rgba(255,255,255,.035); bottom: 0; height: clamp(70px, 10vw, 140px); }
.contact-grid { position: relative; display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.contact-business { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.2rem; margin-bottom: 1.5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.contact-list li:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.contact-list .ci { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(6,119,232,.16); color: var(--blue-400); flex: none; }
.contact-list .ci .icon { width: 24px; height: 24px; }
.contact-list strong { display: block; color: #9fb3c9; font-family: var(--font-head); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-list a, .contact-list span { color: var(--white); font-size: clamp(.94rem, 3.6vw, 1.12rem); line-height: 1.45; display: inline-block; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--white); text-decoration: underline; }
.contact-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.25rem); }
.contact-card h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.contact-card p { color: #b8c7d8; margin-bottom: 1.5rem; }
.contact-actions { display: grid; gap: .85rem; }
@media (min-width: 560px) { .contact-actions { grid-template-columns: repeat(3, 1fr); } }
.gbp-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; color: var(--blue-400); font-weight: 600; }
.gbp-link:hover { color: var(--white); }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: center; } }
.area-copy p { font-size: 1.15rem; color: var(--gray-700); }
.area-tags { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.area-tags li { display: inline-flex; align-items: center; gap: .45rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px; padding: .55rem 1.05rem; font-weight: 600; color: var(--navy-900); font-size: 1rem; box-shadow: var(--shadow-sm); }
.area-tags .icon { color: var(--blue-700); width: 18px; height: 18px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow-lg); background: var(--gray-100); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: #9fb0c4; padding: clamp(4.5rem, 8vw, 6rem) 0 2rem; }
.site-footer .roofline { color: var(--navy-950); top: calc(-1 * clamp(34px, 4.6vw, 64px) + 1px); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand img { height: 58px; width: auto; margin-bottom: .9rem; }
.footer-brand p { margin: 0; color: #c9d6e6; font-family: var(--font-head); font-weight: 600; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; }
.footer-nav a { color: #dbe5f0; text-decoration: none; font-weight: 600; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.footer-bottom p { margin: 0; }

/* ---------- Sticky mobile "Get a Quote" bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .6rem;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
  border-top: 1px solid var(--gray-200); box-shadow: 0 -8px 24px rgba(11,26,43,.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s var(--ease);
}
.mobile-bar .btn { min-height: 52px; }
.mobile-bar .btn--primary { flex: 1; }
.mobile-bar .btn--dark { width: 60px; padding: 0; }
.mobile-bar .btn--dark .icon { width: 24px; height: 24px; }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (max-width: 979px) { .site-footer { padding-bottom: calc(2rem + 84px + env(safe-area-inset-bottom)); } }
@media (min-width: 980px) { .mobile-bar { display: none; } }
.no-bar .site-footer { padding: 3rem 0 2rem; }

/* ---------- Simple pages (thank-you, 404) ---------- */
.simple-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 5rem; }
.simple-page .mark { width: 88px; height: 88px; margin: 0 auto 1.5rem; }
.simple-page p { max-width: 34rem; margin-inline: auto; }
.simple-page .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Reveal on scroll (only when JS is on; off for reduced motion) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .service-card:hover, .step:hover, .btn:hover { transform: none; }
}
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.footer-credit { color: #7f91a7; font-size: .88rem; }
