/* ================================================================
   Sell My Car Online — global.css
   Loaded on every page.

   Sections:
     0. @font-face (Inter — self-hosted)
     1. Design Tokens (CSS variables)
     2. Reset & Base
     3. Typography
     4. Layout / Containers
     5. Buttons & CTAs
     6. Header
     7. Logo
     8. Desktop Navigation
     9. Mobile Flyout Menu (CSS-only, checkbox-driven)
     10. Footer
     11. Mobile Sticky CTA Bar
     12. Desktop Floating CTA
     13. Forms (base styles for plugin forms to inherit)
     14. Skip Link & A11y Utilities
     15. Generic Sections / Page wrappers
   ================================================================ */


/* ================================================================
   0. @FONT-FACE — Montserrat (self-hosted, latin subset only)
   font-display: swap — text shows immediately in fallback, then
   upgrades to Montserrat when the WOFF2 finishes loading.
   ================================================================ */

@font-face {
	font-family: 'Montserrat';
	font-style:  normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/montserrat-400.woff2') format('woff2');
}

@font-face {
	font-family: 'Montserrat';
	font-style:  normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/montserrat-500.woff2') format('woff2');
}


/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */

:root {
	/* Brand colors */
	--color-yellow:        #fcde46;
	--color-yellow-hover:  #ffe968;
	--color-yellow-dark:   #e6c92e;

	/* Express-lane motif palette — used in hero + section backgrounds with
	   the lane stripe pattern. Three tones of yellow, no white.
	     - lane-base:    section background / darkest yellow / "rest of section"
	     - lane-highway: mid-tone yellow used as the "highway" divider stripes
	     - lane-express: palest yellow used as the wide "express lane" bands */
	--lane-base:           #fbd94f;
	--lane-highway:        #fdea9e;
	--lane-express:        #fef2c1;

	--color-black:         #0a0a0a;
	--color-ink:           #1a1a1a;          /* Body text — slightly softer than pure black, kinder at small sizes */
	--color-ink-soft:      #4a4a4a;          /* Secondary text */
	--color-muted:         #767676;          /* Tertiary/captions */

	--color-white:         #ffffff;
	--color-bg:            #ffffff;
	--color-bg-alt:        #f7f7f7;          /* Section dividers / cards */
	--color-bg-dark:       #0a0a0a;

	--color-border:        #e6e6e6;
	--color-border-strong: #111111;

	/* Trust / success palette — used for Trustpilot-style stars, verified
	   badges, "paid" pills, and any affirmative micro-signal. A deep forest
	   green reads as reassuring without competing with the brand yellow. */
	--color-success:       #0f8b5c;          /* WCAG AA on white (4.75:1) */
	--color-success-soft:  #e7f6ee;          /* Tint for success-pill backgrounds */

	/* Star color for ratings rendered on WHITE backgrounds. A darker gold
	   that reads as "gold star" while clearing the 3:1 non-text contrast
	   floor. On dark backgrounds we use --color-yellow directly. */
	--color-star:          #b8901e;          /* 3.06:1 on white — passes AA for non-text */

	/* Semantic CTA tokens */
	--cta-primary-bg:      var(--color-yellow);
	--cta-primary-bg-hover:var(--color-yellow-hover);
	--cta-primary-text:    var(--color-black);

	--cta-dark-bg:         var(--color-black);
	--cta-dark-bg-hover:   #1f1f1f;
	--cta-dark-text:       var(--color-white);

	--cta-outline-border:  var(--color-black);
	--cta-outline-text:    var(--color-black);
	--cta-outline-bg-hover:var(--color-black);
	--cta-outline-text-hover: var(--color-white);

	/* Typography */
	--font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--fw-regular: 400;
	--fw-medium:  400;   /* Only 400 and 500 loaded */
	--fw-semi:    500;
	--fw-bold:    500;
	--fw-extra:   500;   /* Montserrat 500 — softer headings, still authoritative */
	--fw-black:   500;

	/* Type scale (fluid, clamp-based) */
	--fs-xs:   0.8125rem;   /* 13px */
	--fs-sm:   0.875rem;    /* 14px */
	--fs-base: 1rem;        /* 16px */
	--fs-md:   1.125rem;    /* 18px */
	--fs-lg:   1.25rem;     /* 20px */
	--fs-xl:   1.5rem;      /* 24px */
	--fs-2xl:  clamp(1.75rem, 3vw, 2.25rem);   /* 28-36 */
	--fs-3xl:  clamp(2.25rem, 4vw, 3rem);      /* 36-48 */
	--fs-4xl:  clamp(2.75rem, 5.5vw, 4rem);    /* 44-64 */
	--fs-5xl:  clamp(3.25rem, 7vw, 5rem);      /* 52-80 */

	--lh-tight: 1.1;
	--lh-snug:  1.25;
	--lh-base:  1.55;
	--lh-loose: 1.7;

	/* Spacing scale (4px base) */
	--sp-1:  4px;
	--sp-2:  8px;
	--sp-3:  12px;
	--sp-4:  16px;
	--sp-5:  20px;
	--sp-6:  24px;
	--sp-8:  32px;
	--sp-10: 40px;
	--sp-12: 48px;
	--sp-16: 64px;
	--sp-20: 80px;
	--sp-24: 96px;
	--sp-32: 128px;

	/* Layout */
	--container-max:    1280px;
	--container-narrow: 880px;
	--container-pad:    24px;

	/* Radius — all 0 for brutalist/sharp aesthetic. Buttons keep a tiny 2px bite. */
	--radius-sm:   0;
	--radius-md:   0;
	--radius-lg:   0;
	--radius-xl:   0;
	--radius-pill: 0;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
	--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
	--shadow-cta: 0 6px 20px rgba(252, 222, 70, 0.4);

	/* Transitions */
	--ease:        cubic-bezier(0.4, 0, 0.2, 1);
	--ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
	--t-fast:      150ms;
	--t-base:      250ms;
	--t-slow:      400ms;

	/* Header */
	--header-height:          88px;
	--header-height-scrolled: 68px;
	--header-bg:              var(--color-white);

	/* Z-index scale */
	--z-skip:         9999;
	--z-mobile-menu:  900;
	--z-header:       800;
	--z-floating-cta: 700;
	--z-mobile-bar:   650;
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* Smooth scroll only for users who haven't opted out of motion. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--color-ink);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Sections that use the express-lane stripe motif extend their children past
   the viewport edge on purpose (skewed stripes with negative left/right).
   Each of those sections sets its own `overflow: hidden` to contain the
   motif, so we don't need a global overflow-x clamp on html/body. If you
   add a new full-width decorative treatment, give its parent
   `overflow: hidden` rather than bringing the global clamp back. */

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

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--color-yellow-dark); }

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

