/*
 * THE FURNITURE'S LOOK: styles for every component, one section per component file (search for its NAME).
 * Uses only the variables from design.css: change colors/fonts/sizes there, not here.
 * Built phone-first; wider screens add to it at 640px (tablet), 960px (desktop) and 1100px.
 */

/* =========================================================== BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--hb-cream); color: var(--hb-ink);
	font-family: var(--hb-font-body); font-size: var(--hb-text-base); line-height: var(--hb-line-height);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--hb-navy); text-underline-offset: 3px; }
a:hover { color: var(--hb-gold-deep); }
:focus-visible { outline: 3px solid var(--hb-gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--hb-font-heading); font-weight: 700; line-height: 1.2; color: var(--hb-ink); margin: 0 0 var(--hb-space-s); letter-spacing: -0.01em; }
h1 { font-size: var(--hb-text-h1); }
h2 { font-size: var(--hb-text-h2); }
h3 { font-size: var(--hb-text-h3); }
p { margin: 0 0 var(--hb-space-m); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: calc(var(--hb-width) + 2 * var(--hb-gutter)); margin: 0 auto; padding: 0 var(--hb-gutter); }
.site-main { min-height: 50vh; }
.section { padding-block: var(--hb-space-xl); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; z-index: 100; }
.skip-link:focus { left: var(--hb-space-m); top: var(--hb-space-m); background: var(--hb-white); padding: var(--hb-space-xs) var(--hb-space-m); }

/* Small gold capitals above titles ("SINCE 1970", "OUR INVENTORY") */
.label { font-family: var(--hb-font-body); font-size: var(--hb-text-tiny); font-weight: 700; letter-spacing: var(--hb-label-spacing); text-transform: uppercase; color: var(--hb-gold-deep); margin: 0 0 var(--hb-space-xs); }
.label-on-dark { color: var(--hb-gold); }

/* Section heading row: label + title on the left, extras (arrows) on the right */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--hb-space-m); margin-bottom: var(--hb-space-l); }
.section-title { margin: 0; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--hb-gold); margin-top: var(--hb-space-s); border-radius: 2px; }
.section-foot { margin: var(--hb-space-l) 0 0; text-align: center; }

/* =========================================================== BUTTONS (components/button.php) */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85rem 1.4rem; border-radius: var(--hb-radius-s); border: 2px solid transparent;
	font-family: var(--hb-font-body); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
	cursor: pointer; transition: background var(--hb-speed), color var(--hb-speed), border-color var(--hb-speed), transform var(--hb-speed), box-shadow var(--hb-speed);
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--hb-navy); color: var(--hb-white); }
.btn-navy:hover { background: var(--hb-navy-deep); color: var(--hb-white); }
.btn-gold { background: var(--hb-gold); color: var(--hb-navy-deep); }
.btn-gold:hover { background: #e2c88f; color: var(--hb-navy-deep); box-shadow: 0 6px 18px rgba(211, 181, 116, .35); }
.btn-outline { background: transparent; color: var(--hb-navy); border-color: var(--hb-navy); }
.btn-outline:hover { background: var(--hb-navy); color: var(--hb-white); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: var(--hb-white); border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: var(--hb-white); color: var(--hb-navy-deep); }
.btn-block { display: flex; width: 100%; }
.btn-large { padding: 1.05rem 1.5rem; font-size: 1.125rem; }

/* =========================================================== TOP BAR + HEADER (components/header.php) */
.topbar { display: none; background: var(--hb-navy-deep); color: var(--hb-on-dark-muted); font-size: var(--hb-text-small); }
.topbar-inner { display: flex; justify-content: space-between; gap: var(--hb-space-m); padding-block: .5rem; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; }
.topbar a { color: var(--hb-on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--hb-gold); }
.topbar .icon { color: var(--hb-gold); width: 1em; height: 1em; }
.topbar-right span { color: var(--hb-gold); font-size: var(--hb-text-tiny); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: .35em; }
.topbar-right a { font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--hb-navy); color: var(--hb-on-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow var(--hb-speed); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 20, 45, .35); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--hb-space-m); min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--hb-white); min-width: 0; }
.brand:hover { color: var(--hb-white); }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--hb-gold); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--hb-font-heading); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-tagline { font-size: .7rem; font-weight: 700; letter-spacing: var(--hb-label-spacing); text-transform: uppercase; color: var(--hb-gold); margin-top: 2px; }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--hb-radius-s); background: transparent; color: var(--hb-white); cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle-close, .menu-toggle[aria-expanded="true"] .menu-toggle-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle-close { display: inline-flex; }

