/* =========================================================================
   Bulletproof Roof Texas — main.css (no build step: edit and reload)

   1. Tokens        5. Buttons
   2. Base          6. Header & mobile nav
   3. Layout        7. Footer
   4. Type          8. Sections — one block per sections/<name>.php
                    9. Blog & rich text

   Breakpoints: sm 640px · md 768px · lg 1024px (mobile-first min-width).
   ========================================================================= */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --primary: #1b2a4a;              /* navy */
  --primary-foreground: #fff;
  --secondary: #c8232c;            /* red */
  --secondary-foreground: #fff;
  --background: #fff;
  --foreground: #1b2a4a;
  --card: #fff;
  --accent: #f8f6f2;               /* warm off-white section background */
  --muted: #f4f4f2;
  --muted-foreground: #5c6680;
  --border: #1b2a4a1f;
  --border-strong: #1b2a4a52;
  --ring: #1b2a4a;

  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --font-display: "Roboto Slab", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dots-dark: radial-gradient(circle, #1b2a4a12 1px, #0000 1px);
  --dots-light: radial-gradient(circle, #ffffff12 1px, #0000 1px);
}

/* 2. Base ------------------------------------------------------------------ */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--font-sans); }
body { font-family: var(--font-sans); color: var(--foreground); background: var(--background); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border-radius: 0; }
button { cursor: pointer; }
textarea { resize: vertical; }
::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
summary { display: list-item; }
hr { height: 0; color: inherit; border-top-width: 1px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.wrap--wide { max-width: 80rem; }
.wrap--narrow { max-width: 56rem; }
.sec { border-bottom: 1px solid var(--border); }
.pad { padding-block: 5rem; }
.bg-warm { background: var(--accent); }
.grid12 { display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
  .pad { padding-block: 7rem; }
  .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-4 { grid-column: span 4 / span 4; }
  .span-5 { grid-column: span 5 / span 5; }
  .span-6 { grid-column: span 6 / span 6; }
  .span-7 { grid-column: span 7 / span 7; }
  .span-8 { grid-column: span 8 / span 8; }
  .span-10 { grid-column: span 10 / span 10; }
}

/* Section head: eyebrow + heading left, intro right. */
.shead { display: grid; gap: 2.5rem; align-items: start; margin-bottom: 3rem; }
.shead--loose { margin-bottom: 3.5rem; }
@media (min-width: 768px) {
  .shead { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .shead > * { grid-column: span 6 / span 6; }
  .shead--wide > :first-child { grid-column: span 7 / span 7; }
  .shead--wide > :last-child { grid-column: span 5 / span 5; }
  .shead--end { align-items: end; margin-bottom: 4rem; }
  .shead--bottom > :last-child { display: flex; align-items: flex-end; }
}

/* Responsive column grids; .cells adds 1px hairlines between cells. */
.cols, .cells { display: grid; grid-template-columns: minmax(0, 1fr); }
.cells { gap: 1px; background: var(--border); }
.cells--boxed { border: 1px solid var(--border); }
@media (min-width: 640px) { .cols-sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .cols-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cols-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Vertical rhythm for stacked copy. */
.flow > * + * { margin-top: 1.5rem; }
.copy-lg { font-size: 1.125rem; line-height: 1.625; color: var(--muted-foreground); }

/* 4. Type ------------------------------------------------------------------ */
.mono, .eyebrow { font-family: var(--font-mono); font-size: .75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.eyebrow { color: var(--secondary); margin-bottom: .75rem; }
.muted { color: var(--muted-foreground); }
.eyebrow::before, .eyebrow-bracket::before { content: "[ "; opacity: .55; }
.eyebrow::after, .eyebrow-bracket::after { content: " ]"; opacity: .55; }
.hero-headline { font-family: var(--font-display); font-weight: 900; letter-spacing: -.025em; line-height: .95; }
.section-headline { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.h1 { font-size: 3rem; }
.h2 { font-size: 1.875rem; }
.h2--lg { font-size: 2.25rem; }
.h3 { font-size: 1.875rem; }
.ln { display: block; }
.accent { color: var(--secondary); }
.intro { font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.intro--narrow { max-width: 28rem; }
.lead { font-size: 1.125rem; line-height: 1.625; color: var(--foreground); }
.on-dark { color: var(--primary-foreground); }
@media (min-width: 768px) {
  .h1 { font-size: 4.5rem; }
  .h2 { font-size: 3rem; }
  .h2--lg { font-size: 3.75rem; }
  .h3 { font-size: 2.25rem; }
  .intro { font-size: 1.125rem; }
  .lead { font-size: 1.25rem; }
}

/* 5. Buttons --------------------------------------------------------------- */
.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem; position: relative;
  padding: .875rem 1.75rem; border: 0; border-radius: 9999px;
  background: var(--secondary); color: var(--secondary-foreground);
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; letter-spacing: .005em; text-decoration: none;
  box-shadow: inset 0 1px #ffffff29, 0 1px 2px #00000014;
  transition: background-color .14s, transform .14s; cursor: pointer;
}
.btn-cta:hover { background: var(--primary); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta .arrow { display: inline-block; transition: transform .18s var(--ease); }
.btn-cta:hover .arrow { transform: translate(4px); }
.btn-cta-nav {
  display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  font-family: var(--font-sans); font-size: .875rem; font-weight: 600; text-decoration: none;
  box-shadow: inset 0 1px #ffffff24, 0 1px 2px #00000014; transition: background-color .14s;
}
.btn-cta-nav:hover { background: var(--secondary); }
.btn-row { margin-top: 2.5rem; }

/* Big phone link used in heroes and bands (icon size is set in the markup). */
.phone-lg { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 2rem; text-decoration: none; }
@media (min-width: 768px) { .phone-lg--grow { font-size: 1.875rem; line-height: 2.25rem; } }

/* 6. Header & mobile nav --------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.nav-utility { background: var(--primary); color: var(--primary-foreground); }
.nav-utility__in { display: flex; align-items: center; gap: .75rem; height: 2.25rem; }
.nav-utility__end { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-utility-trust { display: none; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #ffffffb8; }
.nav-utility-trust svg { color: var(--secondary); flex-shrink: 0; }
.nav-utility-note { display: none; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #ffffff80; }
.nav-utility-phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: .01em; color: #fff; text-decoration: none; transition: color .16s; }
.nav-utility-phone svg { color: var(--secondary); flex-shrink: 0; }
.nav-utility-phone:hover { color: var(--secondary); }
@media (min-width: 640px) { .nav-utility-trust { display: inline-flex; } }
@media (min-width: 1024px) { .nav-utility-note { display: inline; } }
@media (max-width: 639px) {
  .nav-utility__in { height: 2.75rem; }
  .nav-utility-phone { gap: .5rem; font-size: 1.2rem; letter-spacing: .02em; }
  .nav-utility-phone svg { width: 20px; height: 20px; }
}

.nav-main { background: var(--background); border-bottom: 1px solid var(--border); }
.nav-main__in { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; }
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { height: 3rem; width: auto; }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link { position: relative; color: var(--muted-foreground); text-decoration: none; transition: color .16s; }
.nav-link::after { content: ""; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--secondary); transform: scaleX(0); transform-origin: 0; transition: transform .22s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--foreground); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

/* Dropdowns (menu items with children). */
.nav-item { position: relative; display: inline-flex; align-items: center; gap: .4rem; }
.nav-menu-toggle { display: inline-flex; align-items: center; padding: 0; border: 0; background: 0 0; color: var(--muted-foreground); }
.nav-chev { opacity: .7; transition: transform .2s; }
.nav-item:hover .nav-chev, .nav-menu-toggle[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-submenu {
  position: absolute; top: calc(100% + .9rem); left: 50%; z-index: 60; min-width: 200px; padding: .5rem;
  background: var(--background); border: 1px solid var(--border); box-shadow: 0 24px 48px -20px #1b2a4a59;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%) translateY(6px); transition: opacity .18s, transform .18s;
}
.nav-submenu::before { content: ""; position: absolute; top: -1.5rem; left: 0; right: 0; height: 1.5rem; }
.nav-item:hover .nav-submenu, .nav-item:focus-within .nav-submenu, .nav-menu-toggle[aria-expanded="true"] + .nav-submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%) translateY(0); }
.nav-subitem { display: block; padding: .65rem .85rem; font-size: .9rem; color: var(--foreground); white-space: nowrap; text-decoration: none; }
.nav-subitem:hover, .nav-subitem:focus-visible { background: var(--accent); color: var(--secondary); }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px 8px; border: 0; border-radius: 8px; background: 0 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--foreground); transition: transform .24s, opacity .18s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { position: fixed; inset: 0; z-index: 70; background: #1b2a4a73; opacity: 0; visibility: hidden; transition: opacity .24s, visibility .24s; }
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed; top: 0; right: 0; z-index: 80; display: flex; flex-direction: column;
  width: min(86vw, 360px); height: 100dvh; padding: 1.1rem 1.5rem 2rem; overflow-y: auto;
  background: var(--background); border-left: 1px solid var(--border); box-shadow: -12px 0 40px #00000029;
  transform: translate(100%); transition: transform .3s var(--ease);
}
.nav-drawer.open { transform: translate(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.nav-drawer-head img { height: 2.5rem; width: auto; }
.nav-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: 0 0; color: var(--foreground); font-size: 1.6rem; line-height: 1; }
.nav-drawer-links { display: flex; flex-direction: column; }
.nav-drawer-links a { display: block; padding: .95rem .25rem; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--foreground); text-decoration: none; transition: color .14s, padding-left .16s; }
.nav-drawer-links a:hover { color: var(--secondary); padding-left: .6rem; }
.nav-drawer-group { padding: .95rem .25rem .6rem; border-bottom: 1px solid var(--border); }
.nav-drawer-links .nav-drawer-group-label { display: block; margin-bottom: .35rem; padding: 0; border: 0; }
.nav-drawer-links .nav-drawer-sub { padding: .55rem 0 .55rem .9rem; border-bottom: 0; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 500; color: var(--muted-foreground); }
.nav-drawer-cta { margin-top: 1.5rem; }
.nav-drawer-cta .btn-cta { justify-content: center; width: 100%; }
.nav-drawer-phone { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
body.nav-open { overflow: hidden; }
@media (min-width: 768px) {
  .nav-toggle, .nav-overlay, .nav-drawer { display: none; }
}

.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .mobile-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: stretch; gap: .6rem;
    padding: .7rem .85rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--background); border-top: 1px solid var(--border-strong); box-shadow: 0 -4px 16px #00000014;
  }
  .mobile-cta-bar .tel-link {
    display: inline-flex; flex: 50%; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1rem;
    border: none; border-radius: .65rem; background: var(--secondary); color: var(--secondary-foreground);
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; text-decoration: none;
    box-shadow: 0 4px 14px #c8232c61;
  }
  .mobile-cta-bar .tel-link:active { transform: translateY(1px); }
  .mobile-cta-bar .btn-cta--quote { flex: 50%; justify-content: center; padding: .95rem .75rem; border-radius: .65rem; background: var(--primary); color: var(--primary-foreground); font-size: 1.15rem; white-space: nowrap; }
  .mobile-cta-bar .btn-cta--quote:hover { background: var(--primary); }
  body { padding-bottom: 5rem; }
}

/* 7. Footer ---------------------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--border); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, #1b2a4a0a 1px, #0000 1px); background-size: 28px 28px; }
.site-footer > * { position: relative; z-index: 1; }

.footer-cta-band {
  position: relative; isolation: isolate; overflow: hidden; color: var(--primary-foreground);
  background: linear-gradient(#1b2a4aed, #1b2a4af7), url(../images/coverage-aerial.webp) 50% / cover no-repeat;
  background-color: var(--primary);
}
.footer-cta-band::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, #ffffff0f 1px, #0000 1px); background-size: 28px 28px; }
.footer-cta-band > * { position: relative; z-index: 1; }
.footer-cta-band__in { padding-block: 3.5rem; }
.footer-cta-band .grid12 { gap: 2rem; align-items: center; }
.footer-cta-band__text { margin-top: 1.25rem; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: #ffffffd9; }
.footer-cta-band__actions { display: flex; flex-direction: column; gap: 1rem; }
.footer-cta-band__actions .phone-lg { color: #fff; }
@media (min-width: 768px) {
  .footer-cta-band__in { padding-block: 4rem; }
  .footer-cta-band__text { font-size: 1.125rem; }
  .footer-cta-band__actions { align-items: flex-end; text-align: right; }
}

.footer-badges { background: var(--accent); border-bottom: 1px solid var(--border); }
.footer-badges__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; padding-block: 1rem; }
.footer-badge { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--foreground); }
.footer-badge svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--secondary); }
@media (min-width: 768px) { .footer-badges__in { flex-wrap: nowrap; justify-content: space-between; } }
@media (min-width: 1024px) { .footer-badge { font-size: .7rem; } }

.footer-main { background: var(--accent); }
.footer-main__in { padding-block: 4rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 24rem; }
.footer-brand > img { height: 3rem; width: auto; margin-bottom: 1.5rem; }
.footer-blurb { margin-bottom: 1.25rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
.footer-phone { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-family: var(--font-mono); font-size: .875rem; line-height: 1.25rem; color: var(--foreground); text-decoration: none; }
.footer-social { display: flex; gap: .6rem; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border-strong); border-radius: 9999px; color: var(--foreground); transition: background .14s, color .14s, border-color .14s; }
.footer-social-link svg { width: 17px; height: 17px; }
.footer-social-link:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.footer-title { margin-bottom: 1.25rem; font-family: var(--font-mono); font-size: .75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--foreground); }
.footer-links { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.footer-link { color: var(--muted-foreground); text-decoration: none; transition: color .14s; }
.footer-link:hover { color: var(--secondary); }
.footer-areas-row { padding-block: 2rem; border-bottom: 1px solid var(--border); }
.footer-areas-row .footer-title { margin-bottom: 1rem; }
.footer-areas { display: flex; flex-wrap: wrap; gap: .4rem .65rem; }
.footer-area-link { padding: .25rem .7rem; border: 1px solid var(--border); border-radius: 9999px; font-size: .82rem; white-space: nowrap; color: var(--muted-foreground); text-decoration: none; transition: color .14s, border-color .14s; }
.footer-area-link:hover { color: var(--secondary); border-color: var(--secondary); }
.footer-meta { display: flex; flex-direction: column; gap: 1rem; padding-block: 1.75rem; border-bottom: 1px solid var(--border); }
.brand-pillars { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.brand-pillars span { white-space: nowrap; }
.brand-pillars span + span::before { content: "·"; margin-right: 1.25rem; font-weight: 700; color: var(--secondary); }
.footer-area { font-family: var(--font-mono); font-size: .75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; color: var(--muted-foreground); }
.footer-legal { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .75rem; padding-top: 1.75rem; font-size: .75rem; line-height: 1rem; color: var(--muted-foreground); }
.footer-legal__built { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
@media (min-width: 640px) { .footer-legal { flex-direction: row; align-items: center; } }
@media (min-width: 768px) {
  .footer-main__in { padding-block: 5rem; }
  .footer-top { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem; }
  .footer-meta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* 8. Sections -------------------------------------------------------------- */

/* Shared section treatments. Navy band with the aerial photo behind (quote form, statement, CTA band). */
.cta-bar {
  isolation: isolate; color: var(--primary-foreground); background-color: var(--primary);
  background: linear-gradient(#1b2a4aeb, #1b2a4af5), url(../images/coverage-aerial.webp) 50% / cover no-repeat;
}
.depth-ambient-warm-top { position: relative; isolation: isolate; }
.depth-ambient-warm-top::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0, #ffffff0f 0%, #0000 70%); }
.depth-ambient-warm-top > * { position: relative; z-index: 1; }
.depth-texture-dots::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--dots-light); background-size: 28px 28px; }
.cta-bar > .wrap { position: relative; z-index: 2; }
.depth-form-panel { box-shadow: inset 0 1px #ffffffe6, 0 12px 32px #00000038, 0 2px 6px #0000001f; }
.media-slot { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); background: var(--muted); }
.media-slot img { width: 100%; height: 100%; object-fit: cover; }

/* hero — sections/hero.php */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-photo-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-photo-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-photo-overlay { position: absolute; inset: 0; z-index: 1; background: radial-gradient(100% 80%, #0000 55%, #00000038 100%), linear-gradient(105deg, #1b2a4af5 0%, #1b2a4ae6 28%, #1b2a4a9e 58%, #1b2a4a38 92%, #1b2a4a1f 100%); }
.hero-photo-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.hero-watermark { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3; display: flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #ffffff8c; pointer-events: none; }
.hero-watermark::before { content: ""; width: 32px; height: 1px; background: #ffffff59; }
.hero-photo-content { position: relative; z-index: 3; display: grid; gap: 2.5rem; align-items: end; padding-top: 6rem; padding-bottom: 7rem; }
.hero-photo .hero-headline { font-size: 3rem; color: #fff; }
.hero-photo-sub { margin-top: 2rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .92); }
.hero-photo .btn-cta:hover { background: #fff; color: var(--primary); }
@media (min-width: 768px) {
  .hero-photo-content { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-top: 8rem; padding-bottom: 9rem; }
  .hero-photo .hero-headline { font-size: 4.5rem; }
  .hero-headline-2line > .ln { white-space: nowrap; }
  .hero-photo-sub { font-size: 1.25rem; }
}
@media (min-width: 1024px) { .hero-photo .hero-headline { font-size: 6rem; } }
@media (max-width: 768px) {
  .hero-photo-overlay { background: linear-gradient(#1b2a4ae6 0%, #1b2a4af0 100%); }
  .hero-watermark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* page_hero — sections/page-hero.php */
.page-hero { position: relative; overflow: hidden; background: var(--accent); border-bottom: 1px solid var(--border); }
.page-hero__in { position: relative; padding-block: 5rem; }
.page-hero__text { margin-top: 2rem; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.page-hero__text.is-large { font-size: 1.125rem; }
.page-hero__contact { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; margin-top: 2rem; }
.page-hero__contact .phone-lg { color: var(--primary); }
.page-hero__badge { color: var(--muted-foreground); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.page-hero__media img { width: 100%; height: 15rem; object-fit: cover; }
@media (min-width: 768px) {
  .page-hero__in { padding-block: 8rem; }
  .page-hero-copy { max-width: 58%; }
  .page-hero__text { font-size: 1.125rem; }
  .page-hero__text.is-large { font-size: 1.25rem; }
  .page-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 33.333%; }
  .page-hero__media img { height: 100%; }
}

/* trust_strip — sections/trust-strip.php */
.trust-strip { background: var(--secondary); border-bottom: 1px solid #0000002e; }
.trust-strip__grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.5rem; }
.trust-strip__grid > :not(:last-child) { border-bottom: 1px solid var(--border); }
.trust-cell { display: flex; align-items: center; gap: .85rem; padding: 1.5rem 0; }
.trust-cell .icon { width: 28px; height: 28px; flex-shrink: 0; color: #fff; }
.trust-cell .label { display: block; margin-bottom: .25rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.trust-cell .copy { display: block; font-size: .92rem; line-height: 1.45; color: #ffffffd9; }
@media (min-width: 768px) {
  .trust-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-strip__grid > :not(:last-child) { border-bottom: 0; border-right: 1px solid var(--border); }
}

/* stats — sections/stats.php */
.stats-band { position: relative; isolation: isolate; overflow: hidden; background: var(--accent); color: var(--primary); }
.stats-band::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--dots-dark); background-size: 28px 28px; }
.stats-band > * { position: relative; z-index: 1; }
.stats-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; padding-block: 4rem; }
.stat-cell { text-align: center; }
.stat-cell .num { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--secondary); }
.stat-cell .label { display: block; margin-top: .75rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); }
.stats-band--compact .stats-band__grid { column-gap: 1.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) {
  .stats-band__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 5rem; }
  .stats-band--compact .stats-band__grid { padding-block: 4rem; }
}

/* photo_tiles — sections/photo-tiles.php */
.type-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 0; background: var(--card); color: inherit; text-decoration: none; }
.type-tile::after { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 3px; background: var(--secondary); transform: scaleX(0); transform-origin: 0; transition: transform .28s var(--ease); }
.type-tile:hover::after { transform: scaleX(1); }
.type-tile:hover .label { color: var(--secondary); }
.type-tile-img { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--muted); }
.type-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.type-tile-content { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.25rem 1.25rem 1.5rem; }
.type-tile .num { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted-foreground); }
.type-tile .label { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: var(--foreground); transition: color .16s; }
.type-tile .sub { font-size: .88rem; line-height: 1.45; color: var(--muted-foreground); }

/* steps — sections/steps.php */
.steps { gap: 1.5rem; }
.step-card { position: relative; overflow: hidden; padding: 2.5rem 1.75rem 2rem; background: var(--card); border: 1px solid var(--border); }
.step-card::before { content: attr(data-num); position: absolute; top: -.5rem; right: -.5rem; z-index: 0; font-family: var(--font-display); font-size: 7rem; font-weight: 900; line-height: 1; letter-spacing: -.05em; color: var(--accent); pointer-events: none; }
.step-card > * { position: relative; z-index: 1; }
.step-card .step-icon { width: 40px; height: 40px; margin-bottom: 1.25rem; color: var(--secondary); }
.step-card .step-label { display: block; margin-bottom: .65rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); }
.step-card .step-headline { margin-bottom: .75rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--foreground); }
.step-card .step-body { font-size: .95rem; line-height: 1.55; color: var(--muted-foreground); }
.steps-foot { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border); text-align: center; }
.steps-foot__note { margin-bottom: 1.25rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .steps { gap: 2rem; }
  .step-card:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -1.4rem; z-index: 2; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--secondary); transform: translateY(-50%); }
}
@media (min-width: 1024px) { .steps { gap: 2.5rem; } }

