/*
Theme Name: Asphalt Paving San Antonio
Theme URI: https://asphaltpavingsanantonio.net/
Description: Lightweight lead-generation theme for a local asphalt paving business. Built-in SEO meta, LocalBusiness/Service/FAQ schema, quote form and lead inbox.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: asphalt-sa
*/

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #111317;
	--ink-2: #1c1f25;
	--ink-3: #2d3139;
	--paper: #ffffff;
	--soft: #f6f5f1;
	--soft-2: #efede6;
	--line: #e4e2db;
	--text: #2a2d33;
	--muted: #5c616b;
	--accent: #f5b301;
	--accent-dark: #dc9e00;
	--accent-soft: #fff6d6;
	--link: #8a5600;
	--ok: #1d7a3a;
	--radius: 14px;
	--shadow-sm: 0 2px 8px rgba(17, 19, 23, .06);
	--shadow: 0 12px 32px rgba(17, 19, 23, .12);
	--shadow-lg: 0 24px 60px rgba(17, 19, 23, .22);
	--wrap: 1240px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 1.6em 0 .55em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.28rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1.1em; }
strong { color: var(--ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto;
	background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 6px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hero-inner > *, .layout > *, .footer-grid > *, .card-grid > *, .asa-split > * { min-width: 0; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: 10px; border: 2px solid transparent;
	font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 179, 1, .35); }
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { background: var(--ink); color: #c9ccd2; font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--accent); }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-items { display: flex; gap: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(17,19,23,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-top { font-weight: 900; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; text-transform: uppercase; }
.brand-bottom { font-weight: 700; font-size: .74rem; color: var(--accent-dark); letter-spacing: .32em; text-transform: uppercase; margin-top: 5px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a { display: block; color: var(--ink-2); text-decoration: none; padding: 10px 13px; font-weight: 600; font-size: .96rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current > a { color: var(--ink); background: var(--soft); }
.main-nav li { position: relative; }
.main-nav .sub {
	display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
}
.main-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.main-nav .sub a { font-weight: 500; padding: 9px 12px; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: block; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.header-call { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 7px 18px 7px 7px; background: var(--accent); border-radius: 12px; color: var(--ink); flex: none; transition: background .15s; }
.header-call:hover { background: var(--accent-dark); color: var(--ink); }
.header-call .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.header-call .ic svg { width: 19px; height: 19px; }
.header-call .lbl { display: flex; flex-direction: column; line-height: 1.15; }
.header-call small { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.header-call strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; }
.nav-toggle, .header-call-mobile { display: none; }

/* Hero */
.hero { position: relative; color: #e9eaec; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(12,13,16,.94) 0%, rgba(12,13,16,.82) 45%, rgba(12,13,16,.45) 100%);
}
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: repeating-linear-gradient(90deg, var(--accent) 0 70px, transparent 70px 110px);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 80px 24px 96px; }
.hero h1 { color: #fff; margin: .25em 0 .35em; }
.hero h1 .hl { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.eyebrow svg { width: 15px; height: 15px; color: var(--accent); }
.hero-sub { font-size: 1.15rem; color: #d5d8dd; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; color: #d5d8dd; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero-page .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 56px 24px 64px; max-width: var(--wrap); }
.hero-page .hero-copy { max-width: 780px; }
.breadcrumbs { font-size: .88rem; color: #b9bcc3; margin-bottom: 4px; }
.breadcrumbs a { color: #e9eaec; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; color: #7d818a; }

/* Trust strip */
.trust-strip { position: relative; z-index: 2; margin-top: -44px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .ti-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.trust-item .ti-ic svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.3; }
.trust-item span { font-size: .88rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }

/* Quote card */
.quote-card { background: #fff; color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 30px; scroll-margin-top: 110px; border-top: 5px solid var(--accent); }
.quote-card .quote-title { font-family: var(--font-head); font-size: 1.5rem; margin: 0 0 4px; color: var(--ink); font-weight: 800; line-height: 1.2; }
.quote-card .quote-note { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.quote-form { display: grid; gap: 12px; }
.quote-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form label { display: block; font-size: .83rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.quote-form input, .quote-form select, .quote-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: 12px 13px; color: var(--text);
	border: 1.5px solid #d6d4cc; border-radius: 10px; background: #fcfcfa; transition: border-color .15s, background .15s;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 3px solid rgba(245,179,1,.35); border-color: var(--accent-dark); background: #fff; }
.quote-form textarea { min-height: 84px; resize: vertical; }
.quote-form .hp { position: absolute; left: -9999px; }
.quote-form .btn { padding: 16px 20px; font-size: 1.06rem; }
.form-foot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.form-foot svg { width: 14px; height: 14px; color: var(--ok); }
.map-embed { margin: 24px 0; }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 10px; }
.form-msg { padding: 12px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 14px; }
.form-msg.ok { background: #e6f4ea; color: var(--ok); }
.form-msg.err { background: #fdecea; color: #a12622; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding: 56px 24px 72px; }
.layout-full { padding: 40px 24px 40px; }
.sidebar-sticky { position: sticky; top: 110px; display: grid; gap: 20px; }
.side-box { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.side-box h3 { margin: 0 0 10px; font-size: 1.05rem; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96rem; }
.side-box li a svg { width: 16px; height: 16px; color: var(--accent-dark); }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a:hover { color: var(--link); }
.side-call { background: var(--ink); color: #fff; border: 0; text-align: center; }
.side-call h3 { color: #fff; }
.side-call p { color: #c9cbd0; font-size: .93rem; }

/* Entry content */
.entry-content > :first-child { margin-top: 0; }
.entry-content h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--accent); border-radius: 2px; margin-top: 14px; }
.entry-content .no-bar h2::after, .entry-content h2.no-bar::after { display: none; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content ul:not(.area-list):not(.wp-block-list.steps) > li::marker { color: var(--accent-dark); }
.entry-content .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 13px 15px; text-align: left; vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; }
.entry-content tbody tr:nth-child(even) { background: var(--soft); }
.entry-content .wp-block-table figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.entry-content .callout {
	margin: 1.6em 0; padding: 18px 22px; background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: 0 12px 12px 0;
}
.entry-content .note { font-size: .9rem; color: var(--muted); }
.entry-content .checklist-box {
	margin: 1.6em 0; padding: 22px 24px 8px; border: 2px solid var(--accent); border-radius: 14px; background: var(--accent-soft);
}
.entry-content .checklist-box > :first-child { margin-top: 0; }
.entry-content ul.checklist { list-style: none; padding-left: 0; }
.entry-content ul.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.entry-content ul.checklist li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b301' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.entry-content details summary h3 { display: inline; font: inherit; margin: 0; color: inherit; }
.entry-content ul.checkbox-list { list-style: none; padding-left: 0; }
.entry-content ul.checkbox-list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.entry-content ul.checkbox-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 3px; }
.entry-content .ada-table thead th { background: var(--accent); color: var(--ink); }
.entry-content .ada-table tbody tr:nth-child(even) td { background: var(--soft); }
.entry-content .ada-table td:last-child { font-weight: 600; }
.entry-content .wp-block-image { margin: 2em 0; }
.entry-content .wp-block-image img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.entry-content .wp-block-image figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Full-width pages (homepage) */
.layout-full .entry-content > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.layout-full .entry-content > .asa-wide, .layout-full .entry-content > .asa-split, .layout-full .entry-content > .card-grid,
.layout-full .entry-content > .why-grid, .layout-full .entry-content > .how-grid { max-width: none; }
.layout-full .entry-content > .asa-band { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.asa-band {
	background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	margin: 72px calc(50% - 50vw); padding: 64px calc(50vw - 50%);
}
.asa-band > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.asa-band > :first-child { margin-top: 0; }
.asa-band > :last-child { margin-bottom: 0; }
.asa-band > .asa-split, .asa-band > .card-grid, .asa-band > .why-grid, .asa-band > .how-grid { max-width: var(--wrap); padding: 0 24px; }
.asa-band.dark { background: var(--ink); border: 0; color: #c9ccd2; }
.asa-band.dark h2, .asa-band.dark h3, .asa-band.dark strong { color: #fff; }
.layout .asa-band { margin: 44px 0; padding: 30px 30px 14px; border: 1px solid var(--line); border-radius: 16px; }
.layout .asa-band > * { max-width: none; }

/* Section intro (centered heading) */
.entry-content .center, .entry-content .center h2 { text-align: center; }
.entry-content h2.center::after, .entry-content .center h2::after { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.12rem; color: var(--muted); }

/* Split: text + image */
.asa-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin: 64px auto; max-width: var(--wrap); }
.asa-split.flip > :first-child { order: 2; }
.asa-split > .wp-block-group > :first-child { margin-top: 0; }
.asa-split .wp-block-image { margin: 0; position: relative; }
.asa-split .wp-block-image img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.asa-split .wp-block-image::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; border-radius: 18px; background: var(--accent); z-index: -1; }
.asa-split.flip .wp-block-image::after { inset: auto auto -14px -14px; }
.asa-split .wp-block-image:has(figcaption)::after { display: none; } /* the accent would sit behind the caption */
.asa-split .wp-block-image { isolation: isolate; }
.layout .asa-split { grid-template-columns: 1fr; gap: 24px; margin: 32px 0; }
.layout .asa-split .wp-block-image::after { display: none; }

/* FAQ (details block) */
.wp-block-details { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin: 0 0 12px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.wp-block-details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.wp-block-details summary {
	cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-family: var(--font-head); font-weight: 700; color: var(--ink); position: relative; font-size: 1.04rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
	display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; line-height: 1;
}
.wp-block-details[open] summary::after { content: "\2212"; background: var(--accent); color: var(--ink); }
.wp-block-details > :not(summary) { padding: 0 20px; }
.wp-block-details > :last-child { padding-bottom: 8px; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 1.8em auto; max-width: var(--wrap); }
.card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px;
	text-decoration: none; color: var(--text); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--soft-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card-media img { transform: scale(1.05); }
.card-icon { position: absolute; left: 16px; bottom: -20px; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.card-media + .card-body .card-icon { display: none; }
.card-icon svg { width: 23px; height: 23px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.16rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--ink); font-size: .93rem; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 16px; height: 16px; color: var(--accent-dark); transition: transform .2s; }
a.card:hover .more svg { transform: translateX(4px); }
.card.no-link { opacity: .92; }

/* Why-us grid */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 1.8em auto; max-width: var(--wrap); }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.asa-band.dark .why-item { background: var(--ink-2); border-color: var(--ink-3); }
.why-item .wi-ic { width: 50px; height: 50px; border-radius: 13px; background: var(--accent); color: var(--ink); display: grid; place-items: center; margin-bottom: 14px; }
.why-item .wi-ic svg { width: 25px; height: 25px; }
.why-item h3 { margin: 0 0 6px; font-size: 1.12rem; }
.why-item p { margin: 0; font-size: .95rem; line-height: 1.6; }
.asa-band.dark .why-item p { color: #b5b9c1; }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 1.8em auto; max-width: var(--wrap); counter-reset: how; }
.how-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px 26px; counter-increment: how; }
.how-item::before { content: "0" counter(how); font-family: var(--font-head); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 12px; }
.how-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
.how-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.how-cta { text-align: center; margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Areas */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin: 1.4em 0; }
.area-list li { margin: 0; }
.area-list a, .area-list span {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
	text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; transition: border-color .15s, background .15s;
}
.area-list svg { width: 15px; height: 15px; color: var(--accent-dark); }
.area-list a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* Steps list */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 20px 62px; margin: 0; }
.steps > li::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px;
	background: var(--ink); color: var(--accent); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }

/* Inline CTA (auto-inserted into long pages) */
.inline-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin: 40px 0; padding: 26px 28px; border-radius: 16px; color: #d5d8dd;
	background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%); position: relative; overflow: hidden;
}
.inline-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(245,179,1,.15); }
.inline-cta strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 2px; }
.inline-cta p { margin: 0; font-size: .95rem; }
.inline-cta .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* CTA band (footer) */
.cta-band { position: relative; color: #d5d8dd; background: var(--ink); overflow: hidden; isolation: isolate; }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,13,16,.95) 0%, rgba(12,13,16,.85) 60%, rgba(12,13,16,.6) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-inner p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0b0c0f; color: #a9adb5; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 64px 24px 40px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-top { color: #fff; }
.site-footer h3 { color: #fff; font-size: .9rem; margin: 6px 0 16px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #d9dbdf; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-nap p { margin: 0 0 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-nap p svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 4px; }
.footer-phone { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--accent) !important; }
.footer-bottom { border-top: 1px solid #23262d; padding: 20px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #7f848d; }

/* Mobile call bar */
.mobile-bar { display: none; }

/* Blog */
.post-list { display: grid; gap: 22px; }
.post-item { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.post-item h2 { margin: 0 0 6px; font-size: 1.35rem; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-meta { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1100px) {
	.main-nav a { padding: 10px 9px; font-size: .92rem; }
	.header-call small { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.card-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust-item:nth-child(2) { border-right: 0; }
	.trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
	.topbar { display: none; }
	.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); cursor: pointer; }
	.nav-toggle svg { width: 24px; height: 24px; }
	.header-call-mobile { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border-radius: 11px; background: var(--accent); color: var(--ink); }
	.header-call-mobile svg { width: 21px; height: 21px; }
	.header-call { display: none; }
	.header-inner { min-height: 68px; gap: 10px; }
	.brand-mark { width: 40px; height: 40px; }
	.brand-top { font-size: 1.02rem; }
	.brand-bottom { font-size: .66rem; }
	.main-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; margin: 0;
		border-top: 1px solid var(--line); padding: 8px 20px 20px; max-height: calc(100vh - 70px); overflow-y: auto; box-shadow: var(--shadow);
	}
	.nav-open .main-nav { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; }
	.main-nav > ul > li > a { font-size: 1.05rem; padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.main-nav .sub { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 12px; min-width: 0; }
	.main-nav .sub a { color: var(--muted); padding: 7px 6px; }
	.has-sub > a::after { display: none; }
	.hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 20px 72px; }
	.hero::before { background: linear-gradient(180deg, rgba(12,13,16,.86) 0%, rgba(12,13,16,.92) 100%); }
	.layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px 20px 56px; }
	.sidebar-sticky { position: static; }
	.asa-split, .asa-split.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 48px auto; }
	.asa-split.flip > :first-child { order: 0; }
	.how-grid { grid-template-columns: minmax(0, 1fr); }
	.asa-band { margin: 56px calc(50% - 50vw); padding: 48px calc(50vw - 50%); }
	.mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		box-shadow: 0 -4px 16px rgba(0,0,0,.18);
	}
	.mobile-bar a { padding: 15px 10px; text-align: center; font-family: var(--font-head); font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
	.mobile-bar svg { width: 18px; height: 18px; }
	.mobile-bar .mb-call { background: var(--accent); color: var(--ink); }
	.mobile-bar .mb-quote { background: var(--ink); color: #fff; }
	body { padding-bottom: 58px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 18px; }
	.card-grid, .why-grid, .trust-grid { grid-template-columns: minmax(0, 1fr); }
	.trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; }
	.trust-item:last-child { border-bottom: 0; }
	.footer-grid { grid-template-columns: 1fr; }
	.quote-form .row-2 { grid-template-columns: 1fr; }
	.quote-card { padding: 22px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.inline-cta .cta-actions, .inline-cta .btn { width: 100%; }
	.cta-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
