/* generated by site.py render; put site-specific rules in css/custom.css */
:root {
  --color-bg: #f7f5ef;
  --color-text: #1f2a1f;
  --color-surface-alt: #ecebe4;
  --color-tint: #e8e9e1;
  --color-muted: #62695e;
  --color-primary: #506f4f;
  --color-primary-hover: #455f44;
  --color-on-primary: #ffffff;
  --color-accent: #9b4c34;
  --color-accent-vivid: #b85a3d;
  --color-on-accent: #ffffff;
  --color-accent-soft: #e9d3c8;
  --color-dark: #192530;
  --color-on-dark: #ffffff;
  --color-border: #d9d9d2;
  --color-hero-cta: #f7f5ef;
  --color-on-hero-cta: #506f4f;
  --font-heading: "Cormorant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 24 L24 0' stroke='%239b4c34' stroke-width='1' opacity='.25'/%3E%3C/svg%3E");
  --scrim-strong: 0.8;
  --scrim-soft: 0.6;
  --scrim-center: 0.62;
}
/* Base styles. Plain CSS, mobile first, checked at 390px and 1440px.
   Colors, fonts, and the motif come from :root above (site.py render).
   Style axes are data attributes on <body>; each axis value below changes a few variables or rules. */

:root {
  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px; --radius-btn: 6px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08); --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
  --card-border: 1px solid var(--color-border);
  --container: 1200px; --gutter: 20px; --section-y: clamp(3rem, 6vw, 5.5rem); --gap: 1.25rem;
  --h1: clamp(2.1rem, 5.2vw, 3.6rem); --h2: clamp(1.6rem, 3.4vw, 2.4rem);
}

/* Axis: radius */
[data-radius="sharp"] { --radius-sm: 0; --radius: 0; --radius-lg: 0; --radius-btn: 0; }
[data-radius="soft"] { --radius-sm: 4px; --radius: 8px; --radius-lg: 12px; --radius-btn: 4px; }
[data-radius="round"] { --radius-sm: 10px; --radius: 18px; --radius-lg: 28px; --radius-btn: 12px; }
[data-radius="pill"] { --radius-sm: 12px; --radius: 22px; --radius-lg: 32px; --radius-btn: 999px; }
/* Axis: density */
[data-density="compact"] { --section-y: clamp(2.25rem, 4.5vw, 3.75rem); --gap: 1rem; }
[data-density="airy"] { --section-y: clamp(4rem, 8vw, 7.5rem); --gap: 1.75rem; }
/* Axis: elevation */
[data-elevation="flat"] { --shadow: none; --shadow-lg: none; }
[data-elevation="hairline"] { --shadow: none; --shadow-lg: 0 0 0 1px var(--color-border); }
[data-elevation="soft"] { --card-border: 1px solid transparent; }
[data-elevation="lifted"] { --shadow: 0 10px 30px rgba(15, 23, 42, 0.14); --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22); --card-border: 1px solid transparent; }
[data-elevation="lifted"] .card { transition: transform 0.2s; }
[data-elevation="lifted"] .card:hover { transform: translateY(-4px); }
/* Axis: buttons */
[data-buttons="rect"] { --radius-btn: 0; }
[data-buttons="rounded"] { --radius-btn: 8px; }
[data-buttons="pill"] { --radius-btn: 999px; }
[data-buttons="chunky"] { --radius-btn: 4px; }
[data-buttons="chunky"] .btn--primary, [data-buttons="chunky"] .btn--accent, [data-buttons="chunky"] .btn--hero { box-shadow: 4px 4px 0 var(--color-text); }
[data-buttons="chunky"] .btn--primary:hover, [data-buttons="chunky"] .btn--accent:hover, [data-buttons="chunky"] .btn--hero:hover { box-shadow: 2px 2px 0 var(--color-text); transform: translate(2px, 2px); }
/* Axis: heading style */
[data-headings="caps"] h1, [data-headings="caps"] h2 { text-transform: uppercase; letter-spacing: 0.02em; }
[data-headings="caps"] { --h1: clamp(1.9rem, 4.6vw, 3.2rem); --h2: clamp(1.4rem, 3vw, 2.1rem); }
[data-headings="editorial"] { --h1: clamp(2.4rem, 6.4vw, 4.4rem); --h2: clamp(1.8rem, 3.8vw, 2.8rem); }
[data-headings="editorial"] h1, [data-headings="editorial"] h2 { font-weight: 500; letter-spacing: -0.025em; }
[data-headings="editorial"] .eyebrow { text-transform: none; letter-spacing: 0; font-style: italic; font-size: 1rem; }
[data-headings="editorial"] .eyebrow::before { content: ""; display: inline-block; width: 2rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: 0.6rem; }
[data-headings="accent-underline"] .section__title::after, [data-headings="accent-underline"] .about__copy h2::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: 0.6rem; border-radius: 2px; background: var(--color-accent-vivid); }
[data-headings="accent-underline"] .section__head--center .section__title::after, [data-headings="accent-underline"] .about--centered h2::after { margin-left: auto; margin-right: auto; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; overflow-wrap: anywhere; }
h1 { font-size: var(--h1); letter-spacing: -0.02em; }
h2 { font-size: var(--h2); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 3px solid var(--color-accent-vivid); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--color-primary); color: var(--color-on-primary); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* Layout and tones */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-surface-alt); }
.section--tint { background: var(--color-tint); }
.section--dark { background: var(--color-dark); color: var(--color-on-dark); }
.section--dark a:not(.btn) { color: var(--color-on-dark); }
.section__head { max-width: 720px; margin: 0 0 2.25rem; }
.section__lead { font-size: 1.125rem; color: var(--color-muted); }
.section--dark .section__lead, .section--dark .eyebrow { color: var(--color-on-dark); }
.section__more { margin: 2rem 0 0; font-weight: 600; }
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.6rem; }
.prose { max-width: 70ch; }
[data-motif]:not([data-motif="none"]) .hero { background-image: var(--motif); }