ul, ol { padding: 0; margin: 0; list-style: none; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

hr {
	border: 0;
	height: 1px;
	background: var(--color-border);
	margin: var(--sp-8) 0;
}

::selection { background: var(--color-yellow); color: var(--color-black); }

/* Focus ring — must pass 3:1 contrast against any adjacent surface.
   Black outline clears contrast on every background we use; the yellow
   halo underneath keeps it on-brand. Dark sections override below. */
:focus-visible {
	outline: 2px solid var(--color-black);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--color-yellow);
	border-radius: 2px;
}

/* On dark/black backgrounds, flip the outline to white so the ring stays
   visible. The yellow halo is already high-contrast against dark. */
.section--dark :focus-visible,
.home-cta :focus-visible,
.home-bs :focus-visible,
footer :focus-visible {
	outline-color: var(--color-white);
}


/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-sans);
	font-weight: var(--fw-extra);
	line-height: var(--lh-tight);
	color: var(--color-black);
	margin: 0 0 var(--sp-4);
	letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-4xl); font-weight: var(--fw-black); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
h6 { font-size: var(--fs-md); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; }

.eyebrow {
	display: inline-block;
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-ink-soft);
	margin-bottom: var(--sp-3);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }

strong, b { font-weight: var(--fw-bold); }


/* ================================================================
   4. LAYOUT / CONTAINERS
   ================================================================ */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
	padding: var(--sp-20) 0;
}
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }


/* ================================================================
   5. BUTTONS & CTAs
   ================================================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 16px 28px;
	font-family: var(--font-sans);
	font-size: var(--fs-md);
	font-weight: var(--fw-bold);
	line-height: 1;
	letter-spacing: -0.01em;
	border-radius: var(--radius-md);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--t-base) var(--ease);
	white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn .icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Primary — yellow filled */
.btn-primary {
	background: var(--cta-primary-bg);
	color: var(--cta-primary-text);
	border-color: var(--cta-primary-bg);
}
.btn-primary:hover {
	background: var(--cta-primary-bg-hover);
	border-color: var(--cta-primary-bg-hover);
	color: var(--cta-primary-text);
	box-shadow: var(--shadow-cta);
}

/* Dark — black filled */
.btn-dark {
	background: var(--cta-dark-bg);
	color: var(--cta-dark-text);
	border-color: var(--cta-dark-bg);
}
.btn-dark:hover {
	background: var(--cta-dark-bg-hover);
	border-color: var(--cta-dark-bg-hover);
	color: var(--cta-dark-text);
	box-shadow: var(--shadow-md);
}

/* Outline — black border */
.btn-outline {
	background: transparent;
	color: var(--cta-outline-text);
	border-color: var(--cta-outline-border);
}
.btn-outline:hover {
	background: var(--cta-outline-bg-hover);
	color: var(--cta-outline-text-hover);
}

/* Sizes */
.btn-sm { padding: 10px 18px; font-size: var(--fs-sm); }
.btn-lg { padding: 20px 36px; font-size: var(--fs-lg); }

.btn-block { display: flex; width: 100%; }


/* ================================================================
   6. HEADER
   ================================================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--header-bg);
	border-bottom: 1px solid var(--color-border);
	transition: height var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-sm);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	min-height: var(--header-height);
}

.site-header.is-scrolled .header-inner {
	min-height: var(--header-height-scrolled);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-weight: var(--fw-bold);
	font-size: var(--fs-md);
	color: var(--color-black);
	letter-spacing: -0.01em;
}

.header-phone .icon { width: 18px; height: 18px; }
.header-phone:hover { color: var(--color-yellow-dark); }


/* ================================================================
   7. LOGO
   ================================================================ */

/* WordPress custom logo */
.site-logo .custom-logo-link { display: inline-block; line-height: 0; }
.site-logo .custom-logo {
	height: 36px;
	width: auto;
	max-width: 250px;
}

/* Text fallback logo (when no image uploaded) */
.site-logo--text {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	font-size: 1.4rem;
	font-weight: var(--fw-black);
	color: var(--color-black);
	letter-spacing: -0.04em;
	line-height: 1;
}

.site-logo--text:hover { color: var(--color-black); }

/* The "//" lane accent — themed via --logo-lane-color so it can flip with header bg */
.logo-lanes {
	display: inline-block;
	color: var(--color-yellow);
	font-weight: var(--fw-black);
	transform: skewX(-20deg);
	margin-inline: 2px;
	letter-spacing: -0.1em;
}


/* ================================================================
   8. DESKTOP NAVIGATION
   ================================================================ */

.nav-primary {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-menu {
	display: flex;
	gap: var(--sp-8);
	align-items: center;
}

.nav-menu li { position: relative; }

.nav-menu a {
	display: inline-block;
	padding: var(--sp-3) 0;
	font-size: var(--fs-md);
	font-weight: var(--fw-regular);
	color: var(--color-black);
	letter-spacing: -0.01em;
	position: relative;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--color-yellow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--t-base) var(--ease-out);
}

.nav-menu a:hover { color: var(--color-black); }
.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after { transform: scaleX(1); }

/* Sub-menus (dropdown on hover) */
.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: var(--sp-2) 0;
	z-index: 10;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }

.nav-menu .sub-menu a {
	display: block;
	padding: var(--sp-3) var(--sp-5);
	font-size: var(--fs-sm);
}
.nav-menu .sub-menu a::after { display: none; }


/* ================================================================
   9. MOBILE FLYOUT MENU (CSS-only)
   ================================================================ */

