/*
Theme Name: Sanger Law
Description: Fast, search-friendly theme for the law office of Brendan J. Sanger, Attorney and Counselor at Law, Litchfield, Michigan. Creates its own pages and menu when activated.
Author: Built for Brendan J. Sanger
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sanger-law
*/

@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #13232b;
	--slate: #213a45;
	--slate-2: #2e4c59;
	--paper: #f3f5f3;
	--white: #ffffff;
	--text: #1b2930;
	--muted: #4f6068;
	--rule: #cdd5d3;
	--signal: #b5233a;
	--signal-d: #8f1a2c;
	--brass: #c7a56a;
	--on-dark: #e8eeec;
	--on-dark-muted: #b4c3c4;
	--sans: "Archivo", "Arial Narrow", Arial, sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--wrap: 70rem;
	--gap: clamp(1.25rem, 4vw, 2.5rem);
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--serif);
	font-size: 1.125rem;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-d); text-underline-offset: 0.18em; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
address { font-style: normal; }

h1, h2, h3, .brand-name, .btn, .site-nav, .d-title, .foot-head, .foot-name, .side-head, label, .proof, .callbar {
	font-family: var(--sans);
}
h1, h2, h3 { color: var(--ink); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6.2vw, 4.1rem); font-weight: 800; font-stretch: 76%; line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; font-stretch: 80%; line-height: 1.08; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 90%; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.sec-lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* The double rule of pleading paper, used as the one recurring mark. */
.ruled { border-left: 6px double var(--signal); padding-left: clamp(1rem, 3vw, 1.75rem); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-weight: 700;
	font-stretch: 88%;
	font-size: 1.05rem;
	line-height: 1.2;
	padding: 0.85em 1.35em;
	border-radius: 3px;
	border: 2px solid transparent;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}
.btn-call { background: var(--signal); color: var(--white); border-color: var(--signal); }
.btn-call:hover { background: var(--signal-d); border-color: var(--signal-d); color: var(--white); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-lg { font-size: 1.2rem; padding: 0.95em 1.5em; }
.text-link { font-family: var(--sans); font-weight: 650; font-stretch: 90%; }

/* ---------- Header ---------- */
.site-head { background: var(--white); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 1rem 1.5rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); margin-right: auto; line-height: 1.15; }
.brand-name { display: block; font-weight: 800; font-stretch: 78%; font-size: 1.45rem; letter-spacing: -0.005em; }
.brand-sub { display: block; font-family: var(--serif); font-size: 0.9rem; color: var(--muted); }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-stretch: 84%; font-size: 1rem; padding: 0.4rem 0; display: block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { border-bottom-color: var(--signal); color: var(--ink); }
.nav-toggle { display: none; font-family: var(--sans); font-weight: 700; font-size: 1rem; background: none; border: 2px solid var(--ink); border-radius: 3px; padding: 0.5rem 0.9rem; color: var(--ink); cursor: pointer; }
.head-call { font-size: 1rem; padding: 0.65em 1.1em; white-space: nowrap; }

@media (max-width: 69.99rem) {
	.js .nav-toggle { display: inline-block; }
	.site-nav { order: 5; flex-basis: 100%; }
	.js .site-nav { display: none; }
	.js .site-nav.open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
	.site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
	.head-call { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding-block: clamp(2.5rem, 7vw, 5rem) 0; position: relative; }
.hero.has-photo { background: linear-gradient(90deg, rgba(19,35,43,0.94) 0%, rgba(19,35,43,0.82) 55%, rgba(19,35,43,0.6) 100%), var(--hero-img) center / cover no-repeat var(--ink); }
.hero-grid { display: grid; gap: var(--gap); align-items: end; }
.hero .ruled { border-left-color: var(--brass); }
.hero h1 { color: var(--white); max-width: 15em; }
.hero-name { display: block; font-size: 0.42em; font-weight: 650; font-stretch: 92%; letter-spacing: 0; color: var(--brass); margin-bottom: 0.7em; line-height: 1.2; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); max-width: 36rem; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.75rem 1rem; }
@media (max-width: 34rem) { .hero-actions .btn { flex: 1 1 100%; } }
.hero .btn-ghost { color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero-note { color: var(--on-dark-muted); font-size: 1rem; margin: 0; }
.hero-portrait { margin: 0; align-self: end; }
.hero-portrait img { width: 100%; max-width: 21rem; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: 3px 3px 0 0; margin-inline: auto; }
.proof { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 1.1rem 0; border-top: 1px solid var(--slate-2); display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; font-weight: 600; font-stretch: 90%; font-size: 1.05rem; color: var(--white); }
.proof li { display: flex; align-items: center; gap: 0.6rem; }
.proof li::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--brass); transform: rotate(45deg); flex: none; }
@media (min-width: 56rem) {
	.hero-grid { grid-template-columns: 1.55fr 1fr; }
	.hero-grid.no-portrait { grid-template-columns: 1fr; }
	.hero-grid:not(.no-portrait) h1 { font-size: clamp(2.25rem, 4.5vw, 3.35rem); }
	.hero-copy { padding-bottom: 0.5rem; }
}
@media (max-width: 55.99rem) {
	.hero-portrait img { max-width: 13rem; border-radius: 3px; }
	.hero-portrait { order: -1; }
	.hero-portrait img { margin-inline: 0; }
}