/* coverage — sections/coverage.php */
.coverage { position: relative; overflow: hidden; }
.coverage > .wrap { position: relative; z-index: 1; }
.coverage-tx { position: absolute; top: 50%; right: -11%; z-index: 0; width: 46%; max-width: 660px; opacity: .1; pointer-events: none; user-select: none; transform: translateY(-50%); }
.coverage__grid { align-items: center; }
.coverage__text { margin-top: 2rem; max-width: 36rem; }
.coverage__regions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem 2.5rem; margin-top: 2.5rem; }
.coverage__media { aspect-ratio: 5 / 4; }
.region-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 0; border-top: 1px solid var(--border); }
.region-card .region-name { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--foreground); }
.region-card .region-cities { font-size: .92rem; line-height: 1.4; color: var(--muted-foreground); }
@media (min-width: 640px) { .coverage__regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .coverage-tx { opacity: .06; width: 88%; right: -30%; } }

/* insurance — sections/insurance.php */
.ins-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.ins-panel { display: flex; flex-direction: column; justify-content: center; padding: 2.75rem 2.5rem; background: var(--primary); color: #fff; }
.ins-panel__body { margin-bottom: 2rem; font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .92); }
.ins-panel__claims { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.ins-panel__label { margin-bottom: 1rem; }
.ins-panel__small { margin-bottom: 2rem; font-size: 1rem; line-height: 1.625; color: rgba(255, 255, 255, .82); }
.ins-media { position: relative; overflow: hidden; min-height: 18rem; background: var(--muted); }
.ins-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ins-steps-box { margin-top: 2.5rem; border: 1px solid var(--border); background: var(--card); }
.ins-steps-head { padding: 1.5rem 1.5rem .5rem; border-bottom: 1px solid var(--border); }
.ins-steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.ins-steps > :not(:last-child) { border-bottom: 1px solid var(--border); }
.ins-step { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem 1.5rem 1.75rem; background: var(--card); }
.ins-step-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--secondary); }
.ins-step-label { margin-top: .25rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--foreground); }
.ins-step-copy { font-size: .9rem; line-height: 1.45; color: var(--muted-foreground); }
@media (min-width: 640px) {
  .ins-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-steps > :not(:last-child) { border-bottom: 0; border-right: 1px solid var(--border); }
}
@media (min-width: 768px) {
  .ins-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ins-panel__body { font-size: 1.25rem; }
  .ins-steps-head { padding-inline: 2rem; }
  .ins-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ins-panel { padding: 2.25rem 1.5rem; }
  .ins-media { width: 100%; min-width: 0; aspect-ratio: 16 / 10; min-height: 14rem; } /* width/min-width: fixes the old site's 8px sideways scroll */
}