.nav-toggle-input { display: none; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 8px;
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: background var(--t-fast) var(--ease);
}

.nav-toggle:hover { background: var(--color-bg-alt); }

.nav-toggle-bar {
	display: block;
	width: 100%;
	height: 3px;
	background: var(--color-black);
	border-radius: 2px;
	transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
	transform-origin: center;
}

/* Hamburger → X animation when checkbox is checked */
.nav-toggle-input:checked ~ .site-header .nav-toggle .nav-toggle-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.nav-toggle-input:checked ~ .site-header .nav-toggle .nav-toggle-bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.nav-toggle-input:checked ~ .site-header .nav-toggle .nav-toggle-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu overlay — hidden by default, shown when checkbox is checked */
.nav-mobile {
	position: fixed;
	inset: 0;
	background: var(--color-white);
	z-index: var(--z-mobile-menu);
	transform: translateX(100%);
	transition: transform var(--t-slow) var(--ease-out);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	visibility: hidden;
}

.nav-toggle-input:checked ~ .nav-mobile {
	transform: translateX(0);
	visibility: visible;
}

/* Lock body scroll when mobile menu is open */
.nav-toggle-input:checked ~ .site-header { box-shadow: var(--shadow-sm); }

/* Top bar inside the mobile menu: logo left, close button right */
.nav-mobile-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sp-4) var(--container-pad);
	border-bottom: 1px solid var(--color-border);
	background: var(--color-white);
	min-height: var(--header-height);
	flex-shrink: 0;
}

.nav-mobile-logo .custom-logo { height: 32px; width: auto; }
.nav-mobile-logo--text {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	font-size: 1.25rem;
	font-weight: var(--fw-extra);
	color: var(--color-black);
	letter-spacing: -0.04em;
	line-height: 1;
}

.nav-mobile-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--color-black);
	color: var(--color-yellow);
	cursor: pointer;
	transition: background var(--t-fast) var(--ease);
}
.nav-mobile-close:hover { background: var(--color-ink); }
.nav-mobile-close .icon { width: 22px; height: 22px; }

.nav-mobile-inner {
	padding: var(--sp-8) var(--container-pad) var(--sp-12);
	max-width: 600px;
	margin-inline: auto;
	width: 100%;
}

.nav-mobile-menu {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--sp-8);
}

.nav-mobile-menu li {
	border-bottom: 1px solid var(--color-border);
}

.nav-mobile-menu a {
	display: block;
	padding: var(--sp-6) 0;
	font-size: var(--fs-xl);
	font-weight: var(--fw-regular);
	color: var(--color-black);
	letter-spacing: -0.02em;
}

.nav-mobile-ctas {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	margin-top: var(--sp-4);
}


/* ================================================================
   10. FOOTER
   ================================================================ */

.site-footer {
	background: var(--color-black);
	color: var(--color-white);
	padding: var(--sp-16) 0 var(--sp-6);
	margin-top: var(--sp-20);
}

.site-footer h3, .site-footer h4 { color: var(--color-white); }

.footer-top {
	display: grid;
	grid-template-columns: 1.2fr 1.8fr;
	gap: var(--sp-12);
	padding-bottom: var(--sp-12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .custom-logo {
	height: 32px;
	width: auto;
	filter: invert(1) brightness(2);  /* Logo flips white on dark footer */
}
.footer-logo--text {
	display: inline-flex;
	font-size: 1.2rem;
	font-weight: var(--fw-black);
	color: var(--color-white);
	letter-spacing: -0.04em;
}
.footer-logo--text .logo-lanes { color: var(--color-yellow); }

.footer-tagline {
	margin-top: var(--sp-4);
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--fs-sm);
	max-width: 360px;
	line-height: var(--lh-loose);
}

.footer-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-8);
}

.footer-heading {
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-yellow);
	margin-bottom: var(--sp-4);
}

.footer-menu li,
.footer-contact li {
	margin-bottom: var(--sp-3);
}

.footer-menu a,
.footer-contact a {
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--fs-sm);
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	transition: color var(--t-fast) var(--ease);
}
.footer-menu a:hover,
.footer-contact a:hover { color: var(--color-yellow); }

.footer-contact .icon { width: 16px; height: 16px; opacity: 0.7; }

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--sp-3);
	padding-top: var(--sp-6);
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.5);
}

.footer-copyright { margin: 0; }

.footer-legal {
	display: flex;
	gap: var(--sp-5);
}
.footer-legal a {
	color: rgba(255, 255, 255, 0.5);
	font-size: var(--fs-xs);
}
.footer-legal a:hover { color: var(--color-yellow); }


/* ================================================================
   11. MOBILE STICKY CTA BAR
   Appears after the user scrolls past the hero (JS toggles .is-visible,
   observing the page's hero via IntersectionObserver). On mobile the bar
   is always `display: flex` but starts translated offscreen; JS slides
   it up once the hero leaves the viewport. Pages without a hero: main.js
   falls back to showing the bar on page load. With JS off: bar stays
   hidden — header/hero CTAs remain available.
   ================================================================ */

.mobile-cta-bar {
	display: none;  /* Shown on mobile via media query in mobile.css */
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--z-mobile-bar);
	background: var(--color-white);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
	padding: var(--sp-3);
	gap: var(--sp-3);
	padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom));
	/* Start offscreen; JS adds .is-visible to slide up once past the hero. */
	transform: translateY(100%);
	transition: transform var(--t-base) var(--ease);
	will-change: transform;
}

.mobile-cta-bar.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	.mobile-cta-bar { transition: none; }
}

.mobile-cta-bar-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 14px var(--sp-3);
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
	border-radius: var(--radius-md);
	border: 2px solid transparent;
	transition: all var(--t-fast) var(--ease);
}

.mobile-cta-bar-btn .icon { width: 18px; height: 18px; }

.mobile-cta-bar-btn--call {
	background: transparent;
	color: var(--color-black);
	border-color: var(--color-black);
}
.mobile-cta-bar-btn--call:active { background: var(--color-black); color: var(--color-white); }