/* ---------- Docket list (practice areas, article list) ---------- */
.docket { background: var(--paper); }
.docket-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.docket-list li { border-bottom: 1px solid var(--rule); }
.docket-list a { display: grid; gap: 0.35rem 2rem; padding: 1.35rem 0.25rem; text-decoration: none; color: var(--text); }
.d-title { font-weight: 750; font-stretch: 80%; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.1; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.docket-list a:hover .d-title, .docket-list a:focus-visible .d-title { text-decoration-color: var(--signal); }
.docket-list a:hover { background: var(--white); }
.d-desc { color: var(--muted); max-width: 40rem; }
.d-date { display: block; font-size: 0.95rem; margin-top: 0.3rem; }
@media (min-width: 48rem) {
	.docket-list a { grid-template-columns: minmax(14rem, 1fr) 2fr; align-items: baseline; padding-inline: 0.75rem; }
}

/* ---------- Truck ticket section ---------- */
.cmv-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.cmv h3 { margin-top: 1.75rem; }
.ticks { list-style: none; margin: 0 0 1.5rem; padding: 0; columns: 1; }
.ticks li { padding: 0.45rem 0 0.45rem 1.5rem; border-bottom: 1px solid var(--rule); position: relative; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 1.05rem; width: 0.5rem; height: 0.5rem; background: var(--signal); transform: rotate(45deg); }
.steps { background: var(--slate); color: var(--on-dark); padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 3px; align-self: start; }
.steps h3 { color: var(--white); font-size: 1.5rem; font-stretch: 82%; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 1rem 0 1rem 3.25rem; border-top: 1px solid var(--slate-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.9rem; font-family: var(--sans); font-weight: 800; font-stretch: 76%; font-size: 2.25rem; line-height: 1; color: var(--brass); }
.steps strong { display: block; font-family: var(--sans); font-stretch: 90%; color: var(--white); }
.steps a { color: var(--white); }
.steps-note { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--slate-2); color: var(--on-dark-muted); font-size: 1rem; }
@media (min-width: 40rem) { .ticks { columns: 2; column-gap: 2rem; } }
@media (min-width: 60rem) { .cmv-grid { grid-template-columns: 1.5fr 1fr; } }

/* ---------- Why ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; gap: 0 var(--gap); border-top: 2px solid var(--ink); }
.why-grid > div { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.why-grid p { margin: 0; color: var(--muted); }
@media (min-width: 44rem) { .why-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--slate); color: var(--on-dark); }
.reviews h2 { color: var(--white); }
.reviews .sec-lead { color: var(--on-dark-muted); }
.quotes { display: grid; gap: var(--gap); margin-bottom: 2rem; }
.quotes figure { margin: 0; padding-left: 1.25rem; border-left: 6px double var(--brass); }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font-size: 1.25rem; line-height: 1.5; color: var(--white); margin-bottom: 0.6rem; }
.quotes figcaption { font-family: var(--sans); font-weight: 600; font-stretch: 90%; color: var(--brass); font-size: 1rem; }
.reviews .btn-ghost { color: var(--white); }
.reviews .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (min-width: 48rem) { .quotes { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }

/* ---------- Office ---------- */
.place-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.courts { margin: 0 0 1.5rem; border-top: 2px solid var(--ink); }
.courts > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.courts dt { font-family: var(--sans); font-weight: 650; font-stretch: 90%; color: var(--ink); }
.courts dd { margin: 0; color: var(--muted); text-align: right; }
.office address { font-family: var(--sans); font-weight: 700; font-stretch: 84%; font-size: 1.5rem; line-height: 1.25; color: var(--ink); margin-bottom: 1rem; }
.office { align-self: start; }
@media (min-width: 56rem) { .place-grid { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Consultation form ---------- */
.consult { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 8vw, 5.5rem); }
.consult h2 { color: var(--white); }
.consult a { color: var(--white); }
.consult-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.consult-phone a { font-family: var(--sans); font-weight: 800; font-stretch: 76%; font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1; text-decoration: none; color: var(--white); border-bottom: 4px solid var(--signal); }
.consult-phone { margin: 1.5rem 0 1rem; }
.consult-form { background: var(--white); color: var(--text); padding: clamp(1.25rem, 4vw, 2rem); border-radius: 3px; }
.consult-form p { margin: 0 0 1rem; }
.consult-form p:last-child { margin: 0; }
label { display: block; font-weight: 650; font-stretch: 90%; font-size: 1rem; margin-bottom: 0.3rem; color: var(--ink); }
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], textarea {
	width: 100%; font: inherit; font-size: 1.05rem; padding: 0.7rem 0.8rem; border: 1px solid #8a9a9e; border-radius: 3px; background: var(--white); color: var(--text);
}
input:focus, textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--ink); }
.form-two { display: grid; gap: 0 1rem; }
@media (min-width: 34rem) { .form-two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.95rem; color: var(--muted); }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 0.8rem 1rem; border-left: 6px double; border-radius: 0 3px 3px 0; font-family: var(--sans); font-weight: 600; font-stretch: 92%; }
.notice-ok { background: #e7f1ec; border-color: #1f6b4a; color: #154a33; }
.notice-err { background: #f8e9eb; border-color: var(--signal); color: var(--signal-d); }
@media (min-width: 56rem) { .consult-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* ---------- Inner pages ---------- */
.title-band { background: var(--ink); color: var(--on-dark); padding-block: clamp(2rem, 5vw, 3.5rem); }
.title-band h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.25rem); margin: 0; border-left-color: var(--brass); max-width: 18em; }
.crumbs { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; font-stretch: 90%; margin-bottom: 1rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--white); }
.post-meta { margin: 1rem 0 0; color: var(--on-dark-muted); max-width: 44rem; }
.page-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 60rem) { .page-grid { grid-template-columns: minmax(0, 1fr) 19rem; } .page-grid.page-wide { grid-template-columns: minmax(0, 46rem); } }

