/*
 * Car Rental Durrës — frontend styles.
 *
 * Token source of truth is theme.json (exposed as --wp--preset--* / --wp--custom--*).
 * The alias layer below exists only to keep component CSS readable; it must never
 * introduce a value that is not already a theme.json token.
 *
 * Breakpoints (declare here once, never inline new ones):
 *   --bp-lg 1050px  desktop layout relaxes
 *   --bp-md  820px  navigation collapses, multi-column grids stack
 *   --bp-sm  560px  single column, compact chrome
 *
 * Contents
 *   1. Tokens
 *   2. Base + typography
 *   3. Layout: container, sections, dark surfaces
 *   4. Buttons
 *   5. Form controls
 *   6. Icons
 *   7. Site header + navigation
 *   8. Site footer
 *   9. Inherited components (Phase 1–2, retokenised — restyled in later stages)
 */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
	--c-ink: var(--wp--preset--color--ink);
	--c-ink-strong: var(--wp--preset--color--ink-strong);
	--c-heading: var(--wp--preset--color--heading);
	--c-muted: var(--wp--preset--color--muted);
	--c-faint: var(--wp--preset--color--faint);
	--c-signal: var(--wp--preset--color--signal);
	--c-gold: var(--wp--preset--color--gold);
	--c-soft: var(--wp--preset--color--surface-soft);
	--c-paper: var(--wp--preset--color--paper);
	--c-sand: var(--wp--preset--color--sand);
	--c-sand-strong: var(--wp--preset--color--sand-strong);
	--c-line: var(--wp--preset--color--line);
	--c-base: var(--wp--preset--color--base);
	--c-success: var(--wp--preset--color--success);
	--c-warning: var(--wp--preset--color--warning);
	--c-danger: var(--wp--preset--color--danger);

	/* Text/borders on dark surfaces. */
	--c-on-dark: var(--wp--custom--color--on-dark);
	--c-on-dark-muted: var(--wp--custom--color--on-dark-muted);
	--c-on-dark-accent: var(--wp--custom--color--on-dark-accent);
	--c-on-dark-line: var(--wp--custom--color--on-dark-line);

	--r-sm: var(--wp--custom--radius--sm);
	--r-md: var(--wp--custom--radius--md);
	--r-lg: var(--wp--custom--radius--lg);
	--r-xl: var(--wp--custom--radius--xl);
	--r-pill: var(--wp--custom--radius--pill);
	--r-input: var(--wp--custom--radius--input);

	--container-max: var(--wp--custom--container--max);
	--gutter: var(--wp--custom--container--gutter);
	--section-y: var(--wp--custom--section--y);
	--section-y-tight: var(--wp--custom--section--y-tight);

	--shadow-card: var(--wp--preset--shadow--card);
	--shadow-raised: var(--wp--preset--shadow--raised);
	--transition: var(--wp--custom--transition--base);

	/* Header height, published so sticky offsets stay in sync. */
	--header-h: 86px;
}

/* ============================================================
   2. Base + typography
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--c-ink);
	background: var(--c-base);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	color: var(--c-heading);
	font-weight: 700;
	line-height: var(--wp--custom--heading--leading);
	letter-spacing: var(--wp--custom--heading--tracking);
	text-wrap: balance;
}
h1 { font-size: var(--wp--preset--font-size--display); }
h2 { font-size: var(--wp--preset--font-size--huge); }
h3 { font-size: var(--wp--preset--font-size--xl); }
h4 { font-size: var(--wp--preset--font-size--lg); }

p, ul, ol, blockquote, figure { margin-top: 0; }
p { color: var(--c-muted); }

a { color: inherit; text-decoration: none; }
:where(.crd-prose) a { color: var(--c-signal); text-decoration: underline; text-underline-offset: 0.2em; }

::selection { color: var(--c-base); background: var(--c-ink); }

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.crd-skip-link:focus {
	position: fixed; top: 0.5rem; left: 0.5rem; z-index: 1000; width: auto; height: auto;
	clip: auto; padding: 0.75rem 1rem; background: var(--c-ink); color: var(--c-base);
	border-radius: var(--r-sm);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--c-signal);
	outline-offset: 2px;
	border-radius: 4px;
}
/* On dark surfaces the signal blue is too low-contrast to serve as a focus ring. */
:is(.crd-on-dark, .crd-section--ink) :where(a, button, input, select, textarea, summary):focus-visible {
	outline-color: var(--c-gold);
}

/* ============================================================
   3. Layout
   ============================================================ */
.crd-container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.crd-section { padding-block: var(--section-y); }
.crd-section--tight { padding-block: var(--section-y-tight); }
.crd-section--soft { background: var(--c-soft); }
.crd-section--paper { background: var(--c-paper); }
.crd-section--sand { background: var(--c-sand); }

/* Dark surface context. Any component inside inherits legible defaults, so
   individual components never need their own "on dark" colour overrides. */
.crd-on-dark,
.crd-section--ink {
	color: var(--c-on-dark);
	background: var(--c-ink);
}
/* Both classes open the dark context, so every descendant rule in this file is
   prefixed with the same :is() pair — keep them in sync. `--ink` used to set
   only its own colour, which left headings near-black on a near-black section. */
:is(.crd-on-dark, .crd-section--ink) :where(h1, h2, h3, h4, h5, h6) { color: var(--c-on-dark); }
:is(.crd-on-dark, .crd-section--ink) :where(p) { color: var(--c-on-dark-muted); }

/* ============================================================
   4. Buttons
   ============================================================ */
.crd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	color: var(--c-base);
	background: var(--c-ink);
	border: 1px solid var(--c-ink);
	border-radius: var(--r-pill);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--transition), color var(--transition),
		background-color var(--transition), border-color var(--transition);
}
.crd-btn:hover {
	transform: translateY(-2px);
	color: var(--c-base);
	background: var(--c-ink-strong);
	border-color: var(--c-ink-strong);
}

/* Variants. The reference design's `.button--blue` resolves to the same ink fill
   as the default button (its --blue-700 alias maps to --ink), so it is not a
   separate variant here — `.crd-btn` alone is the primary action. */
.crd-btn--white { color: var(--c-ink); background: var(--c-base); border-color: var(--c-base); }
.crd-btn--white:hover { color: var(--c-base); background: transparent; border-color: rgba(255, 255, 255, 0.6); }

.crd-btn--ghost { color: var(--c-ink); background: transparent; border-color: var(--c-line); }
.crd-btn--ghost:hover { color: var(--c-ink); background: var(--c-soft); border-color: var(--c-soft); }