/* Phone/tablet: the menu opens as a panel under the header */
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hb-navy); padding: var(--hb-space-s) var(--hb-gutter) var(--hb-space-l); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 30px rgba(0, 20, 45, .35); }
.site-nav.is-open { display: block; }
.site-nav-list { list-style: none; margin: 0 0 var(--hb-space-m); padding: 0; }
.site-nav-list a { display: block; padding: .9rem 0; color: var(--hb-on-dark); text-decoration: none; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-nav-list .current-menu-item > a, .site-nav-list a:hover { color: var(--hb-gold); }
.header-call { display: flex; width: 100%; }

/* =========================================================== TAP-TO-CALL BAR (components/footer.php), phones only */
.call-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: flex; align-items: center; justify-content: center; gap: .6rem;
	padding: .9rem var(--hb-gutter) calc(.9rem + env(safe-area-inset-bottom));
	background: var(--hb-gold); color: var(--hb-navy-deep); font-weight: 700; font-size: 1.1rem; text-decoration: none;
	box-shadow: 0 -6px 20px rgba(0, 20, 45, .2);
}
.call-bar:hover { color: var(--hb-navy-deep); }
body { padding-bottom: 64px; }

/* =========================================================== HERO SLIDESHOW (components/slideshow.php) */
.hero { position: relative; min-height: clamp(520px, 78vh, 720px); background: var(--hb-navy-deep); overflow: hidden; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 900ms ease, visibility 900ms; display: flex; align-items: flex-end; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-image { transform: scale(1); }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 25, 50, .15) 0%, rgba(0, 25, 50, .55) 45%, rgba(0, 22, 44, .92) 100%); }
.hero-content { position: relative; padding-top: var(--hb-space-xl); padding-bottom: calc(var(--hb-space-xl) + 2.5rem); color: var(--hb-white); }
.hero-title { color: var(--hb-white); font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem); max-width: 16ch; margin-bottom: var(--hb-space-s); text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero-text { font-family: var(--hb-font-heading); font-style: italic; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: var(--hb-on-dark); max-width: 38ch; }
.hero-actions { display: flex; flex-direction: column; gap: var(--hb-space-s); margin-top: var(--hb-space-m); }
.hero-dots { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-dot { width: 34px; height: 4px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: background var(--hb-speed), width var(--hb-speed); }
.hero-dot.is-active { background: var(--hb-gold); width: 52px; }

/* =========================================================== SERVICES (components/services.php) */
.services { position: relative; z-index: 2; padding-top: var(--hb-space-l); }
.services-grid { display: grid; gap: var(--hb-space-m); }
.service-card {
	position: relative; display: flex; flex-direction: column; gap: .35rem; padding: var(--hb-space-l) var(--hb-space-m) var(--hb-space-m);
	background: var(--hb-white); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); text-decoration: none; color: var(--hb-ink);
	border-top: 3px solid transparent; transition: transform var(--hb-speed), box-shadow var(--hb-speed), border-color var(--hb-speed);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--hb-shadow-lift); border-top-color: var(--hb-gold); color: var(--hb-ink); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--hb-navy-soft); color: var(--hb-navy); margin-bottom: .5rem; }
.service-icon .icon { width: 26px; height: 26px; }
.service-title { font-family: var(--hb-font-heading); font-weight: 700; font-size: 1.2rem; }
.service-text { color: var(--hb-muted); font-size: var(--hb-text-small); flex: 1; }
.service-link { display: inline-flex; align-items: center; gap: .4em; color: var(--hb-navy); font-weight: 700; font-size: var(--hb-text-small); margin-top: .5rem; }
.service-card:hover .service-link .icon { transform: translateX(3px); }
.service-link .icon { transition: transform var(--hb-speed); width: 1em; height: 1em; }