.prose { max-width: 42rem; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--signal); font-family: var(--sans); font-weight: 700; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 6px double var(--signal); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rule); }
.post-image { border-radius: 3px; margin-bottom: 1.5rem; }
.faq { margin-top: 2.5rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { font-family: var(--sans); font-weight: 700; font-stretch: 90%; cursor: pointer; color: var(--ink); }
.faq details p { margin: 0.6rem 0 0; }
.disclaimer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.98rem; color: var(--muted); }
.empty { font-size: 1.2rem; }
.pagination { margin-top: 2rem; font-family: var(--sans); font-weight: 650; }
.pagination .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.side-box { position: sticky; top: 1.5rem; }
.side-photo { width: 100%; max-width: 15rem; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: 3px; margin-bottom: 1.1rem; }
.contact-photo { width: 10rem; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: 3px; margin: 0 0 1.25rem; }
@media (min-width: 40rem) { .contact-photo { float: right; margin: 0 0 1rem 1.5rem; } .prose .courts { clear: none; overflow: hidden; } }
.photo-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 0.5rem; }
.photo-row img { height: 14rem; width: auto; border-radius: 3px; }
.foot-photo { width: 5rem; height: 5rem; object-fit: cover; object-position: center 12%; border-radius: 50%; margin-bottom: 0.9rem; border: 2px solid var(--brass); }
.side-head { font-weight: 750; font-stretch: 82%; font-size: 1.5rem; line-height: 1.15; color: var(--ink); margin-bottom: 0.5rem; }
.side-box .btn { display: block; margin-block: 1rem; }
.side-box address { margin-top: 1.25rem; font-family: var(--sans); font-weight: 650; font-stretch: 90%; color: var(--ink); }
.side-hours { color: var(--muted); font-size: 1rem; }

/* ---------- Call band and footer ---------- */
.band { background: var(--slate); color: var(--white); padding-block: 2rem; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.band-text { font-family: var(--sans); font-weight: 750; font-stretch: 82%; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; margin: 0; }
.band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.band .btn-ghost { color: var(--white); }
.band .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.site-foot { background: var(--ink); color: var(--on-dark-muted); font-size: 1rem; padding-block: 3rem 2rem; border-top: 1px solid var(--slate-2); }
.site-foot a { color: var(--on-dark); }
.site-foot a:hover { color: var(--white); }
.foot-grid { display: grid; gap: 2rem var(--gap); }
.foot-name { font-weight: 800; font-stretch: 78%; font-size: 1.45rem; color: var(--white); margin: 0; }
.foot-head { font-weight: 700; font-stretch: 90%; color: var(--white); margin-bottom: 0.5rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.35rem; }
.site-foot address { margin-block: 0.75rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-2); font-size: 0.92rem; }
.foot-legal p { max-width: 54rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- Phone bar on small screens ---------- */
.callbar { display: none; }
@media (max-width: 69.99rem) {
	.callbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		background: var(--ink); border-top: 1px solid var(--slate-2);
		padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom, 0px)); gap: 0.5rem;
	}
	.callbar a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; font-stretch: 88%; font-size: 1.05rem; padding: 0.8rem 0.5rem; border-radius: 3px; }
	.callbar-call { background: var(--signal); color: var(--white); flex: 2 !important; }
	.callbar-mail { color: var(--white); border: 2px solid var(--on-dark-muted); }
	body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
}

@media print {
	.site-nav, .nav-toggle, .callbar, .band, .consult-form, .head-call { display: none !important; }
	body { font-size: 11pt; }
}