.mobile-cta-bar-btn--offer {
	background: var(--color-yellow);
	color: var(--color-black);
	border-color: var(--color-yellow);
}
.mobile-cta-bar-btn--offer:active { background: var(--color-yellow-hover); }


/* ================================================================
   12. DESKTOP FLOATING CTA
   Appears after the user scrolls past the hero (JS toggles .is-visible)
   With JS off: hidden by default, harmless. Header CTA is always available.
   ================================================================ */

.floating-cta {
	position: fixed;
	bottom: var(--sp-6);
	right: var(--sp-6);
	z-index: var(--z-floating-cta);
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 16px 24px;
	background: var(--color-yellow);
	color: var(--color-black);
	font-weight: var(--fw-bold);
	font-size: var(--fs-md);
	border-radius: var(--radius-pill);
	box-shadow: 0 12px 32px rgba(252, 222, 70, 0.45), 0 4px 8px rgba(0, 0, 0, 0.1);

	/* Hidden by default — JS reveals after scroll past threshold */
	opacity: 0;
	pointer-events: none;
	transform: translateY(24px) scale(0.92);
	transition: opacity var(--t-slow) var(--ease-out),
	            transform var(--t-slow) var(--ease-out),
	            box-shadow var(--t-base) var(--ease);
}

.floating-cta.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.floating-cta:hover {
	color: var(--color-black);
	box-shadow: 0 16px 40px rgba(252, 222, 70, 0.6), 0 6px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px) scale(1);
}

.floating-cta .icon { width: 22px; height: 22px; }

/* Subtle pulsing accent dot to draw the eye */
.floating-cta::before {
	content: '';
	position: absolute;
	top: 6px;
	right: 6px;
	width: 10px;
	height: 10px;
	background: var(--color-black);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.6);
	animation: smco-pulse 2.4s var(--ease-out) infinite;
}

@keyframes smco-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.6); }
	70%  { box-shadow: 0 0 0 10px rgba(10, 10, 10, 0); }
	100% { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.floating-cta::before { animation: none; }
	.floating-cta { transition: opacity var(--t-base) ease; }
}


/* ================================================================
   13. FORMS — base styles for the lead-form plugin to inherit
   ================================================================ */

input, textarea, select {
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	color: var(--color-ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea, select {
	width: 100%;
	padding: 14px 16px;
	background: var(--color-white);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-md);
	transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
	font-size: 16px;  /* Prevents iOS zoom on focus */
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--color-black);
	box-shadow: 0 0 0 4px rgba(252, 222, 70, 0.25);
}

label {
	display: block;
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
	margin-bottom: var(--sp-2);
	color: var(--color-black);
}


/* ================================================================
   14. SKIP LINK & A11Y UTILITIES
   ================================================================ */

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--sp-3);
	z-index: var(--z-skip);
	padding: var(--sp-3) var(--sp-5);
	background: var(--color-yellow);
	color: var(--color-black);
	font-weight: var(--fw-bold);
	border-radius: var(--radius-sm);
	transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
	top: var(--sp-3);
	color: var(--color-black);
}


/* ================================================================
   15. GENERIC SECTIONS / PAGE WRAPPERS
   ================================================================ */

.section--hero {
	padding: var(--sp-20) 0 var(--sp-16);
	background: var(--color-bg-alt);
	text-align: center;
}

.hero-title {
	font-size: var(--fs-5xl);
	margin-bottom: var(--sp-4);
}
.hero-subtitle {
	font-size: var(--fs-lg);
	color: var(--color-ink-soft);
	max-width: 640px;
	margin: 0 auto var(--sp-8);
}
.hero-ctas {
	display: inline-flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
	justify-content: center;
}

.section--page { padding: var(--sp-16) 0; }


/* ================================================================
   16. GENERAL PAGE TEMPLATE (page.php)
   No top header section — H1 sits inline above content.
   Optional right sidebar via "Show Sidebar" checkbox.
   Optional full-width layout via "Full Width" checkbox.
   Optional hero section via "Show Hero" checkbox (see 16b).
   ================================================================ */

.page-article {
	background: var(--color-white);
}

.page-content {
	padding: var(--sp-12) 0 var(--sp-20);
}

/* If a hero sits above the content, tighten the top padding — the hero has its own bottom breathing room */
.page-layout--has-hero .page-content {
	padding-top: var(--sp-16);
}

/* Layout grid — single column by default, 2-column when sidebar is on */
.page-layout {
	display: grid;
	gap: var(--sp-10);
}

.page-layout--single .page-layout {
	grid-template-columns: minmax(0, 1fr);
	max-width: 880px;
	margin: 0 auto;
}

.page-layout--with-sidebar .page-layout {
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
}

/* Full-width — blow out the narrow container, let content span the screen */
.page-layout--full-width .page-layout {
	max-width: none;
	margin: 0;
}
.page-layout--full-width .page-prose {
	max-width: none;
}

.page-layout-main {
	min-width: 0; /* Prevents grid blowout from long content */
}


/* ================================================================
   16b. PAGE HERO (optional, via "Show Hero" toggle)
   Yellow background, skewed lane motif, same visual language as
   the homepage and landing hero. Two layout variants:
     .page-hero--centered : no image, text centered in a narrow column
     .page-hero--split    : 2-column with image on the right
   ================================================================ */

.page-hero {
	position: relative;
	background: var(--lane-base);
	padding: var(--sp-16) 0 var(--sp-20);
	overflow: hidden;
}

.page-hero-lanes {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.page-hero-express-l,
.page-hero-express-r,
.page-hero-line {
	position: absolute;
	top: -100px;
	height: 1400px;
	transform: skewX(-18deg);
}

/* Left side: express lane + double highway divider */
.page-hero-express-l {
	background: var(--lane-express);
	left: -60px;
	width: 340px;
}
.page-hero-line {
	background: var(--lane-highway);
	width: 10px;
}
.page-hero-line-l1 { left: 280px; }
.page-hero-line-l2 { left: 300px; }

/* Right side: mirrored */
.page-hero-line-r1 { right: 300px; }
.page-hero-line-r2 { right: 280px; }
.page-hero-express-r {
	background: var(--lane-express);
	right: -60px;
	width: 340px;
}

.page-hero-inner {
	position: relative;
}

/* Centered layout (no image) */
.page-hero--centered .page-hero-inner {
	max-width: 820px;
	text-align: center;
}
.page-hero--centered .page-hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-5);
}
.page-hero--centered .page-hero-subhead {
	max-width: 640px;
}
.page-hero--centered .page-hero-form {
	width: 100%;
	max-width: 560px;
}
.page-hero--centered .page-hero-trust {
	justify-content: center;
}