/* =========================================================== CAROUSEL (components/car-carousel.php) */
.carousel-controls { display: none; gap: .5rem; }
.carousel-arrow { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hb-line); background: var(--hb-white); color: var(--hb-navy); cursor: pointer; box-shadow: var(--hb-shadow); transition: background var(--hb-speed), color var(--hb-speed); }
.carousel-arrow:hover { background: var(--hb-navy); color: var(--hb-white); }
.carousel-arrow:disabled { opacity: .35; cursor: default; background: var(--hb-white); color: var(--hb-navy); }
.carousel-track {
	list-style: none; margin: 0; padding: .25rem .25rem var(--hb-space-m);
	display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--hb-space-m);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; }

/* =========================================================== CAR CARD (components/car-card.php) */
.car-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--hb-white); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); overflow: hidden; transition: transform var(--hb-speed), box-shadow var(--hb-speed); }
.car-card:hover { transform: translateY(-4px); box-shadow: var(--hb-shadow-lift); }
.car-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--hb-cream-band); overflow: hidden; }
.car-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.car-card:hover .car-card-media img { transform: scale(1.04); }
.car-card-body { display: flex; flex-direction: column; gap: .55rem; padding: var(--hb-space-m); flex: 1; }
.car-card-title { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.car-card-title a { color: var(--hb-ink); text-decoration: none; }
.car-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.car-card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--hb-space-s); flex-wrap: wrap; }
.price-tag { font-family: var(--hb-font-body); font-size: 1.55rem; font-weight: 700; color: var(--hb-navy); letter-spacing: -0.01em; line-height: 1.1; }
.car-card-miles { display: inline-flex; align-items: center; gap: .35em; color: var(--hb-muted); font-size: var(--hb-text-small); font-weight: 600; }
.car-card-link { margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--hb-line); display: inline-flex; align-items: center; gap: .4em; color: var(--hb-navy); font-weight: 700; font-size: var(--hb-text-small); }
.car-card-link .icon { width: 1em; height: 1em; transition: transform var(--hb-speed); }
.car-card:hover .car-card-link .icon { transform: translateX(3px); }

/* Badges ("Sale pending", "Sold") on photos, and the long status banner on car pages */
.badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; margin: 0; padding: .3rem .7rem; border-radius: 999px; font-size: var(--hb-text-tiny); font-weight: 700; letter-spacing: .04em; color: var(--hb-white); background: var(--hb-pending); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.badge.is-sold { background: var(--hb-sold); }
.status-banner { margin: 0 0 var(--hb-space-m); padding: .85rem 1.1rem; border-radius: var(--hb-radius-s); background: #fbeedd; color: var(--hb-pending); font-weight: 700; border-left: 4px solid var(--hb-pending); }
.status-banner.is-sold { background: #eceef1; color: #3f4650; border-left-color: var(--hb-sold); }

/* Key facts: small pills on cards, labelled boxes on the car page (components/quick-facts.php) */
.facts { list-style: none; margin: 0; padding: 0; }
.facts-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.facts-chips .fact { display: inline-flex; align-items: center; gap: .35em; padding: .3rem .65rem; border-radius: 999px; background: var(--hb-cream); border: 1px solid var(--hb-line); font-size: var(--hb-text-tiny); font-weight: 600; color: var(--hb-ink); }
.facts-chips .icon { width: 1em; height: 1em; color: var(--hb-gold-deep); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.facts-grid .fact { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .8rem; border-radius: var(--hb-radius-s); background: var(--hb-cream); border: 1px solid var(--hb-line); font-weight: 600; font-size: var(--hb-text-small); line-height: 1.35; }
.facts-grid .fact small { display: block; font-size: var(--hb-text-tiny); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-muted); margin-bottom: 2px; }
.facts-grid .icon { color: var(--hb-gold-deep); margin-top: 2px; }

/* =========================================================== CAR GRID + TOOLBAR (components/car-grid.php, sort-links.php) */
.car-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--hb-card-min)), 1fr)); gap: var(--hb-space-l) var(--hb-space-m); }
.car-grid-empty { padding: var(--hb-space-l); background: var(--hb-white); border-radius: var(--hb-radius); text-align: center; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hb-space-s) var(--hb-space-m); margin-bottom: var(--hb-space-l); padding-bottom: var(--hb-space-m); border-bottom: 1px solid var(--hb-line); }
.toolbar-count { margin: 0; color: var(--hb-muted); }
.toolbar-count strong { color: var(--hb-ink); font-size: 1.2rem; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--hb-line); background: var(--hb-white); color: var(--hb-ink); text-decoration: none; font-size: var(--hb-text-small); font-weight: 600; transition: border-color var(--hb-speed), background var(--hb-speed); }
.pill:hover { border-color: var(--hb-navy); color: var(--hb-navy); }
.pill.is-current { background: var(--hb-navy); border-color: var(--hb-navy); color: var(--hb-white); }

