/* ==========================================================================
   Abbotsford Scrap Car Removal — theme styles
   Tokens come from theme.json (var(--wp--preset--…)).
   ========================================================================== */

:root {
	--asphalt: var(--wp--preset--color--asphalt);
	--asphalt-raised: var(--wp--preset--color--asphalt-raised);
	--amber: var(--wp--preset--color--amber);
	--amber-deep: var(--wp--preset--color--amber-deep);
	--concrete: var(--wp--preset--color--concrete);
	--steel: var(--wp--preset--color--steel);
	--line: var(--wp--preset--color--line);
	--paper: var(--wp--preset--color--paper);
	--stamp: var(--wp--preset--color--stamp);
	--leaf: #8fd165; /* bright logo green for text on navy */
	--sign: var(--wp--preset--font-family--sign);
	--radius: 4px;
	--header-h: 90px;
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { height: auto; }
::selection { background: var(--amber); color: var(--asphalt); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 2px;
}
.has-amber-background-color :where(a, button, summary):focus-visible { outline-color: var(--asphalt); }

.wp-site-blocks > * + * { margin-block-start: 0; }
.site-main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.site-main .wp-block-post-content > .alignfull { margin-block: 0; }

/* ---------- Header ---------- */

.wp-block-template-part:has(> .site-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-block-template-part:has(> .site-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-block-template-part:has(> .site-header) { top: 0; position: relative; } }

.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.site-header__bar {
	min-height: var(--header-h);
	gap: 1.5rem;
}
.site-brand { gap: .75rem; flex-shrink: 0; }
.site-brand .wp-block-site-logo img { max-height: 80px; width: auto; }
.site-brand:has(.wp-block-site-logo img) .wp-block-site-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-brand .wp-block-site-title {
	font-family: var(--sign);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1;
	margin: 0;
}
.site-brand .wp-block-site-title a { text-decoration: none; }

.site-nav { margin-left: auto; }
.site-nav .wp-block-navigation-item__content { text-decoration: none; padding: .35rem .15rem; }
.site-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav .current-menu-item > .wp-block-navigation-item__content,
.site-nav [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav .wp-block-navigation__container { gap: 1.4rem; }
.site-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius);
	box-shadow: 0 14px 30px -12px rgba(11, 29, 74, .35);
	padding: .4rem 0;
	min-width: 15rem !important;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	font-size: 1rem;
}
.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1rem; }