/* Dividers (axis: divider) */
.from-plain { --from: var(--color-bg); } .from-alt { --from: var(--color-surface-alt); } .from-tint { --from: var(--color-tint); } .from-dark { --from: var(--color-dark); }
.to-plain { --to: var(--color-bg); } .to-alt { --to: var(--color-surface-alt); } .to-tint { --to: var(--color-tint); } .to-dark { --to: var(--color-dark); }
.divider--wave, .divider--angle { background: var(--from); line-height: 0; }
.divider--wave svg, .divider--angle svg { width: 100%; height: 48px; }
.divider--wave path, .divider--angle path { fill: var(--to); }
.divider--line { max-width: var(--container); margin: 0 auto; border-top: 1px solid var(--color-border); }
.divider--motif { height: 36px; background-color: var(--from); background-image: var(--motif); background-repeat: repeat-x; background-position: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; max-width: 100%; gap: 0.5em; min-height: 48px; padding: 0.75em 1.4em; border-radius: var(--radius-btn); border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { color: var(--color-on-accent); filter: brightness(0.95); }
/* Photo heroes: a button color picked for contrast against the scrim (style.hero_cta). */
.btn--hero { background: var(--color-hero-cta); color: var(--color-on-hero-cta); }
.btn--hero:hover { color: var(--color-on-hero-cta); filter: brightness(0.95); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: currentColor; }
.section--dark .btn--outline, .hero--full .btn--outline, .hero--overlay-center .btn--outline { color: var(--color-on-dark); }
.btn--sm { min-height: 44px; padding: 0.5em 1em; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* Header (axis: header) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; color: var(--color-text); text-decoration: none; font: 700 1.15rem/1.2 var(--font-heading); margin-right: auto; }
.brand__logo { flex-shrink: 0; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius-sm); }
.header-phone { display: none; font-weight: 700; text-decoration: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: var(--color-text); position: relative; content: ""; }
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0.25rem; padding: 0.75rem var(--gutter) 1.25rem; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); }
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) { padding: 0.65rem 0; color: var(--color-text); text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--color-primary); }
.site-nav .btn { margin-top: 0.5rem; color: var(--color-on-primary); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.5rem; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .site-nav { flex-shrink: 0; }
  .site-nav a, .brand__name { white-space: nowrap; }
  .site-nav .btn { margin-top: 0; flex-shrink: 0; }
  /* site.js sets .is-compact when the nav does not fit next to the brand: back to the menu button. */
  .site-header.is-compact .nav-toggle { display: inline-flex; }
  .site-header.is-compact .site-nav { display: none; position: absolute; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 0.75rem var(--gutter) 1.25rem; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); }
  .site-header.is-compact .site-nav.is-open { display: flex; }
  .site-header.is-compact .site-nav .btn { margin-top: 0.5rem; }
  [data-header="centered"] .site-header__inner { flex-direction: column; justify-content: center; padding: 0.9rem 0; gap: 0.5rem; }
  [data-header="centered"] .brand { margin: 0 auto; }
  [data-header="split-cta"] .header-phone { display: inline-flex; order: 3; }
  [data-header="split-cta"] .site-nav { order: 2; }
  [data-header="minimal"] .site-nav a:not(.btn) { font-weight: 500; font-size: 0.95rem; }
  [data-header="minimal"] .site-header { border-bottom: 0; }
}
[data-header="bar"] .site-header { background: var(--color-dark); border-bottom: 0; }
[data-header="bar"] .brand, [data-header="bar"] .header-phone { color: var(--color-on-dark); }
[data-header="bar"] .nav-toggle { border-color: var(--color-on-dark); }
[data-header="bar"] .nav-toggle__bar, [data-header="bar"] .nav-toggle__bar::before, [data-header="bar"] .nav-toggle__bar::after { background: var(--color-on-dark); }
@media (min-width: 900px) { [data-header="bar"] .site-nav a:not(.btn) { color: var(--color-on-dark); } [data-header="bar"] .site-header.is-compact .site-nav a:not(.btn) { color: var(--color-text); } }