/* =========================================================== PAGE HERO + PAGE BODY (components/page-hero.php, pages/simple-page.php) */
.page-hero { background: var(--hb-cream-band); border-bottom: 1px solid var(--hb-line); padding: calc(var(--hb-space-xl) * .8) 0 var(--hb-space-l); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(211, 181, 116, .12); }
.page-hero-title { max-width: 26ch; margin: 0; position: relative; z-index: 1; }
.page-hero-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--hb-gold); margin-top: var(--hb-space-m); border-radius: 2px; }
.page-hero-intro { margin: var(--hb-space-m) 0 0; color: var(--hb-muted); font-size: var(--hb-text-large); max-width: 46ch; position: relative; z-index: 1; }
.page-body { padding-block: var(--hb-space-xl); }
.page-intro { margin-bottom: var(--hb-space-l); }
.page-layout { display: grid; gap: var(--hb-space-l); }
.page-media img { border-radius: var(--hb-radius); box-shadow: var(--hb-shadow-lift); width: 100%; }
.page-media figure { margin: 0 0 var(--hb-space-m); }

/* Readable text (page text from the WordPress editor) */
.prose { max-width: var(--hb-width-text); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: var(--hb-space-m); }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-top: var(--hb-space-l); }
.prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--hb-font-heading); font-weight: 400; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--hb-ink); margin-bottom: 0; }
.prose .lead { font-family: var(--hb-font-heading); font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--hb-ink); }
.prose strong { color: var(--hb-navy); }
.prose ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--hb-gold); box-shadow: 0 0 0 3px rgba(211, 181, 116, .25); }
.prose figure { margin: 0; }
.prose img { border-radius: var(--hb-radius); }
.prose .wp-block-buttons { display: flex; gap: var(--hb-space-s); flex-wrap: wrap; }
.prose .wp-block-button__link { display: inline-flex; padding: .85rem 1.4rem; border-radius: var(--hb-radius-s); background: var(--hb-navy); color: var(--hb-white); font-weight: 700; text-decoration: none; }

/* =========================================================== CALL BOX (components/call-box.php) */
.call-box {
	display: flex; flex-direction: column; align-items: flex-start; gap: var(--hb-space-m);
	margin-top: var(--hb-space-xl); padding: var(--hb-space-l); border-radius: var(--hb-radius);
	background: radial-gradient(120% 140% at 100% 0%, #0b4c86 0%, var(--hb-navy) 45%, var(--hb-navy-deep) 100%);
	color: var(--hb-on-dark); box-shadow: var(--hb-shadow-lift); position: relative; overflow: hidden;
}
.call-box::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(211, 181, 116, .12); }
.call-box-text { position: relative; z-index: 1; }
.call-box-title { color: var(--hb-white); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0 0 .25rem; }
.call-box-phone { margin: 0; font-family: var(--hb-font-heading); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 700; }
.call-box-phone a { color: var(--hb-gold); text-decoration: none; }
.call-box .btn { position: relative; z-index: 1; }

