/*
Theme Name: Number One
Description: Theme for Number One Car Rental (numberonecarrental.com) — corporate car leasing.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: numberone
*/

/* ---------- tokens ---------- */
:root {
	--red: #e31e24;          /* logo red */
	--red-dark: #b5121b;
	--red-tint: #fff0f0;
	--navy: #23205f;         /* secondary used on the old site */
	--navy-dark: #15133d;
	--ink: #13131a;
	--text: #2b2b33;
	--muted: #62626e;
	--line: #e6e6ec;
	--bg: #ffffff;
	--bg-alt: #f5f6f9;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 3px rgba(20,20,40,.06), 0 10px 28px rgba(20,20,40,.07);
	--shadow-hover: 0 4px 12px rgba(20,20,40,.08), 0 20px 44px rgba(20,20,40,.13);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
	--header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, iframe, video { max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: 10px 24px; border: 2px solid var(--red); border-radius: 999px;
	background: var(--red); color: #fff; font-weight: 600; line-height: 1.2; cursor: pointer; text-align: center;
	transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(227,30,36,.25); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 7px 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 12px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.link-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--red); white-space: nowrap; }

/* ---------- header (white, sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand-text { color: var(--red); font-weight: 700; font-size: 26px; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; color: var(--ink); font-weight: 500; font-size: 15px; border-radius: 8px; white-space: nowrap; }
.site-nav .menu > li > a:hover, .site-nav .menu > li.current-menu-item > a, .site-nav .menu > li.current-menu-ancestor > a { color: var(--red); background: var(--red-tint); }
.site-nav li { position: relative; }
/* Lucide chevron-down, tinted with currentColor via mask */
.site-nav .menu-item-has-children > a::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .7; transition: transform .2s; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); }
.site-nav .sub-menu a { white-space: normal; font-size: 15px; }
.site-nav .sub-menu a:hover { color: var(--red); background: var(--red-tint); }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 8px 4px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.nav-phone .icon { color: var(--red); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close { display: none; }

@media (min-width: 1024px) {
	.site-nav .sub-menu { position: absolute; top: 100%; left: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 1180px) and (min-width: 1024px) { .nav-phone { display: none; } }
@media (max-width: 1023px) {
	.nav-toggle { display: inline-flex; }
	.brand-logo { height: 26px; }
	.site-nav {
		position: fixed; inset: calc(var(--header-h) + 1px) 0 0 0; z-index: 99;
		flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter) 100px;
		/* fade/drop in rather than slide from the right: an off-screen translateX widens the mobile page */
		background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline-flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .menu-item-has-children > a::after { margin-left: auto; }
	.site-nav .sub-menu { display: none; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav li.is-open > a::after { transform: rotate(180deg); }
	.nav-phone { margin: 8px 0 0; font-size: 18px; }
	.nav-cta { margin: 0; min-height: 52px; font-size: 17px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-dark); color: #c9c8de; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: .3em; }
.section-head p:last-child { color: var(--muted); margin: 0; }
.section-head-left { text-align: left; margin-left: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; max-width: none; text-align: left; margin-bottom: 28px; }
.section-head-row h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fine-print { color: var(--muted); font-size: 13px; text-align: center; margin: 24px 0 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 90% 10%, #ffe3e3 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -30%; width: 70%; height: 80%; background: var(--red); opacity: .06; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.12; margin-bottom: 18px; }
.hero h1 span { color: var(--red); }
.nw { white-space: nowrap; }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; margin: 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: clamp(24px, 3vw, 32px); color: var(--navy); line-height: 1.1; }
.hero-stats span { color: var(--muted); font-size: 14px; }
.hero-visual img { display: block; width: 115%; max-width: none; margin-left: -5%; filter: drop-shadow(0 30px 30px rgba(20,20,40,.18)); }
@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; padding-top: 32px; }
	.hero-visual { order: -1; }
	.hero-visual img { width: 100%; margin: 0 auto; max-width: 520px; }
}

/* ---------- clients ---------- */
.clients-strip { padding-block: 28px; border-bottom: 1px solid var(--line); background: #fff; }
.clients-strip p { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; }
/* the source logos sit in a lot of white space: draw them large and let the margins overlap */
.logo-row img { height: 120px; width: auto; margin: -22px -18px; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-row img:hover { filter: none; opacity: 1; }
@media (max-width: 560px) { .logo-row img { height: 84px; margin: -16px -14px; } .logo-row { gap: 0 8px; } }

/* ---------- benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.benefit-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--red-tint); color: var(--red); margin-bottom: 16px; }
.benefit-icon .icon { width: 26px; height: 26px; }
.benefit h3 { font-size: 18px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1023px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .benefit-grid { gap: 10px; } .benefit { padding: 18px 16px; } .benefit h3 { font-size: 16px; } .benefit p { font-size: 13px; } }

/* ---------- cars ---------- */
.car-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.car-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.car-img { background: #fff; padding: 12px 12px 0; }
.car-img img { display: block; width: 100%; aspect-ratio: 435 / 400; object-fit: cover; object-position: top; }
.car-body { display: flex; flex-direction: column; flex: 1; padding: 6px 20px 22px; }
.car-type { color: var(--muted); font-size: 13px; font-weight: 600; }
.car-body h3 { font-size: 19px; margin: 2px 0 6px; }
.car-price { color: var(--muted); margin: 0 0 16px; }
.car-price strong { color: var(--red); font-size: 24px; }
.car-body .btn { margin-top: auto; }
@media (max-width: 1023px) { .car-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .car-grid { gap: 10px; } .car-body { padding: 4px 12px 14px; } .car-body h3 { font-size: 15px; } .car-price { font-size: 13px; } .car-price strong { font-size: 18px; display: block; } }

/* ---------- steps ---------- */
.steps-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--bg-alt); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 18px; right: 22px; font-size: 40px; font-weight: 700; color: rgba(35,32,95,.12); line-height: 1; }
.step-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--navy); color: #fff; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps-wrap { grid-template-columns: 1fr; gap: 0; } .steps { grid-template-columns: 1fr; } }

/* ---------- about + video ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-copy h2 { font-size: clamp(26px, 3.5vw, 38px); }
.video-facade, .video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .25s, transform .4s; }
.video-facade:hover img { opacity: .9; transform: scale(1.03); }
.video-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.video-play .icon { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
@media (max-width: 860px) { .about-wrap { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section-dark .checklist li { color: #fff; }

/* ---------- posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card-img { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 18px 20px 22px; }
.post-meta { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.post-card-title { font-size: 18px; margin: 0 0 8px; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--red); }
.post-card-excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; margin: 2px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- page hero & content ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 80px); background: radial-gradient(1000px 400px at 85% -20%, rgba(227,30,36,.45), transparent 60%), var(--navy-dark); color: #c9c8de; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.5vw, 46px); margin: 0; max-width: 900px; }
.page-hero p:not(.eyebrow) { margin: 12px 0 0; max-width: 720px; }
.page-hero .eyebrow { color: #ff8a8d; }
.page-hero .post-meta { color: #a5a3c4; }
.page-hero .post-meta a { color: #fff; }
.page-content { padding-block: clamp(32px, 5vw, 56px); }
.page-content.is-builder { padding-inline: 0; max-width: none; }
.prose { max-width: 800px; font-size: 17px; }
.prose img { border-radius: var(--radius-sm); }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.single-cover { margin: 0 0 28px; }
.single-cover img { width: 100%; border-radius: var(--radius); }
.empty { color: var(--muted); }

/* one typeface everywhere: Elementor pages set Kanit/Prompt per widget; leave icon fonts alone.
   .elementor also covers pages on Elementor's own "full width" template, which skip page.php */
:is(.page-content, .elementor) :not(i):not(svg):not(svg *):not([class*="fa-"]):not([class*="eicon-"]) { font-family: var(--font) !important; }

/* ---------- lead form ---------- */
.lead-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.lead-intro h2 { font-size: clamp(26px, 3.5vw, 36px); }
.lead-intro > p { color: var(--muted); }
.branch-line { display: flex; gap: 10px; align-items: flex-start; }
.branch-line .icon { color: var(--red); margin-top: .25em; }
.lead-form { background: #fff; border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.type-picker { border: 0; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.type-picker legend { font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 8px; padding: 0; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all .15s; }
.type-opt input:checked + span { border-color: var(--red); background: var(--red-tint); color: var(--red-dark); }
.type-opt input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea, .search-field {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	background: #fff; font-size: 16px; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(35,32,95,.1); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--red); }
.lead-form .btn-lg { width: 100%; }
.form-note { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.notice-ok { background: #e9f8ef; color: #106b37; }
.notice-err { background: var(--red-tint); color: var(--red-dark); }
@media (max-width: 860px) { .lead-wrap { grid-template-columns: 1fr; } .lead-wrap-form-first .lead-form { order: -1; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contact-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-card h2 { font-size: 22px; }
.contact-map { width: 100%; min-height: 360px; height: 100%; border: 0; border-radius: var(--radius); background: var(--bg-alt); }
.branch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-map { min-height: 300px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #a5a3c4; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr; gap: 32px; padding-block: 56px 40px; }
.site-footer h2 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer a { color: #e2e1f0; }
.site-footer a:hover { color: #fff; }
.site-footer .icon { color: #ff6b70; }
.site-footer p a { display: inline-flex; align-items: center; gap: 8px; }
.footer-address { display: flex; gap: 8px; }
.footer-address .icon { margin-top: .25em; }
/* the logo is red on transparent; give it a white chip on the dark footer */
.footer-brand .brand-logo { height: 24px; box-sizing: content-box; padding: 10px 14px; background: #fff; border-radius: 10px; margin-bottom: 16px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 18px; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; padding-block: 40px 24px; } }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 1023px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.mobile-cta {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
		padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
	}
	.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; color: var(--navy); font-size: 15px; font-weight: 700; }
	.mobile-cta .icon { width: 22px; height: 22px; color: var(--red); }
	.mobile-cta a.is-primary { background: var(--red); color: #fff; }
	.mobile-cta a.is-primary .icon { color: #fff; }
	.nav-open .mobile-cta { display: none; }
}

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

/* ---------- article (single.php) ---------- */
.single-lead { font-size: clamp(16px, 1.6vw, 19px); color: #d9d8ea; }
.page-hero .post-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(32px, 5vw, 56px); }
.single-main { min-width: 0; }
.single-main .prose { max-width: 760px; }
.single-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 15px; }
.toc-title, .toc summary { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--red); }
.toc-inline { display: none; margin-bottom: 24px; background: var(--bg-alt); border: 0; }
.toc-inline summary { cursor: pointer; margin: 0; }
.toc-inline[open] summary { margin-bottom: 8px; }
.aside-cta { padding: 22px 20px; border-radius: var(--radius); background: var(--navy-dark); color: #c9c8de; }
.aside-cta-title { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.aside-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #fff; font-weight: 700; }
.aside-phone .icon { color: #ff6b70; }
.related-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 20px; }
@media (max-width: 960px) {
	.single-layout { grid-template-columns: 1fr; }
	.single-aside { display: none; }
	.toc-inline { display: block; }
}

/* article body typography */
.prose { line-height: 1.8; }
.prose > p:first-child { font-size: 1.08em; color: var(--ink); }
.prose h2 { position: relative; font-size: clamp(22px, 2.6vw, 28px); margin: 1.8em 0 .6em; padding-top: .2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 12px; }
.prose h3 { font-size: clamp(18px, 2vw, 21px); margin: 1.4em 0 .4em; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--navy); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose .note { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--red-tint); color: var(--red-dark); font-size: 15px; }
.table-wrap { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose .table-wrap table { display: table; width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.prose .table-wrap th, .prose .table-wrap td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose .table-wrap thead th { background: var(--navy); color: #fff; font-weight: 600; }
.prose .table-wrap tbody tr:nth-child(even) { background: var(--bg-alt); }
.prose .table-wrap tbody tr:last-child td { border-bottom: 0; }
.prose .table-wrap td:first-child { font-weight: 600; color: var(--ink); }
