/* Xtreme Exhaust: component styles (colours/type come from theme.json) */

:root {
	--xe-base: #F7F5F0;
	--xe-alt: #EEEAE3;
	--xe-line: #DDD8CF;
	--xe-line2: #CFC9BE;
	--xe-ink: #1A1A1A;
	--xe-muted: #5C5852;
	--xe-dark: #1C1C1C;
	--xe-accent: #F26A1B;
	--xe-accent-ink: #96420B;
	--xe-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }

/* ---------- Header ---------- */
.xe-topbar { background: var(--xe-dark); color: #C9C6C0; font-size: 14px; }
.xe-topbar a { color: #F2F0EB; text-decoration: none; }
.xe-topbar a:hover { color: #FFB37A; }
.xe-topbar p { margin: 0; }
.xe-topbar .wp-block-group { row-gap: 2px; }
@media (max-width: 600px) { .xe-topbar { font-size: 13px; } .xe-hero-img img { aspect-ratio: 4 / 3; } }
.xe-header { background: #fff; border-bottom: 1px solid var(--xe-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .xe-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .xe-header { top: 46px; } }
.xe-logo { margin: 0; }
.xe-logo a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--xe-ink); white-space: nowrap; }
.xe-logo .xe-mark { width: 40px; height: 40px; background: var(--xe-accent); display: inline-flex; align-items: center; justify-content: center; font: 800 22px/1 var(--xe-display); }
.xe-logo .xe-word { font: 800 26px/1 var(--xe-display); letter-spacing: .06em; }
.xe-header .wp-block-navigation a { text-decoration: none; white-space: nowrap; }
.xe-header .wp-block-navigation a:hover { color: var(--xe-accent-ink); }
.xe-header-tel { margin: 0; white-space: nowrap; }
.xe-header-tel a { text-decoration: none; font: 700 20px var(--xe-display); letter-spacing: .04em; }
.xe-header .wp-block-button__link { font-size: 17px; padding: 12px 18px; white-space: nowrap; }
@media (max-width: 1280px) { .xe-hide-md { display: none !important; } }
@media (max-width: 960px) and (min-width: 600px) { .xe-header .wp-block-navigation { font-size: 15px; } .xe-header .wp-block-navigation__container { gap: 16px !important; } }
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.xe-hero h1 { font-size: clamp(44px, 6vw, 80px); }
@media (max-width: 700px) { .xe-hide-sm { display: none !important; } .xe-logo .xe-word { font-size: 22px; } }
.wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 24px; }

/* ---------- Sections ---------- */
.xe-section { padding-top: 96px; padding-bottom: 96px; }
.xe-section.is-tight { padding-top: 64px; padding-bottom: 64px; }
.xe-alt { background: var(--xe-alt); }
.xe-white { background: #fff; border-top: 1px solid var(--xe-line); border-bottom: 1px solid var(--xe-line); }
.xe-eyebrow { font: 600 15px var(--xe-display); letter-spacing: .2em; text-transform: uppercase; color: var(--xe-accent-ink); margin-bottom: 0; }
.xe-lead { font-size: 19px; color: #4A4640; }
.xe-hero .xe-lead { max-width: 620px; }
.xe-banner > .xe-lead { box-sizing: border-box; padding-right: max(0px, calc(min(100%, 1200px) - 660px)); }
.xe-muted { color: var(--xe-muted); }
.xe-head { align-items: flex-end !important; margin-bottom: 40px; }
.xe-head p { color: var(--xe-muted); max-width: 440px; margin: 0; }
.xe-head h2 { margin: 0; }
@media (max-width: 781px) { .xe-section { padding-top: 64px; padding-bottom: 64px; } }

/* ---------- Hero ---------- */
.xe-hero { padding-top: 72px; padding-bottom: 72px; }
.xe-hero .wp-block-columns { align-items: center !important; gap: 48px; }
.xe-hero h1 { margin: 16px 0 20px; }
.xe-hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.xe-trust { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--xe-muted); margin-top: 24px; }
.xe-trust span::before { content: "✓ "; color: var(--xe-accent-ink); font-weight: 700; }

/* ---------- Page banner (inner pages) ---------- */
.xe-banner { padding-top: 64px; padding-bottom: 56px; background: var(--xe-alt); border-bottom: 1px solid var(--xe-line); }
.xe-banner h1 { font-size: clamp(42px, 6vw, 72px); margin: 0; }
.xe-page-body { padding-top: 56px; padding-bottom: 96px; }
.xe-page-body > * + * { margin-top: 1.25rem; }
.xe-page-body h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 2.5rem; }
.xe-page-body h3 { margin-top: 2rem; }

/* ---------- Cards ---------- */
.xe-card { background: #fff; border: 1px solid var(--xe-line); padding: 0 0 28px; display: flex; flex-direction: column; gap: 12px; height: 100%; transition: border-color .15s; }
.xe-card:hover { border-color: var(--xe-accent); }
.xe-card > *:not(.wp-block-image) { margin-left: 28px !important; margin-right: 28px !important; }
.xe-card .wp-block-image { margin: 0 0 8px; }
.xe-card .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.xe-card h3 { margin: 0; }
.xe-card h3 a { text-decoration: none; }
.xe-card p { margin: 0; color: var(--xe-muted); font-size: 16px; }
.xe-card .xe-more { margin-top: auto !important; font: 600 15px var(--xe-display); letter-spacing: .12em; text-transform: uppercase; }
.xe-card .xe-more a { color: var(--xe-accent-ink); text-decoration: none; }

/* ---------- Chips ---------- */
.xe-chips { gap: 10px !important; }
.xe-chips .wp-block-button__link { background: #fff; color: var(--xe-ink); border: 1px solid var(--xe-line2); font-size: 18px; padding: 11px 20px; letter-spacing: .06em; font-weight: 600; }
.xe-chips .wp-block-button__link:hover { border-color: var(--xe-ink); background: #fff; }
.xe-chips .is-style-dark .wp-block-button__link { background: var(--xe-ink); color: #fff; border-color: var(--xe-ink); }

/* ---------- Gallery ---------- */
.xe-gallery .wp-block-image { margin: 0; position: relative; }
.xe-gallery .wp-block-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.xe-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 32px 14px 12px; color: #fff; text-align: left; font: 700 18px var(--xe-display); letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* ---------- Steps ---------- */
.xe-num { font: 800 64px/1 var(--xe-display) !important; color: var(--xe-accent-ink); margin: 0 0 8px; }
.xe-steps h3 { margin: 0 0 8px; }
.xe-steps p:not(.xe-num) { color: var(--xe-muted); margin: 0; }

/* ---------- Reviews ---------- */
.xe-review { background: #fff; border: 1px solid var(--xe-line); padding: 32px; height: 100%; }
.xe-review .xe-stars { color: var(--xe-accent-ink); letter-spacing: .2em; margin: 0 0 12px; }
.xe-review .xe-quote { font-size: 18px; color: #2E2B27; }
.xe-review .xe-who { font: 600 16px var(--xe-display); letter-spacing: .1em; text-transform: uppercase; color: var(--xe-muted); margin: 0; }

/* ---------- Suburbs + map ---------- */
.xe-suburbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.xe-suburbs li { border-bottom: 1px solid var(--xe-line2); padding: 10px 0; font: 600 19px var(--xe-display); letter-spacing: .06em; text-transform: uppercase; }
.xe-suburbs a { text-decoration: none; }
.xe-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; filter: grayscale(.2); }

/* ---------- CTA band ---------- */
.xe-cta { background: var(--xe-accent); padding-top: 64px; padding-bottom: 64px; }
.xe-cta h2 { margin: 0; max-width: 700px; font-size: clamp(34px, 5vw, 60px); }
.xe-cta .wp-block-button__link { background: var(--xe-ink); color: #fff; }
.xe-cta .is-style-outline .wp-block-button__link { background: transparent; color: var(--xe-ink); }

/* ---------- Content image ---------- */
.xe-feature-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.xe-tick-list { list-style: none; padding-left: 0; }
.xe-tick-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.xe-tick-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--xe-accent-ink); border-bottom: 3px solid var(--xe-accent-ink); transform: rotate(-45deg); }
.xe-box { background: #fff; border: 1px solid var(--xe-line); padding: 28px; }

/* ---------- FAQ ---------- */
.wp-block-details { border-bottom: 1px solid var(--xe-line2); padding: 18px 0; }
.wp-block-details summary { font: 700 22px/1.2 var(--xe-display); text-transform: uppercase; cursor: pointer; letter-spacing: .02em; }
.wp-block-details summary:hover { color: var(--xe-accent-ink); }
.wp-block-details > p { color: #3A3732; margin-top: 12px; }

/* ---------- Quote form ---------- */
.xe-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; align-items: end; }
.xe-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #4A4640; font-weight: 500; }
.xe-form input, .xe-form select, .xe-form textarea { font: 500 16px Barlow, sans-serif; color: var(--xe-ink); background: var(--xe-base); border: 1px solid #B9B2A6; padding: 0 12px; height: 48px; width: 100%; box-sizing: border-box; border-radius: 0; }
.xe-form textarea { height: auto; padding: 12px; }
.xe-form input:focus, .xe-form select:focus, .xe-form textarea:focus { outline: 2px solid var(--xe-accent); outline-offset: 1px; }
.xe-form .xe-full { grid-column: 1 / -1; }
.xe-form-btn { height: 48px; background: var(--xe-ink); color: #fff; border: 0; font: 700 18px var(--xe-display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 0 24px; }
.xe-form-btn:hover { background: #000; }
.xe-form-wrap:not(.is-compact) .xe-form-btn { background: var(--xe-accent); color: var(--xe-ink); }
.xe-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.xe-form-msg { padding: 14px 18px; margin: 0 0 16px; font-weight: 600; }
.xe-form-msg.is-ok { background: #E7F3E8; color: #1E5B26; }
.xe-form-msg.is-err { background: #FBE9E4; color: #8A2A12; }

/* ---------- Footer ---------- */
.xe-footer { background: var(--xe-dark); color: #C9C6C0; font-size: 15px; padding-top: 64px; padding-bottom: 24px; }
.xe-footer a { color: #F2F0EB; text-decoration: none; }
.xe-footer a:hover { color: #FFB37A; }
.xe-footer h3 { color: #F2F0EB; font-size: 17px; letter-spacing: .12em; margin: 0 0 8px; }
.xe-footer p { margin: 0 0 6px; }
.xe-footer .xe-logo a { color: #F2F0EB; }
.xe-footer-base { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #A8A49D; }
.xe-footer-base p { margin: 0; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product, .wc-block-grid__product, .wc-block-product { background: #fff; border: 1px solid var(--xe-line); padding: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .wc-block-components-product-name { font-family: var(--xe-display); text-transform: uppercase; font-weight: 700; font-size: 20px; }
.woocommerce .price, .wc-block-components-product-price { font: 700 20px var(--xe-display); color: var(--xe-ink); }
.woocommerce a.button, .woocommerce button.button, .wc-block-components-button { border-radius: 0 !important; font-family: var(--xe-display) !important; text-transform: uppercase; letter-spacing: .08em; }
.woocommerce span.onsale { background: var(--xe-accent); color: var(--xe-ink); border-radius: 0; }
