/* ============================================================
   Bath Chauffeurs: main stylesheet (v9 design, mahogany and sand)
   Ported from new-site/site/assets/site.css (the approved mockup).

   Ivory pages with dark bookends: a full-screen opening under a
   transparent header, the fleet room, the CTA band, the closing
   and the footer. Brand colours and the two font families are
   printed by the Customizer before this file (inc/customizer.php);
   everything else derives from them here.

   Sections:
   1  Tokens          9  Openings (hero, page banner, page head)
   2  Reset + base   10  Load sequence + uncover
   3  Type           11  Section rhythm, schemes, spacing, focus
   4  Dark grounds   12  Blocks
   5  Buttons, links 13  Quote form (Gravity Forms)
   6  Corners        14  Closing + footer
   7  Header         15  Phone dialog, mobile quote bar
   8  Mobile menu    16  Reduced motion
   ============================================================ */

/* ===== 1 TOKENS ===== */
:root {
  /* Fallbacks only: the Customizer prints the live values first. */
  --deep: #2C190B; --dark: #442712; --light: #FBF8EE; --light2: #DACCB2; --accent: #DACCB2;
  --ink: #3A2A1D; --muted: #6B5B4A; --orn: #8B7965;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --btn: var(--dark);
  --btn-text: var(--light);
  --alt: color-mix(in srgb, var(--light) 66%, var(--light2));
  --field: color-mix(in srgb, var(--light) 55%, #FFFFFF);
  --line: color-mix(in srgb, var(--dark) 16%, transparent);          /* dividers (decorative) */
  --field-line: color-mix(in srgb, var(--dark) 55%, transparent);    /* form field edges: 3.3:1 on ivory (WCAG 1.4.11) */
  --on-dark: var(--light);
  --on-dark-muted: color-mix(in srgb, var(--light) 76%, var(--dark));
  --cta-bg: var(--accent);
  --cta-fg: var(--deep);
  --heading: var(--dark);

  --wrap: 1320px;
  --pad: clamp(1.25rem, 3.6vw, 2.75rem);
  --hh: 104px;
  --hh-compact: 74px;
  --admin: 0px;
  --ease: cubic-bezier(.2,.7,.1,1);
}
@media (max-width: 980px) { :root { --hh: 78px; --hh-compact: 66px; } }
.admin-bar { --admin: 32px; }
@media (max-width: 782px) { .admin-bar { --admin: 46px; } }

/* ===== 2 RESET + BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh-compact) + var(--admin) + 1rem); }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--light); -webkit-font-smoothing: antialiased; }
body.has-solid-header { padding-top: var(--hh); }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; overflow: visible; }
svg text { fill: currentColor; font-family: var(--display); }
a { color: inherit; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
.nowrap { white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Screen-reader text (lesson #9). .sr is the mockup's alias. */
.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--light); color: var(--dark); padding: .7rem 1.1rem; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: calc(var(--admin) + 1rem); }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

/* Content resets at zero specificity (lesson #34). */
:where(.site-main) :where(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* ===== 3 TYPE ===== */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--heading); text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.5rem, 2vw, 1.85rem); line-height: 1.15; }
h4 { font-size: 1.35rem; line-height: 1.2; }
.section-intro { margin-top: 1.1rem; max-width: 64ch; color: var(--muted); }
.screen-reader-text + .section-intro { margin-top: 0; }

/* Rich text from the editor (paragraphs, lists, links). */
.rich > * + * { margin-top: 1rem; }
.rich ul { list-style: disc; padding-left: 1.3rem; }
.rich ol { list-style: decimal; padding-left: 1.3rem; }
.rich li + li { margin-top: .35rem; }
.rich a, .prose a { color: var(--dark); font-weight: 500; text-decoration: underline; text-decoration-color: var(--orn); text-decoration-thickness: 1px; text-underline-offset: .36em; }
.rich a:hover, .prose a:hover { text-decoration-thickness: 2px; }

/* ===== 4 DARK GROUNDS: the opening, fleet room, CTA band, closing, footer, mobile menu ===== */
.on-dark { color: var(--on-dark-muted); --heading: var(--on-dark); }
.on-dark :focus-visible { outline-color: var(--accent); }
.on-dark .rich a { color: var(--on-dark); text-decoration-color: var(--accent); }