.crd-btn--ghost-light { color: var(--c-on-dark); background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.crd-btn--ghost-light:hover { color: var(--c-on-dark); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }

.crd-btn--full { width: 100%; }

.crd-btn[aria-disabled="true"],
.crd-btn:disabled {
	opacity: 0.55;
	pointer-events: none;
}

/* Inline arrow link. Works both as the link itself (PHP parts, which supply an
   inline SVG) and as a wrapping paragraph (patterns, where the arrow is drawn
   by CSS because a pattern cannot emit inline SVG). */
.crd-textlink,
.crd-textlink a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-ink);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}
.crd-textlink { margin: 0; }
.crd-textlink .crd-icon,
.crd-textlink a::after { transition: transform var(--transition); }
.crd-textlink:hover .crd-icon,
.crd-textlink a:hover::after { transform: translateX(3px); }
.crd-textlink a::after {
	content: "";
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-right.svg) center / contain no-repeat;
}
:is(.crd-on-dark, .crd-section--ink) .crd-textlink { color: var(--c-on-dark); }
:is(.crd-on-dark, .crd-section--ink) .crd-textlink .crd-icon { color: var(--c-on-dark-accent); }

/* core/button block style variations (see inc/block-styles.php).
   The base button look comes from theme.json `styles.elements.button`, so these
   only describe the differences. */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid transparent; transition: transform var(--transition), color var(--transition), background-color var(--transition), border-color var(--transition); }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }

.wp-block-button.is-style-crd-white .wp-block-button__link { color: var(--c-ink); background: var(--c-base); border-color: var(--c-base); }
.wp-block-button.is-style-crd-white .wp-block-button__link:hover { color: var(--c-base); background: transparent; border-color: rgba(255, 255, 255, 0.6); }

.wp-block-button.is-style-crd-ghost .wp-block-button__link { color: var(--c-ink); background: transparent; border-color: var(--c-line); }
.wp-block-button.is-style-crd-ghost .wp-block-button__link:hover { color: var(--c-ink); background: var(--c-soft); border-color: var(--c-soft); }

.wp-block-button.is-style-crd-ghost-light .wp-block-button__link { color: var(--c-on-dark); background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.wp-block-button.is-style-crd-ghost-light .wp-block-button__link:hover { color: var(--c-on-dark); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }

/* ---- Button icons ----
   Content buttons cannot carry inline SVG, so the icon is a recolourable CSS
   mask appended to the link. Every Gutenberg CTA gets a trailing "go" arrow;
   any button pointing at wa.me instead leads with the WhatsApp mark and drops
   the arrow (its destination is already named by the glyph). Shared shape: */
.wp-block-button__link::after,
:is(.wp-block-button__link, .crd-btn)[href^="https://wa.me"]::before {
	content: "";
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: var(--crd-btn-icon) center / contain no-repeat;
	mask: var(--crd-btn-icon) center / contain no-repeat;
}
.wp-block-button__link::after { --crd-btn-icon: url(../icons/arrow-up-right.svg); }
:is(.wp-block-button__link, .crd-btn)[href^="https://wa.me"]::before { --crd-btn-icon: url(../icons/whatsapp.svg); width: 1.2em; height: 1.2em; }
/* A WhatsApp button names its destination with the mark; the arrow is noise. */
.wp-block-button__link[href^="https://wa.me"]::after { content: none; }

/* ============================================================
   5. Form controls
   ============================================================ */
.crd-field { position: relative; }
.crd-field--full { grid-column: 1 / -1; }

.crd-field__label {
	display: block;
	margin-bottom: 7px;
	color: var(--c-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.crd-field__hint { margin: 6px 0 0; font-size: 0.75rem; color: var(--c-muted); }
.crd-field__error { margin: 6px 0 0; font-size: 0.78rem; font-weight: 600; color: var(--c-danger); }

/* Shared control surface: real inputs and the read-only display boxes used by
   the booking panels share one base so they cannot drift apart. */
.crd-input,
.crd-field-box {
	width: 100%;
	min-height: 54px;
	padding: 0 16px;
	color: var(--c-ink);
	background: var(--c-soft);
	border: 1px solid transparent;
	border-radius: var(--r-input);
	font: inherit;
	font-size: 0.9rem;
	transition: background-color var(--transition), border-color var(--transition);
}
.crd-field-box { display: flex; align-items: center; gap: 10px; font-weight: 600; }

.crd-input:hover { border-color: var(--c-line); }
.crd-input:focus { background: var(--c-base); border-color: var(--c-signal); outline: none; }
.crd-input:focus-visible { outline: 3px solid var(--c-signal); outline-offset: 2px; }
.crd-input[aria-invalid="true"] { border-color: var(--c-danger); }
.crd-input::placeholder { color: var(--c-faint); }
.crd-input:disabled { opacity: 0.6; cursor: not-allowed; }

textarea.crd-input { min-height: 150px; padding-block: 15px; resize: vertical; line-height: 1.55; }

select.crd-input {
	appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6675' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
}

.crd-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
	color: var(--c-muted);
	font-size: 0.84rem;
	cursor: pointer;
}
.crd-checkbox input { width: 17px; height: 17px; margin: 0; accent-color: var(--c-ink); }

.crd-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* ============================================================
   6. Icons
   ============================================================ */
.crd-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	fill: none;
	color: currentColor;
}
.crd-icon--sm { width: 17px; height: 17px; }

/* ============================================================
   7. Site header + navigation
   ============================================================ */
.crd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-block: 14px;
	background: rgba(255, 255, 255, 0.93);
	border-bottom: 1px solid rgba(220, 228, 236, 0.8);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}
.crd-header__inner { display: flex; align-items: center; gap: 38px; }

.crd-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.crd-brand__logo { width: auto; height: 58px; object-fit: contain; }
.crd-brand__text { color: var(--c-heading); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }

.crd-nav__list { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.crd-nav__list a {
	position: relative;
	display: inline-block;
	color: var(--c-ink);
	font-size: 0.87rem;
	font-weight: 600;
	white-space: nowrap;
	transition: color var(--transition);
}
.crd-nav__list a::after {
	content: "";
	position: absolute;
	right: 0; bottom: -7px; left: 0;
	height: 2px;
	background: var(--c-signal);
	transform: scaleX(0);
	transition: transform var(--transition);
}
.crd-nav__list a:hover,
.crd-nav__list .current-menu-item > a,
.crd-nav__list .current_page_item > a,
.crd-nav__list [aria-current] { color: var(--c-signal); }
.crd-nav__list a:hover::after,
.crd-nav__list .current-menu-item > a::after,
.crd-nav__list .current_page_item > a::after { transform: scaleX(1); }

.crd-header__actions { display: flex; align-items: center; gap: 10px; }

.crd-nav-toggle {
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-left: 6px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	cursor: pointer;
}
.crd-nav-toggle__bars { position: relative; display: block; width: 20px; height: 14px; }
.crd-nav-toggle__bar {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--c-ink);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}
.crd-nav-toggle__bar:nth-child(1) { top: 0; }
.crd-nav-toggle__bar:nth-child(2) { top: 6px; }
.crd-nav-toggle__bar:nth-child(3) { top: 12px; }
.crd-nav-toggle[aria-expanded="true"] .crd-nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.crd-nav-toggle[aria-expanded="true"] .crd-nav-toggle__bar:nth-child(2) { opacity: 0; }
.crd-nav-toggle[aria-expanded="true"] .crd-nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav is a sibling panel inside the header, revealed below the bar. */
.crd-nav--mobile { display: none; }
.crd-nav--mobile .crd-nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 14px 0 6px;
}
.crd-nav--mobile .crd-nav__list li { border-bottom: 1px solid var(--c-line); }
.crd-nav--mobile .crd-nav__list li:last-child { border-bottom: 0; }
.crd-nav--mobile .crd-nav__list a { display: block; padding: 14px 2px; font-size: 1rem; }
.crd-nav--mobile .crd-nav__list a::after { display: none; }

@media (max-width: 1050px) {
	.crd-header__inner { gap: 18px; }
	.crd-nav--desktop .crd-nav__list { gap: 18px; }
}

@media (max-width: 820px) {
	.crd-nav--desktop { display: none; }
	.crd-nav-toggle { display: grid; }
	.crd-nav--mobile { display: block; }
	.crd-nav--mobile[hidden] { display: none; }
	.crd-brand__logo { height: 46px; }
}

@media (max-width: 560px) {
	.crd-header { padding-block: 10px; }
	.crd-brand__logo { height: 40px; }
	/* Keep the CTA reachable on small screens; tighten the icon and padding
	   rather than dropping the arrow, which left the button looking unfinished. */
	.crd-header__cta { gap: 6px; padding: 0 14px; font-size: 0.82rem; }
	.crd-header__cta .crd-icon { width: 15px; height: 15px; }
	.crd-nav-toggle { width: 44px; height: 44px; }
}

@media (max-width: 400px) {
	/* Narrowest phones: the brand + CTA + toggle row is at its limit, so shrink
	   the CTA further instead of letting the logo push the toggle off-screen. */
	.crd-header__inner { gap: 12px; }
	.crd-brand__logo { height: 36px; max-width: 130px; }
	.crd-header__cta { padding: 0 12px; font-size: 0.78rem; }
	.crd-header__cta .crd-icon { width: 14px; height: 14px; }
	.crd-nav-toggle { margin-left: 0; }
}

/* ============================================================
   8. Site footer
   ============================================================ */