/* Image treatment (axis: image) on .media boxes */
.media { position: relative; }
.media img, .media video { width: 100%; object-fit: cover; }
[data-image="plain"] .media img { border-radius: 0; }
[data-image="rounded"] .media img, [data-image="rounded"] .media video { border-radius: var(--radius-lg); }
[data-image="arched"] .media img, [data-image="arched"] .media video { border-radius: 999px 999px var(--radius) var(--radius); }
/* An arch on a wide crop looks like a dome: wide hero images get rounded corners instead. */
[data-image="arched"] .hero--stacked-card .media img, [data-image="arched"] .hero--stacked-card .media video,
[data-image="arched"] .hero--editorial .media img, [data-image="arched"] .hero--editorial .media video { border-radius: var(--radius-lg); }
/* On phones a full arch eats half of a 4:3 hero crop: flatten it so more of the photo shows. */
@media (max-width: 899px) { [data-image="arched"] .hero__media img, [data-image="arched"] .hero__media video { border-radius: 50% 50% var(--radius) var(--radius) / 28% 28% var(--radius) var(--radius); } }
[data-image="framed"] .media { padding: 0 14px 14px 0; --pad-r: 14px; --pad-b: 14px; }
[data-image="framed"] .media::before { content: ""; position: absolute; inset: 14px 0 0 14px; background: var(--color-accent-soft); border-radius: var(--radius); }
[data-image="framed"] .media img { position: relative; }
[data-image="framed"] .media img, [data-image="framed"] .media video { border-radius: var(--radius); }
[data-image="duotone"] .media img, [data-image="duotone"] .media video { filter: grayscale(1) contrast(1.05); }
[data-image="duotone"] .media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--color-primary); mix-blend-mode: color; opacity: 0.6; pointer-events: none; }
[data-image="polaroid"] .media { background: #ffffff; padding: 10px 10px 34px; --pad-t: 10px; --pad-l: 10px; --pad-r: 10px; --pad-b: 34px; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.card__media.media { transform: none; }

/* Hero (heroLayout) */
.hero { --hero-bg: var(--color-bg); position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0; overflow: hidden; background-color: var(--hero-bg); background-repeat: repeat; }
/* Legibility layer: with a motif, the copy of a light hero sits on a solid panel in the hero color (site.py check
   verifies its contrast). Photo heroes get the scrim on .hero__bg::after instead. */
[data-motif]:not([data-motif="none"]) .hero:not(.hero--full):not(.hero--overlay-center):not(.hero--stacked-card) .hero__copy { position: relative; background: var(--hero-bg); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius-lg); }
[data-motif]:not([data-motif="none"]) .hero--page .hero__copy { display: inline-block; max-width: 100%; }
[data-motif]:not([data-motif="none"]) .hero--editorial .hero__copy { justify-self: start; max-width: 46rem; }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__subtitle { font-size: 1.2rem; color: var(--color-muted); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__media { position: relative; }
.hero__media img, .hero__media video { aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
/* The hero video lies exactly over the poster image, inside the image treatment padding. */
.hero__media video { position: absolute; top: var(--pad-t, 0px); left: var(--pad-l, 0px); width: calc(100% - var(--pad-l, 0px) - var(--pad-r, 0px)); height: calc(100% - var(--pad-t, 0px) - var(--pad-b, 0px)); z-index: 1; }
.hero__bg video { position: absolute; inset: 0; height: 100%; }
@media (min-width: 900px) {
  .hero--split .hero__inner, .hero--framed .hero__inner { grid-template-columns: 1.05fr 1fr; }
  .hero--split-reverse .hero__inner { grid-template-columns: 1fr 1.05fr; }
  .hero--split-reverse .hero__media { order: -1; }
  .hero--editorial .hero__inner { grid-template-columns: 1fr; }
  .hero--editorial .hero__title { max-width: 18ch; }
  .hero--editorial .hero__media { margin-left: 18%; }
}
@media (min-width: 900px) { .hero--editorial .hero__media img { aspect-ratio: 21 / 9; } }
.hero--framed { --hero-bg: var(--color-surface-alt); }
.hero--stacked-card .hero__inner { grid-template-columns: 1fr; gap: 0; }
.hero--stacked-card .hero__media { order: -1; }
/* Wide crops only on desktop; on a phone a 16:7 image is a thin strip under the card. */
@media (min-width: 900px) { .hero--stacked-card .hero__media img { aspect-ratio: 16 / 7; } }
.hero--stacked-card .hero__copy { position: relative; z-index: 1; margin: -3rem 1rem 0; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 760px; }
.hero--full, .hero--overlay-center { min-height: min(86vh, 760px); display: flex; align-items: center; color: var(--color-on-dark); background: var(--color-dark); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--scrim-center)); }
@media (min-width: 900px) { .hero--full .hero__bg::after { background: linear-gradient(90deg, rgba(0, 0, 0, var(--scrim-strong)), rgba(0, 0, 0, var(--scrim-soft))); } }
.hero--full .hero__inner, .hero--overlay-center .hero__inner { position: relative; z-index: 1; }
.hero--full .hero__subtitle, .hero--full .eyebrow, .hero--overlay-center .hero__subtitle, .hero--overlay-center .eyebrow { color: var(--color-on-dark); }
.hero--full .hero__copy { max-width: 680px; }
.hero--overlay-center .hero__copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero--overlay-center .hero__subtitle { margin-left: auto; margin-right: auto; }
.hero--overlay-center .hero__ctas { justify-content: center; }
.hero--page { --hero-bg: var(--color-surface-alt); padding: clamp(2.5rem, 6vw, 4rem) 0; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } .btn:hover { transform: none; } html { scroll-behavior: auto; } }