/* Split layout (with image) */
.page-hero--split .page-hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--sp-10);
	align-items: center;
}
.page-hero--split .page-hero-content {
	max-width: 560px;
}

/* Content pieces (shared) */
.page-hero-headline {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: var(--fw-bold);
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0 0 var(--sp-4);
	color: var(--color-black);
}

.page-hero-subhead {
	font-size: var(--fs-md);
	color: var(--color-ink);
	line-height: 1.5;
	margin: 0 0 var(--sp-6);
	max-width: 520px;
}

.page-hero-form {
	max-width: 560px;
	margin-top: var(--sp-6);
}
.page-hero-form > *:first-child { margin-top: 0; }
.page-hero-form > *:last-child  { margin-bottom: 0; }

.page-hero-trust {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
}
.page-hero-trust-avatars {
	max-width: 120px;
	width: auto;
	height: 32px;
	display: block;
	flex-shrink: 0;
}
.page-hero-trust-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.page-hero-trust-stars {
	color: var(--color-black);
	letter-spacing: 2px;
	font-size: var(--fs-sm);
	line-height: 1;
}
.page-hero-trust-text {
	font-size: var(--fs-xs);
	font-weight: var(--fw-semi);
	color: var(--color-ink);
	margin: 0;
	line-height: 1;
}

.page-hero-image {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.page-hero-image img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: contain;
}


/* ================================================================
   17. .page-prose — Gutenberg content styles
   Applied to the .page-prose wrapper so every block type renders
   correctly: paragraphs, headings, lists, tables, quotes, figures.
   ================================================================ */

.page-prose {
	font-size: var(--fs-md);
	line-height: 1.7;
	color: var(--color-ink);
}

/* Vertical rhythm — consistent gap between any two top-level blocks */
.page-prose > * + * { margin-top: var(--sp-5); }

/* H1 inline above content */
.page-prose-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 var(--sp-6);
	color: var(--color-black);
}

/* Featured image — sits right after the title */
.page-featured-image {
	margin: 0 0 var(--sp-8);
}
.page-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Headings inside content */
.page-prose h2,
.page-prose h3,
.page-prose h4 {
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--color-black);
}
.page-prose > h2 { margin-top: var(--sp-12); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: var(--fw-bold); }
.page-prose > h3 { margin-top: var(--sp-10); font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.page-prose > h4 { margin-top: var(--sp-8);  font-size: var(--fs-lg); font-weight: var(--fw-bold); }

.page-prose p {
	margin: 0;
}

.page-prose a {
	color: var(--color-black);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--t-fast) var(--ease);
}
.page-prose a:hover {
	color: var(--color-yellow-dark);
}

.page-prose strong { font-weight: var(--fw-bold); color: var(--color-black); }
.page-prose em { font-style: italic; }
.page-prose del { color: var(--color-muted); }

/* Lists */
.page-prose ul,
.page-prose ol {
	padding-left: var(--sp-6);
}
.page-prose ul { list-style: disc; }
.page-prose ol { list-style: decimal; }
.page-prose li + li { margin-top: var(--sp-2); }
.page-prose li > ul,
.page-prose li > ol { margin-top: var(--sp-2); }

.page-prose li::marker {
	color: var(--color-yellow-dark);
}

/* Tables — brutalist/sharp */
.page-prose table,
.page-prose .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border: 2px solid var(--color-black);
	font-size: var(--fs-sm);
	line-height: 1.5;
	margin: 0;
}

.page-prose .wp-block-table {
	overflow-x: auto;
}

.page-prose thead {
	background: var(--color-black);
	color: var(--color-white);
}

.page-prose th {
	text-align: left;
	padding: var(--sp-3) var(--sp-4);
	font-weight: var(--fw-bold);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.page-prose td {
	padding: var(--sp-3) var(--sp-4);
	border-bottom: 1px solid var(--color-border);
	vertical-align: top;
}

.page-prose tbody tr:last-child td { border-bottom: 0; }
.page-prose tbody tr:nth-child(even) { background: var(--color-bg-alt); }

/* Blockquote */
.page-prose blockquote {
	margin: 0;
	padding: var(--sp-5) var(--sp-6);
	border-left: 4px solid var(--color-yellow);
	background: var(--color-bg-alt);
	font-size: var(--fs-lg);
	line-height: 1.5;
	color: var(--color-ink);
}
.page-prose blockquote p { margin: 0; }
.page-prose blockquote cite {
	display: block;
	margin-top: var(--sp-3);
	font-size: var(--fs-sm);
	color: var(--color-muted);
	font-style: normal;
}

/* Code */
.page-prose code {
	background: var(--color-bg-alt);
	padding: 2px 6px;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 0.9em;
	border: 1px solid var(--color-border);
}
.page-prose pre {
	background: var(--color-black);
	color: var(--color-white);
	padding: var(--sp-5);
	overflow-x: auto;
	font-size: var(--fs-sm);
	line-height: 1.6;
}
.page-prose pre code {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.page-prose hr {
	border: 0;
	border-top: 2px solid var(--color-black);
	margin: var(--sp-12) 0;
	height: 0;
}

.page-prose img,
.page-prose figure {
	max-width: 100%;
	height: auto;
}

.page-prose figure {
	margin: 0;
}

.page-prose figcaption {
	font-size: var(--fs-sm);
	color: var(--color-muted);
	text-align: center;
	margin-top: var(--sp-3);
	line-height: 1.4;
}

/* Gutenberg buttons block */
.page-prose .wp-block-buttons {
	display: flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
}
.page-prose .wp-block-button__link {
	display: inline-block;
	padding: var(--sp-3) var(--sp-6);
	background: var(--color-black);
	color: var(--color-white);
	font-weight: var(--fw-bold);
	text-decoration: none;
	border-radius: 0;
}
.page-prose .wp-block-button__link:hover {
	background: var(--color-yellow);
	color: var(--color-black);
}
.page-prose .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--color-black);
	border: 2px solid var(--color-black);
}