.site-header__call .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	white-space: nowrap;
	font-size: 1.3rem;
	padding: .65rem 1.1rem;
}
.site-header__call .wp-block-button__link::before,
.callbar__call .wp-block-button__link::before {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 1080px) {
	.site-nav .wp-block-navigation__container { gap: 1rem; }
	.site-header__call .wp-block-button__link { font-size: 1.1rem; padding: .55rem .8rem; }
}
@media (max-width: 600px) {
	:root { --header-h: 70px; }
	.site-brand .wp-block-site-logo img { max-height: 62px; }
	.site-header__call { display: none; }
}
.wp-block-navigation__responsive-container.is-menu-open {
	font-size: 1.5rem;
	padding: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { font-size: 1.125rem; }

/* ---------- Bands (page sections) ---------- */

.band {
	padding-block: var(--wp--preset--spacing--60);
}
.band > * + * { margin-block-start: 1.25rem; }
.band > .wp-block-heading + * { margin-block-start: 1rem; }
.band > .wp-block-heading:not(:first-child) { margin-block-start: var(--wp--preset--spacing--50); }
.band > :where(.wp-block-heading, p, .wp-block-list, .wp-block-buttons, .faq-list) { max-width: 720px; }
.band.has-asphalt-background-color { color: #d4ddeb; }
.band.has-asphalt-background-color :where(h1, h2, h3, h4, strong) { color: var(--paper); }
.band.has-asphalt-background-color a:not(.wp-element-button) { color: var(--paper); text-decoration-color: var(--amber); }

.lede {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	max-width: 62ch;
}
.aside { margin-block-start: var(--wp--preset--spacing--40) !important; font-weight: 500; }
.small-heading { font-size: 1.5rem !important; margin-block-start: 2rem !important; }

.wp-block-columns.alignwide { gap: clamp(2rem, 5vw, 4.5rem); }

.photo img {
	border-radius: var(--radius);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	background: var(--asphalt-raised);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}
/* Road centre line along the bottom edge. */
.hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.25rem;
	height: 5px;
	background: repeating-linear-gradient(90deg, var(--amber) 0 56px, transparent 56px 104px);
	opacity: .9;
}
.hero h1 {
	color: var(--paper);
	margin-block: 0 1.25rem;
	max-width: none; /* Spans the full text column, so its edges line up with the paragraph and checklist below. */
	font-size: clamp(2.6rem, 4.4vw, 4.25rem);
	line-height: 1.04;
	text-wrap: balance;
}
.hero .lede { color: #d4ddeb; }
.hero__copy > * + * { margin-block-start: 1.25rem; }
.hero--short { padding-block: clamp(3rem, 7vw, 5rem); }
.hero--short > * { max-width: 720px; }
.hero__media .photo { margin: 0; }

.checks {
	list-style: none;
	padding: 0;
	display: grid;
	gap: .55rem;
	font-weight: 500;
}
.checks li {
	position: relative;
	padding-left: 2rem;
}
.checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.8' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.hero .checks { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.hero__buttons { margin-block-start: 1.75rem !important; gap: .75rem; }

/* Outline buttons take the colour of the section they sit in. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: inherit;
	padding: calc(.8rem - 2px) calc(1.5rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(127, 127, 127, .14); }
.wp-block-button.is-style-dark > .wp-block-button__link { background: var(--asphalt); color: var(--paper); }
.wp-block-button.is-style-dark > .wp-block-button__link:hover { background: #050f2b; }

/* ---------- Quote ticket ---------- */

.ascr-ticket {
	--cutout: var(--asphalt);
	position: relative;
	background: var(--paper);
	color: var(--asphalt);
	border-radius: 6px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .1);
	max-width: 34rem;
	margin-inline: auto;
	overflow: hidden;
}
.ascr-ticket::before {
	content: "";
	display: block;
	height: 12px;
	background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--asphalt) 14px 28px);
}
.ascr-ticket__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem 1.1rem;
	border-bottom: 2px dashed var(--line);
}
/* Tear-off notches on the dashed line. */
.ascr-ticket__head::before,
.ascr-ticket__head::after {
	content: "";
	position: absolute;
	bottom: -11px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--cutout);
}
.ascr-ticket__head::before { left: -10px; }
.ascr-ticket__head::after { right: -10px; }
.ascr-ticket__title {
	font-family: var(--sign);
	font-weight: 700;
	font-size: 1.85rem;
	line-height: 1;
	margin: 0;
}
.ascr-ticket__stamp {
	margin: 0;
	flex-shrink: 0;
	font-family: var(--sign);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--stamp);
	border: 3px solid var(--stamp);
	border-radius: 4px;
	padding: .2rem .55rem .1rem;
	transform: rotate(-7deg);
	opacity: .9;
	animation: ascr-stamp .45s cubic-bezier(.2, 1.6, .4, 1) .5s both;
}
@keyframes ascr-stamp {
	from { transform: rotate(-16deg) scale(1.8); opacity: 0; }
	to { transform: rotate(-7deg) scale(1); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
	.ascr-ticket__stamp { animation: none; }
}

.ascr-ticket__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .9rem 1rem;
	padding: 1.35rem 1.5rem 1.5rem;
}
.ascr-field { grid-column: 1 / -1; display: grid; gap: .3rem; }
.ascr-field--half { grid-column: span 1; }
@media (max-width: 480px) { .ascr-field--half { grid-column: 1 / -1; } }
.ascr-field label { font-weight: 600; font-size: .9375rem; }
.ascr-optional { font-weight: 400; color: var(--steel); }
.ascr-field :is(input, select, textarea) {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--asphalt);
	background: #f7f8f8;
	border: 1.5px solid #b9c0c5;
	border-radius: var(--radius);
	padding: .7rem .8rem;
	min-height: 48px;
}
.ascr-field textarea { min-height: 72px; resize: vertical; }
.ascr-field :is(input, select, textarea):focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--asphalt); background: var(--paper); }
.ascr-field ::placeholder { color: #7d878e; }
.ascr-ticket__submit {
	grid-column: 1 / -1;
	width: 100%;
	cursor: pointer;
	border: 0;
	font-size: 1.4rem !important;
	padding: 1rem 1.5rem !important;
	margin-top: .25rem;
}
.ascr-ticket__note {
	grid-column: 1 / -1;
	margin: 0;
	font-size: .9rem;
	color: var(--steel);
	text-align: center;
}
.ascr-ticket__note a { color: var(--asphalt); font-weight: 600; }
.ascr-ticket__msg { margin: 1rem 1.5rem 0; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 500; }
.ascr-ticket__msg--ok { background: #e6f4ea; color: #1d5b2c; }
.ascr-ticket__msg--err { background: #fbe9e7; color: #8c1d18; }
.ascr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.has-concrete-background-color .ascr-ticket { --cutout: var(--concrete); }
.has-paper-background-color .ascr-ticket,
.band:not(.has-background) .ascr-ticket { --cutout: var(--paper); }
.ascr-ticket-editor .ascr-ticket { pointer-events: none; }

/* ---------- Steps ---------- */

.steps {
	list-style: none;
	counter-reset: step;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 2rem clamp(1.5rem, 4vw, 3rem);
	max-width: 1200px !important;
}
.band > .steps { margin-inline: auto; }
.steps li {
	counter-increment: step;
	position: relative;
	padding-top: 4.5rem;
}
.steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	font-family: var(--sign);
	font-weight: 700;
	font-size: 3.25rem;
	line-height: 1;
	width: 3.75rem;
	height: 3.75rem;
	display: grid;
	place-items: center;
	background: var(--asphalt);
	color: var(--amber);
	border-radius: var(--radius);
}
.has-asphalt-background-color .steps li::before { background: var(--amber); color: var(--asphalt); }
.steps li strong {
	display: block;
	font-family: var(--sign);
	font-size: 1.6rem;
	line-height: 1.1;
	margin-bottom: .4rem;
}
.steps--compact { grid-template-columns: 1fr; gap: 1rem; }
.steps--compact li { padding: 0 0 0 3.25rem; min-height: 2.5rem; }
.steps--compact li::before { width: 2.25rem; height: 2.25rem; font-size: 1.5rem; }
.steps--compact li strong { font-family: inherit; font-size: inherit; display: inline; }

/* ---------- Vehicle / service type grid ---------- */

.type-grid { gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem) !important; margin-block-start: var(--wp--preset--spacing--50) !important; }
.type-cell {
	border-top: 4px solid var(--asphalt);
	padding-top: 1rem;
}
.has-asphalt-background-color .type-cell { border-top-color: var(--amber); }
.type-cell h3 { margin: 0 0 .5rem; }
.type-cell h3 a { text-decoration: none; }
.type-cell h3 a::after { content: " ›"; color: var(--amber-deep); }
.type-cell h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.type-cell p { margin: 0; }

/* ---------- Offer factors ---------- */

.factors { list-style: none; padding: 0; margin: 0; }
.factors li { border-top: 1px solid var(--line); padding: 1rem 0; }
.factors li:last-child { border-bottom: 1px solid var(--line); }
.factors li strong { display: block; font-family: var(--sign); font-size: 1.45rem; line-height: 1.1; margin-bottom: .2rem; }

.nots { list-style: none; padding: 0; }
.nots li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; }
.nots li::before {
	content: "";
	position: absolute;
	left: .1rem;
	top: .45em;
	width: .9rem;
	height: .9rem;
	background: linear-gradient(45deg, transparent 42%, var(--stamp) 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--stamp) 42% 58%, transparent 58%);
}