.crd-footer {
	padding: 72px 0 24px;
	color: var(--c-on-dark);
	background: var(--c-ink);
}
.crd-footer__top {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr 0.7fr 0.7fr;
	gap: 50px;
	padding-bottom: 56px;
}
.crd-footer__brand { display: inline-flex; margin-bottom: 22px; }
.crd-footer__logo { width: auto; height: 68px; object-fit: contain; }
.crd-footer__name { display: block; margin: 0 0 12px; color: var(--c-on-dark); font-size: 1.1rem; font-weight: 700; }
.crd-footer__disclosure {
	max-width: 350px;
	margin: 0;
	color: var(--c-on-dark-muted);
	font-size: 0.83rem;
	line-height: 1.6;
}
.crd-footer__col-title {
	margin: 0 0 21px;
	color: var(--c-on-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.crd-footer__list { margin: 0; padding: 0; list-style: none; }
.crd-footer__list a {
	display: block;
	width: fit-content;
	margin: 10px 0;
	color: #aab5c4;
	font-size: 0.8rem;
	transition: color var(--transition);
}
.crd-footer__list a:hover { color: var(--c-on-dark); }
/* Unlinked column: the pickup areas have no pages of their own yet, so they are
   text. Same metrics as the link items so all the columns line up. */
.crd-footer__list--plain li { margin: 10px 0; color: #aab5c4; font-size: 0.8rem; }

.crd-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 24px;
	color: #8490a2;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.7rem;
}
.crd-footer__legal-list { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.crd-footer__legal-list a { color: inherit; transition: color var(--transition); }
.crd-footer__legal-list a:hover { color: var(--c-on-dark); }
.crd-footer__copy { margin: 0; }

@media (max-width: 1050px) {
	.crd-footer__top { grid-template-columns: 1.3fr repeat(3, 0.7fr); gap: 28px; }
}
@media (max-width: 820px) {
	.crd-footer__top { grid-template-columns: 1fr 1fr; }
	.crd-footer__identity { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.crd-footer { padding-top: 56px; }
	.crd-footer__top { grid-template-columns: 1fr; gap: 32px; }
	.crd-footer__identity { grid-column: auto; }
	.crd-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   9. Content components (Stage 2)

   These are consumed by registered Gutenberg patterns and by a small number of
   PHP template parts. Patterns supply only core blocks + these class names, so
   no component needs a Custom HTML block.

   Icons: patterns cannot emit inline SVG, so a decorative icon is an empty
   group carrying `.crd-icon-tile is-icon-{name}`. The chip is the element, the
   glyph is a recolourable CSS mask on its ::before.
   ============================================================ */

/* Neutralise WordPress flow-layout sibling margins inside our components. Every
   gap below is set explicitly so the design rhythm is exact rather than the sum
   of two spacing systems. */
.crd-section-heading > *,
.crd-home-hero__copy > *,
.crd-home-hero__grid > *,
.crd-page-hero__aside > *,
.crd-split > *,
.crd-split__media > *,
.crd-split__content > *,
.crd-cards > *,
.crd-benefit-card > *,
.crd-steps > *,
.crd-step > *,
.crd-step__body > *,
.crd-reviews > *,
.crd-review-card > *,
.crd-reviews__score > *,
.crd-cta > *,
.crd-cta__copy > *,
.crd-contact-panel > *,
.crd-contact-list > *,
.crd-points > *,
.crd-features > *,
.crd-faq-layout > *,
.crd-faq > * {
	margin-block-start: 0;
}

/* ---- Icon tile ---- */
.crd-icon-tile {
	position: relative;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	color: var(--c-signal);
	background: var(--c-soft);
	border-radius: 50%;
}
/* The glyph is absolutely centred rather than relying on grid placement: the
   empty pattern group renders with a stray whitespace text node, so the ::before
   is not the sole grid item and `place-items` alone leaves it top-left. */
.crd-icon-tile::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	transform: translate(-50%, -50%);
	background: currentColor;
	-webkit-mask: var(--crd-icon) center / contain no-repeat;
	mask: var(--crd-icon) center / contain no-repeat;
}
/* Bare glyph: no chip, for inline lists. */
.crd-icon-tile--bare { width: 17px; height: 17px; background: none; border-radius: 0; }
.crd-icon-tile--bare::before { width: 17px; height: 17px; }
/* Square chip used by the split-content feature list. */
.crd-icon-tile--square { width: 40px; height: 40px; border-radius: 12px; }
.crd-icon-tile--square::before { width: 18px; height: 18px; }
/* On dark surfaces the chip inverts. */
:is(.crd-on-dark, .crd-section--ink) .crd-icon-tile { color: var(--c-on-dark); background: rgba(255, 255, 255, 0.12); }
:is(.crd-on-dark, .crd-section--ink) .crd-icon-tile--bare { color: var(--c-on-dark-accent); background: none; }

.is-icon-arrow-right   { --crd-icon: url(../icons/arrow-right.svg); }
.is-icon-arrow-up-right{ --crd-icon: url(../icons/arrow-up-right.svg); }
.is-icon-bookmark      { --crd-icon: url(../icons/bookmark.svg); }
.is-icon-briefcase     { --crd-icon: url(../icons/briefcase.svg); }
.is-icon-calendar      { --crd-icon: url(../icons/calendar.svg); }
.is-icon-car           { --crd-icon: url(../icons/car.svg); }
.is-icon-check         { --crd-icon: url(../icons/check.svg); }
.is-icon-clock         { --crd-icon: url(../icons/clock.svg); }
.is-icon-fuel          { --crd-icon: url(../icons/fuel.svg); }
.is-icon-gear          { --crd-icon: url(../icons/gear.svg); }
.is-icon-headset       { --crd-icon: url(../icons/headset.svg); }
.is-icon-mail          { --crd-icon: url(../icons/mail.svg); }
.is-icon-map-pin       { --crd-icon: url(../icons/map-pin.svg); }
.is-icon-phone         { --crd-icon: url(../icons/phone.svg); }
.is-icon-shield        { --crd-icon: url(../icons/shield.svg); }
.is-icon-sparkle       { --crd-icon: url(../icons/sparkle.svg); }
.is-icon-star          { --crd-icon: url(../icons/star.svg); }
.is-icon-users         { --crd-icon: url(../icons/users.svg); }
.is-icon-whatsapp      { --crd-icon: url(../icons/whatsapp.svg); }

/* ---- Section heading ---- */
.crd-section-heading { max-width: 790px; margin-bottom: 54px; }
.crd-section-heading > * { margin-bottom: 0; }
.crd-section-heading :where(h1, h2, h3) { margin-bottom: 20px; }
.crd-section-heading :where(p) { max-width: 620px; font-size: var(--wp--preset--font-size--md); }
.crd-section-heading--center { max-width: 720px; margin-inline: auto; text-align: center; }
.crd-section-heading--center .crd-eyebrow { justify-content: center; }
.crd-section-heading--center :where(p) { margin-inline: auto; }
/* Split: heading left, intro right, baseline-aligned. */
.crd-section-heading--split {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
	gap: 40px;
	align-items: end;
	max-width: none;
}
.crd-section-heading--split > :last-child { justify-self: end; }

/* ---- Home hero ---- */
.crd-home-hero { padding-block: 36px var(--section-y-tight); }
.crd-home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}
.crd-home-hero__copy > * { margin-bottom: 0; }
.crd-home-hero__copy :where(h1) { margin-bottom: 20px; font-size: var(--wp--preset--font-size--huge); }
.crd-home-hero__copy :where(p) { max-width: 52ch; margin-bottom: 26px; font-size: var(--wp--preset--font-size--md); }
.crd-home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 30px; }
.crd-home-hero__actions .wp-block-button__link, .crd-home-hero__actions .crd-btn { min-width: 180px; }
/* Trust points under the hero copy. */
.crd-points { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 0; padding: 0; list-style: none; }
.crd-points > li, .crd-points .wp-block-group {
	display: inline-flex; align-items: center; gap: 9px;
	color: var(--c-ink); font-size: 0.88rem; font-weight: 600;
}
.crd-points p { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
/* Media holder. Works both as the image itself (home-hero pattern) and as a
   group wrapping the image plus the crd/from-price tag (page-home pattern),
   which is why the image rules are descendant selectors. */
.crd-home-hero__media { position: relative; margin: 0; }
.crd-home-hero__media .wp-block-image { margin: 0; }
.crd-home-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }

/* ---- Page hero (inner pages) ---- */
.crd-page-hero { padding: 68px 0 72px; background: var(--c-soft); }
.crd-page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: end; }
.crd-page-hero__title { margin: 0 0 24px; max-width: 20ch; }
.crd-page-hero__lead { max-width: 620px; margin: 0; font-size: var(--wp--preset--font-size--md); }
.crd-page-hero__aside {
	padding: 34px; background: var(--c-base);
	border: 1px solid var(--c-line); border-radius: var(--r-md);
}
.crd-page-hero__aside > :last-child { margin-bottom: 0; }
.crd-page-hero__aside :where(h2, h3) { margin: 22px 0 10px; }
.crd-page-hero__aside :where(p) { font-size: 0.92rem; }

/* Dark image variant (cars / about heroes). */
.crd-page-hero--image {
	position: relative; isolation: isolate; overflow: hidden;
	padding: 46px 0 48px; color: var(--c-on-dark); background: var(--c-ink);
}
.crd-page-hero--image::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, var(--c-ink) 32%, rgba(13, 18, 30, 0.72) 62%, rgba(13, 18, 30, 0.35) 100%);
}
.crd-page-hero__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.crd-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; opacity: 0.26; }
.crd-page-hero--image .crd-page-hero__title { max-width: 640px; margin: 12px 0 16px; font-size: var(--wp--preset--font-size--xxxl); }
.crd-page-hero--image .crd-page-hero__lead { max-width: 560px; color: rgba(255, 255, 255, 0.78); }
.crd-page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.crd-page-hero__note {
	display: inline-flex; align-items: center; gap: 9px; margin: 40px 0 0;
	color: rgba(255, 255, 255, 0.62); font-size: 0.84rem;
}