.page-prose .wp-block-pullquote {
	padding: var(--sp-10) 0;
	text-align: center;
	border-top: 2px solid var(--color-black);
	border-bottom: 2px solid var(--color-black);
}
.page-prose .wp-block-pullquote blockquote {
	border: 0;
	background: transparent;
	padding: 0;
	font-size: var(--fs-2xl);
	font-weight: var(--fw-bold);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.page-links {
	margin-top: var(--sp-10);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--color-border);
	font-size: var(--fs-sm);
}
.page-links > span,
.page-links > a {
	display: inline-block;
	padding: var(--sp-2) var(--sp-4);
	margin-right: var(--sp-2);
	border: 1px solid var(--color-border);
}
.page-links > span { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }
.page-links > a { color: var(--color-black); }
.page-links > a:hover { background: var(--color-yellow); border-color: var(--color-black); }


/* ================================================================
   17b. PAGE SIDEBAR
   Right column on pages with "Show Sidebar" enabled.
   ================================================================ */

.page-sidebar {
	/* Grid item — sized by .page-layout--with-sidebar */
}

.page-sidebar-sticky {
	position: sticky;
	top: calc(var(--header-height) + var(--sp-6));
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
}

/* Generic widget container (when admin adds widgets via Appearance → Widgets) */
.page-sidebar-widget {
	background: var(--color-white);
	border: 2px solid var(--color-black);
	padding: var(--sp-5);
	font-size: var(--fs-sm);
	line-height: 1.55;
}
.page-sidebar-widget-title {
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-black);
	margin: 0 0 var(--sp-4);
	padding-bottom: var(--sp-3);
	border-bottom: 2px solid var(--color-black);
}
.page-sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.page-sidebar-widget li + li { margin-top: var(--sp-2); }
.page-sidebar-widget a {
	color: var(--color-black);
	text-decoration: none;
	transition: color var(--t-fast) var(--ease);
}
.page-sidebar-widget a:hover { color: var(--color-yellow-dark); }

/* Default CTA card (when no widgets configured) */
.page-sidebar-cta {
	background: var(--color-yellow);
	padding: var(--sp-6) var(--sp-5) var(--sp-5);
	border: 2px solid var(--color-black);
	position: relative;
	overflow: hidden;
}

.page-sidebar-cta-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	font-weight: var(--fw-bold);
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--color-black);
	margin-bottom: var(--sp-3);
}
.page-sidebar-cta-mark {
	display: inline-block;
	transform: skewX(-20deg);
	letter-spacing: -0.1em;
	font-size: var(--fs-base);
	font-weight: var(--fw-bold);
}

.page-sidebar-cta-heading {
	font-size: var(--fs-xl);
	font-weight: var(--fw-bold);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 var(--sp-3);
	color: var(--color-black);
}

.page-sidebar-cta-text {
	font-size: var(--fs-sm);
	color: var(--color-ink);
	margin: 0 0 var(--sp-5);
	line-height: 1.5;
}

.page-sidebar-cta .btn-block {
	display: block;
	width: 100%;
	text-align: center;
}

.page-sidebar-cta-phone {
	display: block;
	text-align: center;
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	color: var(--color-black);
	text-decoration: none;
	margin-top: var(--sp-3);
}
.page-sidebar-cta-phone:hover { text-decoration: underline; }

/* Default recent guides list (when no widgets configured) */
.page-sidebar-guides {
	background: var(--color-white);
	border: 2px solid var(--color-black);
	padding: var(--sp-5);
}

.page-sidebar-guides-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.page-sidebar-guides-list li {
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--color-border);
	font-size: var(--fs-sm);
	line-height: 1.4;
}
.page-sidebar-guides-list li:first-child { padding-top: 0; }
.page-sidebar-guides-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.page-sidebar-guides-list a {
	color: var(--color-black);
	text-decoration: none;
	font-weight: var(--fw-bold);
	transition: color var(--t-fast) var(--ease);
}
.page-sidebar-guides-list a:hover { color: var(--color-yellow-dark); }


/* ================================================================
   18. GLOBAL CTA (bottom of general pages)
   Same Express Lane pattern as homepage/landing, simplified.
   ================================================================ */

.global-cta {
	background: var(--lane-base);
	padding: var(--sp-20) 0;
	position: relative;
	overflow: hidden;
}

.global-cta-lanes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.global-cta-lane {
	position: absolute;
	top: -100px;
	height: 1400px;
	transform: skewX(-18deg);
}

/* Left side: express lane + double highway divider */
.global-cta-express-l {
	background: var(--lane-express);
	left: -60px;
	width: 340px;
}
.global-cta-line {
	background: var(--lane-highway);
	width: 10px;
}
.global-cta-line-l1 { left: 280px; }
.global-cta-line-l2 { left: 300px; }

/* Right side: mirrored */
.global-cta-line-r1 { right: 300px; }
.global-cta-line-r2 { right: 280px; }
.global-cta-express-r {
	background: var(--lane-express);
	right: -60px;
	width: 340px;
}

.global-cta-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 640px;
}

.global-cta-eyebrow {
	display: inline-flex;
	align-items: baseline;
	gap: var(--sp-3);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	letter-spacing: 0.3em;
	color: var(--color-black);
	text-transform: uppercase;
	margin-bottom: var(--sp-5);
}
.global-cta-eyebrow-mark {
	display: inline-block;
	transform: skewX(-20deg);
	letter-spacing: -0.1em;
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
}

.global-cta-heading {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: var(--fw-bold);
	color: var(--color-black);
	letter-spacing: -0.03em;
	margin-bottom: var(--sp-4);
	line-height: 1.05;
}

.global-cta-subhead {
	font-size: var(--fs-md);
	color: var(--color-ink);
	margin-bottom: var(--sp-8);
}