/* testimonials — sections/testimonials.php */
.testimonials { gap: 1.5rem; margin-bottom: 3rem; }
.testimonial-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 16rem; padding: 2rem 1.75rem; background: var(--card); border: 1px solid var(--border); }
.testimonial-card .quote { position: relative; padding-top: 1.5rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; line-height: 1.5; letter-spacing: -.005em; color: var(--foreground); }
.testimonial-card .quote::before { content: "“"; position: absolute; top: -.4rem; left: -.1rem; font-family: var(--font-display); font-size: 3rem; font-weight: 900; line-height: 1; color: var(--secondary); }
.testimonial-card .attr { display: block; padding-top: 1rem; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: .7rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.testimonial-card .attr strong { display: block; margin-bottom: .2rem; font-weight: 700; color: var(--foreground); }
.testimonial-card .attr .meta { display: block; opacity: .8; }
.closer { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.closer__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--foreground); }
.closer__sub { margin-top: .5rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .closer { flex-direction: row; align-items: center; justify-content: space-between; }
  .closer__title { font-size: 1.875rem; }
}

/* faq — sections/faq.php */
.faq { gap: 3rem; }
.faq__title { margin-bottom: 1.25rem; }
.faq__text { margin-bottom: 2rem; }
details.faq-item { border-top: 1px solid var(--border); }
details.faq-item:last-of-type { border-bottom: 1px solid var(--border); }
details.faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--foreground); list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item .faq-toggle { flex-shrink: 0; margin-top: .25rem; font-family: var(--font-mono); font-size: 1.25rem; font-weight: 400; line-height: 1; color: var(--secondary); transition: transform .2s; }
details.faq-item[open] .faq-toggle { transform: rotate(45deg); }
details.faq-item .faq-answer { max-width: 640px; padding: 0 0 1.5rem; font-size: 1rem; line-height: 1.6; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .faq { gap: 4rem; }
  .faq__aside { position: sticky; top: 6rem; }
}

/* quote_form — sections/quote-form.php (+ assets/js/quote.js) */
.quote { align-items: start; }
.quote__body { margin-top: 2rem; max-width: 28rem; font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .92); }
.quote__phone { margin-top: 2rem; }
.quote__phone .phone-lg { gap: .625rem; color: #fff; }
.quote__phone-note { margin-top: .5rem; color: rgba(255, 255, 255, .6); }
.quote__bullets { max-width: 28rem; margin-top: 2.5rem; }
.quote__bullets > * + * { margin-top: .25rem; }
.trust-bullet { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; }
.trust-bullet .check { width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem; color: var(--secondary); }
.trust-bullet .text { font-size: 1rem; line-height: 1.5; color: #ffffffeb; }
.trust-bullet .text strong { font-weight: 600; color: #fff; }
.star-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted-foreground); }
.star-divider::before, .star-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.star-divider .stars { font-size: .8rem; letter-spacing: .25em; }
.quote__stars { margin-top: 2.5rem; color: rgba(255, 255, 255, .45); }
.quote__banner { margin-bottom: 1.25rem; padding: 1.25rem; border-radius: 10px; font-size: 1rem; line-height: 1.5rem; font-weight: 500; color: var(--primary); }
.quote__banner.is-sent { background: #e7f4ec; }
.quote__banner.is-error { background: #fdecec; }
.quote-funnel { padding: 28px; background: #fff; color: var(--foreground); }
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf-head { margin-bottom: 22px; }
.qf-head-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.qf-progress { height: 4px; overflow: hidden; border-radius: 99px; background: var(--border); }
.qf-progress > span { display: block; width: 33%; height: 100%; border-radius: 99px; background: var(--secondary); transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.qf-step { display: none; animation: qfIn .35s cubic-bezier(.16, 1, .3, 1); }
.qf-step.is-active { display: block; }
@keyframes qfIn { 0% { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qf-q { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--primary); }
.qf-choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
.qf-choices--grid { grid-template-columns: 1fr 1fr; }
.qf-choice { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .12s; }
.qf-choice:hover { border-color: var(--secondary); background: #fff8f7; }
.qf-choice:active { transform: scale(.99); }
.qf-choice.is-sel { border-color: var(--secondary); background: #fff3f1; }
.qf-choice--wide { grid-column: 1 / -1; }
.qf-choices--grid .qf-choice { align-items: center; padding: 18px 14px; text-align: center; }
.qf-c-label { font-size: 16px; font-weight: 700; color: var(--primary); }
.qf-c-sub { font-size: 13px; color: var(--muted-foreground); }
.qf-fields { display: grid; gap: 14px; }
.qf-label { display: block; margin-bottom: 5px; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.qf-input { width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 8px; outline: none; font-size: 16px; transition: border-color .18s; }
.qf-input:focus { border-color: var(--primary); }
.qf-input.is-missing { border-color: var(--secondary); }
.qf-rollup { min-height: 18px; margin-bottom: 16px; font-size: 13px; color: var(--muted-foreground); }
.qf-rollup b { font-weight: 600; color: var(--primary); }
.qf-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.qf-submit { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border: none; border-radius: 8px; background: var(--secondary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s, transform .12s; }
.qf-submit:hover { background: var(--primary); }
.qf-submit:disabled { opacity: .6; cursor: default; }
.qf-submit .arrow { transition: transform .25s; }
.qf-submit:hover .arrow { transform: translate(4px); }
.qf-back { margin-top: 16px; padding: 8px 2px; border: none; background: 0 0; font-size: 13px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; transition: color .18s; }
.qf-back:hover { color: var(--primary); }
.qf-step[data-step="3"] .qf-back { margin-top: 0; }
.qf-fine { margin-top: 16px; font-size: 12px; color: var(--muted-foreground); }
@media (min-width: 768px) { .quote__body { font-size: 1.25rem; } }

/* text_pull — sections/text-pull.php */
.text-pull { max-width: 42rem; }
.text-pull h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--foreground); }

/* photo_story — sections/photo-story.php */
.photo-story { align-items: center; }
.photo-story__title { margin-bottom: 2rem; }
.story-frame { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 5; border: 1px solid var(--border); box-shadow: 0 24px 64px -16px #00000080; }
.story-frame::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 4px; background: var(--secondary); }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-frame-tag { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; padding: .35rem .7rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #0f172ab8; border: 1px solid #ffffff1f; backdrop-filter: blur(4px); }
@media (min-width: 768px) { .photo-story { gap: 4rem; } }
@media (max-width: 767px) { .story-frame { aspect-ratio: 16 / 10; } }

/* icon_cards — sections/icon-cards.php */
.trust-badge { display: flex; flex-direction: column; gap: .6rem; padding: 2.25rem 1.75rem 2.5rem; background: var(--background); }
.trust-badge-icon { width: 30px; height: 30px; margin-bottom: .5rem; color: var(--secondary); }
.trust-badge-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--foreground); }
.trust-badge-copy { font-size: .95rem; line-height: 1.55; color: var(--muted-foreground); }

/* numbered_cards — sections/numbered-cards.php */
.value-card { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 2.25rem 1.75rem 2.5rem; background: var(--background); transition: background .16s; }
.value-card::before, .loc-region-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--secondary); transform: scaleX(0); transform-origin: 0; transition: transform .28s var(--ease); }
.value-card:hover::before, .loc-region-card:hover::before { transform: scaleX(1); }
.value-num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted-foreground); }
.value-label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--foreground); }
.value-copy { font-size: .92rem; line-height: 1.5; color: var(--muted-foreground); }

/* statement_cta — sections/statement-cta.php */
.statement { max-width: 48rem; }
.statement__title { margin-bottom: 2rem; }
.statement__body { font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .9); }

/* region_grid — sections/region-grid.php */
.loc-regions { position: relative; overflow: hidden; }
.loc-regions > .wrap { position: relative; z-index: 1; }
.loc-regions-tx { position: absolute; top: 50%; right: -12%; z-index: 0; width: 44%; max-width: 640px; opacity: .5; mix-blend-mode: multiply; pointer-events: none; user-select: none; transform: translateY(-50%); }
.loc-region-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 2rem 1.75rem 2.25rem; background: var(--background); color: inherit; text-decoration: none; transition: background .16s; }
.loc-region-card:hover { background: var(--accent); }
.loc-region-num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted-foreground); }
.loc-region-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--foreground); }
.loc-region-cities { font-size: .95rem; line-height: 1.5; color: var(--muted-foreground); }
@media (max-width: 768px) { .loc-regions-tx { opacity: .32; width: 84%; right: -26%; } }

/* cta_band — sections/cta-band.php */
.cta-band__in { padding-block: 5rem; }
.cta-band__grid { align-items: center; }
.cta-band__text { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .9); }
@media (min-width: 768px) {
  .cta-band__in { padding-block: 6rem; }
  .cta-band__action { text-align: right; }
}

/* service_grid — sections/service-grid.php */
.svc-grid__title { margin-bottom: 3rem; }
.svc-card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--background); color: inherit; text-decoration: none; transition: background-color .15s var(--ease); }
.svc-card__top { display: flex; align-items: center; justify-content: space-between; }
.svc-card__num { font-family: var(--font-mono); font-size: .75rem; line-height: 1rem; color: var(--muted-foreground); }
.svc-card__arrow { font-size: 1.25rem; line-height: 1; color: var(--secondary); transition: translate .15s var(--ease); }
.svc-card__name { margin-top: 1rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--foreground); }
.svc-card__sub { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); }
@media (hover: hover) {
  a.svc-card:hover { background: var(--accent); }
  a.svc-card:hover .svc-card__arrow { translate: .25rem 0; }
}