/* ===== 5 BUTTONS AND LINKS: the slanted sweep on hover and focus ===== */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .9rem 2rem; font: 500 .98rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; text-align: center; cursor: pointer;
  background: var(--btn); color: var(--btn-text); border: 1px solid var(--btn); border-radius: 0;
  --s: 12px; --sweep: var(--accent); --sweep-edge: var(--light); --sweep-fg: var(--deep);
  transition: color .3s ease .12s; }
.btn::before, .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); transform: translateX(-101%);
  transition: transform .6s cubic-bezier(.7,0,.2,1); }
.btn::before { right: calc(-1 * var(--s) - 4px); background: var(--sweep-edge); transition-delay: .035s; }
.btn::after { right: calc(-1 * var(--s)); background: var(--sweep); }
.btn:hover, .btn:focus-visible { color: var(--sweep-fg); }
.btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after { transform: none; }
.btn:hover::before, .btn:focus-visible::before { transition-delay: 0s; }
.btn:hover::after, .btn:focus-visible::after { transition-delay: .035s; }
.on-dark .btn, .btn-accent { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); --sweep: var(--light); --sweep-edge: var(--dark); --sweep-fg: var(--deep); }
.btn-line, .on-dark .btn-line { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 55%, transparent); --sweep: var(--light); --sweep-edge: var(--accent); --sweep-fg: var(--deep); }
:where(.site-main) .btn-line:not(.on-dark *) { color: var(--dark); border-color: var(--dark); --sweep: var(--dark); --sweep-edge: var(--accent); --sweep-fg: var(--light); }
.link { color: var(--dark); font-weight: 500; text-decoration: underline; text-decoration-color: var(--orn); text-decoration-thickness: 1px; text-underline-offset: .36em; }
.link:hover { text-decoration-thickness: 2px; }
.on-dark .link { color: var(--on-dark); text-decoration-color: var(--accent); }
.actions { display: flex; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap; }

/* ===== 6 THE CORNER FLOURISH: once per page, on the main text block ===== */
.cornered { position: relative; padding: clamp(2.5rem, 5vw, 3.75rem) clamp(2rem, 5vw, 4rem); }
.cornered .corner { position: absolute; width: clamp(58px, 7vw, 86px); height: auto; color: var(--orn); }
.cornered .tl { top: 0; left: 0; }
.cornered .br { bottom: 0; right: 0; transform: rotate(180deg); }
@media (max-width: 600px) { .cornered { padding: 2.75rem 1rem; } .cornered .corner { width: 46px; } }