.global-cta-form {
	max-width: 540px;
	margin: var(--sp-6) auto 0;
}


/* ================================================================
   19. PAGE TEMPLATE RESPONSIVE
   ================================================================ */

/* Tablet: stack sidebar below content, stack hero split layout */
@media (max-width: 1024px) {
	.page-layout--with-sidebar .page-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.page-sidebar-sticky {
		position: static;
	}

	.page-hero { padding: var(--sp-12) 0 var(--sp-16); }
	.page-hero--split .page-hero-inner {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}
	.page-hero--split .page-hero-image {
		min-height: 240px;
		max-width: 480px;
		margin: 0 auto;
	}
	.page-hero--split .page-hero-content {
		max-width: 100%;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.page-content { padding: var(--sp-8) 0 var(--sp-12); }
	.page-layout--has-hero .page-content { padding-top: var(--sp-10); }
	.page-prose-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }

	.page-hero { padding: var(--sp-10) 0 var(--sp-12); }
	.page-hero-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }

	/* Page hero mobile — single-side lane motif */
	.page-hero-express-r,
	.page-hero-line-r1,
	.page-hero-line-r2 { display: none; }
	.page-hero-express-l { left: -30px; width: 160px; }
	.page-hero-line-l1   { left: 120px; width: 6px; }
	.page-hero-line-l2   { left: 134px; width: 6px; }

	/* Post archive hero mobile — single-side lane motif */
	.post-archive-hero-express-r,
	.post-archive-hero-line-r1,
	.post-archive-hero-line-r2 { display: none; }
	.post-archive-hero-express-l { left: -30px; width: 160px; }
	.post-archive-hero-line-l1   { left: 120px; width: 6px; }
	.post-archive-hero-line-l2   { left: 134px; width: 6px; }

	.page-prose { font-size: var(--fs-base); }
	.page-prose > * + * { margin-top: var(--sp-4); }
	.page-prose > h2 { margin-top: var(--sp-10); font-size: clamp(1.375rem, 5.5vw, 1.75rem); }
	.page-prose > h3 { margin-top: var(--sp-8); font-size: var(--fs-lg); }

	/* Tables: allow horizontal scroll on narrow screens */
	.page-prose table,
	.page-prose .wp-block-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.global-cta { padding: var(--sp-12) 0; }
	.global-cta-heading { font-size: clamp(1.75rem, 7vw, 2.25rem); }

	/* Mobile: single-side lane motif (left only), centered content */
	.global-cta-express-r,
	.global-cta-line-r1,
	.global-cta-line-r2 { display: none; }
	.global-cta-express-l { left: -30px; width: 160px; }
	.global-cta-line-l1   { left: 120px; width: 6px; }
	.global-cta-line-l2   { left: 134px; width: 6px; }
}


/* ================================================================
   20. POST ARCHIVE (home.php, archive.php, search.php)
   Compact yellow hero + 3-column card grid + pagination
   ================================================================ */

.post-archive-hero {
	position: relative;
	background: var(--lane-base);
	padding: var(--sp-16) 0;
	overflow: hidden;
}

.post-archive-hero-lanes {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.post-archive-hero-express-l,
.post-archive-hero-express-r,
.post-archive-hero-line {
	position: absolute;
	top: -100px;
	height: 1400px;
	transform: skewX(-18deg);
}

.post-archive-hero-express-l {
	background: var(--lane-express);
	left: -60px;
	width: 340px;
}
.post-archive-hero-line {
	background: var(--lane-highway);
	width: 10px;
}
.post-archive-hero-line-l1 { left: 280px; }
.post-archive-hero-line-l2 { left: 300px; }
.post-archive-hero-line-r1 { right: 300px; }
.post-archive-hero-line-r2 { right: 280px; }
.post-archive-hero-express-r {
	background: var(--lane-express);
	right: -60px;
	width: 340px;
}

.post-archive-hero-inner {
	position: relative;
	max-width: 820px;
}

.post-archive-hero-eyebrow {
	display: inline-block;
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-black);
	margin-bottom: var(--sp-3);
	padding-bottom: var(--sp-2);
	border-bottom: 2px solid var(--color-black);
}

.post-archive-hero-title {
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 0 0 var(--sp-4);
	color: var(--color-black);
}

.post-archive-hero-intro {
	font-size: var(--fs-md);
	color: var(--color-ink);
	line-height: 1.5;
	margin: 0;
	max-width: 640px;
}

/* Search form in the archive hero */
.post-archive-hero-search {
	display: flex;
	margin-top: var(--sp-6);
	max-width: 540px;
	background: var(--color-white);
	border: 2px solid var(--color-black);
}
.post-archive-hero-search-input {
	flex: 1;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	font-size: var(--fs-base);
	font-family: inherit;
	outline: none;
	min-width: 0;
}
.post-archive-hero-search-btn {
	background: var(--color-black);
	color: var(--color-white);
	border: 0;
	padding: 0 var(--sp-5);
	font-family: inherit;
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--t-fast) var(--ease);
}
.post-archive-hero-search-btn:hover {
	background: var(--color-ink);
}

/* Archive body */
.post-archive {
	padding: var(--sp-16) 0 var(--sp-20);
	background: var(--color-white);
}

.post-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-8);
}

.post-archive-empty {
	text-align: center;
	padding: var(--sp-12) 0;
	max-width: 540px;
	margin: 0 auto;
}
.post-archive-empty h2 {
	font-size: var(--fs-2xl);
	font-weight: var(--fw-bold);
	margin-bottom: var(--sp-3);
}
.post-archive-empty p {
	color: var(--color-ink-soft);
	font-size: var(--fs-md);
}


/* ================================================================
   21. POST CARD (used in archive grids and related posts)
   ================================================================ */

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border: 2px solid var(--color-black);
	transition: transform var(--t-base) var(--ease);
}
.post-card:hover {
	transform: translateY(-4px);
}

.post-card-image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 2px solid var(--color-black);
}
.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t-slow) var(--ease);
}
.post-card:hover .post-card-image img {
	transform: scale(1.04);
}