/* =========================================================== CONTACT DETAILS + CONTACT PAGE (components/contact-details.php) */
.contact-details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hb-space-m); }
.contact-details li { display: flex; align-items: flex-start; gap: .85rem; }
.contact-details li > .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--hb-navy-soft); color: var(--hb-navy); }
.contact-details li > span { display: flex; flex-direction: column; min-width: 0; }
.contact-details small { font-size: var(--hb-text-tiny); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hb-muted); }
.contact-details a { color: var(--hb-ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--hb-navy); text-decoration: underline; }
.contact-details-card { background: var(--hb-white); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: var(--hb-space-l); }
.contact-details-heading { font-size: 1.3rem; margin-bottom: var(--hb-space-m); }
.contact-layout { display: grid; gap: var(--hb-space-l); }
.contact-side { display: grid; gap: var(--hb-space-m); align-content: start; }
.contact-side .map-band { margin: 0; }

/* Contact Form 7 */
.wpcf7 form > p, .wpcf7 form label { display: block; }
.wpcf7 label { font-weight: 700; margin-bottom: var(--hb-space-m); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	display: block; width: 100%; margin-top: .35rem; padding: .85rem 1rem; border: 1px solid #cfc5b2; border-radius: var(--hb-radius-s);
	background: var(--hb-white); font: inherit; font-weight: 400; color: var(--hb-ink); transition: border-color var(--hb-speed), box-shadow var(--hb-speed);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--hb-navy); box-shadow: 0 0 0 4px rgba(0, 58, 109, .15); }
.wpcf7 .wpcf7-submit { display: inline-flex; padding: 1rem 1.8rem; border: 0; border-radius: var(--hb-radius-s); background: var(--hb-navy); color: var(--hb-white); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: background var(--hb-speed); }
.wpcf7 .wpcf7-submit:hover { background: var(--hb-navy-deep); }
.wpcf7 .wpcf7-not-valid-tip { color: #b42318; font-size: var(--hb-text-small); font-weight: 600; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: var(--hb-space-m) 0 0; padding: .9rem 1.1rem; border-radius: var(--hb-radius-s); border-width: 0 0 0 4px; background: var(--hb-white); }
.wpcf7-spinner { margin-left: .75rem; }

/* =========================================================== MAP (components/map.php) */
.map-band { margin-block: var(--hb-space-xl); }
.map-band.has-details { display: grid; gap: var(--hb-space-m); width: 100%; max-width: calc(var(--hb-width) + 2 * var(--hb-gutter)); margin-inline: auto; padding-inline: var(--hb-gutter); }
.map-details { background: var(--hb-white); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: var(--hb-space-l); display: grid; gap: var(--hb-space-m); align-content: start; }
.map-details .section-title { margin-bottom: var(--hb-space-xs); }
.map-details .btn { justify-self: start; }
.map-frame { border-radius: var(--hb-radius); overflow: hidden; box-shadow: var(--hb-shadow); background: var(--hb-cream-band); min-height: 320px; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* =========================================================== STORY (pages/home.php: the Home page's own text) */
.story { background: var(--hb-navy-deep); color: var(--hb-on-dark); padding-block: var(--hb-space-xl); position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; left: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(211, 181, 116, .08); }
.story-inner { position: relative; text-align: center; margin-inline: auto; }
.story .prose { max-width: 50rem; }
.story h2 { color: var(--hb-white); }
.story h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--hb-gold); margin: var(--hb-space-m) auto 0; border-radius: 2px; }
.story h3, .story h4, .story p, .story .lead { color: var(--hb-on-dark); }
.story strong { color: var(--hb-gold); }

/* =========================================================== CAR PAGE (pages/car.php) */
.car-page { padding-top: var(--hb-space-m); }
.breadcrumbs { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: var(--hb-text-small); color: var(--hb-muted); margin-bottom: var(--hb-space-m); }
.breadcrumbs a { color: var(--hb-navy); font-weight: 600; text-decoration: none; }
.breadcrumbs .icon { width: .9em; height: .9em; }
.breadcrumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.car-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hb-space-l); align-items: start; }
.car-layout > *, .car-details > *, .page-layout > *, .contact-layout > * { min-width: 0; } /* long thumbnail rows must not stretch the page */
.car-summary { background: var(--hb-white); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: var(--hb-space-l) var(--hb-space-m); display: grid; gap: var(--hb-space-m); }
.car-summary .label { margin: 0; }
.car-title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); margin: 0; }
.car-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--hb-space-s); flex-wrap: wrap; padding-bottom: var(--hb-space-m); border-bottom: 1px solid var(--hb-line); }
.car-price-row .price-tag { font-size: var(--hb-text-price); }
.car-miles { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--hb-muted); }
.car-actions { display: grid; gap: var(--hb-space-s); }
.car-visit { display: flex; gap: .5rem; align-items: flex-start; margin: 0; color: var(--hb-muted); font-size: var(--hb-text-small); }
.car-visit .icon { color: var(--hb-gold-deep); margin-top: 3px; }
.car-details { display: grid; gap: var(--hb-space-l); margin-top: var(--hb-space-xl); }
.car-details-main { display: grid; gap: var(--hb-space-l); }

/* =========================================================== GALLERY (components/car-gallery.php) */
.gallery-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--hb-radius); overflow: hidden; background: #0b1a2b; box-shadow: var(--hb-shadow); }
.gallery-main { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--hb-navy); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.gallery-arrow:hover { background: var(--hb-white); color: var(--hb-gold-deep); }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-count { position: absolute; right: .75rem; bottom: .75rem; margin: 0; padding: .25rem .7rem; border-radius: 999px; background: rgba(0, 20, 40, .7); color: var(--hb-white); font-size: var(--hb-text-tiny); font-weight: 700; }
.gallery-thumbs { list-style: none; margin: var(--hb-space-s) 0 0; padding: 0 0 .25rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb { display: block; width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: var(--hb-radius-s); overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: opacity var(--hb-speed), border-color var(--hb-speed); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; border-color: var(--hb-gold); }

/* =========================================================== PANELS, SPECS, FEATURES (spec-table.php, feature-list.php) */
.panel { background: var(--hb-white); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); padding: var(--hb-space-l) var(--hb-space-m); }
.panel-title { font-size: 1.35rem; margin-bottom: var(--hb-space-m); }
.panel-title::after { content: ""; display: block; width: 40px; height: 3px; background: var(--hb-gold); margin-top: .6rem; border-radius: 2px; }
.spec-list { margin: 0; }
.spec-row { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: var(--hb-space-s); padding: .7rem 0; border-bottom: 1px solid var(--hb-line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--hb-muted); font-size: var(--hb-text-small); font-weight: 600; }
.spec-row dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.feature-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--hb-space-l) var(--hb-space-m); }
.feature-group-title { font-family: var(--hb-font-body); font-size: var(--hb-text-tiny); font-weight: 700; letter-spacing: var(--hb-label-spacing); text-transform: uppercase; color: var(--hb-gold-deep); margin-bottom: var(--hb-space-s); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--hb-text-small); }
.check-list .icon { color: var(--hb-navy); width: 1.05em; height: 1.05em; margin-top: 3px; stroke-width: 2.5; }