/* ===== 7 HEADER: crest in the centre, over the opening ===== */
.site-header { position: fixed; inset: var(--admin) 0 auto; z-index: 100; color: var(--on-dark); transition: background-color .5s ease, box-shadow .5s ease; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 70%, transparent), transparent); pointer-events: none; transition: opacity .5s ease; }
.site-header.is-solid { background: var(--deep); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.site-header.is-solid::before { opacity: 0; }
.header-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: var(--hh); transition: height .45s var(--ease); }
.site-header.is-solid .header-row { height: var(--hh-compact); }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav .sub-menu { display: none; }
.main-nav a { font-size: .95rem; color: var(--on-dark-muted); text-decoration: none; padding: .3rem 0; transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav a.is-section { color: var(--on-dark); }
.main-nav a[aria-current="page"], .main-nav a.is-section { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .5em; }
.crest-link { display: block; text-decoration: none; }
.crest { width: 230px; height: auto; color: var(--accent); transition: transform .45s var(--ease); transform-origin: 50% 50%; }
.site-header.is-solid .crest { transform: scale(.8); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1.6rem; }
.phone-btn { background: none; border: 0; font: 400 .95rem var(--sans); color: var(--on-dark-muted); text-decoration: none; cursor: pointer; padding: .4rem 0; }
.phone-btn:hover { color: var(--on-dark); }
.header-actions .btn { min-height: 44px; padding: .6rem 1.3rem; font-size: .92rem; background: transparent; color: var(--accent); border-color: var(--accent); --s: 10px; --sweep: var(--accent); --sweep-edge: var(--light); --sweep-fg: var(--deep); }
.menu-btn { display: none; justify-self: start; background: none; border: 1px solid color-mix(in srgb, var(--on-dark) 45%, transparent); color: var(--on-dark); font: 500 .9rem var(--sans); padding: .45rem .9rem; min-height: 44px; cursor: pointer; }
@media (max-width: 1100px) {
  .main-nav, .header-actions .phone-btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .crest { width: 180px; }
}
@media (max-width: 600px) { .header-actions { visibility: hidden; } .crest { width: 170px; } }

/* ===== 8 MOBILE MENU ===== */
.mobile-menu { position: fixed; inset: calc(var(--hh-compact) + var(--admin)) 0 0 0; z-index: 99; background: var(--deep); color: var(--on-dark); padding: 2rem var(--pad) 3rem; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu li, .mobile-menu .btn, .mobile-menu .phone-btn { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s var(--ease); }
.mobile-menu li:nth-child(2) { transition-delay: 55ms; }
.mobile-menu li:nth-child(3) { transition-delay: 110ms; }
.mobile-menu li:nth-child(4) { transition-delay: 165ms; }
.mobile-menu li:nth-child(5) { transition-delay: 220ms; }
.mobile-menu li:nth-child(n+6) { transition-delay: 275ms; }
.mobile-menu .btn { transition-delay: 330ms; }
.mobile-menu .phone-btn { transition-delay: 385ms; }
.mobile-menu.is-open li, .mobile-menu.is-open .btn, .mobile-menu.is-open .phone-btn { opacity: 1; transform: none; }
.mobile-menu nav a { display: block; padding: .55rem 0; font: 500 2.2rem/1.15 var(--display); color: var(--on-dark); text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.mobile-menu .sub-menu a { font-size: 1.6rem; padding-left: 1rem; }
.mobile-menu .btn { width: 100%; margin-top: 2.5rem; }
.mobile-menu .phone-btn { display: block; margin-top: 1.25rem; font-size: 1.05rem; }
body.menu-open { overflow: hidden; }

/* ===== 9 OPENINGS: full screen on home (photos crossfade), shorter on inner pages ===== */
.hero { position: relative; min-height: max(620px, 100svh); display: grid; place-items: center; overflow: hidden; background: var(--deep); text-align: center; isolation: isolate; }
.hero.is-inner { min-height: clamp(520px, 74svh, 760px); }
.slides { position: absolute; inset: 0; z-index: -2; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease; }
.slides img.is-on { opacity: 1; animation: drift 14s linear both; }
.slides.is-paused img { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 42% at 50% 54%, color-mix(in srgb, var(--deep) 58%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--deep) 66%, transparent) 0%, color-mix(in srgb, var(--deep) 30%, transparent) 34%, color-mix(in srgb, var(--deep) 36%, transparent) 64%, color-mix(in srgb, var(--deep) 90%, transparent) 100%); }
.hero.is-inner::after { background:
    radial-gradient(ellipse 62% 46% at 50% 55%, color-mix(in srgb, var(--deep) 68%, transparent), transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--deep) 66%, transparent) 0%, color-mix(in srgb, var(--deep) 34%, transparent) 34%, color-mix(in srgb, var(--deep) 40%, transparent) 64%, color-mix(in srgb, var(--deep) 88%, transparent) 100%); }
.hero-copy { padding: calc(var(--hh) + 2rem) var(--pad) 5.5rem; max-width: 64rem; }
.hero h1 { font-weight: 500; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.1; color: var(--on-dark); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; }
.hero h1 .caps { letter-spacing: .12em; text-transform: uppercase; }
.hero h1 .sub { display: block; margin-top: 1.1rem; font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.35; color: var(--accent); }
.hero.is-inner h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); max-width: 18em; margin: 0 auto; }
.hero .lead { margin: 1.3rem auto 0; max-width: 52ch; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--on-dark-muted); }
.hero .actions { margin-top: 2.4rem; justify-content: center; gap: 1rem 1.25rem; }
.hero .actions .link { color: var(--on-dark); }
.hero-pause { position: absolute; right: var(--pad); bottom: 1.75rem; background: none; border: 0; color: var(--on-dark-muted); font: 500 .85rem var(--sans); letter-spacing: .02em; cursor: pointer; padding: .5rem; min-height: 36px; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-dark) 40%, transparent); text-underline-offset: .35em; }
.hero-pause:hover { color: var(--on-dark); }
html:not(.js) .hero-pause { display: none; }
@media (max-width: 520px) { .hero .actions { flex-direction: column; align-items: stretch; } }

.under-hero { padding-top: 1.25rem; display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; }
.label { font-size: .93rem; line-height: 1.55; color: var(--muted); max-width: 72ch; }
.label strong { font-weight: 500; color: var(--dark); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .55rem; font-size: .93rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: var(--orn); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--dark); text-decoration: underline; text-underline-offset: .3em; }
.crumbs [aria-current="page"] { color: var(--dark); }