.post-card-placeholder {
	position: absolute;
	inset: 0;
	background: var(--color-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.post-card-placeholder-mark {
	font-size: 120px;
	font-weight: var(--fw-bold);
	color: var(--color-black);
	transform: skewX(-20deg);
	opacity: 0.3;
	letter-spacing: -0.2em;
	line-height: 1;
}

.post-card-category {
	position: absolute;
	top: var(--sp-3);
	left: var(--sp-3);
	background: var(--color-black);
	color: var(--color-yellow);
	padding: 4px 10px;
	font-size: 11px;
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.post-card-body {
	padding: var(--sp-5);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card-title {
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin: 0 0 var(--sp-3);
}
.post-card-title a {
	color: var(--color-black);
	text-decoration: none;
	transition: color var(--t-fast) var(--ease);
}
.post-card-title a:hover {
	color: var(--color-yellow-dark);
}

.post-card-excerpt {
	font-size: var(--fs-sm);
	color: var(--color-ink-soft);
	line-height: 1.55;
	margin: 0 0 var(--sp-4);
	flex: 1;
}

.post-card-meta {
	font-size: var(--fs-xs);
	color: var(--color-muted);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex-wrap: wrap;
}
.post-card-meta-sep {
	color: var(--color-border);
}


/* ================================================================
   22. POST PAGINATION
   ================================================================ */

.post-pagination {
	margin-top: var(--sp-12);
	padding-top: var(--sp-8);
	border-top: 2px solid var(--color-black);
}

.post-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: var(--sp-2);
	flex-wrap: wrap;
}

.post-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 var(--sp-3);
	border: 2px solid var(--color-black);
	background: var(--color-white);
	color: var(--color-black);
	font-weight: var(--fw-bold);
	font-size: var(--fs-sm);
	text-decoration: none;
	transition: all var(--t-fast) var(--ease);
}

.post-pagination .page-numbers:hover {
	background: var(--color-yellow);
}

.post-pagination .page-numbers.current {
	background: var(--color-black);
	color: var(--color-yellow);
}

.post-pagination .page-numbers.dots {
	border: 0;
	background: transparent;
}


/* ================================================================
   23. SINGLE POST (single.php)
   ================================================================ */

.post-article {
	background: var(--color-white);
}

.post-content {
	padding: var(--sp-12) 0 var(--sp-16);
}

.post-header {
	margin-bottom: var(--sp-6);
}

.post-meta {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex-wrap: wrap;
	font-size: var(--fs-xs);
	color: var(--color-muted);
	margin-bottom: var(--sp-4);
	letter-spacing: 0.02em;
}

.post-meta-category {
	display: inline-block;
	background: var(--color-black);
	color: var(--color-yellow);
	padding: 4px 10px;
	font-size: 11px;
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: background var(--t-fast) var(--ease);
}
.post-meta-category:hover {
	background: var(--color-ink);
}

.post-meta-sep {
	color: var(--color-border);
}

.post-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 var(--sp-4);
	color: var(--color-black);
}

.post-lede {
	font-size: var(--fs-lg);
	color: var(--color-ink-soft);
	line-height: 1.5;
	margin: 0 0 var(--sp-6);
	max-width: 640px;
}

.post-featured-image {
	margin: 0 0 var(--sp-8);
}
.post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Tags row below content */
.post-tags {
	margin-top: var(--sp-10);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--color-border);
	display: flex;
	gap: var(--sp-2);
	flex-wrap: wrap;
}
.post-tag {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--color-border);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	color: var(--color-ink-soft);
	text-decoration: none;
	transition: all var(--t-fast) var(--ease);
}
.post-tag:hover {
	background: var(--color-black);
	color: var(--color-yellow);
	border-color: var(--color-black);
}

/* Post prev/next navigation */
.post-nav {
	margin-top: var(--sp-10);
	padding-top: var(--sp-6);
	border-top: 2px solid var(--color-black);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-4);
}
.post-nav-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--sp-5);
	border: 2px solid var(--color-black);
	background: var(--color-white);
	text-decoration: none;
	transition: background var(--t-fast) var(--ease);
}
.post-nav-item:hover {
	background: var(--color-yellow);
}
.post-nav-next {
	text-align: right;
	grid-column: 2;
}
.post-nav-prev {
	grid-column: 1;
}
.post-nav-label {
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.post-nav-title {
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	color: var(--color-black);
	line-height: 1.3;
}


/* ================================================================
   24. RELATED POSTS (bottom of single.php)
   ================================================================ */

.post-related {
	background: var(--color-bg-alt);
	padding: var(--sp-16) 0;
	border-top: 2px solid var(--color-black);
}

.post-related-heading {
	font-size: var(--fs-2xl);
	font-weight: var(--fw-bold);
	letter-spacing: -0.02em;
	margin: 0 0 var(--sp-8);
	text-align: center;
}

.post-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-6);
}


/* ================================================================
   25. POST LAYOUTS RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
	.post-archive-grid,
	.post-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.post-archive-hero { padding: var(--sp-12) 0; }
}

@media (max-width: 640px) {
	.post-archive-hero { padding: var(--sp-10) 0; }
	.post-archive-hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

	.post-archive,
	.post-related { padding: var(--sp-10) 0; }

	.post-archive-grid,
	.post-related-grid {
		grid-template-columns: 1fr;
		gap: var(--sp-6);
	}

	.post-content { padding: var(--sp-8) 0 var(--sp-12); }
	.post-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }

	.post-archive-hero-search { flex-direction: column; }
	.post-archive-hero-search-btn { padding: 12px; }

	.post-nav {
		grid-template-columns: 1fr;
	}
	.post-nav-next,
	.post-nav-prev {
		grid-column: 1;
		text-align: left;
	}
}


/* 404 */
.error-eyebrow {
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: var(--fw-black);
	color: var(--color-yellow);
	letter-spacing: -0.05em;
	line-height: 1;
	margin: 0 0 var(--sp-4);
}
.error-title { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.error-text { font-size: var(--fs-lg); color: var(--color-ink-soft); margin-bottom: var(--sp-8); }
.error-ctas { display: inline-flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }
