/* SHB 2026 – component styles. Tokens come from theme.json (--wp--preset--*). */
:root {
	--shb-forest: var(--wp--preset--color--forest, #1E3A2F);
	--shb-forest-deep: var(--wp--preset--color--forest-deep, #132820);
	--shb-cream: var(--wp--preset--color--cream, #F5F0E6);
	--shb-paper: var(--wp--preset--color--paper, #FBF8F2);
	--shb-brass: var(--wp--preset--color--brass, #9C7A43);
	--shb-brass-light: var(--wp--preset--color--brass-light, #D9C08F);
	--shb-ink: var(--wp--preset--color--ink, #1B1B19);
	--shb-stone: var(--wp--preset--color--stone, #5E5A52);
	--shb-line: var(--wp--preset--color--line, #E2DACB);
	--shb-display: var(--wp--preset--font-family--display, "Fraunces", Georgia, serif);
	--shb-radius: 3px;
}

/* ---------- Header */
.shb-header { background: var(--shb-paper); border-bottom: 1px solid var(--shb-line); position: sticky; top: 0; z-index: 50; }
.shb-header__inner { padding-block: 0.9rem; gap: 1.5rem; }
.shb-wordmark, .shb-wordmark a { font-family: var(--shb-display); font-size: 1.2rem; font-weight: 600; color: var(--shb-forest-deep); text-decoration: none; letter-spacing: -0.01em; line-height: 1.1; }
.shb-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.shb-nav a:hover { color: var(--shb-brass); }
@media (max-width: 900px) { .shb-header__cta { display: none; } }

/* ---------- Generic */
.shb-main { padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
.shb-main--flush { padding-block: 0; }
.shb-main--wide > * { max-width: var(--wp--style--global--wide-size, 1240px) !important; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem !important; font-weight: 600; color: var(--shb-brass); margin-bottom: 0.25rem; }
.lead { font-size: 1.2rem; color: var(--shb-stone); line-height: 1.6; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: inherit; border: 1.5px solid currentColor; }
:where(a):focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--shb-brass); outline-offset: 3px; }

/* ---------- Home sections */
.shb-hero { background: var(--shb-forest-deep); color: var(--shb-cream); padding-block: clamp(4rem, 10vw, 8rem) clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.shb-hero::after { content: ""; position: absolute; inset: auto -10% -45% 40%; height: 120%; background: radial-gradient(closest-side, rgba(217,192,143,.18), transparent); pointer-events: none; }
.shb-hero h1, .shb-hero .hero-title { color: var(--shb-cream); max-width: 15ch; font-weight: 400; }
.shb-hero .lead { color: rgba(245,240,230,.82); max-width: 58ch; }
.shb-hero .eyebrow { color: var(--shb-brass-light); }
.shb-hero .wp-block-button__link { background: var(--shb-cream); color: var(--shb-forest-deep); }
.shb-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--shb-cream); }
.trust-bar { list-style: none; padding: 1.5rem 0 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; border-top: 1px solid rgba(245,240,230,.18); font-size: 0.92rem; color: rgba(245,240,230,.85); }
.trust-bar li::before { content: "✓"; color: var(--shb-brass-light); margin-right: 0.5rem; }
.shb-section { padding-block: var(--wp--preset--spacing--60); }
.shb-section > * { max-width: var(--wp--style--global--wide-size, 1240px) !important; }
.shb-section > p:not(.eyebrow):not(.lead) { max-width: 70ch !important; margin-left: auto; margin-right: auto; }
.shb-alt { background: var(--shb-cream); }
.shb-cards { gap: 1.5rem; }
.shb-cards > .wp-block-column { background: var(--shb-paper); border: 1px solid var(--shb-line); padding: 1.75rem; border-radius: var(--shb-radius); }
.shb-alt .shb-cards > .wp-block-column { background: #fff; }
.shb-cards h3 { margin-top: 0; }
.shb-cards h3 a { text-decoration: none; }
.shb-steps .step-num { font-family: var(--shb-display); font-size: 2.5rem; color: var(--shb-brass); margin: 0; line-height: 1; }
.shb-cta { background: var(--shb-forest); color: var(--shb-cream); padding-block: var(--wp--preset--spacing--60); text-align: center; }
.shb-cta h2 { color: var(--shb-cream); }
.shb-cta .wp-block-buttons { justify-content: center; }
.shb-cta .wp-block-button__link { background: var(--shb-cream); color: var(--shb-forest-deep); }
.shb-cta .is-style-outline .wp-block-button__link { background: transparent; color: var(--shb-cream); }
.shb-cta .shb-hours { justify-content: center; margin-top: 2rem; color: rgba(245,240,230,.8); }

/* ---------- Vehicle cards */
.shb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.75rem; margin-block: 2rem; }
.shb-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.shb-card { background: #fff; border: 1px solid var(--shb-line); border-radius: var(--shb-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.shb-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(19,40,32,.45); }
.shb-card__link { color: inherit; text-decoration: none; display: block; height: 100%; }
.shb-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.shb-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.shb-card__cat { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--shb-brass); font-weight: 600; margin: 0 0 0.4rem; }
.shb-card__title { font-size: 1.2rem; margin: 0 0 0.5rem; line-height: 1.25; }
.shb-card__excerpt { font-size: 0.92rem; color: var(--shb-stone); margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shb-card__price { font-family: var(--shb-display); font-size: 1.35rem; color: var(--shb-forest-deep); margin: 0; }
.shb-ph { background: linear-gradient(135deg, #24463a, #132820); position: relative; }
.shb-ph::after { content: "Photography"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(245,240,230,.45); font-size: 0.8rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Breadcrumbs & chips */
.shb-breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.85rem; color: var(--shb-stone); }
.shb-breadcrumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--shb-line); }
.shb-breadcrumbs a { color: var(--shb-stone); }
.shb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.shb-chips a { border: 1px solid var(--shb-line); border-radius: 999px; padding: 0.45rem 1rem; text-decoration: none; font-size: 0.9rem; color: var(--shb-ink); background: #fff; }
.shb-chips a[aria-current] { background: var(--shb-forest); color: var(--shb-cream); border-color: var(--shb-forest); }
.shb-chips span { color: var(--shb-brass); margin-left: 0.25rem; }
.shb-archive-title { margin-top: 0; }
.shb-archive-help { margin-top: 3rem; padding: 2rem; background: var(--shb-cream); border-radius: var(--shb-radius); }

/* ---------- Product page */
.shb-product-top { gap: 2.5rem; align-items: flex-start; }
.shb-product-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.shb-product-excerpt { color: var(--shb-stone); font-size: 1.05rem; }
.shb-summary__price { font-family: var(--shb-display); font-size: 2.2rem; color: var(--shb-forest-deep); margin: 0.5rem 0 0; }
.shb-summary__stock { font-size: 0.9rem; font-weight: 600; margin: 0.25rem 0 1.25rem; }
.shb-summary__stock.is-in { color: #2f6b47; }
.shb-summary__stock.is-in::before { content: "●"; margin-right: .4rem; }
.shb-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--shb-line); margin: 0 0 1.5rem; }
.shb-specs div { padding: 0.75rem 0; border-bottom: 1px solid var(--shb-line); }
.shb-specs div:nth-child(odd) { padding-right: 1rem; }
.shb-specs dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--shb-stone); }
.shb-specs dd { margin: 0.15rem 0 0; font-weight: 500; }
.shb-ctas { gap: 0.75rem; }
.shb-summary__call { margin-top: 0.75rem; font-size: 0.95rem; }
.shb-assure { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--shb-line); font-size: 0.9rem; }
.shb-assure li { padding: 0.3rem 0; }
.shb-assure li::before { content: "✓"; color: var(--shb-brass); margin-right: 0.5rem; }
.shb-product-body { margin-top: var(--wp--preset--spacing--50); }
.shb-block { margin-top: var(--wp--preset--spacing--50); }

/* ---------- Compare table */
.shb-compare { overflow-x: auto; margin: 1.5rem 0; }
.shb-compare table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
.shb-compare th, .shb-compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--shb-line); vertical-align: top; }
.shb-compare thead th { font-family: var(--shb-display); font-weight: 500; font-size: 1.05rem; background: var(--shb-forest); }
.shb-compare thead th a { color: var(--shb-cream); }
.shb-compare tbody th { color: var(--shb-stone); font-weight: 500; width: 22%; }

/* ---------- FAQ */
.shb-faq details { border-bottom: 1px solid var(--shb-line); }
.shb-faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.shb-faq summary::-webkit-details-marker { display: none; }
.shb-faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-size: 1.4rem; color: var(--shb-brass); font-weight: 300; }
.shb-faq details[open] summary::after { content: "–"; }
.shb-faq details > div { padding: 0 0 1.1rem; color: var(--shb-stone); }
.shb-section .shb-faq, .shb-section .shb-compare { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---------- Reviews & guides */
.shb-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.shb-review { margin: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--shb-line); border-radius: var(--shb-radius); }
.shb-review blockquote { margin: 0.5rem 0 1rem; font-family: var(--shb-display); font-size: 1.1rem; }
.shb-review figcaption { font-size: 0.85rem; color: var(--shb-stone); }
.shb-stars { color: var(--shb-brass); letter-spacing: 2px; margin: 0; }
.shb-verified { color: #2f6b47; font-weight: 600; }
.shb-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.shb-guide { border-top: 2px solid var(--shb-brass); padding-top: 1rem; }
.shb-guide h3 a { text-decoration: none; }
.shb-guide p { color: var(--shb-stone); font-size: 0.95rem; }
.shb-helpful ul { columns: 2 260px; }

/* ---------- Hours, NAP, forms */
.shb-hours { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; font-size: 0.92rem; }
.shb-cta .shb-hours { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 2rem; }
.shb-hours div { display: flex; gap: 0.75rem; justify-content: space-between; }
.shb-hours dd { margin: 0; }
.shb-nap { font-style: normal; line-height: 1.8; }
.shb-form p { margin: 0 0 1rem; }
.shb-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.shb-form input:not([type=checkbox]), .shb-form select, .shb-form textarea { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid #cfc6b4; border-radius: var(--shb-radius); background: #fff; font: inherit; }
.shb-form .shb-consent label { font-weight: 400; display: flex; gap: 0.6rem; align-items: flex-start; }
.shb-form .shb-consent input { margin-top: 0.3rem; flex: none; width: 18px; height: 18px; }
.shb-form button { cursor: pointer; border: 0; }
.shb-hp { position: absolute; left: -9999px; }
.shb-notice { padding: 1.25rem 1.5rem; background: var(--shb-cream); border-left: 3px solid var(--shb-forest); }
.shb-notice.is-error { border-color: #a33; }
.shb-contact { gap: 3rem; }

/* ---------- Articles */
.shb-byline { font-size: 0.88rem; color: var(--shb-stone); gap: 1rem; }
.shb-article-cta { margin-top: var(--wp--preset--spacing--60); padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--shb-line); }

/* ---------- Footer */
.shb-footer { background: var(--shb-forest-deep); color: rgba(245,240,230,.82); padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); font-size: 0.93rem; }
.shb-footer a { color: var(--shb-cream); }
.shb-footer .shb-wordmark, .shb-footer .shb-wordmark a { color: var(--shb-cream); }
.shb-footer__h { font-family: inherit; font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--shb-brass-light); }
.shb-footer__links { list-style: none; padding: 0; }
.shb-footer__links li { padding: 0.2rem 0; }
.shb-footer__links a { text-decoration: none; }
.shb-footer__legal { border-top: 1px solid rgba(245,240,230,.15); padding-top: 1.5rem; margin-top: 2rem; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) { .shb-card { transition: none; } .shb-card:hover { transform: none; } }

/* =====================================================================
   Mobile & tablet (v2026.12.05)
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, .shb-card__title, .shb-product-title { overflow-wrap: break-word; hyphens: manual; }
table { max-width: 100%; }

/* Header: hide the CTA reliably below 900px (core flex layout has higher specificity) */
@media (max-width: 900px) {
	.wp-block-buttons.shb-header__cta, .shb-header .shb-header__cta { display: none !important; }
	.shb-header__inner { padding-block: 0.65rem; gap: 0.75rem; }
	.shb-wordmark, .shb-wordmark a { font-size: 1.05rem; }
}
/* Mobile menu overlay */
.shb-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--shb-forest-deep) !important; color: var(--shb-cream) !important; padding: 1.5rem; }
.shb-nav .wp-block-navigation__responsive-container.is-menu-open a { color: var(--shb-cream); font-size: 1.35rem; font-family: var(--shb-display); padding: 0.4rem 0; }
.shb-nav .wp-block-navigation__responsive-container-open, .shb-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