/* type_panels — sections/type-panels.php */
.roof-zigzag { border-top: 1px solid var(--border); }
.roof-panel { display: grid; align-items: stretch; border-bottom: 1px solid var(--border); }
.roof-panel-media { position: relative; overflow: hidden; min-height: 22rem; background: var(--muted); }
.roof-panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.roof-panel-body { display: flex; flex-direction: column; justify-content: center; padding: 3rem 2.5rem; background: var(--card); }
.roof-panel__title { margin-bottom: 1.25rem; }
.roof-panel__cta { margin-top: 1.75rem; }
@media (min-width: 768px) {
  .roof-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roof-panel:nth-child(even) .roof-panel-media { order: 2; }
  .roof-panel:nth-child(even) .roof-panel-body { order: 1; }
  .roof-panel-body { padding: 3.5rem; }
}
@media (max-width: 767px) {
  .roof-panel-media { width: 100%; min-width: 0; min-height: 15rem; aspect-ratio: 16 / 10; }
  .roof-panel-body { padding: 2.25rem 1.5rem 2.75rem; }
}

/* qa_split — sections/qa-split.php */
.qa { max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted-foreground); }
.qa > * + * { margin-top: 1.25rem; }
.qa__q { color: var(--foreground); }
.qa__bullets { padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 1rem; line-height: 1.5rem; }
.qa__bullets > * + * { margin-top: .5rem; }
.qa__cta { padding-top: .5rem; }

