/* Stuckman Salvage & Towing
   Palette: safety amber (accent, set in Theme Settings), ink, white, concrete.
   Type: Barlow Condensed for headings, Barlow for text. */

:root {
	--accent: #F2A900;
	--on-accent: #161616;
	--ink: #161616;
	--white: #FFFFFF;
	--concrete: #EDEEEF;
	--steel: #555A61;
	--line: #D3D6DA;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--text: 'Barlow', 'Helvetica Neue', Helvetica, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }

body {
	margin: 0;
	font-family: var(--text);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
}

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

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 18px; font-weight: 600; }
.skip-link:focus { left: 12px; top: 12px; }

.pre-line { white-space: pre-line; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 10px 22px;
	border: 2px solid transparent; border-radius: var(--radius);
	font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-large { min-height: 60px; padding-inline: 32px; font-size: 1.125rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top banner */
.top-banner { background: var(--ink); color: var(--white); font-weight: 600; font-size: 0.95rem; }
.top-banner .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding-block: 9px; }
.top-banner-call { color: var(--accent); text-decoration: none; }
.top-banner-call:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 124px; }
.brand { display: block; flex-shrink: 0; }
.brand-logo { width: auto; height: 104px; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { font-weight: 600; text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a { border-bottom-color: var(--accent); }
.primary-nav .sub-menu { display: none; }

.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: none; border: 2px solid var(--ink); border-radius: var(--radius); font: 600 1rem var(--text); color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Hero: the amber field is the page's one loud moment */
.hero { background: var(--accent); color: var(--on-accent); overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero.has-media .hero-inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.hero-art { display: flex; justify-content: flex-end; }
.tow-truck { width: 100%; max-width: 780px; height: auto; overflow: visible; }
.tow-truck .truck-body { fill: var(--on-accent); }
.tow-truck .truck-cut { fill: var(--accent); }
.tow-truck .truck-outline { fill: none; stroke: var(--accent); stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
	.tow-truck { animation: truck-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
	@keyframes truck-in { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
}
.hero-title { font-size: clamp(3.5rem, 8vw, 7.25rem); text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.86; margin-bottom: 0.25em; max-width: 9ch; }
.hero-text { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 500; max-width: 38ch; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid var(--ink); border-radius: var(--radius); }

.hero-actions { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 880px; }
.action { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; background: var(--ink); color: var(--white); text-decoration: none; border-radius: var(--radius); }
.action:hover { background: var(--white); color: var(--ink); }
.action-q { font-size: 0.95rem; }
.action-a { font: 800 clamp(1.75rem, 3vw, 2.25rem)/1 var(--display); text-transform: uppercase; }
.action-tow { background: var(--white); color: var(--ink); }
.action-tow:hover { background: var(--ink); color: var(--white); }

/* Hazard stripe divider */
.hazard {
	height: 18px;
	background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--accent) 18px 36px);
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--concrete); }
.section-title { font-size: clamp(2.25rem, 5vw, 3.75rem); text-transform: uppercase; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--steel); font-size: 1.125rem; max-width: 46ch; }
.small-heading { font-size: 1.5rem; margin-top: 1.4em; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-lead p { max-width: 46ch; }
.split-lead .btn { margin-top: 8px; }

/* Towing services: a plain two-column list, not cards */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.service { padding: 20px 0; border-top: 3px solid var(--ink); }
.service h3 { font-size: 1.75rem; text-transform: uppercase; margin-bottom: 6px; }
.service p { margin: 0; color: var(--steel); }

/* Callout (junk cars) */
.callout { background: var(--ink); color: var(--white); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border-left: 0; }
.callout h3 { font-size: 2.5rem; text-transform: uppercase; color: var(--accent); }
.callout .btn-dark { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.callout .btn-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Inner page header */
.page-header { background: var(--accent); color: var(--on-accent); padding-block: clamp(40px, 6vw, 72px); }
.page-title { font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; line-height: 0.88; margin: 0; }
.page-intro { font-size: 1.25rem; font-weight: 500; max-width: 46ch; margin: 16px 0 0; }

.big-call-label { font-weight: 600; margin-bottom: 4px; }
.big-call { display: inline-block; font: 800 clamp(2.5rem, 6vw, 4rem)/1 var(--display); text-decoration: none; }
.big-call:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.search-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border: 3px solid var(--ink); border-radius: var(--radius); }
.search-cta p { margin: 0; max-width: 52ch; color: var(--steel); }

/* Prose from the editor */
.prose { max-width: 72ch; }
.prose h2 { font-size: 2.25rem; margin-top: 1.2em; }
.prose h3 { font-size: 1.6rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.post-summary { padding-block: 24px; border-bottom: 1px solid var(--line); }
.post-date { color: var(--steel); font-size: 0.95rem; }

/* Forms */
.form-wrap { max-width: 760px; }
.request-form { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.is-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field label span { color: #9A3412; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 12px;
	font: inherit; color: var(--ink); background: var(--white);
	border: 2px solid #8C9097; border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: 0; box-shadow: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.form-notice.is-success { background: #DCEFDF; color: #14532D; }
.form-notice.is-error { background: #FDE2D6; color: #7C2D12; }

/* Footer */
.site-footer { background: var(--ink); color: #D9DBDE; padding-top: 64px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-name { font: 800 2rem/1 var(--display); text-transform: uppercase; color: var(--white); }
.footer-heading { font: 600 1rem/1.4 var(--text); color: var(--accent); margin: 0 0 10px; }
.footer-phone a { font: 800 1.75rem/1 var(--display); text-decoration: none; }
.site-footer .menu { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 4px; }
.footer-legal { border-top: 1px solid #3A3D42; margin-top: 48px; padding-block: 20px; font-size: 0.9rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal p { margin: 0; }
.footer-credit a { color: #D9DBDE; }
.footer-credit a:hover { color: var(--white); }

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

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.primary-nav .header-call { margin-top: 16px; }
	.header-inner { position: relative; min-height: 92px; }
	.brand-logo { height: 76px; }

	.hero.has-media .hero-inner,
	.split, .section-head, .footer-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-actions { grid-template-columns: minmax(0, 1fr); }
	.hero-art { justify-content: center; }
	.tow-truck { max-width: 520px; }
	.service-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
	body { padding-bottom: 64px; }
	.mobile-bar { display: grid; grid-template-columns: 1.4fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 3px solid var(--accent); padding-bottom: env(safe-area-inset-bottom, 0px); }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 60px; color: var(--white); font-weight: 600; text-decoration: none; }
	.mobile-bar .mobile-bar-call { background: var(--accent); color: var(--on-accent); }
	.form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

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

@media print {
	.top-banner, .site-header, .mobile-bar, .hazard, .request-form { display: none; }
}