@media (max-width: 781px) {
	/* Section rhythm */
	.shb-section, .shb-cta { padding-block: 3rem; }
	.shb-hero { padding-block: 3rem 2.25rem; }
	.shb-hero h1, .shb-hero .hero-title { font-size: clamp(2rem, 8.5vw, 2.6rem); max-width: none; }
	.lead { font-size: 1.05rem; }
	/* Full-width, thumb-friendly buttons */
	.shb-hero .wp-block-buttons, .shb-cta .wp-block-buttons, .shb-ctas { flex-direction: column; align-items: stretch; }
	.shb-hero .wp-block-button, .shb-cta .wp-block-button, .shb-ctas .wp-block-button { width: 100%; }
	.shb-hero .wp-block-button__link, .shb-cta .wp-block-button__link, .shb-ctas .wp-block-button__link { display: block; width: 100%; text-align: center; }
	.trust-bar { gap: 0.5rem; flex-direction: column; margin-top: 1.5rem; }
	/* Cards & grids */
	.shb-cards { gap: 1rem; }
	.shb-cards > .wp-block-column { padding: 1.25rem; }
	.shb-grid { gap: 1.25rem; margin-block: 1.5rem; }
	.shb-steps { gap: 1.25rem; }
	.shb-steps .step-num { font-size: 2rem; }
	/* Product page */
	.shb-product-top { gap: 1.25rem; }
	.shb-summary__price { font-size: 1.9rem; }
	.shb-helpful ul { columns: 1; }
	/* Compare table becomes stacked cards so nothing scrolls sideways */
	.shb-compare table, .shb-compare thead, .shb-compare tbody, .shb-compare tr, .shb-compare th, .shb-compare td { display: block; width: 100%; }
	.shb-compare thead tr { display: grid; grid-template-columns: 1fr 1fr; }
	.shb-compare thead th:first-child { display: none; }
	.shb-compare thead th { font-size: 0.95rem; padding: 0.75rem; }
	.shb-compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--shb-line); }
	.shb-compare tbody th { grid-column: 1 / -1; width: auto; padding: 0.75rem 0.75rem 0; border: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
	.shb-compare tbody td { padding: 0.35rem 0.75rem 0.75rem; border: 0; font-size: 0.92rem; }
	/* FAQ */
	.shb-faq summary { padding-block: 1rem; font-size: 1rem; }
	/* Breadcrumbs: one tidy line */
	.shb-breadcrumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
	.shb-breadcrumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }
	/* Category chips scroll sideways instead of wrapping into many rows */
	.shb-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem)); padding-inline: clamp(1rem, 4vw, 2rem); }
	.shb-chips a { flex: none; }
	/* Footer */
	.shb-footer .wp-block-columns { gap: 1.75rem; }
	.shb-footer__legal { text-align: left; }
	/* Forms: 16px inputs stop iOS zooming */
	.shb-form input:not([type=checkbox]), .shb-form select, .shb-form textarea { font-size: 16px; min-height: 48px; }
	.shb-form button { width: 100%; min-height: 50px; }
	.shb-contact { gap: 2rem; }
	.shb-archive-help { padding: 1.5rem; }
}
@media (max-width: 400px) {
	.shb-specs { grid-template-columns: 1fr; }
	.shb-specs div:nth-child(odd) { padding-right: 0; }
	.shb-hours div { flex-direction: column; gap: 0; }
}