.panel {
	background: var(--concrete);
	border-radius: var(--radius);
	padding: clamp(1.25rem, 3vw, 2rem) !important;
	align-self: flex-start;
}
.panel > :first-child { margin-top: 0; }
.checks--dark li::before { background-color: var(--asphalt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.8' fill='none' stroke='%2393d36b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Twin columns ---------- */

@media (min-width: 782px) {
	.twin .wp-block-columns > .wp-block-column + .wp-block-column {
		border-left: 1px solid #c4cfdd;
		padding-left: clamp(2rem, 5vw, 4.5rem);
	}
	.twin .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem) !important; }
}
.twin h2 { font-size: var(--wp--preset--font-size--x-large); }

/* ---------- Makes ---------- */

.makes {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	max-width: 1200px !important;
}
.makes li {
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	padding: .3rem .7rem;
	font-weight: 500;
	font-size: .975rem;
}

/* ---------- Areas + map ---------- */

.area-list {
	list-style: none;
	padding: 0;
	columns: 2;
	column-gap: 2rem;
}
.area-list li {
	break-inside: avoid;
	position: relative;
	padding: .3rem 0 .3rem 1.4rem;
	font-weight: 500;
}
.area-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .75em;
	width: .6rem;
	height: .6rem;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--amber-deep);
}
.map-embed {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--concrete);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */

.faq-list { margin-block-start: 1.5rem !important; border-top: 1px solid var(--line); }
.faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2.5rem;
	font-family: var(--sign);
	font-weight: 600;
	font-size: 1.4rem;
	line-height: 1.2;
}
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: .25rem;
	top: 50%;
	width: 1.1rem;
	height: 1.1rem;
	transform: translateY(-50%);
	background: linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat;
	transition: transform .2s ease;
}
.faq .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .wp-block-details > :not(summary) { margin-block: .75rem 0; max-width: 66ch; }
@media (prefers-reduced-motion: reduce) { .faq .wp-block-details summary::after { transition: none; } }

/* ---------- Latest posts ---------- */

.latest.wp-block-latest-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 2rem;
	padding: 0;
	max-width: 1200px !important;
}
.band > .latest { margin-inline: auto; }
.latest li { border-top: 4px solid var(--asphalt); padding-top: 1rem; }
.latest .wp-block-latest-posts__post-title {
	font-family: var(--sign);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.1;
	text-decoration: none;
	display: block;
}
.latest .wp-block-latest-posts__post-title:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.latest .wp-block-latest-posts__post-date { color: var(--steel); font-size: .9rem; margin-top: .35rem; }
.latest .wp-block-latest-posts__post-excerpt { margin-top: .5rem; }

/* ---------- CTA band ---------- */

.cta-band h2 { max-width: none; } /* Same width as the text under it. */
.cta-band .wp-block-buttons { margin-block-start: 1.75rem !important; }

/* ---------- Related links ---------- */

.related-band { padding-block: var(--wp--preset--spacing--50); }
.related__title { font-size: var(--wp--preset--font-size--x-large) !important; }
.related {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	max-width: 1200px !important;
}
.related li a {
	display: inline-block;
	padding: .45rem .9rem;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}
.related li a:hover { background: var(--amber); border-color: var(--amber); color: var(--asphalt); }

/* ---------- Contact ---------- */

.contact-block { margin-block: 1.5rem !important; }
.contact-block p { margin: 0 0 .35rem; }
.contact-phone { font-family: var(--sign); font-weight: 700; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1; }
.contact-phone a { text-decoration: none !important; color: var(--amber) !important; }

/* ---------- Page head (generic pages, blog) ---------- */

.page-head { padding-block: var(--wp--preset--spacing--50); }
.page-head h1, .page-head .wp-block-query-title, .page-head .wp-block-post-title { font-size: clamp(2.5rem, 5.5vw, 4rem); margin: 0; text-wrap: balance; }
.page-head .lede { margin-top: 1rem; }

/* ---------- Blog grid ---------- */

.post-grid .wp-block-post-template { gap: 2.5rem 2rem; }
.post-grid .wp-block-post-featured-image { margin: 0 0 1rem; }
.post-grid .wp-block-post-featured-image img { border-radius: var(--radius); background: var(--concrete); }
.post-grid__title { font-size: 1.6rem !important; line-height: 1.1; margin: .4rem 0 .5rem; }
.post-grid__title a { text-decoration: none; }
.post-grid__title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.post-grid .wp-block-post-excerpt { margin: 0; }
.post-grid .wp-block-post-excerpt__more-text { display: none; }
.post-meta { gap: .6rem; font-size: .9rem; color: var(--steel); }
.post-meta .wp-block-post-terms a { color: var(--asphalt); font-weight: 600; text-decoration: none; background: var(--amber); padding: .1rem .5rem; border-radius: 3px; }
.wp-block-query-pagination { margin-top: 3rem; font-weight: 600; }

/* ---------- Single post ---------- */