/* Page head (privacy, thank you, 404): no opening picture, the header is solid. */
.page-head { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); line-height: 1.08; max-width: 18em; }
.page-head .lead { margin-top: 1.1rem; max-width: 60ch; font-size: 1.15rem; color: var(--muted); }
.page-head .lead a { color: var(--dark); font-weight: 500; text-decoration-color: var(--orn); text-underline-offset: .3em; }
.page-head .crumbs { margin-top: 1.75rem; }
.page-head .actions { margin-top: 2rem; }

/* ===== 10 LOAD SEQUENCE: the crest draws (home), the picture fades up, the title rises ===== */
.crest .draw .d1 { --i: 1; } .crest .draw .d2 { --i: 2; } .crest .draw .d3 { --i: 3; } .crest .draw .d4 { --i: 4; } .crest .draw .d5 { --i: 5; }
.js .site-header .main-nav, .js .site-header .header-actions, .js .menu-btn { opacity: 0; }
.js .crest .draw path { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .crest .word { opacity: 0; }
.js .slides { opacity: 0; }
.js .hero h1 .ln > span { transform: translateY(110%); }
.js .hero h1 .sub, .js .hero .lead, .js .hero .actions, .js .hero-pause, .js .under-hero { opacity: 0; }
.is-loaded .crest .draw path { animation: draw 1.7s cubic-bezier(.45,.05,.25,1) forwards, ink .8s ease forwards; animation-delay: calc(var(--i, 0) * .08s + .15s), calc(var(--i, 0) * .08s + 1.6s); }
.is-loaded .crest .word { opacity: 1; transition: opacity 1s ease 1.1s; }
.is-loaded .slides { opacity: 1; transition: opacity 2.2s ease .5s; }
.is-loaded .site-header .main-nav, .is-loaded .site-header .header-actions, .is-loaded .menu-btn { opacity: 1; transition: opacity 1s ease 1.4s; }
.is-loaded .hero h1 .ln > span { transform: none; transition: transform 1.1s var(--ease) 1.2s; }
.is-loaded .hero h1 .ln + .ln > span { transition-delay: 1.32s; }
.is-loaded .hero h1 .sub { opacity: 1; transition: opacity 1s ease 1.7s; }
.is-loaded .hero .lead { opacity: 1; transition: opacity 1s ease 1.7s; }
.is-loaded .hero .actions, .is-loaded .hero-pause { opacity: 1; transition: opacity 1s ease 1.95s; }
.is-loaded .under-hero { opacity: 1; transition: opacity 1s ease 2.1s; }
/* Inner pages: a shorter sequence, and the header is simply there. */
.js .is-inner-page .site-header .main-nav, .js .is-inner-page .site-header .header-actions, .js .is-inner-page .menu-btn, .js .is-inner-page .crest .word { opacity: 1; transition: none; }
.is-loaded .is-inner-page .slides { transition-delay: 0s; transition-duration: 1.2s; }
.is-loaded .is-inner-page .hero h1 .ln > span { transition-delay: .45s; }
.is-loaded .is-inner-page .hero .lead { transition-delay: .8s; }
.is-loaded .is-inner-page .hero .actions { transition-delay: .95s; }
.is-loaded .is-inner-page .under-hero { transition-delay: 1.05s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { fill-opacity: 1; } }

/* Pictures are uncovered as they arrive (the clip sits on the image, not the observed wrapper). */
.js .uncover img { clip-path: inset(0 0 100% 0); transform: scale(1.06); }
.js .uncover.is-in img { clip-path: inset(0); transform: none; transition: clip-path 1.1s cubic-bezier(.6,.05,.25,1), transform 1.8s cubic-bezier(.15,.6,.2,1), opacity .7s ease; }

/* ===== 11 SECTION RHYTHM, SCHEMES, SPACING, IMAGE FOCUS ===== */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section.is-tight { padding: clamp(3.5rem, 6vw, 5rem) 0; }
.section.is-room { background: var(--dark); }
.scheme-alt { background: var(--alt); }
.scheme-dark { background: var(--dark); }
.section.pt-none, .cta-band.pt-none { padding-top: 0; }
.section.pb-none, .cta-band.pb-none { padding-bottom: 0; }
.section.pt-sm { padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.section.pb-sm { padding-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section.pt-lg { padding-top: clamp(6rem, 12vw, 10rem); }
.section.pb-lg { padding-bottom: clamp(6rem, 12vw, 10rem); }
/* Image focus: which part of a cropped photo stays in view (block fields, no inline styles). */
.fy-20 { --fy: 20%; } .fy-35 { --fy: 35%; } .fy-50 { --fy: 50%; } .fy-60 { --fy: 60%; } .fy-70 { --fy: 70%; } .fy-80 { --fy: 80%; }
.fx-35 { --fx: 35%; } .fx-50 { --fx: 50%; } .fx-65 { --fx: 65%; }
img[class*="fy-"], img[class*="fx-"] { object-position: var(--fx, 50%) var(--fy, 50%); }
/* Core blocks typed straight onto a page (outside a section block). */
.loose-block { padding-top: 2rem; padding-bottom: 2rem; }

/* ===== 12 BLOCKS ===== */
/* intro: a wide heading beside the text */
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.intro-grid h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.intro-grid .rich p { max-width: 64ch; color: var(--muted); font-size: 1.1rem; }
.intro-grid .actions { margin-top: 1.6rem; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* split-section */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split.is-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.is-reverse .split-media { order: -1; }
.split.is-text-only { grid-template-columns: minmax(0, 1fr); }
.split-text .rich { margin-top: 1.4rem; }
.split-text .rich > * + * { margin-top: 1.1rem; }
.split-text .rich p { max-width: 64ch; }
.split-text .actions { margin-top: 2rem; }
.split-media { overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.is-landscape img { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .split, .split.is-reverse { grid-template-columns: 1fr; } .split.is-reverse .split-media { order: 0; } .split-media img { aspect-ratio: 3 / 2; } }

/* cta-band */
.cta-band { background: var(--dark); padding: clamp(3rem, 5vw, 4rem) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.75rem 4rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.75rem, 2.6vw, 2.35rem); max-width: 22em; }
.cta-band p { margin-top: .6rem; max-width: 62ch; }

/* feature-grid: 2 x 2 */
.feature-grid { margin-top: clamp(2.25rem, 4vw, 3.25rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 3.5vw, 3rem) clamp(2.5rem, 6vw, 5.5rem); }
.feature-grid dt { font: 500 clamp(1.4rem, 1.8vw, 1.65rem)/1.2 var(--display); color: var(--heading); }
.feature-grid dd { margin-top: .5rem; color: var(--muted); max-width: 58ch; }
.on-dark .feature-grid dd { color: var(--on-dark-muted); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* service-tiles */
.tiles { margin-top: clamp(2.5rem, 4.5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.tile-media { display: block; overflow: hidden; }
.tile-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile h3 { margin-top: 1.4rem; font-size: clamp(1.8rem, 2.4vw, 2.2rem); line-height: 1.1; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; text-decoration-color: var(--orn); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tile p { margin-top: .6rem; color: var(--muted); max-width: 60ch; }
.tile .link { display: inline-block; margin-top: 1rem; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* vehicle-list (fleet page) */
.cars { display: grid; gap: clamp(4rem, 7vw, 6rem); }
.car-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.car-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.car-row:nth-child(even) .car-media { order: 2; }
.car-media { overflow: hidden; }
.car-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.car-row p { margin-top: 1rem; max-width: 60ch; }
.car-row .spec { margin-top: 1.5rem; display: grid; gap: .55rem; }
.car-row .spec div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .75rem; }
.car-row .spec dt { color: var(--muted); }
.car-row .spec dd { color: var(--dark); font-weight: 500; }
.car-row .actions { margin-top: 1.6rem; }
.more-fleet { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.cars:empty + .more-fleet, .more-fleet:first-child { margin-top: 0; }
.more-cars { margin-top: clamp(2.5rem, 4vw, 3.25rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 3.5vw, 3rem); }
.more-cars img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.more-cars .uncover { overflow: hidden; }
.more-cars h3 { margin-top: 1.2rem; }
.more-cars p { margin-top: .5rem; color: var(--muted); }
.more-cars .seats { color: var(--dark); font-weight: 500; }
@media (max-width: 900px) {
  .car-row, .car-row:nth-child(even) { grid-template-columns: 1fr; }
  .car-row:nth-child(even) .car-media { order: 0; }
  .more-cars { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .car-row .spec div { grid-template-columns: 7.5rem minmax(0, 1fr); } }

/* services-index (home) */
.svc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.svc-list ul { margin-top: clamp(2rem, 4vw, 3rem); }
.svc-item { padding: 1.3rem 0; }
.svc-item h3 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); line-height: 1.1; }
.svc-item h3 a { text-decoration: none; background: linear-gradient(var(--orn), var(--orn)) 0 100% / 0 1px no-repeat; padding-bottom: .1em; transition: color .35s ease, background-size .55s var(--ease); }
.svc-item.is-active h3 a { background-size: 100% 1px; }
.svc-list ul:hover .svc-item:not(.is-active) h3 a { color: var(--muted); }
.svc-item p { margin-top: .4rem; color: var(--muted); max-width: 62ch; }
.svc-thumb { display: none; }
.svc-preview { position: sticky; top: calc(var(--hh-compact) + var(--admin) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease, transform 1.2s var(--ease); transform: scale(1.03); }
.svc-preview img.is-active { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .svc-thumb { display: block; margin-bottom: 1.25rem; overflow: hidden; }
  .svc-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
  .svc-item h3 a { background-size: 0 1px; }
}

/* fleet-tabs (home, dark room) */
.fleet-title { max-width: 16em; }
.fleet-grid { margin-top: clamp(2.5rem, 4.5vw, 3.75rem); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
.stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage img[hidden] { display: none; }
.stage img.is-entering { animation: carIn .8s var(--ease); }
@keyframes carIn { from { opacity: 0; transform: translateX(2.5%); } to { opacity: 1; transform: none; } }
.side { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.car-tabs { position: relative; display: grid; gap: .2rem; padding-left: 1.4rem; }
.car-tabs .indicator { position: absolute; left: 0; top: 0; width: 2px; height: var(--h, 2.4rem); background: var(--accent); transform: translateY(var(--y, 0)); transition: transform .5s var(--ease), height .5s var(--ease); }
.car-tab { text-align: left; background: none; border: 0; padding: .45rem 0; font: 500 clamp(1.4rem, 1.9vw, 1.75rem)/1.15 var(--display); color: var(--on-dark-muted); cursor: pointer; transition: color .3s ease; }
.car-tab:hover, .car-tab[aria-selected="true"] { color: var(--on-dark); }
.car-panel p + p { margin-top: .8rem; }
.car-panel .fits { color: var(--on-dark); font-weight: 500; }
.car-panel .link { display: inline-block; margin-top: 1.6rem; }
.car-panel:not([hidden]) { animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fleet-note { margin-top: clamp(2.75rem, 5vw, 4rem); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 3rem; flex-wrap: wrap; }
.fleet-note p { max-width: 80ch; }
@media (max-width: 900px) { .fleet-grid { grid-template-columns: 1fr; } .side { gap: 1.75rem; } }

/* image-facts (home: regular clients) */
.regular-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.regular-img { overflow: hidden; }
.regular-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wall { margin-top: 1.4rem; font: 500 clamp(1.3rem, 1.75vw, 1.55rem)/1.5 var(--display); color: var(--heading); }
.facts { margin-top: 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.5rem; }
.facts dt { font-weight: 500; color: var(--heading); }
.facts dd { margin-top: .2rem; font-size: .97rem; color: var(--muted); }
.on-dark .facts dd { color: var(--on-dark-muted); }
.regular-grid .actions { margin-top: 2.5rem; }
@media (max-width: 900px) { .regular-grid { grid-template-columns: 1fr; } .regular-img img { aspect-ratio: 3 / 2; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* accordion */
.accordion { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font: 500 clamp(1.3rem, 1.7vw, 1.55rem)/1.25 var(--display); color: var(--heading); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--orn); border-bottom: 1.5px solid var(--orn); transform: rotate(45deg) translateY(-3px); transition: transform .3s ease; }
.accordion details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.accordion .answer { padding: 0 0 1.5rem; max-width: 70ch; color: var(--muted); }
.accordion .answer > * + * { margin-top: .8rem; }

/* prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 2.2vw, 1.95rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose ol { list-style: decimal; padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }

/* editor placeholder (block with nothing to show yet) */
.block-placeholder { padding: 2rem; border: 1px dashed var(--orn); color: var(--muted); font: 400 1rem/1.5 var(--sans); text-align: center; }

/* ===== 13 QUOTE FORM (Gravity Forms markup; GF's own CSS is off) ===== */
.quote-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.aside { position: sticky; top: calc(var(--hh-compact) + var(--admin) + 2rem); display: grid; gap: 2.25rem; }
.aside h2 { font-size: clamp(1.6rem, 2.2vw, 1.95rem); }
.aside .rich { margin-top: .7rem; color: var(--muted); }
.aside .rich > * + * { margin-top: .7rem; }
.aside p { color: var(--muted); }
.aside .contact-line { margin-top: 1rem; display: grid; gap: .3rem; }
.aside .contact-line + p { margin-top: .7rem; }
.aside .contact-line > a { color: var(--dark); font-weight: 500; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .aside { position: static; } }

.gform_wrapper { --gap-x: 1.5rem; }
.gform_wrapper .gform_heading, .gform_wrapper .gform_required_legend { display: none; }
.gform_wrapper .gform_validation_errors { margin-bottom: 2rem; padding: 1.1rem 1.25rem; border-left: 3px solid #9B2C1F; background: color-mix(in srgb, #9B2C1F 7%, var(--light)); color: var(--ink); }
.gform_wrapper .gform_validation_errors h2 { font: 500 1.05rem/1.4 var(--sans); color: #8A2618; }
.gform_wrapper .gform_validation_errors ol { margin-top: .5rem; padding-left: 1.2rem; list-style: disc; font-size: .95rem; }
.gform_wrapper .gform_validation_errors a { color: inherit; }
.gform_fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem var(--gap-x); }
.gfield { grid-column: 1 / -1; min-width: 0; border: 0; }
.gfield--width-half { grid-column: span 6; }
.gfield--width-third { grid-column: span 4; }
.gfield--width-quarter { grid-column: span 3; }
@media (max-width: 600px) { .gfield--width-half, .gfield--width-third, .gfield--width-quarter { grid-column: 1 / -1; } }
.gfield.gsection { margin-top: 1.5rem; padding-bottom: .1rem; }
.gfield.gsection:first-child { margin-top: 0; }
.gsection_title { font: 500 clamp(1.6rem, 2.2vw, 1.95rem)/1.15 var(--display); color: var(--heading); }
.gsection_description { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.gfield_label, .gfield legend.gfield_label, .gfield_label_before_complex { display: block; margin-bottom: .45rem; font-size: .95rem; font-weight: 500; color: var(--dark); padding: 0; }
.gfield_required { margin-left: .35rem; font-weight: 400; color: var(--muted); font-size: .85rem; }
.gfield_required_asterisk { color: var(--dark); }
.gfield_description { font-size: .88rem; color: var(--muted); }
.gfield_description:not(.validation_message):not(.gfield_validation_message) { margin-bottom: .45rem; }
.field_description_below .gfield_description { margin: .45rem 0 0; }
.gfield input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), .gfield select, .gfield textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: 0; transition: border-color .2s ease; }
.gfield textarea { min-height: 130px; resize: vertical; }
.gfield textarea.small { min-height: 110px; }
.gfield input:focus, .gfield select:focus, .gfield textarea:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 1px var(--dark); }
.gfield select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.gfield input[type="date"], .gfield input[type="time"] { appearance: none; }
.gfield_checkbox, .gfield_radio { display: grid; gap: .5rem; }
.gchoice { display: flex; gap: .7rem; align-items: center; }
.gchoice input { width: 20px; height: 20px; accent-color: var(--dark); flex: none; margin: 0; }
.gchoice label { font-size: .97rem; cursor: pointer; }
.hidden_label > .gfield_label, .hidden_label > legend.gfield_label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gfield_error input:not([type="checkbox"]), .gfield_error select, .gfield_error textarea { border-color: #9B2C1F; box-shadow: 0 0 0 1px #9B2C1F; }
.gfield_validation_message, .validation_message { margin-top: .45rem; font-size: .9rem; color: #8A2618; }
.gfield--type-html { font-size: .92rem; color: var(--muted); max-width: 70ch; }
.gfield--type-html a { color: var(--dark); font-weight: 500; text-decoration-color: var(--orn); text-underline-offset: .3em; }
.gform_footer { margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem; }
/* GF's range hint ("a number greater than or equal to 1") stays for screen readers; the input enforces it. */
.gfield--type-number .gfield_description.instruction:not(.validation_message) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gform_ajax_spinner { width: 22px; height: 22px; }
/* Hidden by GF's own CSS normally: the honeypot, hidden and admin-only fields. */
.gform_validation_container, .gfield--type-honeypot, .gform_hidden, .gfield_visibility_hidden, .gfield--type-hidden, .gform_wrapper .gf_invisible, .gform_wrapper .gfield_visibility_administrative { display: none !important; }
.gform_confirmation_message { padding: 1.5rem 0; font: 500 1.4rem/1.4 var(--display); color: var(--heading); }

/* ===== 14 CLOSING + FOOTER ===== */
.closing { background: var(--deep); padding: clamp(5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 6vw, 5rem); text-align: center; }
.closing .frame { width: min(100%, 440px); height: auto; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); color: var(--accent); }
.closing h2 { margin: 0 auto; max-width: 15em; }
.closing .intro-line { margin: 1.1rem auto 0; max-width: 62ch; }
.closing .actions { margin-top: 2.25rem; justify-content: center; gap: 1.25rem 2.25rem; }
.closing .phone-btn { color: var(--on-dark); font: 500 1rem var(--sans); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .34em; }
.closing .owner { margin: 2.75rem auto 0; max-width: 70ch; font-size: .95rem; }

.site-footer { background: var(--deep); color: var(--on-dark-muted); padding: 0 0 2rem; font-size: .95rem; }
.footer-inner { border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); padding-top: 3rem; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.site-footer .crest-small { width: 190px; height: auto; color: var(--accent); }
.footer-brand p, .footer-brand .textwidget { margin-top: 1.1rem; max-width: 34ch; }
.footer-brand .textwidget p { margin-top: 0; }
.footer-heading { font: 500 .95rem/1.4 var(--sans); color: var(--on-dark); }
.site-footer ul { margin-top: .9rem; display: grid; gap: .5rem; }
.footer-heading + nav ul, .footer-heading + div ul { margin-top: .9rem; }
.site-footer a, .site-footer .phone-btn { color: var(--on-dark-muted); text-decoration: none; font: inherit; padding: 0; }
.site-footer a:hover, .site-footer .phone-btn:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: .3em; }
.site-footer address { margin-top: .9rem; line-height: 1.6; }
.footer-bottom { margin-top: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom > p { margin-right: auto; }
.footer-bottom a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-dark) 30%, transparent); text-underline-offset: .3em; }
.footer-legal ul { margin: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.zonkey-powered-by-widget p { display: flex; align-items: center; gap: .4rem; }
.zonkey-powered-by-widget a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.zonkey-powered-by-widget svg { height: 16px; width: auto; }
.zonkey-powered-by-widget strong { font-weight: 500; }
.zonkey-powered-by-widget--dark { color: var(--ink); }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.has-solid-header .site-footer .footer-inner { border-top: 0; }

/* ===== 15 PHONE DIALOG, MOBILE QUOTE BAR ===== */
.phone-dialog { margin: auto; max-width: 30rem; width: calc(100% - 2rem); border: 0; padding: 2.5rem 2.25rem 2rem; background: var(--light); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.phone-dialog::backdrop { background: color-mix(in srgb, var(--deep) 78%, transparent); }
.phone-dialog h2 { font-size: 2.1rem; padding-right: 4.5rem; }
.phone-dialog p { margin-top: 1rem; color: var(--muted); }
.phone-dialog .btn { margin-top: 1.75rem; width: 100%; }
.phone-dialog .existing { margin-top: 1.5rem; font-size: .95rem; }
.phone-dialog .existing a { color: var(--dark); font-weight: 500; text-decoration-color: var(--orn); text-underline-offset: .3em; }
.dialog-close { position: absolute; top: 1.1rem; right: 1.1rem; background: none; border: 0; color: var(--muted); font: 500 .92rem var(--sans); padding: .4rem .5rem; min-height: 36px; cursor: pointer; text-decoration: underline; text-underline-offset: .3em; }

.mobile-quote { display: none; }
@media (max-width: 760px) {
  .mobile-quote { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: block; background: var(--btn); color: var(--btn-text); text-align: center; padding: 1.05rem; font-weight: 500; text-decoration: none; transform: translateY(100%); transition: transform .3s ease; }
  .mobile-quote.is-visible { transform: none; }
  .mobile-quote:focus-visible { outline-offset: -4px; outline-color: var(--accent); }
  body:has(.mobile-quote) .site-footer { padding-bottom: 5rem; }
}

/* ===== 16 REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .slides, .js .site-header .main-nav, .js .site-header .header-actions, .js .menu-btn, .js .crest .word,
  .js .hero h1 .sub, .js .hero .lead, .js .hero .actions, .js .hero-pause, .js .under-hero { opacity: 1; }
  .js .crest .draw path { fill-opacity: 1; stroke-dashoffset: 0; }
  .js .hero h1 .ln > span, .js .uncover img { transform: none; }
  .js .uncover img { clip-path: none; }
  .mobile-menu li, .mobile-menu .btn, .mobile-menu .phone-btn { opacity: 1; transform: none; }
}