/* ---- Document pages (legal text: no hero, contained prose) ---- */
.crd-page--doc { padding-block: 44px 84px; }
.crd-page--doc .crd-container { max-width: 880px; }
.crd-page--doc .crd-breadcrumbs { margin-bottom: 34px; }

/* A single readable column with restored vertical rhythm — the content is a flat
   run of headings, paragraphs and lists, not the theme's full-bleed sections. */
.crd-prose { max-width: 760px; }
.crd-prose > * { margin-top: 0; }
.crd-prose > * + * { margin-top: 1.15rem; }
.crd-prose h1 { margin-bottom: 0.35em; font-size: var(--wp--preset--font-size--xxl); }
.crd-prose h2 { margin-top: 2.6rem; font-size: var(--wp--preset--font-size--xl); }
.crd-prose h3 { margin-top: 2rem; font-size: var(--wp--preset--font-size--lg); }
.crd-prose :where(h2, h3) + * { margin-top: 0.9rem; }
.crd-prose ul, .crd-prose ol { margin-top: 0.7rem; padding-left: 1.35em; }
.crd-prose ul { list-style: disc; }
.crd-prose ol { list-style: decimal; }
.crd-prose li { margin-top: 0.3rem; }
.crd-prose li > p { margin: 0; }
.crd-prose strong { color: var(--c-ink); }
.crd-prose a { color: var(--c-signal); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---- Trust bar ---- */
.crd-trust-bar { padding-block: 32px; border-bottom: 1px solid var(--c-line); }
.crd-trust-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.crd-trust-bar__label {
	margin: 0; color: var(--c-faint); font-size: 0.72rem; font-weight: 700;
	letter-spacing: 0.09em; text-transform: uppercase;
}
.crd-trust-bar .crd-points { gap: 16px 34px; }

/* ---- Split content ---- */
.crd-split { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.crd-split--media-right .crd-split__media { order: 2; }
.crd-split__media { position: relative; margin: 0; }
.crd-split__media .wp-block-image { margin: 0; }
.crd-split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); }
/* Floating badge over the media. */
.crd-split__badge {
	display: flex; align-items: center; gap: 12px;
	position: absolute; right: 24px; bottom: 24px; max-width: 300px;
	padding: 16px 18px; background: var(--c-base);
	border: 1px solid var(--c-line); border-radius: var(--r-md);
	box-shadow: var(--shadow-card);
}
.crd-split__badge p { margin: 0; font-size: 0.82rem; line-height: 1.35; }
.crd-split__badge strong { display: block; color: var(--c-heading); font-size: 0.92rem; }
.crd-split__content > * { margin-bottom: 0; }
.crd-split__content :where(h2) { margin-bottom: 20px; font-size: var(--wp--preset--font-size--xxl); }
.crd-split__content :where(p) { margin-bottom: 16px; font-size: 1.02rem; }
/* Feature row under the copy. */
.crd-features { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 26px 0; padding: 0; list-style: none; }
.crd-features > li, .crd-features .wp-block-group { display: flex; align-items: center; gap: 12px; }
.crd-features p { margin: 0; color: var(--c-heading); font-size: 0.95rem; font-weight: 700; line-height: 1.2; }

/* ---- Benefit cards ---- */
/* The card row. Three up, collapsing to one at 820px like every other
   multi-column section. Cards are equal height so the row reads as a band. */
.crd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.crd-benefit-card {
	padding: 34px 30px; background: var(--c-base);
	border: 1px solid var(--c-line); border-radius: var(--r-lg);
	transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.crd-benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.crd-benefit-card > * { margin-bottom: 0; }
.crd-benefit-card .crd-icon-tile { margin-bottom: 38px; }
.crd-benefit-card :where(h2, h3, h4) { margin-bottom: 12px; }
.crd-benefit-card :where(p) { font-size: 0.9rem; }
/* Dark variant — inherits text colour from .crd-on-dark. */
:is(.crd-on-dark, .crd-section--ink) .crd-benefit-card { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.12); }
:is(.crd-on-dark, .crd-section--ink) .crd-benefit-card:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(76, 134, 255, 0.4); box-shadow: none; }

