/* Self-hosted fonts (variable, latin subset) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/oswald-latin.woff2") format("woff2"); }

:root {
  --black: #000;
  --ink: #0b0b0b;
  --panel: #141414;
  --line: #2a2a2a;
  --yellow: #ffcd05;
  --gold: #e0a82e;
  --white: #fff;
  --text: #e9e9e9;
  --muted: #a3a3a3;
  --radius: 14px;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--white); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; text-transform: uppercase; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand img { height: 52px; width: auto; filter: invert(1); }
.brand-text { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1; font-size: 1rem; letter-spacing: .04em; }
.brand-text b { color: var(--yellow); font-weight: 700; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--yellow); }
.nav-toggle { display: none; }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: #000; text-decoration: none;
  font-weight: 700; padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
.header-call svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--white); border-radius: 2px; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-call span { display: none; }
  .header-call { padding: 12px; }
  .header-inner { gap: 10px; }
}
@media (max-width: 380px) { .brand-text { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1.05rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 16px 26px; border-radius: 10px; border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--yellow); color: #000; }
.btn-primary:hover { background: #ffd93d; transform: translateY(-1px); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 760px); display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 50%, rgba(0,0,0,.35) 100%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 35%),
    url("/assets/photos/job-4-1200.webp") center 40% / cover no-repeat;
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.75rem); text-transform: uppercase; max-width: 14ch; }
.hero h1 { max-width: 20ch; }
.hl { color: var(--yellow); }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 40ch; color: #ddd; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { border: 1px solid rgba(255,205,5,.5); color: var(--yellow); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; }
@media (max-width: 560px) {
  .hero-ctas .btn { width: 100%; }
  .hero-bg { background:
    linear-gradient(0deg, rgba(0,0,0,.95) 10%, rgba(0,0,0,.6) 100%),
    url("/assets/photos/job-4-1200.webp") 60% 40% / cover no-repeat; }
}

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-alt { background: var(--ink); border-top: 1px solid #161616; border-bottom: 1px solid #161616; }
.kicker { color: var(--yellow); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; margin-bottom: .5em; }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--yellow); vertical-align: middle; margin-right: 10px; }

/* Services */
.services { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; gap: 20px; } }
.service {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; transition: border-color .2s;
}
.service:hover { border-color: rgba(255,205,5,.6); }
.service p { color: #cfcfcf; flex: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 18px; }
.service-icon svg { width: 34px; height: 34px; fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.service-link { font-weight: 600; text-decoration: none; }
.service-link:hover { text-decoration: underline; }

/* Gallery */
.gallery { display: grid; gap: 12px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(5, 1fr); gap: 16px; } .shot { grid-column: span 2; } .shot-wide { grid-column: span 3; } }
.shot { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #111; aspect-ratio: 4 / 3; }
@media (min-width: 720px) { .shot { aspect-ratio: auto; height: 340px; } }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.04); }
.shot span {
  position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.75); color: var(--yellow);
  font: 600 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; padding: 8px 10px; border-radius: 6px;
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 90vh; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--yellow); font-size: 28px; line-height: 1; cursor: pointer; }