/* prose — sections/prose.php */
.prose__title { margin-bottom: 2rem; }

/* 9. Blog & rich text ------------------------------------------------------ */
.blog-hero { position: relative; overflow: hidden; background: var(--accent); border-bottom: 1px solid var(--border); }
.blog-hero::after { content: ""; position: absolute; bottom: -1px; left: 0; width: min(33.333%, 22rem); height: 4px; background: var(--secondary); }
.blog-index__in { padding-block: 4rem; }
.blog-lead { gap: 2rem; align-items: center; color: inherit; text-decoration: none; }
.blog-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--muted); }
.blog-thumb::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 4px; background: var(--secondary); }
.blog-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-thumb--lead { border: 1px solid var(--border); box-shadow: 0 24px 64px -24px #1b2a4a73; }
.blog-thumb.is-empty { background-color: var(--primary); background-image: radial-gradient(circle, #ffffff14 1px, #0000 1px); background-size: 22px 22px; }
.blog-meta, .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-family: var(--font-mono); font-size: .75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.blog-meta time, .post-meta time, .blog-card__meta time { color: var(--muted-foreground); }
.blog-lead__title { margin-top: 1rem; font-size: 1.875rem; color: var(--foreground); }
.blog-lead__excerpt { margin-top: 1.25rem; font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.blog-arrow { display: inline-block; line-height: 1; color: var(--secondary); transition: transform .18s var(--ease); }
.blog-lead__arrow { margin-top: 1.75rem; font-size: 1.5rem; }
.group:hover .blog-arrow { transform: translate(4px); }
.blog-lead:hover .blog-lead__title { color: var(--secondary); }
.blog-grid { margin-top: 4rem; }
.blog-grid--flush { margin-top: 0; }
.blog-card { display: flex; flex-direction: column; background: var(--background); color: inherit; text-decoration: none; transition: background-color .14s; }
.blog-card:hover { background: var(--accent); }
.blog-lead:focus-visible, .blog-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
.blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.blog-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.blog-card__title { margin-top: .75rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--foreground); }
.blog-card-excerpt { display: -webkit-box; margin-top: .75rem; overflow: hidden; font-size: .875rem; line-height: 1.625; color: var(--muted-foreground); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.blog-card__arrow { margin-top: auto; padding-top: 1.5rem; font-size: 1.25rem; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-mono); font-size: .8rem; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--border); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (min-width: 768px) {
  .blog-index__in { padding-block: 6rem; }
  .blog-lead { gap: 3rem; }
  .blog-lead__title { font-size: 2.25rem; }
  .blog-lead__excerpt { font-size: 1.125rem; }
  .blog-grid { margin-top: 5rem; }
  .blog-card__body { padding: 1.75rem; }
}

.post-hero { padding-bottom: 3.5rem; background: var(--accent); border-bottom: 1px solid var(--border); }
.post-hero.has-image { padding-bottom: 0; border-bottom: 0; background: linear-gradient(to bottom, var(--accent) 0, var(--accent) calc(100% - 9rem), var(--background) calc(100% - 9rem)); }
.post-hero__in { padding-top: 3rem; }
.post-crumb, .post-back { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--foreground); text-decoration: none; }
.post-crumb span, .post-back span { color: var(--secondary); }
.post-meta { margin-top: 2.5rem; }
.post-title { margin-top: 1.25rem; font-size: 2.25rem; color: var(--foreground); }
.post-excerpt { max-width: 42rem; margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted-foreground); }
.post-frame { position: relative; overflow: hidden; margin: 3rem 0 0; aspect-ratio: 16 / 9; border: 1px solid var(--border); background: var(--muted); box-shadow: 0 24px 64px -24px #1b2a4a73; }
.post-frame::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 4px; background: var(--secondary); }
.post-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body__in { padding-top: 3.5rem; padding-bottom: 5rem; }
.post-article { max-width: 42rem; font-size: 1.0625rem; }
.post-foot { max-width: 42rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
@media (min-width: 768px) {
  .post-hero { padding-bottom: 4.5rem; }
  .post-hero.has-image { background: linear-gradient(to bottom, var(--accent) 0, var(--accent) calc(100% - 14rem), var(--background) calc(100% - 14rem)); }
  .post-hero__in { padding-top: 4rem; }
  .post-meta { margin-top: 3rem; }
  .post-title { font-size: 3.75rem; }
  .post-excerpt { font-size: 1.25rem; }
  .post-frame { margin-top: 3.5rem; }
  .post-body__in { padding-top: 5rem; padding-bottom: 7rem; }
  .post-article { font-size: 1.125rem; }
}

/* Rich text: post bodies and prose sections. */
.rich { line-height: 1.75; color: var(--muted-foreground); }
.rich > :first-child { margin-top: 0; }
.rich p + p, .rich p + ul, .rich p + ol, .rich ul + p, .rich ol + p { margin-top: 1.15em; }
.rich h2, .rich h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--foreground); text-wrap: balance; }
.rich h2 { margin-top: 2.2em; margin-bottom: .6em; font-size: 1.65em; }
.rich h3 { margin-top: 1.8em; margin-bottom: .5em; font-size: 1.25em; }
.rich strong { font-weight: 600; color: var(--foreground); }
.rich em { font-style: italic; }
.rich ul { padding-left: 1.4em; list-style: outside; }
.rich ol { padding-left: 1.4em; list-style: decimal; }
.rich li { display: list-item; margin-top: .45em; padding-left: .2em; }
.rich li::marker { color: var(--secondary); }
.rich a { position: relative; z-index: 1; color: var(--secondary); text-decoration: underline 1px; text-underline-offset: .18em; }
.rich a:hover { color: var(--foreground); }
.rich blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 4px solid var(--secondary); font-family: var(--font-display); font-size: 1.2em; line-height: 1.45; color: var(--foreground); }
.rich figure { margin: 2.2em 0; }
.rich img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); }
.rich figcaption { margin-top: .7em; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.rich hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--border); }
.rich table { width: 100%; margin: 1.75em 0; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.rich :is(th, td) { padding: .75em 1em; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.rich th { border-bottom: 2px solid var(--secondary); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--foreground); }
.rich .wp-block-button__link { display: inline-flex; align-items: center; padding: .875rem 1.75rem; border-radius: 9999px; background: var(--secondary); color: #fff; font-family: var(--font-sans); font-size: .95rem; font-weight: 600; text-decoration: none; }
.rich .wp-block-button__link:hover { background: var(--primary); color: #fff; }