/* ---- Numbered process steps ---- */
.crd-steps { max-width: 760px; margin-inline: auto; }
.crd-step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 26px; padding-bottom: 30px; }
.crd-step:last-child { padding-bottom: 0; }
/* Connector rail. */
.crd-step__rail { position: relative; display: flex; justify-content: center; }
.crd-step__rail::before {
	content: ""; position: absolute; top: 72px; bottom: -30px; left: 50%;
	width: 2px; background: var(--c-line); transform: translateX(-50%);
}
.crd-step:last-child .crd-step__rail::before { display: none; }
.crd-step__num {
	display: grid; place-items: center; width: 72px; height: 72px;
	margin: 0; color: var(--c-base); background: var(--c-ink); border-radius: 50%;
	font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
}
.crd-step__body {
	padding: 26px 30px; background: var(--c-base);
	border: 1px solid var(--c-line); border-radius: var(--r-lg);
	transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.crd-step__body:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.crd-step__body > * { margin-bottom: 0; }
.crd-step__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.crd-step__head .crd-icon-tile { width: 46px; height: 46px; }
.crd-step__head .crd-icon-tile::before { width: 20px; height: 20px; }
.crd-step__body :where(h2, h3, h4) { margin-bottom: 10px; }
.crd-step__body :where(p) { font-size: 0.92rem; }

/* ---- Reviews ---- */
.crd-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.crd-avatar {
	display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px;
	color: var(--c-on-dark); background: var(--c-ink); border-radius: 50%;
	font-size: 0.75rem; font-weight: 800;
}
.crd-avatar p { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
/* Aggregate score panel. */
.crd-reviews__score {
	display: flex; flex-direction: column; grid-row: span 2; padding: 34px;
	color: var(--c-on-dark); background: var(--c-ink); border-radius: var(--r-lg);
}
.crd-reviews__score > * { margin-bottom: 0; }
.crd-reviews__score .crd-stars { margin-top: 16px; font-size: 1.1rem; }
/* Overlapping avatar row, pinned to the bottom of the score panel. */
.crd-reviews__avatars { display: flex; align-items: center; margin-top: auto; padding-top: 32px; }
.crd-reviews__avatars .crd-avatar { border: 2px solid var(--c-ink); background: #232f45; }
.crd-reviews__avatars .crd-avatar + .crd-avatar { margin-left: -12px; }
.crd-reviews__avatars-label { margin: 0 0 0 14px; color: var(--c-faint); font-size: 0.76rem; }
.crd-reviews__score :where(p) { margin-top: 18px; color: #b7c2d0; font-size: 0.95rem; }
/* Review card. */
.crd-review-card {
	display: flex; flex-direction: column; padding: 30px;
	background: var(--c-base); border: 1px solid var(--c-line); border-radius: var(--r-lg);
	transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.crd-review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.crd-review-card > * { margin-bottom: 0; }
.crd-review-card blockquote,
.crd-review-card .wp-block-quote {
	margin: 18px 0 24px; padding: 0; border: 0;
	color: var(--c-ink); font-size: 1rem; font-style: normal; line-height: 1.62;
}
.crd-review-card .wp-block-quote p { color: inherit; font-size: inherit; }
.crd-review-card__author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.crd-review-card__author p { margin: 0; }
.crd-review-card__author strong { display: block; font-size: 0.87rem; color: var(--c-heading); }
.crd-review-card__author cite, .crd-review-card__author em { display: block; color: var(--c-muted); font-size: 0.82rem; font-style: normal; }
/* Feature card spans two columns on desktop. */
.crd-review-card--feature { grid-column: span 2; justify-content: center; }
.crd-review-card--feature .wp-block-quote,
.crd-review-card--feature blockquote { font-size: 1.32rem; line-height: 1.5; letter-spacing: -0.01em; color: var(--c-heading); }

/* ---- FAQ (core/details) ---- */
.crd-faq-layout { display: grid; grid-template-columns: 0.68fr 1.32fr; gap: 70px; align-items: start; }
.crd-faq-intro { position: sticky; top: calc(var(--header-h) + 20px); }
.crd-faq-intro > :last-child { margin-bottom: 0; }
.crd-faq .wp-block-details {
	padding: 5px 0;
	border-top: 1px solid var(--c-line);
}
.crd-faq .wp-block-details:last-child { border-bottom: 1px solid var(--c-line); }
.crd-faq .wp-block-details summary {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 78px; padding: 0; cursor: pointer; list-style: none;
	color: var(--c-heading); font-size: 1.04rem; font-weight: 700;
}
.crd-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.crd-faq .wp-block-details summary::after {
	content: "+"; display: grid; place-items: center; flex: 0 0 auto;
	width: 32px; height: 32px; color: var(--c-ink); background: var(--c-soft);
	border-radius: 50%; font-size: 1.25rem; font-weight: 400;
	transition: transform var(--transition);
}
.crd-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.crd-faq .wp-block-details > :not(summary) { max-width: 760px; padding: 0 55px 22px 0; font-size: 0.92rem; }

/* ---- Final CTA ---- */
.crd-cta {
	position: relative; overflow: hidden; display: grid;
	grid-template-columns: 1.15fr 0.85fr; min-height: 420px;
	color: var(--c-on-dark); background: var(--c-ink); border-radius: var(--r-xl);
}
.crd-cta::after {
	content: ""; position: absolute; top: -260px; right: -170px; width: 550px; height: 550px;
	border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%;
	box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.035), 0 0 0 140px rgba(255, 255, 255, 0.025);
}
.crd-cta__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 65px; }
.crd-cta__copy > * { margin-bottom: 0; }
.crd-cta__copy :where(h2) { max-width: 720px; margin-bottom: 20px; font-size: var(--wp--preset--font-size--xxl); }
.crd-cta__copy :where(p) { max-width: 560px; color: #c9ddf4; }
.crd-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Doubled class: core's .wp-block-image bottom margin is same-specificity and
   would otherwise leave a strip of panel showing under the image. */
.crd-cta .crd-cta__media { position: relative; z-index: 1; height: 100%; margin: 0; }
.crd-cta .crd-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.crd-cta--no-media { grid-template-columns: 1fr; min-height: 0; text-align: center; }
.crd-cta--no-media .crd-cta__copy { align-items: center; }
.crd-cta--no-media .crd-cta__actions { justify-content: center; }

/* ---- Contact information panel ---- */
.crd-contact-panel { padding: 42px; color: var(--c-on-dark); background: var(--c-ink); border-radius: var(--r-lg); }
.crd-contact-panel > * { margin-bottom: 0; }
.crd-contact-panel :where(h2) { margin-bottom: 22px; font-size: var(--wp--preset--font-size--xxl); }
.crd-contact-panel :where(> p) { color: #c9ddf4; }
.crd-contact-list { display: grid; gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.crd-contact-row { display: flex; align-items: flex-start; gap: 15px; }
.crd-contact-row p { margin: 0; }
.crd-contact-row strong { display: block; color: var(--c-on-dark); font-size: 0.85rem; }
.crd-contact-row a, .crd-contact-row span { display: block; margin-top: 3px; color: #c9ddf4; font-size: 0.8rem; }
.crd-contact-row a:hover { color: var(--c-on-dark); }

/* ---- Leaf utilities (declared last on purpose) ----
   WordPress adds `wp-block-paragraph` to every paragraph, so the container
   prose defaults above cannot be scoped with :not([class]). Declaring these
   leaf utilities after the containers is what keeps an eyebrow, a star row or
   a score readable inside any component. Do not move them earlier. */
.crd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	color: var(--c-signal);
	font-size: 0.77rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.crd-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.crd-eyebrow--on-dark { color: var(--c-on-dark-accent); }

.crd-stars { margin: 0; color: var(--c-gold); font-size: 0.95rem; letter-spacing: 0.12em; }
.crd-reviews__value { margin: 0; color: var(--c-on-dark); font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.crd-step__label {
	display: inline-flex; margin: 0; padding: 5px 12px;
	color: var(--c-signal); background: var(--c-soft); border-radius: var(--r-pill);
	font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.crd-trust-bar__label { color: var(--c-faint); }

/* ---- Responsive: content components ---- */
@media (max-width: 1050px) {
	.crd-home-hero__grid { gap: 40px; }
	.crd-split { gap: 40px; }
	.crd-faq-layout { gap: 45px; }
	.crd-cta__copy { padding: 48px; }
}

@media (max-width: 820px) {
	.crd-section-heading--split,
	.crd-section-heading--split > :last-child { grid-template-columns: 1fr; justify-self: start; }
	.crd-home-hero__grid,
	.crd-page-hero__grid,
	.crd-split,
	.crd-faq-layout,
	.crd-cards,
	.crd-cta { grid-template-columns: 1fr; }
	.crd-split--media-right .crd-split__media { order: 0; }
	.crd-split__media img { aspect-ratio: 16 / 10; }
	.crd-reviews { grid-template-columns: 1fr 1fr; }
	.crd-reviews__score, .crd-review-card--feature { grid-column: 1 / -1; grid-row: auto; }
	.crd-faq-intro { position: static; }
	.crd-cta__media { display: none; }
	.crd-cta { min-height: 0; }
	.crd-cta__copy { padding: 48px 36px; }
	.crd-contact-panel { padding: 32px; }
	.crd-page-hero { padding: 48px 0 52px; }
}

@media (max-width: 620px) {
	.crd-step { grid-template-columns: 56px 1fr; gap: 16px; }
	.crd-step__num { width: 56px; height: 56px; font-size: 1.5rem; }
	.crd-step__rail::before { top: 56px; }
	.crd-step__body { padding: 22px; }
}

@media (max-width: 560px) {
	.crd-home-hero { padding-top: 26px; }
	.crd-home-hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
	.crd-home-hero__actions .wp-block-button, .crd-home-hero__actions .wp-block-button__link { width: 100%; }
	.crd-home-hero__media img { aspect-ratio: 4 / 3; }
	.crd-reviews { grid-template-columns: 1fr; }
	.crd-cta__copy { padding: 40px 25px; }
	.crd-contact-panel { padding: 26px; }
	.crd-faq .wp-block-details > :not(summary) { padding-right: 0; }
	.crd-split__badge { position: static; margin-top: 14px; max-width: none; }
}

/* ============================================================
   10. Inherited components (Phase 1–2)
   Retokenised onto the approved palette. These keep the existing templates
   rendering correctly and are replaced in the later conversion stages.
   ============================================================ */
.crd-badge {
	display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem;
	border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 600; line-height: 1.4;
	background: var(--c-soft); color: var(--c-ink);
}
.crd-badge--success { background: color-mix(in srgb, var(--c-success) 14%, #fff); color: var(--c-success); }
.crd-badge--warning { background: color-mix(in srgb, var(--c-warning) 16%, #fff); color: #8a5b00; }
.crd-badge--danger  { background: color-mix(in srgb, var(--c-danger) 12%, #fff);  color: var(--c-danger); }
.crd-badge--accent  { background: var(--c-sand); color: var(--c-ink); }
.crd-badge--muted   { background: rgba(255, 255, 255, 0.9); color: var(--c-muted); border: 1px solid var(--c-line); }

.crd-notice { padding: 0.9rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-paper); }
.crd-notice--info { border-color: color-mix(in srgb, var(--c-signal) 30%, var(--c-line)); }
.crd-notice--error { border-color: var(--c-danger); background: color-mix(in srgb, var(--c-danger) 6%, #fff); }
.crd-notice--success { border-color: var(--c-success); background: color-mix(in srgb, var(--c-success) 8%, #fff); }

/*
 * The paper strip is the *standalone* treatment — a full-bleed bar between the
 * header and the content, which only makes sense when the trail owns its own
 * container. Nested in a hero or a document column it reads as a stray panel, so
 * the chrome is keyed off the container the part decides to emit.
 */
.crd-breadcrumbs:has(> .crd-container) { border-bottom: 1px solid var(--c-line); background: var(--c-paper); }
/* On a dark hero the trail is part of the hero, not a bar above the content. */
.crd-breadcrumbs--light { border-bottom: 0; background: none; }
.crd-breadcrumbs--light .crd-breadcrumbs__list { padding-block: 0 0.9rem; }
.crd-breadcrumbs--light .crd-breadcrumbs__item a { color: var(--c-on-dark-muted); }
.crd-breadcrumbs--light .crd-breadcrumbs__item a:hover { color: var(--c-on-dark); }
.crd-breadcrumbs--light .crd-breadcrumbs__item::before { color: var(--c-on-dark-muted); }
.crd-breadcrumbs--light .crd-breadcrumbs__item [aria-current] { color: var(--c-on-dark); }
/*
 * `padding: 0` matters: an <ol> carries a 40px UA inline indent, which offset
 * the trail from the heading under it on every hero. Alignment belongs to
 * .crd-breadcrumbs__inner — this element must not fight it.
 */
.crd-breadcrumbs__list {
	display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none;
	margin: 0; padding: 0; padding-block: 0.6rem; font-size: 0.85rem;
}
.crd-breadcrumbs__item + .crd-breadcrumbs__item::before { content: "/"; color: var(--c-muted); margin-right: 0.4rem; }
.crd-breadcrumbs__item a { color: var(--c-muted); }
.crd-breadcrumbs__item [aria-current] { color: var(--c-ink); font-weight: 600; }

.crd-post-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .crd-post-grid { grid-template-columns: repeat(2, 1fr); } }

/*
 * Card-wide click target without a card-wide link: only the title is anchored,
 * so its accessible name stays "the post title" instead of title + excerpt +
 * "Read more". The ::after overlay restores the full-card hit area.
 */
/* Same surface treatment as .crd-vehicle-card in vehicles.css — a card is a card. */
.crd-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-base);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	transition: transform var(--transition), box-shadow var(--transition);
}
.crd-post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.crd-post-card__link { color: inherit; text-decoration: none; }
.crd-post-card__link::after { content: ""; position: absolute; inset: 0; }
.crd-post-card__link:focus-visible { outline: none; }
.crd-post-card:has(.crd-post-card__link:focus-visible) { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.crd-post-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-soft); }
.crd-post-card__img { width: 100%; height: 100%; object-fit: cover; }
.crd-post-card__body { padding: 22px; }
.crd-post-card__title { margin: 0 0 0.5rem; font-size: var(--wp--preset--font-size--lg); }
.crd-post-card__excerpt { margin: 0; color: var(--c-muted); font-size: 0.95rem; }
.crd-post-card__more {
	display: inline-block; margin-top: 0.9rem; color: var(--c-signal);
	font-size: 0.85rem; font-weight: 600;
}

/* Index heading for the posts page and term archives. */
.crd-page-header { max-width: 760px; margin-bottom: 40px; }
.crd-page-header__title { margin: 0; font-size: var(--wp--preset--font-size--xxl); }
.crd-page-header__desc { margin-top: 0.9rem; color: var(--c-muted); font-size: 1.08rem; }
.crd-page-header__desc > :last-child { margin-bottom: 0; }

/* ---- Single article ----
 * A reading layout, not a marketing section: the lead image runs the full
 * container and everything else sits in a measure-limited column. The H1 comes
 * from the content (see single.php), so the only thing above it is the meta
 * line — which is why it is styled as an eyebrow rather than a byline.
 */
.crd-article { padding-block: 34px 84px; }
.crd-article__figure { margin: 0 auto 38px; }
.crd-article__figure img { width: 100%; border-radius: var(--r-lg); }
.crd-article__body { max-width: 820px; }

.crd-article__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
	margin: 0 0 0.9rem; color: var(--c-faint);
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
}
.crd-article__category { color: var(--c-signal); }
.crd-article__category + time::before { content: "•"; margin-right: 0.55rem; color: var(--c-line); }

/* The article column is the measure, so the shared prose cap would only add
   dead space on the right. */
.crd-article__content { max-width: none; }
.crd-article__content > :first-child { margin-top: 0; }
.crd-article__content h1 { margin-bottom: 0.5em; }
.crd-article__content h4 { margin-top: 1.8rem; font-size: var(--wp--preset--font-size--md); }
.crd-article__content img { border-radius: var(--r-md); }
.crd-article__content hr { margin-block: 2.4rem; border: 0; border-top: 1px solid var(--c-line); }
.crd-article__content blockquote {
	margin-inline: 0; padding: 0.2rem 0 0.2rem 1.3rem;
	border-left: 3px solid var(--c-sand-strong); color: var(--c-ink); font-size: 1.08rem;
}
.crd-article__content :where(h2, h3) { scroll-margin-top: calc(var(--header-h) + 16px); }

.crd-article__footer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--c-line);
}
.crd-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; }
.crd-tags a { padding: 0.2rem 0.7rem; border-radius: var(--r-pill); background: var(--c-soft); color: var(--c-muted); }
.crd-article__back { color: var(--c-signal); font-size: 0.9rem; font-weight: 600; }

.crd-vehicle { padding-block: var(--section-y-tight); }
.crd-vehicle__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .crd-vehicle__grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.crd-vehicle__title { margin: 0.5rem 0; }

.crd-conditions__note, .crd-vehicle__summary-text { color: var(--c-muted); }


.crd-404 { text-align: center; }
.crd-404__code { font-size: clamp(3rem, 12vw, 6rem); margin: 0; color: var(--c-ink); }
.crd-404__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.crd-hero--fallback { padding-block: var(--section-y); background: linear-gradient(180deg, var(--c-paper), var(--c-base)); }
.crd-hero__title { margin: 0 0 0.75rem; max-width: 18ch; }
.crd-hero__lead { max-width: 52ch; color: var(--c-muted); font-size: 1.08rem; }

.crd-pagination { margin-top: 2rem; display: flex; justify-content: center; }
.crd-pagination .page-numbers { padding: 0.5rem 0.85rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); margin: 0 0.2rem; color: var(--c-ink); }
.crd-pagination .current { background: var(--c-ink); color: var(--c-base); border-color: var(--c-ink); }

/* Filter form emitted by crd-core's helper — retokenised only. */

/* ============================================================
   11. Inner-page components (Stage 4 — about / contact / faq)
   ============================================================ */

/*
 * Stat band. auto-fit rather than the design's fixed repeat(4, 1fr) so the row
 * stays correct with three stats: the design shipped a "24h support" and a
 * "€0 booking fee" figure that are unverified commercial claims, and this build
 * does not assert them (see patterns/page-about.php).
 */
.crd-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	overflow: hidden;
	background: var(--c-ink);
	border-radius: var(--r-lg);
}

.crd-stat {
	padding: 45px 30px;
	color: var(--c-on-dark);
	text-align: center;
	border-inline-end: 1px solid var(--c-on-dark-line);
}

.crd-stat:last-child { border-inline-end: 0; }

.crd-stat > * { margin-bottom: 0; }

.crd-stat__value {
	display: block;
	font-size: clamp(2rem, 4vw, 2.7rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--c-on-dark);
}

.crd-stat__label {
	display: block;
	margin-top: 11px;
	color: var(--c-on-dark-accent);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/*
 * Pickup / collection point card.
 *
 * The reference design gives both the card and its section the same sand fill,
 * which makes the cards invisible — all you see is the decorative circle, read
 * as a stray shape. The card is therefore on the base surface with the sand
 * accent kept as the circle, matching how .crd-benefit-card sits on a tinted
 * section.
 */
.crd-location-card {
	position: relative;
	min-height: 220px;
	padding: 30px;
	overflow: hidden;
	background: var(--c-base);
	border: 1px solid var(--c-sand-strong);
	border-radius: var(--r-md);
}

.crd-location-card::before {
	position: absolute;
	inset-inline-end: -70px;
	inset-block-end: -85px;
	width: 170px;
	height: 170px;
	content: "";
	background: var(--c-sand-strong);
	border-radius: 50%;
}

.crd-location-card > * { position: relative; z-index: 2; margin-bottom: 0; }

/*
 * The accent badge is sand on sand, so on a sand card it would vanish. A
 * sand-strong hairline restores the tonal pill from the design without adding a
 * one-off colour.
 */
.crd-location-card .crd-badge { border: 1px solid var(--c-sand-strong); }

.crd-location-card :where(h3) { margin: 26px 0 10px; }
.crd-location-card :where(p) { max-width: 260px; font-size: 0.86rem; }
.crd-location-card :where(p:not(:last-child)) { margin-bottom: 14px; }

/* Contact page: details panel beside the request form. */
.crd-contact-layout {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 40px;
	align-items: start;
}

.crd-contact-layout > * { margin-bottom: 0; }

@media (max-width: 1050px) {
	.crd-contact-layout { grid-template-columns: 1fr; gap: 32px; }
	.crd-stat { padding: 34px 24px; }
}

@media (max-width: 620px) {
	.crd-stats { grid-template-columns: 1fr; }
	.crd-stat { border-inline-end: 0; border-block-end: 1px solid var(--c-on-dark-line); }
	.crd-stat:last-child { border-block-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