/* Service area */
.area { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .area { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.area-copy p { color: #cfcfcf; font-size: 1.05rem; }
.area-note { border-left: 3px solid var(--yellow); padding-left: 14px; }
.area-card {
  background: var(--yellow); color: #000; border-radius: var(--radius); padding: 32px;
  display: grid; gap: 24px; grid-template-columns: 1fr 1fr;
}
.area-card h3 { color: #000; font-size: 1.3rem; border-bottom: 2px solid #000; padding-bottom: 8px; }
.area-card ul { list-style: none; margin: 0; padding: 0; }
.area-card li { padding: 5px 0 5px 22px; position: relative; font-weight: 500; }
.area-card li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: #000; clip-path: polygon(50% 0, 100% 50%, 100% 100%, 0 100%, 0 50%); }
@media (max-width: 420px) { .area-card { grid-template-columns: 1fr; padding: 24px; } }

/* Estimate */
.estimate { display: grid; gap: 40px; }
@media (min-width: 900px) { .estimate { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }
.estimate-copy p { color: #cfcfcf; }
.big-phone { display: inline-block; font: 700 clamp(2rem, 6vw, 2.75rem)/1.1 var(--display); color: var(--yellow); text-decoration: none; margin: 4px 0 24px; }
.muted { color: var(--muted) !important; }
.small { font-size: .9rem; }
.form, .form-success { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 600px) { .form, .form-success { padding: 32px; } }
.row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--white); }
.field label span { color: var(--yellow); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--white);
  background: #0a0a0a; border: 1px solid #3a3a3a; border-radius: 10px; padding: 13px 14px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,205,5,.25); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; }
.field .err { color: #ff8a8a; font-size: .85rem; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: rgba(255,80,80,.12); border: 1px solid rgba(255,80,80,.5); color: #ffb3b3; padding: 12px 14px; border-radius: 10px; }
.form-success { text-align: center; padding: 48px 24px; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 16px; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success:focus { outline: none; }

/* Footer */
.footer { background: #000; border-top: 4px solid var(--yellow); padding: 56px 0 96px; }
@media (min-width: 900px) { .footer { padding-bottom: 32px; } }
.footer-inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1fr 1.2fr 1fr 1fr; } }
.footer h4 { font-size: 1rem; text-transform: uppercase; color: var(--yellow); letter-spacing: .06em; }
.footer p { color: #cfcfcf; font-size: .95rem; }
.footer a { color: var(--white); }
.footer-logo { width: 165px; height: auto; filter: invert(1); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.footer-bottom p { color: var(--muted); font-size: .85rem; margin: 0; }

/* Mobile sticky call */
.mobile-call {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: #000; font-weight: 700; text-decoration: none;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.mobile-call svg { width: 18px; height: 18px; fill: currentColor; }
@media (min-width: 900px) { .mobile-call { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Multi-page additions ---------- */

/* Nav: active tab + CTA */
.nav a[aria-current="page"] { color: var(--yellow); }
@media (min-width: 901px) {
  .nav ul { gap: 22px; align-items: center; }
  .nav a { font-size: .9rem; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yellow); padding-bottom: 4px; }
  .nav-cta a { border: 1.5px solid var(--yellow); color: var(--yellow); padding: 8px 14px; border-radius: 999px; }
  .nav-cta a:hover, .nav-cta a[aria-current="page"] { background: var(--yellow); color: #000; box-shadow: none; padding-bottom: 8px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .header-call span { display: none; }
  .header-call { padding: 12px; }
  .brand-text { display: none; }
}
@media (max-width: 900px) {
  .nav-cta a { color: var(--yellow); font-weight: 700; }
}

/* Hero badges */
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 8px 14px 8px 8px; font-weight: 600; font-size: .9rem; max-width: 320px; line-height: 1.3; }
.hero-badges a:hover { border-color: var(--yellow); }
.hero-badges img { width: 52px; height: 52px; background: #fff; border-radius: 8px; padding: 3px; flex: none; }

/* Page header for inner pages */
.page-hero { padding: 72px 0 56px; background: radial-gradient(ellipse at 85% 0%, rgba(255,205,5,.14), transparent 55%), var(--black); border-bottom: 1px solid #161616; }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); text-transform: uppercase; }
.page-hero .lede { max-width: 62ch; color: #d6d6d6; }
.page-hero strong { color: var(--white); }
.section-tight { padding-top: 56px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Home service cards (links) */
@media (min-width: 1000px) { .services-4 { grid-template-columns: repeat(4, 1fr); } }
.service-mini { text-decoration: none; color: inherit; }
.service-mini h3 { font-size: 1.25rem; }
.service-mini p { font-size: .95rem; }

/* Badge cards */
.badge-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-decoration: none; color: var(--white); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font: 600 1rem/1.25 var(--display); text-transform: uppercase; letter-spacing: .02em; transition: border-color .2s; }
.badge-card:hover { border-color: var(--yellow); }
.badge-card img { width: 100%; max-width: 170px; background: #fff; border-radius: 12px; padding: 10px; }

.cert-strip { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .cert-strip { grid-template-columns: 1fr 1fr; gap: 64px; } }
.cert-strip-copy p { color: #cfcfcf; }
.cert-strip-copy strong { color: var(--white); }
.cert-strip-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Certifications page */
.certs { display: grid; gap: 24px; }
@media (min-width: 900px) { .certs { grid-template-columns: 1fr 1fr; gap: 32px; } }
.cert { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; scroll-margin-top: 96px; }
@media (min-width: 600px) { .cert { padding: 40px; } }
.cert-badge { display: flex; justify-content: center; margin-bottom: 24px; }
.cert-badge img { width: 210px; background: #fff; border-radius: 16px; padding: 14px; }
.cert h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); text-align: center; color: var(--yellow); }
.cert p { color: #d2d2d2; }
.cert strong { color: var(--white); }
.cert-lead { font-weight: 600; color: var(--white) !important; margin-top: 1.5em; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cert-list li { position: relative; padding: 14px 16px 14px 44px; background: #0c0c0c; border: 1px solid var(--line); border-radius: 10px; color: #d2d2d2; }
.cert-list li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 16px; height: 9px; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg); }

/* Services page rows */
.service-rows { display: grid; gap: 64px; }
.service-row { display: grid; gap: 28px; align-items: center; scroll-margin-top: 96px; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .service-row-flip .service-row-media { order: 2; }
}
.service-row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service-row-graphic { aspect-ratio: 4 / 3; border-radius: var(--radius); background: radial-gradient(circle at 30% 20%, rgba(255,205,5,.2), transparent 60%), var(--panel); border: 1px solid var(--line); display: grid; place-items: center; }
.service-row-graphic svg { width: 40%; fill: none; stroke: var(--yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-row-copy h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.service-row-copy p { color: #d2d2d2; font-size: 1.05rem; }
.service-cred a { color: var(--yellow); }

/* About page */
.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.about-copy p { color: #d2d2d2; font-size: 1.05rem; }
.about-copy strong { color: var(--white); }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.info-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: var(--radius); padding: 24px; }
.info-card h3 { color: var(--yellow); font-size: 1.1rem; }
.info-card p { margin: 0; font-size: 1.1rem; }
.info-card a { color: var(--white); }

/* Contact page */
.contact-list { display: grid; gap: 20px; margin-top: 8px; }
.contact-list h3 { font-size: 1rem; color: var(--yellow); margin-bottom: .3em; }
.contact-list p { margin: 0; color: #d2d2d2; }

/* CTA band */
.cta-band { background: var(--yellow); color: #000; padding: 56px 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #000; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .25em; }
.cta-band p { margin: 0; font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-dark { background: #000; color: var(--yellow); }
.btn-dark:hover { background: #1a1a1a; }
.btn-dark-ghost { border-color: #000; color: #000; }
.btn-dark-ghost:hover { background: rgba(0,0,0,.08); }
@media (max-width: 560px) { .cta-actions, .cta-actions .btn { width: 100%; } }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.footer-links a { text-decoration: none; color: #cfcfcf; }
.footer-links a:hover { color: var(--yellow); }

/* Keep badge logos square */
.badge-card img, .cert-badge img, .hero-badges img { height: auto; aspect-ratio: 1 / 1; object-fit: contain; }

/* Photo service cards (home) */
@media (min-width: 900px) { .services-3 { grid-template-columns: repeat(3, 1fr); } }
.service-photo { padding: 0; overflow: hidden; }
.service-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.service-photo:hover img { transform: scale(1.03); }
.service-photo h3, .service-photo p, .service-photo .service-link { padding: 0 24px; }
.service-photo h3 { margin-top: 20px; }
.service-photo .service-link { padding-bottom: 24px; }

/* Two stacked photos for one service row */
.service-row-pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.service-row-pair img { aspect-ratio: 3 / 4; }

/* width/height attrs would otherwise override aspect-ratio */
.service-photo img, .service-row-media img, .about-photo img { height: auto; }


/* =====================================================================
   Visual refresh: glass surfaces, layered depth, motion.
   Paint-only overrides: no spacing, sizing, or order changes.
   ===================================================================== */
:root {
  --glass-strong: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.11);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,.09);
  --glow: 0 0 0 1px rgba(255,205,5,.45), 0 12px 36px -8px rgba(255,205,5,.28);
  --shadow-1: 0 2px 6px rgba(0,0,0,.25), 0 8px 24px -6px rgba(0,0,0,.35);
  --shadow-2: 0 4px 12px rgba(0,0,0,.28), 0 18px 48px -12px rgba(0,0,0,.55);
  --shadow-3: 0 8px 20px rgba(0,0,0,.3), 0 32px 80px -20px rgba(0,0,0,.65);
  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 16px;
}

/* Ambient background: soft yellow light pools behind everything */
body { background: #050505; isolation: isolate; }
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  will-change: transform;
}
body::before { top: -30vmax; right: -25vmax; background: radial-gradient(closest-side, rgba(255,205,5,.13), rgba(255,205,5,0)); animation: drift-a 26s var(--ease) infinite alternate; }
body::after { bottom: -35vmax; left: -30vmax; background: radial-gradient(closest-side, rgba(224,168,46,.10), rgba(224,168,46,0)); animation: drift-b 32s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(7vmax, -5vmax, 0) scale(1.1); } }

/* Sections let the ambient light through */
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012)); border-color: rgba(255,255,255,.05); }
.page-hero { background: radial-gradient(ellipse at 85% 0%, rgba(255,205,5,.16), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(224,168,46,.07), transparent 50%); border-bottom-color: rgba(255,255,255,.06); }

/* Header: dark at top, frosted glass once scrolled (.is-scrolled from main.js) */
.site-header {
  background: rgba(5,5,5,.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.06);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(12,12,12,.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(255,255,255,.1);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,205,5,.08);
}
@media (max-width: 900px) {
  .nav ul { background: rgba(8,8,8,.94); box-shadow: var(--shadow-2); }
}
.nav a { transition: color .25s var(--ease), box-shadow .25s var(--ease); }

/* Buttons: lift + glow, no layout shift (transform/box-shadow only) */
.btn, .header-call, .mobile-call {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn-primary, .header-call, .mobile-call {
  background: linear-gradient(180deg, #ffd83a 0%, var(--yellow) 55%, #f2c200 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 6px 18px -6px rgba(255,205,5,.45);
}
.btn-primary:hover, .header-call:hover, .mobile-call:hover {
  background: linear-gradient(180deg, #ffe066 0%, #ffd21f 55%, #f5c600 100%);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 14px 32px -8px rgba(255,205,5,.6);
}
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,205,5,.1); transform: translateY(-2px); box-shadow: var(--glow); }
.btn-dark { box-shadow: 0 8px 22px -8px rgba(0,0,0,.55); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.btn-dark-ghost:hover { transform: translateY(-2px); }
.btn:active, .header-call:active, .mobile-call:active { transform: translateY(0); transition-duration: .1s; }
.btn:focus-visible, .header-call:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-dark:focus-visible, .btn-dark-ghost:focus-visible { outline-color: #000; }
.mobile-call { box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 12px 30px -6px rgba(0,0,0,.7), 0 6px 18px -6px rgba(255,205,5,.4); }

/* Glass cards */
.service, .cert, .info-card, .badge-card, .form, .form-success {
  background: linear-gradient(160deg, var(--glass-strong), rgba(255,255,255,.025));
  border-color: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-2);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
}
.info-card { border-top-color: var(--yellow); }
.service, .badge-card, .info-card, .cert {
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.service:hover, .badge-card:hover, .info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,205,5,.5);
  box-shadow: var(--glass-highlight), var(--shadow-3), 0 0 0 1px rgba(255,205,5,.25), 0 18px 50px -18px rgba(255,205,5,.35);
}
.info-card:hover { border-top-color: var(--yellow); }
.cert:hover { border-color: rgba(255,205,5,.3); box-shadow: var(--glass-highlight), var(--shadow-3); }
.service-icon { box-shadow: 0 6px 18px -6px rgba(255,205,5,.55), inset 0 1px 0 rgba(255,255,255,.5); background: linear-gradient(180deg, #ffd83a, var(--yellow)); }
.badge-card img, .cert-badge img, .hero-badges img { box-shadow: 0 6px 20px -8px rgba(0,0,0,.6); }
.cert-list li { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.service-photo img { transition: transform .7s var(--ease); }
.service-photo:hover img { transform: scale(1.05); }

/* Hero entrance */
.hero-bg { animation: hero-bg-in 1.4s var(--ease) both; }
@keyframes hero-bg-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero-inner > *, .page-hero .wrap > * { animation: rise-in .7s var(--ease) both; }
.hero-inner > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .24s; }
.hero-inner > :nth-child(5) { animation-delay: .32s; }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.hero h1 { text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero-badges a {
  background: rgba(10,10,10,.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--glass-highlight), var(--shadow-1);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.hero-badges a:hover { transform: translateY(-2px); box-shadow: var(--glass-highlight), var(--glow); }

/* Gallery + photos */
.shot { box-shadow: var(--shadow-2); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; transition: box-shadow .5s var(--ease); }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.shot:hover::after { box-shadow: inset 0 0 0 1px rgba(255,205,5,.55); }
.shot img { transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot span { background: rgba(0,0,0,.66); border: 1px solid rgba(255,255,255,.12); }
.service-row-media img, .about-photo img { box-shadow: var(--shadow-2); }
.lightbox::backdrop { background: rgba(0,0,0,.85); }

/* Yellow surfaces: glossy depth */
.area-card { background: linear-gradient(155deg, #ffdc4a 0%, var(--yellow) 45%, #f0bf00 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), var(--shadow-3), 0 30px 80px -30px rgba(255,205,5,.35); }
.cta-band { background: linear-gradient(120deg, #ffd83a 0%, var(--yellow) 50%, #f2c200 100%); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 0%, rgba(255,255,255,.35), transparent 55%); pointer-events: none; }
.cta-inner { position: relative; }

/* Form fields */
.field input, .field select, .field textarea {
  background-color: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.16);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.28); }
.field input:focus, .field select:focus, .field textarea:focus {
  background-color: rgba(0,0,0,.5);
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,205,5,.22), 0 8px 24px -10px rgba(255,205,5,.35);
}
.field input::placeholder, .field textarea::placeholder { color: #8f8f8f; }

/* Footer */
.footer { background: linear-gradient(180deg, rgba(0,0,0,.6), #000); }

/* Scroll reveal: only active once main.js adds .js-reveal to <html> */
.js-reveal .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* No backdrop-filter support: solid, readable surfaces */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.is-scrolled { background: rgba(5,5,5,.97); }
  .service, .cert, .info-card, .badge-card, .form, .form-success { background: #151515; }
  .hero-badges a { background: rgba(0,0,0,.82); }
}

/* Reduced motion: no ambient drift, entrances, reveals, or hover lifts */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .hero-bg, .hero-inner > *, .page-hero .wrap > * { animation: none !important; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .service:hover, .badge-card:hover, .info-card:hover, .shot:hover, .hero-badges a:hover,
  .btn:hover, .header-call:hover, .mobile-call:hover { transform: none; }
  .shot:hover img, .service-photo:hover img { transform: none; }
}

/* Section-level light pools: scroll with content so glass cards have something to blur */
.section { position: relative; }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 92% 18%, rgba(255,205,5,.10), transparent 70%),
    radial-gradient(34% 42% at 4% 88%, rgba(224,168,46,.08), transparent 70%);
}
.section-alt::before {
  background:
    radial-gradient(40% 50% at 8% 15%, rgba(255,205,5,.09), transparent 70%),
    radial-gradient(36% 46% at 96% 92%, rgba(224,168,46,.08), transparent 70%);
}
.section::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,205,5,.22), transparent);
}
.page-hero + .section::after, .hero + .section::after { opacity: .6; }
/* Glass cards: a brighter top edge so the surface reads as glass at rest */
.service, .cert, .badge-card, .form, .form-success, .info-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 40%),
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .service, .cert, .info-card, .badge-card, .form, .form-success { background: #151515; }
}
body::before { background: radial-gradient(closest-side, rgba(255,205,5,.16), rgba(255,205,5,0)); }

/* LCP-safe entrances: the largest elements (hero photo, headlines, ledes) move
   but never start transparent, so they count as painted on first frame. */
.hero-bg { animation-name: hero-bg-settle; }
@keyframes hero-bg-settle { from { transform: scale(1.06); } to { transform: none; } }
.hero h1, .hero .lede, .page-hero h1, .page-hero .lede { animation-name: rise-in-solid; }
@keyframes rise-in-solid { from { transform: translate3d(0, 14px, 0); } to { transform: none; } }

/* Phones/tablets: keep scrolling smooth on mid-range devices.
   Static light pools instead of drifting ones; cards use a solid tint instead of live blur. */
@media (max-width: 900px) {
  body::before, body::after { animation: none; will-change: auto; }
  .service, .cert, .info-card, .badge-card, .form, .form-success, .hero-badges a {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .service, .cert, .info-card, .badge-card, .form, .form-success {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 40%), linear-gradient(160deg, #1a1a1a, #111);
  }
  .hero-badges a { background: rgba(10,10,10,.72); }
}

/* Larger hit areas without moving anything (pseudo-element overhang) */
.header-call, .text-link, .big-phone { position: relative; }
.header-call::after { content: ""; position: absolute; inset: -2px; }
.text-link::after { content: ""; position: absolute; inset: -9px -4px; }
.big-phone::after { content: ""; position: absolute; inset: -5px 0; }

/* Phones: header blur back near the original 8px; it is re-rendered every scroll frame */
@media (max-width: 900px) {
  .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .site-header.is-scrolled { background: rgba(10,10,10,.78); }
}

/* Phones: drop the fixed full-screen light pools (scrolling over a fixed layer costs frames);
   the per-section light pools still give the warm glow */
@media (max-width: 900px) {
  body::before, body::after { display: none; }
}

/* Phones: lighter photo shadows (large blurred shadows are costly to rasterize while scrolling) */
@media (max-width: 900px) {
  .shot, .service-row-media img, .about-photo img { box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
  .service, .cert, .info-card, .badge-card, .form, .form-success { box-shadow: var(--glass-highlight), 0 8px 20px -10px rgba(0,0,0,.6); }
}

/* Phones: no animated shadow on the scrolled header (cheapest frames while scrolling) */
@media (max-width: 900px) {
  .site-header, .site-header.is-scrolled { box-shadow: none; transition: none; }
}

/* Social profile links (footer + contact page) */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; color: var(--white); font-weight: 600; font-size: .92rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.social a:hover { color: var(--yellow); border-color: rgba(255,205,5,.55); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px -10px rgba(255,205,5,.45); }
.social a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.social-footer { margin-top: 14px; }
.footer .social a { color: var(--white); }
.footer .social a:hover { color: var(--yellow); }
.contact-list .social { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .social a:hover { transform: none; } }

/* ---------- Hero logo (home) ---------- */
/* Transparent white logo: no invert filter (and no dark box) in header/footer */
.brand img, .footer-logo { filter: none; }
.footer-logo { filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }

.hero-logo {
  display: block; height: auto;
  width: clamp(190px, 52vw, 250px);
  margin: 0 0 22px -6px;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(255,205,5,.12));
  animation: logo-in .9s var(--ease) both;
}
@keyframes logo-in { from { transform: translate3d(0, 12px, 0) scale(.94); } to { transform: none; } }

/* entrance stagger shifts by one now that the logo leads the hero */
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .18s; }
.hero-inner > :nth-child(4) { animation-delay: .26s; }
.hero-inner > :nth-child(5) { animation-delay: .34s; }
.hero-inner > :nth-child(6) { animation-delay: .42s; }

/* Desktop: big logo in its own column beside the headline */
@media (min-width: 960px) {
  .hero-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(40px, 5vw, 80px); align-items: center;
  }
  .hero-inner > * { grid-column: 1; }
  .hero-logo {
    grid-column: 2; grid-row: 1 / span 5; align-self: center;
    width: clamp(300px, 30vw, 420px); margin: 0;
  }
  .hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* Phones: keep the estimate/call buttons near the first screen */
@media (max-width: 959px) {
  .hero-inner { padding-top: 40px; }
  .hero-logo { width: clamp(150px, 42vw, 210px); margin-bottom: 16px; }
}
.hero-logo { filter: drop-shadow(0 0 1.5px rgba(0,0,0,.55)) drop-shadow(0 10px 28px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(255,205,5,.12)); }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* ---------- Bigger service area (55 towns) ---------- */
@media (min-width: 900px) {
  .area { grid-template-columns: 1fr; gap: 36px; }
  .area-copy { max-width: 760px; }
}
.area-card { gap: 28px 40px; }
.area-card ul { columns: 2; column-gap: 18px; }
.area-card li { break-inside: avoid; font-size: .95rem; padding: 4px 0 4px 20px; }
@media (min-width: 900px) { .area-card ul { columns: 3; } .area-card { padding: 36px 40px; } }
@media (max-width: 420px) { .area-card ul { columns: 2; } .area-card li { font-size: .9rem; } }

/* Two locations */
.info-locations p + p, .contact-locations p + p { margin-top: 10px; }
.contact-locations p { margin: 0; }

/* ---------- BBB ---------- */
/* three badges in a row */
.cert-strip-badges, .about-badges { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 599px) {
  .cert-strip-badges, .about-badges { gap: 10px; }
  .cert-strip-badges .badge-card, .about-badges .badge-card { padding: 12px 8px; font-size: .78rem; gap: 10px; }
}
/* certifications page: BBB card spans the full width, badge beside the text on desktop */
.cert-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .cert-wide { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
  .cert-wide .cert-badge { margin: 0; }
  .cert-wide h2 { text-align: left; }
}
.cert-body .btn { margin-top: 6px; }