/* Cards: services grid, icon grid, credentials */
.cards { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--color-bg); color: var(--color-text); border: var(--card-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__media { margin: -1.5rem -1.5rem 1.25rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__media img { aspect-ratio: 4 / 3; }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--color-tint); color: var(--color-primary); margin-bottom: 1rem; }
.card__icon svg { width: 24px; height: 24px; }
.card__title { margin-bottom: 0.4rem; }
.card p { color: var(--color-muted); }
.card > :last-child { margin-bottom: 0; }
.card__price { font-weight: 700; color: var(--color-text); margin-top: auto; }

/* Services rows */
.rows { display: grid; gap: 2.5rem; }
.row { display: grid; gap: 1.5rem; align-items: center; }
.row img { aspect-ratio: 4 / 3; }
.rows--text { gap: 0; border-top: 1px solid var(--color-border); }
.row--text { padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.row--text .row__copy { display: grid; gap: 0.35rem; }
.row--text h3, .row--text p { margin: 0; }
.row--text p { color: var(--color-muted); }
@media (min-width: 900px) { .row--text .row__copy { grid-template-columns: minmax(220px, 1fr) 2fr; column-gap: 2.5rem; align-items: baseline; } }
@media (min-width: 900px) { .row:not(.row--text) { grid-template-columns: 1fr 1fr; gap: 3rem; } .row:nth-child(even) .row__media { order: 2; } }

/* Feature checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
@media (min-width: 768px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 900px) { .checklist--3 { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; } }
.checklist li strong { display: block; margin-bottom: 0.15rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--color-primary); }
.checklist li::after { content: ""; position: absolute; left: 0.38rem; top: 0.5em; width: 0.32rem; height: 0.6rem; border: solid var(--color-on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats--stack { grid-template-columns: repeat(2, 1fr); text-align: left; }
.stat__value { display: block; overflow-wrap: anywhere; font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-heading); color: var(--color-primary); }
.stat__label { color: var(--color-muted); }
.section--dark .stat__value, .section--dark .stat__label { color: var(--color-on-dark); }
.stats-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .stats-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.stats-split__media img { aspect-ratio: 4 / 3; }

/* Testimonials */
.quotes { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 1.5rem; border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); border: var(--card-border); box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quote figcaption { color: var(--color-muted); }
.quote figcaption strong { color: var(--color-text); }
.quote__rating { color: var(--color-accent); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.quote--feature { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.3rem; border: 0; box-shadow: none; background: transparent; color: inherit; }
.quotes--stack { grid-template-columns: 1fr; max-width: 760px; }
@media (min-width: 900px) { .quotes--stack { grid-template-columns: 1fr; } .quotes--stack .quote:nth-child(even) { margin-left: 3rem; } }

/* Credentials */
.logo-strip { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; }
.logo-strip img { max-height: 56px; width: auto; filter: grayscale(1); opacity: 0.85; }

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
.about--centered { text-align: center; justify-items: center; }
.about--centered .prose { margin: 0 auto; }
.about__media img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .about--split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* Gallery */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery__item { margin: 0; }
.gallery__item a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s; }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { font-size: 0.9rem; color: var(--color-muted); margin-top: 0.4rem; }
.section--dark .gallery__item figcaption { color: var(--color-on-dark); }
@media (min-width: 900px) {
  .gallery--n4.gallery--uniform { grid-template-columns: repeat(4, 1fr); }
  .gallery--n5.gallery--uniform .gallery__item:first-child { grid-column: span 2; }
  .gallery--n5.gallery--uniform .gallery__item:first-child img { aspect-ratio: auto; height: 100%; }
  .gallery--magazine .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery--magazine .gallery__item:first-child img { height: 100%; }
  .gallery--magazine.gallery--n4 .gallery__item:first-child { grid-column: span 3; grid-row: auto; }
  .gallery--magazine.gallery--n4 .gallery__item:first-child img { aspect-ratio: 21 / 9; }
  .gallery--magazine.gallery--n5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) {
  .gallery--n3:not(.gallery--masonry) .gallery__item:first-child, .gallery--n5:not(.gallery--masonry) .gallery__item:first-child { grid-column: span 2; }
  .gallery--n3:not(.gallery--masonry) .gallery__item:first-child img, .gallery--n5:not(.gallery--masonry) .gallery__item:first-child img { aspect-ratio: 16 / 9; }
}
.gallery--masonry { display: block; columns: 2 200px; column-gap: 1rem; }
.gallery--masonry .gallery__item { break-inside: avoid; margin-bottom: 1rem; }
.gallery--masonry .gallery__item img { aspect-ratio: auto; }

/* Before / after */
.ba-list { display: grid; gap: 2rem; }
.ba { margin: 0; }
.ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ba__pair { display: grid; gap: 1rem; }
@media (min-width: 768px) { .ba--side .ba__pair { grid-template-columns: 1fr 1fr; } }
.ba__pane, .ba__frame { position: relative; }
.ba__label { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--color-dark); color: var(--color-on-dark); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; }
.ba__label--after { left: auto; right: 0.75rem; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); pointer-events: none; }
.ba__caption { margin-top: 0.5rem; color: var(--color-muted); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); padding: 0 1.25rem; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 600; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 0.85rem; font-size: 1.4rem; line-height: 1; color: var(--color-primary); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { color: var(--color-muted); }

/* CTA and contact form */
.cta { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .cta--split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.cta--card { max-width: 760px; margin: 0 auto; background: var(--color-bg); color: var(--color-text); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cta--card .contact-form { box-shadow: none; padding: 0; }
.cta--band { text-align: center; justify-items: center; gap: 0; }
.cta--band p { max-width: 60ch; font-size: 1.125rem; }
.cta--band .hero__ctas { justify-content: center; margin-top: 0.75rem; }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.5rem; font-weight: 600; }
.contact-form { background: var(--color-bg); color: var(--color-text); border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; box-shadow: var(--shadow-lg); }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; color: var(--color-text); background: var(--color-bg); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--color-accent-vivid); outline-offset: 1px; border-color: var(--color-primary); }
.contact-form__status { margin: 0; font-weight: 600; }

/* Contact details, hours, map */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-details strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.section--dark .contact-details strong { color: var(--color-on-dark); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0.35rem 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.hours td:last-child { text-align: right; padding-left: 1rem; }
.map__frame iframe { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius-lg); }
.map__address { font-weight: 600; }
.map--split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .map--split { grid-template-columns: 1fr 1.4fr; gap: 3rem; } }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-on-dark); padding: 3rem 0 1.5rem; }
main:has(> .section--dark:last-child) + .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-footer a { color: var(--color-on-dark); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.site-footer nav, .site-footer__social { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer address { font-style: normal; }
.site-footer .hours td { border-color: rgba(255, 255, 255, 0.2); }
.site-footer__name { font: 700 1.2rem/1.2 var(--font-heading); margin-bottom: 0.3rem; }
.site-footer__heading { font-weight: 700; margin-bottom: 0.5rem; }
.site-footer__legal { margin-top: 2rem; font-size: 0.9rem; }

/* Sticky mobile call bar */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 0.5rem; padding: 0.6rem var(--gutter); background: var(--color-bg); border-top: 1px solid var(--color-border); }
.call-bar .btn { flex: 1; }
body.has-call-bar { padding-bottom: 72px; }
@media (min-width: 900px) { .call-bar { display: none; } body.has-call-bar { padding-bottom: 0; } }

/* Lightbox (built by site.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); }
.lightbox__dialog { position: relative; max-width: min(92vw, 1100px); }
.lightbox__img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__caption { color: #ffffff; text-align: center; margin-top: 0.6rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(0, 0, 0, 0.6); color: #ffffff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox__close { top: -56px; right: 0; }
.lightbox__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 8px; top: 50%; transform: translateY(-50%); }

.not-found { text-align: center; }

.contact-list a, .contact-details, .site-footer address, .site-footer a, .map__address { overflow-wrap: anywhere; }
