/* ==========================================================================
   Beverly Hills Window Tinting & Treatments — site styles
   Mobile-first, no framework, CSS custom properties, WCAG AA contrast.
   Base font size: 18px (fluid 17–19px), comfortable 1.7 line height.
   ========================================================================== */

:root {
  --ink: #17212b;
  --ink-2: #3a4653;
  --muted: #5b6672;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --brand: #1f2b38;          /* charcoal (logo text) */
  --gold: #a87424;           /* logo badge */
  --gold-soft: #f4ead9;
  --accent: #c2510c;         /* call-to-action orange (logo tagline), 4.9:1 on white */
  --accent-dark: #9c3f08;
  --link: #0b5c8f;
  --ok: #1d7a46;
  --err: #b42318;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Outfit", "Inter", system-ui, sans-serif;
  --fs-base: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);  /* 17 → 19px */
  --fs-sm: 0.9rem;
  --fs-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-h1: clamp(1.9rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --container: 76rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--brand); margin: 0 0 .5em; letter-spacing: -0.01em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* ----- Buttons ---------------------------------------------------------- */
.btn, .page-body a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body);
  color: #fff; background: var(--accent); border: 2px solid var(--accent);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(194, 81, 12, .25); }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.075rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--brand); border-color: var(--gold); box-shadow: none; }