/* =========================================================== FOOTER (components/footer.php) */
.site-footer { background: var(--hb-navy-deep); color: var(--hb-on-dark-muted); padding-top: var(--hb-space-xl); margin-top: var(--hb-space-xl); border-top: 4px solid var(--hb-gold); }
.home .site-footer, .car-page + .site-footer { margin-top: 0; }
.site-footer-grid { display: grid; gap: var(--hb-space-l); padding-bottom: var(--hb-space-l); }
.footer-brand .brand-logo { width: 56px; height: 56px; margin-bottom: var(--hb-space-s); }
.footer-name { font-family: var(--hb-font-heading); font-weight: 700; font-size: 1.3rem; color: var(--hb-white); margin: 0; }
.footer-tagline { font-size: .72rem; font-weight: 700; letter-spacing: var(--hb-label-spacing); text-transform: uppercase; color: var(--hb-gold); margin: .25rem 0 var(--hb-space-s); }
.footer-blurb { max-width: 34ch; font-size: var(--hb-text-small); }
.footer-heading { font-family: var(--hb-font-body); font-size: var(--hb-text-tiny); font-weight: 700; letter-spacing: var(--hb-label-spacing); text-transform: uppercase; color: var(--hb-gold); margin-bottom: var(--hb-space-m); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-menu a, .site-footer .contact-details a { color: var(--hb-on-dark); text-decoration: none; font-weight: 600; }
.footer-menu a:hover, .site-footer .contact-details a:hover { color: var(--hb-gold); }
.site-footer .contact-details small { color: var(--hb-on-dark-muted); }
.site-footer .contact-details li > .icon { background: rgba(211, 181, 116, .12); color: var(--hb-gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--hb-space-s); padding-block: var(--hb-space-m); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--hb-text-small); }
.footer-bottom p { margin: 0; }
.footer-social { display: inline-flex; align-items: center; gap: .45rem; color: var(--hb-on-dark); text-decoration: none; font-weight: 600; }
.footer-social .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-social:hover { color: var(--hb-gold); }

/* =========================================================== WIDER SCREENS */
@media (min-width: 640px) {
	.hero-actions { flex-direction: row; flex-wrap: wrap; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.carousel-track { grid-auto-columns: calc((100% - var(--hb-space-m)) / 2.15); }
	.carousel-controls { display: flex; }
	.call-box { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--hb-space-l) var(--hb-space-xl); }
	.facts-grid { grid-template-columns: 1fr 1fr; }
	.site-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.car-summary { padding: var(--hb-space-l); }
	.panel { padding: var(--hb-space-l); }
}

@media (min-width: 760px) {
	.topbar { display: block; }
	.call-bar { display: none; }
	body { padding-bottom: 0; }
}

@media (min-width: 960px) {
	.site-header-inner { min-height: var(--hb-header-height); }
	.brand-logo { width: 56px; height: 56px; }
	.brand-name { font-size: 1.2rem; }
	.menu-toggle { display: none; }
	.site-nav { display: flex; align-items: center; gap: var(--hb-space-m); position: static; padding: 0; background: none; border: 0; box-shadow: none; }
	.site-nav-list { display: flex; gap: .25rem; margin: 0; }
	.site-nav-list a { position: relative; padding: .6rem .8rem; font-size: 1rem; border: 0; }
	.site-nav-list a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--hb-gold); transform: scaleX(0); transition: transform var(--hb-speed); }
	.site-nav-list a:hover::after, .site-nav-list .current-menu-item > a::after { transform: scaleX(1); }
	.header-call { display: inline-flex; width: auto; }
	.hero-content { padding-bottom: calc(var(--hb-space-xl) + 4rem); }
	.services { margin-top: -4.5rem; padding-top: 0; }
	.carousel-track { grid-auto-columns: calc((100% - 2 * var(--hb-space-m)) / 3); }
	.page-layout.has-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: var(--hb-space-xl); align-items: start; }
	.page-media { position: sticky; top: calc(var(--hb-header-height) + var(--hb-space-m)); }
	.contact-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--hb-space-xl); align-items: start; }
	.contact-side { position: sticky; top: calc(var(--hb-header-height) + var(--hb-space-m)); }
	.map-band.has-details { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
	.car-layout { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); }
	.car-summary { position: sticky; top: calc(var(--hb-header-height) + var(--hb-space-m)); }
	.car-details { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; }
	.gallery-thumb { width: 96px; height: 72px; }
}

@media (min-width: 1100px) {
	.services-grid { grid-template-columns: repeat(4, 1fr); }
	.carousel-track { grid-auto-columns: calc((100% - 3 * var(--hb-space-m)) / 4); }
}

/* People who ask their device for less motion get no animations */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.hero-image { transform: none !important; }
}