.post-article { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.post-article__title { font-size: clamp(2.5rem, 5.5vw, 4rem) !important; margin-block: .75rem 2rem; text-wrap: balance; }
.post-article .wp-block-post-featured-image img { border-radius: var(--radius); background: var(--concrete); }
.prose { font-size: 1.125rem; }
.prose > * + * { margin-block-start: 1.15em; }
.prose h2 { font-size: 2.1rem; margin-block-start: 2.25em; }
.prose h3 { margin-block-start: 1.75em; }
.prose li + li { margin-top: .4em; }
.prose .wp-block-pullquote {
	border: 0;
	border-left: 6px solid var(--amber);
	padding: .25rem 0 .25rem 1.5rem;
	text-align: left;
	margin-block: 2em;
}
.prose .wp-block-pullquote blockquote p { font-family: var(--sign); font-weight: 600; font-size: 1.9rem; line-height: 1.15; margin: 0; }
.post-nav { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 3rem; font-weight: 500; }
.post-nav a { text-decoration-color: var(--amber); }

/* ---------- Footer ---------- */

.site-footer { padding-block: var(--wp--preset--spacing--60) 2rem; color: #c8d2e2; font-size: .975rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.site-footer__name { font-family: var(--sign); font-weight: 700; font-size: 1.75rem; color: var(--paper); line-height: 1; }
.site-footer__phone { font-family: var(--sign); font-weight: 700; font-size: 2rem; line-height: 1; }
.site-footer__phone a { color: var(--amber); }
.site-footer__heading { font-size: 1.2rem !important; color: var(--amber); margin-bottom: .75rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { padding: .2rem 0; }
.site-footer__legal { border-top: 1px solid var(--asphalt-raised); padding-top: 1.5rem; margin-top: 3rem !important; font-size: .875rem; color: #9eaec6; }

/* ---------- Mobile call bar ---------- */

.callbar { display: none !important; }
@media (max-width: 781px) {
	.callbar {
		display: flex !important;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		background: var(--asphalt);
		padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
	}
	.callbar__buttons { width: 100%; gap: .5rem; flex-wrap: nowrap; }
	.callbar__buttons .wp-block-button { flex: 1; }
	.callbar__buttons .wp-block-button__link { width: 100%; display: flex; justify-content: center; align-items: center; gap: .45rem; font-size: 1.15rem; padding: .8rem .5rem; }
	.callbar__quote .wp-block-button__link { background: transparent; color: var(--paper); border: 2px solid var(--paper); }
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Mobile adjustments ---------- */

@media (max-width: 781px) {
	.hero h1 { max-width: none; }
	.hero__form { margin-top: 1rem; }
	.wp-block-columns.split { flex-direction: column-reverse; }
	.wp-block-columns.split .split__media { order: -1; }
	.area-list { columns: 1; }
	.ascr-ticket__head { padding: 1rem 1.15rem; }
	.ascr-ticket__form { padding: 1.15rem; }
	.ascr-ticket__title { font-size: 1.6rem; }
}

/* Print: drop chrome, keep content. */
@media print {
	.site-header, .callbar, .site-footer, .ascr-ticket { display: none !important; }
}

/* ---------- Alignment: section text lines up with the wide grid, not the centre ---------- */
.band.is-layout-constrained > :where(:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright)) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
.hero--short.is-layout-constrained > * { max-width: 720px; }
.faq-list > * { margin-block: 0 !important; }
.ascr-ticket .ascr-ticket__note a { color: var(--asphalt) !important; text-decoration-color: var(--amber); }
@media (min-width: 782px) {
	#offer .wp-block-column:first-child { position: sticky; top: calc(var(--header-h) + 2rem); align-self: flex-start; }
}
@media (max-width: 600px) {
	.site-header .site-header__call { display: none !important; }
}
@media (max-width: 781px) {
	/* The sticky call bar covers these on phones, so the form moves up. */
	.hero .hero__buttons { display: none !important; }
	.hero .lede { font-size: 1.125rem; }
}
/* Two plain sections in a row read as one: drop the doubled gap. */
.band:not(.has-background) + .band:not(.has-background),
.band.has-concrete-background-color + .band.has-concrete-background-color { padding-top: 0; }

/* ---------- Hero with a background photo (set in the block's Styles → Background) ---------- */
.hero[style*="background-image"] { isolation: isolate; }
.hero[style*="background-image"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Dark behind the headline, lighter in the middle so the photo shows, then the form card. */
	background: linear-gradient(90deg, rgba(11, 29, 74, .94) 0%, rgba(11, 29, 74, .86) 34%, rgba(11, 29, 74, .42) 52%, rgba(11, 29, 74, .55) 70%, rgba(11, 29, 74, .7) 100%);
}
@media (max-width: 781px) {
	.hero[style*="background-image"] { background-position: 30% center !important; }
	.hero[style*="background-image"]::before { background: rgba(11, 29, 74, .84); }
}

/* About hero crew photo: keep both people in frame when cropped to 4:3. */
.photo--team img { object-position: 18% 40%; }

/* Cash for Cars hero photo: wide banner, shown in full (it has text in the image). */
.photo--banner img { aspect-ratio: 2 / 1; object-fit: cover; }
.hero__copy .photo--banner { margin-block: 1.5rem; }

/* ==========================================================================
   Mobile polish
   ========================================================================== */

/* Menu button and close button: 44px touch area. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	padding: 10px;
	margin: -10px;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

/* Full-screen phone menu: left-aligned, large, simple. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1rem, 6vw, 2rem) 6rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: 3.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 0 !important;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	width: 100%;
	border-bottom: 1px solid var(--line);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--sign);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.1;
	padding: .85rem 0 !important;
	text-decoration: none;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 0 .75rem 1rem !important;
	min-width: 0 !important;
	width: 100%;
	gap: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-bottom: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	font-size: 1.125rem;
	padding: .6rem 0 !important;
	min-height: 44px;
	display: flex;
	align-items: center;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { display: none; }

/* Hide the call bar while the menu is open so it doesn't cover menu links. */
body:has(.wp-block-navigation__responsive-container.is-menu-open) .callbar { display: none !important; }

@media (max-width: 781px) {
	/* Footer links: full-width rows, comfortable to tap. */
	.site-footer__links li { padding: 0; }
	.site-footer__links a,
	.site-footer__links li:not(:has(a)) {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
	.site-footer__phone a { display: inline-flex; align-items: center; min-height: 48px; }
	.site-footer p a { display: inline-block; padding-block: .5rem; }

	/* Stand-alone links in lists (area lists, related links, "keep reading"). */
	.wp-block-list li > a:only-child {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	.area-list li { padding-block: 0; }
	.area-list li::before { top: 50%; transform: translateY(-50%) rotate(-45deg); }

	/* Links inside sentences: bigger hit area without changing the text layout. */
	main p a:not(.wp-element-button) { padding-block: .45rem; }

	/* Service/vehicle titles in the grid. */
	.type-cell h3 a { display: inline-block; padding-block: .35rem; }

	/* Category tags on blog posts. */
	.post-meta .wp-block-post-terms a { display: inline-block; padding: .45rem .75rem; }
	.post-meta { align-items: center; }

	/* FAQ rows. */
	.faq .wp-block-details summary { min-height: 44px; display: flex; align-items: center; }

	/* Quote ticket on small phones. */
	.ascr-ticket__head { flex-wrap: wrap; gap: .5rem; }
	.ascr-ticket__stamp { font-size: .9rem; padding: .15rem .45rem .05rem; transform: rotate(-5deg); }

	/* Headings a touch smaller so long words never crowd the edge. */
	.hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); overflow-wrap: break-word; }
	h2 { overflow-wrap: break-word; }

	/* Map: taller on phones. */
	.map-embed { aspect-ratio: 1 / 1; }
}
@keyframes ascr-stamp-sm {
	from { transform: rotate(-12deg) scale(1.6); opacity: 0; }
	to { transform: rotate(-5deg) scale(1); opacity: .9; }
}
@media (max-width: 781px) {
	.ascr-ticket__stamp { animation-name: ascr-stamp-sm; }
}
@media (max-width: 1080px) {
	.site-header__call .wp-block-button__link { min-height: 44px; }
}
@media (max-width: 781px) {
	.type-cell h3 a { padding-block: .55rem; }
	.post-meta .wp-block-post-terms a { padding: .6rem .8rem; }
	main p a:not(.wp-element-button) { padding-block: .75rem; }
	.post-nav a { display: inline-block; padding-block: .75rem; }
}


/* ==========================================================================
   Logo colours: navy + green
   ========================================================================== */
::selection { background: var(--amber); color: #fff; }
.site-header__call .wp-block-button__link { color: #fff; }
.contact-phone a, .site-footer__phone a { color: var(--leaf) !important; }
.site-footer__heading { color: var(--leaf); }
.site-footer a:hover, .band.has-asphalt-background-color a:not(.wp-element-button) { text-decoration-color: var(--leaf); }
.steps li::before { color: var(--leaf); }
.has-asphalt-background-color .steps li::before { background: var(--amber-deep); color: #fff; }
.has-asphalt-background-color .type-cell { border-top-color: var(--leaf); }
.post-meta .wp-block-post-terms a { color: #fff; background: var(--amber-deep); }
.related li a:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .current-menu-item > .wp-block-navigation-item__content,
.site-nav [aria-current="page"] { text-decoration-color: var(--amber); }
.hero::after { background: repeating-linear-gradient(90deg, var(--leaf) 0 56px, transparent 56px 104px); opacity: .75; }

/* Call-to-action band: deep green with white text (readable contrast). */
.cta-band.has-amber-background-color { background-color: var(--amber-deep) !important; color: #fff !important; }
.cta-band.has-amber-background-color h2 { color: #fff; }
.cta-band .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }

/* Mobile call bar. */
.callbar__call .wp-block-button__link { background: var(--amber-deep); color: #fff; }


/* ---------- Home: closing band with the customer photo as its background (1.12) ---------- */
.cash-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem) !important; }
.cash-band > .cash-band__photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(64%, 980px); max-width: none !important; margin: 0 !important; }
.cash-band > .cash-band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; display: block; }
.cash-band > .cash-band__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1d4a 0%, rgba(11, 29, 74, .78) 22%, rgba(11, 29, 74, .15) 52%, rgba(11, 29, 74, 0) 70%); }
.cash-band > .cash-band__copy { max-width: 31rem !important; margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2)) !important; margin-right: auto !important; }
.cash-band__copy h2 { color: #fff; max-width: none; }
.cash-band__copy p { color: rgba(255, 255, 255, .9); font-size: 1.125rem; }
.cash-band__copy .wp-block-buttons { margin-block-start: 1.75rem !important; }
@media (max-width: 781px) {
	.cash-band { padding-top: 0 !important; }
	.cash-band > .cash-band__photo { position: relative; z-index: 0; inset: auto; width: auto; margin: 0 calc(-1 * var(--wp--style--root--padding-right, 1rem)) 1.75rem calc(-1 * var(--wp--style--root--padding-left, 1rem)) !important; aspect-ratio: 3 / 2; }
	.cash-band > .cash-band__photo img { object-position: 60% 35%; }
	.cash-band > .cash-band__photo::after { background: linear-gradient(180deg, rgba(11, 29, 74, 0) 60%, #0b1d4a 100%); }
	.cash-band > .cash-band__copy { margin-left: 0 !important; }
}

/* ---------- Responsive header (1.12.1) ---------- */
/* Tablets and small laptops: the full menu wrapped onto two lines, so use the menu button up to 1000px. */
@media (min-width: 600px) and (max-width: 1000px) {
	.site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.site-header__bar { gap: 1.25rem; justify-content: flex-start !important; }
	.site-header__bar > .site-header__call { order: 1; margin-left: auto !important; }
	.site-header__bar > .site-nav { order: 2; margin-left: 0 !important; }
}
/* Submenu arrows: a 24px tap target instead of 10px. */
.site-nav .wp-block-navigation-submenu__toggle {
	width: 24px !important;
	height: 24px !important;
	padding: 6px !important;
	margin-left: -2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.site-nav .wp-block-navigation-submenu__toggle svg { width: 12px; height: 12px; }
@media (min-width: 782px) and (max-width: 1100px) {
	.cash-band > .cash-band__copy { max-width: 25rem !important; }
	.cash-band > .cash-band__photo { width: 68%; }
}

/* Five-step lists: one row on wide screens, 3 + 2 on tablets, so no step sits alone. */
@media (min-width: 1150px) {
	.steps:not(.steps--compact):has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); gap: 2rem 1.75rem; }
}
@media (min-width: 700px) and (max-width: 1149px) {
	.steps:not(.steps--compact):has(> li:nth-child(5):last-child) { grid-template-columns: repeat(3, 1fr); }
}