/* Sticky "Call / Book a viewing" bar on vehicle pages (mobile only) */
.shb-mobile-bar { display: none; }
@media (max-width: 781px) {
	.shb-mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--shb-paper); border-top: 1px solid var(--shb-line); box-shadow: 0 -6px 20px -12px rgba(0,0,0,.35); }
	.shb-mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 2px; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
	.shb-mobile-bar .is-call { border: 1.5px solid var(--shb-forest); color: var(--shb-forest); }
	.shb-mobile-bar .is-book { background: var(--shb-forest); color: var(--shb-cream); }
	body.single-product { padding-bottom: 76px; }
}

/* Hero alignment: full wide container, text kept to the left of the background logo */
.shb-hero > * { max-width: var(--wp--style--global--wide-size, 1240px) !important; }
.shb-hero h1, .shb-hero .hero-title { max-width: var(--wp--style--global--wide-size, 1240px) !important; }
@media (min-width: 782px) {
	.shb-hero h1, .shb-hero .hero-title, .shb-hero .lead { padding-right: min(44%, 560px); }
	.shb-hero .trust-bar { padding-right: 0; }
}
.shb-header__inner { flex-wrap: nowrap; }
.shb-nav { flex: 1 1 auto; }
/* Tablet header: drop the CTA earlier so the menu stays on one line */
@media (max-width: 1140px) { .wp-block-buttons.shb-header__cta, .shb-header .shb-header__cta { display: none !important; } }
.shb-header__cta .wp-block-button__link { white-space: nowrap; }
.shb-nav .wp-block-navigation__container { flex-wrap: nowrap; }
/* No gap between header and the home hero */
.wp-site-blocks > .shb-main--flush, .shb-main--flush { margin-block-start: 0 !important; }
.shb-main--flush > .entry-content > :first-child, .shb-main--flush > .wp-block-post-content > :first-child { margin-block-start: 0 !important; }
/* Header logo (cleaned SHB artwork) */
.shb-header .wp-block-site-logo img.shb-logo-img { width: auto; height: 52px; max-width: none; border-radius: 3px; }
@media (max-width: 781px) { .shb-header .wp-block-site-logo img.shb-logo-img { height: 40px; } }