.page-body a.btn-ghost { background: #fff; color: var(--brand); border-color: #c9ced4; }
.page-body a.btn-ghost:hover { background: var(--bg-soft); color: var(--brand); border-color: var(--gold); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--brand); border-color: #fff; box-shadow: none; }

/* ----- Promo / top bar ---------------------------------------------------- */
.admin-bar { background: #111; color: #fff; font-size: .85rem; display: flex; gap: 1.25rem; padding: .35rem var(--gutter); }
.admin-bar a { color: #fff; }
.promo-bar { background: var(--gold); color: #fff; font-size: .95rem; text-align: center; padding: .55rem 0; }
.promo-bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.promo-bar a { color: #fff; font-weight: 700; }
.topbar { background: var(--brand); color: #dfe5eb; font-size: .9rem; display: none; }
.topbar .container { display: flex; gap: 1.75rem; align-items: center; min-height: 42px; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-soft); stroke-width: 2; }
.topbar-phone { margin-left: auto; color: #fff; font-weight: 700; text-decoration: none; }
@media (min-width: 900px) { .topbar { display: block; } }

/* ----- Header & navigation ---------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand img { width: auto; height: 58px; }
.brand span { font: 800 1.2rem var(--font-head); color: var(--brand); }
.brand { text-decoration: none; flex-shrink: 0; }

.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: .6rem; background: none; border: 2px solid var(--line); border-radius: 999px; padding: .55rem 1rem; font: 600 1rem var(--font-body); color: var(--brand); cursor: pointer; min-height: 48px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav .menu-label { display: block; color: var(--brand); text-decoration: none; font-weight: 600; }
.sub-toggle { background: none; border: 0; color: var(--ink-2); cursor: pointer; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 8px; }
.sub-toggle svg { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.site-nav .nav-cta .btn { color: #fff; display: inline-flex; }
.site-nav .nav-cta .btn-ghost { color: var(--brand); }

/* Mobile navigation (off-canvas) */
@media (max-width: 1099.98px) {
  /* closed menu stays inside the viewport (fade + small slide down) so phones never get sideways scrolling */
  /* the header is the containing block (backdrop-filter), so place the panel under it and size it to the screen */
  .site-nav { position: fixed; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--nav-top, var(--header-h))); background: #fff; overflow-y: auto; padding: 1rem var(--gutter) 7rem; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; border-top: 1px solid var(--line); }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; }
  .site-nav .menu > li { border-bottom: 1px solid var(--line); }
  .site-nav li { display: flex; flex-wrap: wrap; align-items: center; }
  .site-nav li > a, .site-nav li > .menu-label { flex: 1; padding: .85rem 0; font-size: 1.1rem; }
  .site-nav .submenu { display: none; width: 100%; padding: 0 0 .5rem 1rem; border-left: 3px solid var(--gold-soft); }
  .site-nav .submenu a, .site-nav .submenu .menu-label { font-weight: 500; font-size: 1.05rem; padding: .6rem 0; }
  .site-nav li.open > .submenu { display: block; }
  .nav-cta { margin-top: 1.5rem; flex-direction: column; }
  .nav-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* Desktop navigation (dropdowns) */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
  .site-nav .menu { display: flex; align-items: center; gap: .1rem; }
  .site-nav .menu > li { position: relative; display: flex; align-items: center; }
  .site-nav .menu > li > a, .site-nav .menu > li > .menu-label { padding: .5rem .6rem; border-radius: 8px; font-size: 1rem; }
  .site-nav .menu > li > a:hover, .site-nav .menu > li.is-active > a { color: var(--accent-dark); }
  .site-nav .menu > li.has-sub > a, .site-nav .menu > li.has-sub > .menu-label { padding-right: 0; }
  .site-nav .sub-toggle { width: 28px; height: 36px; }
  .site-nav .submenu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
  .site-nav .submenu li { position: relative; display: flex; align-items: center; }
  .site-nav .submenu a, .site-nav .submenu .menu-label { flex: 1; padding: .55rem .8rem; border-radius: 8px; font-weight: 500; font-size: .98rem; }
  .site-nav .submenu a:hover { background: var(--bg-soft); color: var(--accent-dark); }
  .site-nav .submenu .submenu { top: -.5rem; left: 100%; }
  .site-nav .submenu .sub-toggle svg { transform: rotate(-90deg); }
  .site-nav li:hover > .submenu, .site-nav li:focus-within > .submenu, .site-nav li.open > .submenu { opacity: 1; visibility: visible; transform: none; }
  .site-nav .menu > li:last-child .submenu, .site-nav .menu > li:nth-last-child(2) .submenu { left: auto; right: 0; }
  .site-nav .menu > li:nth-last-child(-n+3) .submenu .submenu { left: auto; right: 100%; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) { .nav-cta .btn-ghost span { display: none; } }

/* ----- Page hero -------------------------------------------------------- */
.page-hero { background: linear-gradient(135deg, var(--brand) 0%, #2c3c4e 100%); color: #fff; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; position: relative; isolation: isolate; }
.page-hero.has-image { background: linear-gradient(100deg, rgba(23,33,43,.95) 0%, rgba(23,33,43,.78) 45%, rgba(23,33,43,.35) 100%), var(--hero) center/cover no-repeat, var(--brand); padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.page-hero h1 { color: #fff; margin-bottom: .25em; max-width: 30ch; }
.page-hero .lead { color: #e7ecf1; max-width: 55ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; padding: 0; font-size: .9rem; color: #c9d2dc; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--gold-soft); }
.breadcrumbs a { color: #fff; }
.post-meta { color: #c9d2dc; margin: 0; }

/* ----- Home -------------------------------------------------------------- */
.home-hero { background: linear-gradient(100deg, rgba(23,33,43,.95) 0%, rgba(23,33,43,.78) 45%, rgba(23,33,43,.35) 100%), var(--hero, none) center/cover no-repeat, var(--brand); color: #fff; padding: clamp(3.5rem, 2rem + 7vw, 8rem) 0; }
.home-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); overflow-wrap: break-word; }
.home-hero .lead { color: #e7ecf1; max-width: 46ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: #f2c879; margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 500; color: #f3f5f7; }
.hero-badges li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges svg { width: 20px; height: 20px; fill: none; stroke: #f2c879; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--brand); color: #e7ecf1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); }
.section-dark .section-head p { color: #c9d2dc; }

.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .4rem; }
.card-body ul { padding-left: 1.15rem; margin: 0 0 1.25rem; color: var(--ink-2); }
.card-body .more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--accent-dark); }
.card-body .more:hover { text-decoration: underline; }

.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.feature { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section-dark .feature { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.feature strong { display: block; font: 700 1.6rem var(--font-head); color: var(--gold); }
.section-dark .feature strong { color: #f2c879; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ----- Content (rich text from the editor) ------------------------------ */
.page-body { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.full-body { padding-block: 0; }
.prose { max-width: var(--container); }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > h4, .prose > blockquote, .prose > .form-wrap { max-width: 50rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child, .col > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--gold); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.prose a.btn { margin: .25rem 0 1rem; }
@media (min-width: 700px) {
  .prose figure.align-right { float: right; max-width: 45%; margin: .25rem 0 1.25rem 2rem; }
  .prose figure.align-left { float: left; max-width: 45%; margin: .25rem 2rem 1.25rem 0; }
}
.prose::after, .col::after { content: ""; display: table; clear: both; }
.prose hr { clear: both; }

.cols { display: grid; gap: 2rem; margin: 2rem 0; clear: both; }
@media (min-width: 760px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.cols .col > hr:last-child { display: none; }
.cols .col figure.align-left, .cols .col figure.align-right { float: none; max-width: 100%; margin: 0 0 1rem; }

.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 11rem), 1fr)); margin: 1.5rem 0 2.5rem; clear: both; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

.embed { position: relative; margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); clear: both; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-video { aspect-ratio: 16/9; max-width: 56rem; }
.embed-map { height: var(--h, 380px); }
.page-body iframe:not(.embed iframe) { border: 0; width: 100%; max-width: 100%; }

/* Link tiles: large photo cards that lead to sub-pages (Residential, Automotive, Commercial, Photos…) */
.link-tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin: 2rem 0 2.5rem; clear: both; }
.page-body a.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--brand); text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.06); transition: transform .2s, box-shadow .2s; isolation: isolate; }
.page-body a.tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,20,0) 40%, rgba(10,15,20,.85) 100%); z-index: 0; }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.25rem; color: #fff; font: 700 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.2 var(--font-head); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tile-label::after { content: "→"; flex-shrink: 0; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-size: 1.15rem; text-shadow: none; transition: transform .2s; }
.page-body a.tile:hover, .page-body a.tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.page-body a.tile:hover img, .page-body a.tile:focus-visible img { transform: scale(1.05); }
.tile:hover .tile-label::after, .tile:focus-visible .tile-label::after { transform: translateX(3px); }
/* balanced rows: 2 per row on tablets; on desktops 3 per row, 4 tiles = 2×2, 5 tiles = 2 large + 3 */
@media (min-width: 700px) {
  .link-tiles { grid-template-columns: repeat(6, 1fr); }
  .link-tiles > .tile { grid-column: span 3; }
  .link-tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
@media (min-width: 1000px) {
  .link-tiles > .tile, .link-tiles > .tile:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .link-tiles:has(> .tile:nth-child(4):last-child) > .tile { grid-column: span 3; }
  .link-tiles:has(> .tile:nth-child(5):last-child) > .tile:nth-child(-n+2) { grid-column: span 3; }
  .link-tiles:has(> .tile:nth-child(2):last-child) > .tile { grid-column: span 3; }
}

/* Home page: the three service tiles, each with quick links underneath */
.link-tiles.home-services { margin: 0; grid-template-columns: 1fr; gap: 2rem 1.5rem; }
.page-body:not(.home-body) .link-tiles.home-services { margin: 1.75rem 0 3rem; }
.home-services .tile-group { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.home-services .tile-group > a.tile { aspect-ratio: 4 / 3; grid-column: auto; }
/* identical on every page: override the regular list styling used inside page content */
.page-body ul.tile-links, .tile-links { list-style: none; margin: 0; padding: 0; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.page-body .tile-links li { margin: 0; padding: 0; }
.page-body .tile-links li::marker { content: none; }
.tile-links a { display: inline-block; padding: .4rem .85rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand); font-size: .92rem; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.tile-links a:hover, .tile-links a:focus-visible { background: #fff; border-color: var(--gold); color: var(--accent-dark); }
@media (min-width: 700px) and (max-width: 999.98px) { .home-services .tile-group > a.tile { aspect-ratio: 16 / 9; } }
@media (min-width: 1000px) { .link-tiles.home-services { grid-template-columns: repeat(3, 1fr); } .link-tiles.home-services > .tile-group { grid-column: auto; } }

/* Slideshow (rebuilt from Weebly slideshows; controls are added by site.js) */
.slideshow { position: relative; margin: 1.5rem 0 2.5rem; max-width: 56rem; clear: both; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius); background: #111820; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0 !important; scroll-snap-align: start; position: relative; }
.slide a { display: block; aspect-ratio: 4 / 3; }
.slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 0 !important; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 2.5rem 1.25rem 1rem; color: #fff !important; text-align: left !important; font-size: .98rem !important; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.ss-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--brand); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.ss-btn:hover { background: #fff; }
.ss-prev { left: .75rem; } .ss-next { right: .75rem; }
.ss-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .75rem; }
.ss-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: #c9ced4; cursor: pointer; }
.ss-dots button[aria-current="true"] { background: var(--accent); }
.ss-dots button::after { content: ""; display: block; margin: -16px; width: 44px; height: 44px; }
.ss-count { position: absolute; top: .75rem; right: .75rem; background: rgba(0,0,0,.6); color: #fff; font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; z-index: 2; }
.ss-pause { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; cursor: pointer; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,18,.92); display: grid; place-items: center; padding: 3.5rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius-sm); }
.lightbox p { color: #fff; text-align: center; margin: .75rem 0 0; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; min-width: min(80vw, 600px); min-height: 40vh; justify-content: center; }
.lightbox.loading figure::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; animation: lb-spin .8s linear infinite; }
.lightbox.loading img { display: none; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }

/* ----- News -------------------------------------------------------------- */
.post-list { display: grid; gap: 1.5rem; max-width: 56rem; }
.post-card { display: grid; gap: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
@media (min-width: 700px) { .post-card:has(.post-card-img) { grid-template-columns: 14rem 1fr; } }
.post-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.post-card h2 { font-size: 1.4rem; margin: .2rem 0 .5rem; }
.post-card h2 a { color: var(--brand); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-dark); }
.post-card time { font-size: .9rem; color: var(--muted); }
.post-card p { margin-bottom: .6rem; color: var(--ink-2); }
.post-card .more { font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.pager { display: flex; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.pager span { background: var(--brand); color: #fff; border-color: var(--brand); }
.post-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr) 20rem; } }
.post-aside { padding-block: 3rem; }
.post-aside h2 { font-size: 1.3rem; }
.post-aside ul { list-style: none; padding: 0; margin: 0; }
.post-aside li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.post-aside a { font-weight: 600; text-decoration: none; color: var(--brand); display: block; line-height: 1.4; }
.post-aside time { font-size: .85rem; color: var(--muted); }

/* ----- Testimonials ------------------------------------------------------ */
.testimonials { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin: 1.5rem 0; }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; }
.testimonial .stars { color: #d99a1e; letter-spacing: .15em; font-size: 1.15rem; }
.testimonial blockquote { margin: .75rem 0 1rem; padding: 0; border: 0; background: none; font-size: 1.05rem; color: var(--ink-2); flex: 1; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { font-weight: 700; color: var(--brand); }
.testimonial figcaption span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ----- Reviews page ------------------------------------------------------ */
.trust-band { background: var(--brand); color: #dfe5eb; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.trust-band .feature { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.trust-band .feature strong { color: #f2c879; }
.stars { color: #e3a21a; letter-spacing: .12em; font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.stars-off { color: #d5d9de; }
.review-spotlight { position: relative; margin: 0 auto 3rem; max-width: 60rem; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.5rem, 1rem + 4vw, 4rem); border-radius: calc(var(--radius) * 1.5); background: linear-gradient(135deg, #fff8ec 0%, #fff 60%); border: 1px solid #f0e2c6; box-shadow: var(--shadow); text-align: center; overflow: hidden; }
.spot-mark { position: absolute; top: -1.5rem; left: 1rem; font: 800 11rem/1 var(--font-head); color: var(--gold); opacity: .18; pointer-events: none; }
.review-spotlight blockquote { margin: 0; padding: 0; border: 0; background: none; }
.review-spotlight blockquote p { font: 600 clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem)/1.45 var(--font-head); color: var(--brand); margin: 0 0 1.5rem; text-wrap: balance; }
.review-spotlight figcaption { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.review-spotlight figcaption .stars { font-size: 1.4rem; }
.review-spotlight figcaption strong { font-size: 1.1rem; color: var(--brand); }
.review-spotlight figcaption span:not(.stars):not(.stars-off) { color: var(--muted); font-size: .95rem; }
.review-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2rem; }
.review-filters button { font: 600 .98rem var(--font-body); min-height: 44px; padding: .5rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.review-filters button:hover { border-color: var(--gold); }
.review-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.review-wall { columns: 3 19rem; column-gap: 1.5rem; }
.review-card { break-inside: avoid; display: inline-flex; flex-direction: column; width: 100%; margin: 0 0 1.5rem; padding: 1.5rem 1.5rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: box-shadow .2s, transform .2s; }
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.review-card[hidden] { display: none; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.review-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: .2rem .65rem; border-radius: 999px; background: var(--gold-soft); color: #7a5418; }
.tag-auto { background: #e8f1fb; color: #1d4f86; }
.tag-home { background: #eaf6ee; color: #1d6b3d; }
.tag-commercial { background: #efeefb; color: #4b3d9b; }
.tag-treatments { background: #fbeee8; color: #8d3a12; }
.review-card blockquote { margin: 0; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }
.review-card blockquote p { margin: 0; }
.review-card blockquote p::before { content: "“"; } .review-card blockquote p::after { content: "”"; }
.review-card blockquote.clamped p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { align-self: flex-start; margin-top: .5rem; padding: .25rem 0; background: none; border: 0; color: var(--accent-dark); font: 700 .95rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.review-card figcaption { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--font-head); color: #fff; background: linear-gradient(135deg, var(--gold), var(--accent)); }
.who { display: flex; flex-direction: column; line-height: 1.3; }
.who strong { color: var(--brand); }
.who span { color: var(--muted); font-size: .9rem; }
.story-cards .card { text-decoration: none; color: inherit; }
.story-card .card-body { gap: .25rem; }
.story-card .review-tag { align-self: flex-start; margin-bottom: .75rem; }
.story-card p { color: var(--ink-2); }
.story-who { font-weight: 700; color: var(--brand) !important; font-size: .95rem; }
.review-cta { background: linear-gradient(135deg, #fff8ec, #fff); border-top: 1px solid #f0e2c6; }
.review-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-start; }
@media (min-width: 900px) { .review-cta-actions { justify-content: flex-end; } }

/* ----- Forms ------------------------------------------------------------- */
.cms-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--shadow); max-width: 56rem; margin: 1.5rem 0 2rem; }
.form-grid { display: grid; gap: 1.25rem 1.5rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; color: var(--brand); padding: 0; }
.field .req, .form-note .req { color: var(--err); }
.cms-form input[type=text], .cms-form input[type=email], .cms-form input[type=tel], .cms-form input[type=number], .cms-form input[type=date], .cms-form select, .cms-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #c5ccd3; border-radius: 10px; padding: .75rem .9rem; min-height: 50px; transition: border-color .15s, box-shadow .15s;
}
.cms-form textarea { min-height: 140px; resize: vertical; }
.cms-form input:focus, .cms-form select:focus, .cms-form textarea:focus { border-color: var(--link); box-shadow: 0 0 0 4px rgba(11, 92, 143, .15); outline: none; }
.field .split, .field .address { display: grid; gap: .75rem; }
@media (min-width: 560px) { .field .split { grid-template-columns: 1fr 1fr; } .field .address { grid-template-columns: 2fr 1fr 1fr; } .addr-line1, .addr-line2 { grid-column: 1 / -1; } }
.field .split label, .field .address label { font-weight: 500; font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; gap: .25rem; }
.choices { display: grid; gap: .4rem .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.choice { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; cursor: pointer; padding: .45rem .6rem; border-radius: 8px; line-height: 1.4; }
.choice:hover { background: var(--bg-soft); }
.choice input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--accent); flex-shrink: 0; }
.help { color: var(--muted); font-size: .88rem; }
.error { color: var(--err); font-weight: 600; font-size: .9rem; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--err) !important; }
.form-errors { background: #fef3f2; border: 1px solid #fecdca; color: var(--err); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.form-errors ul { margin: .5rem 0 0; }
.form-success { background: #ecfdf3; border: 1px solid #abefc6; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 1.5rem 0; max-width: 56rem; }
.form-success h3 { color: var(--ok); margin-top: 0; }
.form-note { font-size: .9rem; color: var(--muted); margin: 1.25rem 0 1rem; }
.form-heading { margin: 1rem 0 0; font-size: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hours { border-collapse: collapse; }
.hours th, .hours td { padding: .35rem 1.5rem .35rem 0; text-align: left; border: 0 !important; }
.hours th { font-weight: 600; }

/* ----- CTA band & footer ------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, #2a1d0c 0%, var(--brand) 60%); color: #fff; padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .25rem; }
.cta-band p { color: #dfe5eb; margin: 0; font-size: var(--fs-lead); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.site-footer { background: #121a22; color: #c3ccd5; font-size: .98rem; padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); padding-bottom: 3rem; }
.footer-logo { background: #fff; padding: .6rem .8rem; border-radius: 10px; height: auto; width: 200px; margin-bottom: 1rem; }
.footer-title { font-size: 1.05rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .menu li { margin-bottom: .5rem; }
.site-footer .menu a { color: #c3ccd5; text-decoration: none; }
.site-footer .menu a:hover { color: #fff; text-decoration: underline; }
.site-footer .submenu, .site-footer .sub-toggle { display: none; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem !important; }
.social a { display: inline-block; padding: .35rem .8rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .88rem; text-decoration: none; }
.social a:hover { background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0 6rem; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .menu { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (min-width: 900px) { .footer-bottom { padding-bottom: 1.25rem; } }

.mobile-actions { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
.mobile-actions a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem 0; font-size: .85rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.mobile-actions a.primary { background: var(--accent); color: #fff; }
.mobile-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .mobile-actions { display: none; } }

.back-link { margin-top: 2.5rem; }

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .mobile-actions, .promo-bar, .admin-bar { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero h1 { color: #000; }
}
