/*
Theme Name: Bill Hoefer Law
Theme URI: https://billhoeferlaw.com
Author: No Risk Designs
Author URI: https://www.NoRisk-Designs.com
Description: A site for a divorce and family law practice in navy, white, and tangerine: a large typographic opener, a ruled grid of practice areas with a full page for each, a four-step process, client reviews, common questions, and a contact form. Practice areas and reviews are managed in the admin. Text, contact details, and the attorney photo are set in the Customizer.
Version: 2.0.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bill-hoefer-law
*/

/* Fonts ship with the theme (SIL Open Font License, see assets/fonts). */
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/Newsreader-Variable.woff2") format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #0f1b2d;
	--accent: #ff6b3d;
	--white: #ffffff;
	--mist: #f2f4f7;
	--line: #d8dee7;
	--muted: #55627a;
	--body: #2b3850;
	--field: #8a93a6;
	--placeholder: #e3e8ef;
	--ink-line: #2c3d57;
	--on-ink-muted: #aeb8ca;
	--font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

	/* Headline weights and spacing live here, so the typefaces can change in one place. */
	--display-weight: 600;
	--display-weight-hero: 650;
	--display-tracking: -0.025em;
	--display-tracking-hero: -0.03em;
	--display-tracking-small: -0.012em;
	--max: 1248px;

	/*
	 * Fluid scale: 0px on a 390px-wide screen, 1px on a 1440px-wide screen.
	 * Sizes are written as phone size + (desktop size - phone size) * var(--f).
	 */
	--f: clamp(0px, calc((100vw - 390px) / 1050), 1px);
	--gutter: calc(24px + 72 * var(--f));
	--section: calc(64px + 48 * var(--f));
	--header-h: 88px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img {
	height: auto;
}

a {
	color: inherit;
	transition: opacity 0.2s ease;
}

a:hover {
	opacity: 0.8;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-display);
}

p,
figure,
blockquote,
dl,
dd,
address {
	margin: 0;
}

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
}

.section--dark :focus-visible,
.site-footer :focus-visible,
.mobile-cta :focus-visible {
	outline-color: var(--white);
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--ink);
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

/* Layout */
.site {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.admin-bar .site {
	min-height: calc(100vh - 32px);
}

.site-main {
	flex: 1 0 auto;
}

.container {
	width: min(100% - (var(--gutter) * 2), var(--max));
	margin-inline: auto;
}

/* Reading column: lines up with the page title on the left. */
.narrow > * {
	max-width: 760px;
}

.section {
	padding-block: var(--section);
}

.section--mist {
	background: var(--mist);
}

.section--dark {
	background: var(--ink);
	color: var(--white);
}

.section--accent {
	background: var(--accent);
}

/* Shared type */
.eyebrow {
	display: flex;
	align-items: baseline;
	gap: calc(10px + 2 * var(--f));
	font-size: calc(12px + 2 * var(--f));
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eyebrow::before {
	flex: none;
	width: calc(9px + 1 * var(--f));
	height: calc(9px + 1 * var(--f));
	background: var(--accent);
	content: "";
}

.section--dark .eyebrow {
	color: var(--accent);
}

.section--accent .eyebrow::before {
	background: var(--ink);
}

.section-title {
	margin-top: calc(18px + 2 * var(--f));
	font-size: calc(44px + 20 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.04;
	letter-spacing: var(--display-tracking);
}

.section-lede {
	color: var(--body);
	font-size: calc(17px + 2 * var(--f));
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 18px 28px;
	border: 2px solid transparent;
	border-radius: 4px;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.btn-primary {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--ink);
}

.btn-outline {
	border-color: var(--ink);
	color: var(--ink);
}

.btn-small {
	padding: 13px 20px;
	font-size: 16px;
}

.btn-submit {
	width: 100%;
	height: calc(56px + 4 * var(--f));
	padding: 0 24px;
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
	font-size: calc(17px + 1 * var(--f));
}

.btn-submit:hover {
	opacity: 0.88;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid var(--line);
	background: var(--white);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	height: 100%;
	align-items: center;
	gap: 34px;
}

.brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	color: var(--ink);
	text-decoration: none;
}

.logo {
	width: 213px;
	height: 32px;
}

.custom-logo {
	width: auto;
	max-height: 44px;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 34px;
	margin-left: auto;
}

.primary-nav .menu {
	display: flex;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav .nav-phone {
	font-weight: 700;
}

.header-actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
	padding: calc(44px + 28 * var(--f)) 0 calc(64px + 24 * var(--f));
}

.hero-title {
	/* Its own stacking layer, so the highlight sits under the letters of the line above it. */
	position: relative;
	z-index: 0;
	margin-top: calc(24px + 4 * var(--f));
	font-size: min(7.78vw, 112px);
	font-weight: var(--display-weight-hero);
	line-height: 1;
	letter-spacing: var(--display-tracking-hero);
}

.hl {
	position: relative;
	z-index: -1;
	padding: 0 0.12em;
	background: var(--accent);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.hl-text {
	position: relative;
}

.hero-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 32px 64px;
	margin-top: calc(24px + 32 * var(--f));
}

.hero-lead {
	max-width: 640px;
	color: var(--body);
	font-size: calc(18px + 4 * var(--f));
	line-height: 1.5;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(24px + 24 * var(--f));
	margin-top: calc(40px + 32 * var(--f));
	padding-top: calc(28px + 12 * var(--f));
	border-top: 2px solid var(--ink);
}

/* With a client quote, the two figures sit together on the left and the quote fills the rest of the row. */
.hero-stats.has-quote {
	grid-template-columns: auto auto minmax(0, 1fr);
	column-gap: calc(40px + 48 * var(--f));
}

.hero-quote {
	max-width: 480px;
	justify-self: end;
	padding-left: calc(24px + 16 * var(--f));
	border-left: 1px solid var(--line);
}

.hero-quote blockquote {
	font-family: var(--font-display);
	font-size: calc(19px + 5 * var(--f));
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.hero-quote blockquote p::before {
	content: "\201C";
}

.hero-quote blockquote p::after {
	content: "\201D";
}

.hero-quote figcaption {
	margin-top: calc(10px + 4 * var(--f));
	color: var(--muted);
	font-size: calc(14px + 2 * var(--f));
}

.stat-number {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(34px, min(11.8vw, calc(46px + 58 * var(--f))), 104px);
	font-weight: var(--display-weight);
	line-height: 0.9;
	letter-spacing: var(--display-tracking-hero);
}

.stat-label {
	display: block;
	margin-top: calc(10px + 6 * var(--f));
	color: var(--muted);
	font-size: calc(15px + 3 * var(--f));
	line-height: 1.4;
}

/* Practice areas: a ruled grid on wide screens, an accordion on phones */
.section-head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 64px;
}

.section-head--split .section-lede {
	max-width: 440px;
}

.practice-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: calc(36px + 28 * var(--f));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.practice-card {
	display: flex;
	min-height: 300px;
	flex-direction: column;
	padding: 40px 40px 36px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--white);
}

.practice-num {
	color: var(--muted);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.practice-title {
	margin-top: 28px;
	font-size: 28px;
	font-weight: var(--display-weight);
	line-height: 1.15;
	letter-spacing: var(--display-tracking-small);
}

.practice-body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.practice-body[hidden] {
	display: none;
}

.practice-body p {
	margin-top: 14px;
	color: var(--muted);
}

.practice-link {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 28px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.practice-toggle {
	display: flex;
	width: 100%;
	min-height: 68px;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: -20px 0;
	padding: 20px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: pointer;
}

.practice-sign {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 6px;
}

.practice-sign::before,
.practice-sign::after {
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	background: currentColor;
	content: "";
}

.practice-sign::after {
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.practice-card.is-open .practice-sign::after {
	transform: rotate(0deg);
}

/* Process */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 56px 40px;
	margin: calc(44px + 44 * var(--f)) 0 0;
	padding: 0;
	list-style: none;
}

.step {
	position: relative;
	padding-top: 36px;
	border-top: 1px solid var(--ink-line);
}

.step::before {
	position: absolute;
	top: -7px;
	left: 0;
	width: 13px;
	height: 13px;
	background: var(--accent);
	content: "";
}

.step-label {
	color: var(--accent);
	font-size: calc(12px + 2 * var(--f));
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.step h3 {
	margin-top: calc(10px + 8 * var(--f));
	font-size: calc(24px + 4 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.15;
	letter-spacing: var(--display-tracking-small);
}

.step h3 + p {
	margin-top: calc(10px + 4 * var(--f));
	color: var(--on-ink-muted);
}

/* About */
.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: calc(40px + 56 * var(--f));
}

.portrait {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--placeholder);
}

.portrait-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-title {
	margin-top: calc(18px + 2 * var(--f));
	font-size: calc(40px + 20 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.04;
	letter-spacing: var(--display-tracking);
	text-wrap: balance; /* This heading is editable, so keep its lines even whatever it says. */
}

.about-text {
	margin-top: calc(24px + 8 * var(--f));
	color: var(--body);
	font-size: calc(17px + 2 * var(--f));
	line-height: 1.7;
}

.about-text p + p {
	margin-top: 1em;
}

.about-cta {
	margin-top: calc(32px + 12 * var(--f));
}

/* Reviews */
.quote-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(16px + 16 * var(--f));
	margin-top: calc(36px + 28 * var(--f));
}

.quote {
	display: flex;
	flex-direction: column;
	padding: calc(28px + 20 * var(--f));
	background: var(--white);
}

.quote-mark {
	display: block;
	height: calc(36px + 16 * var(--f));
	color: var(--accent);
	font-family: var(--font-display);
	font-size: calc(72px + 32 * var(--f));
	font-weight: var(--display-weight);
	line-height: 0.7;
}

.quote blockquote {
	margin-top: calc(16px + 6 * var(--f));
	font-family: var(--font-display);
	font-size: calc(21px + 9 * var(--f));
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.quote figcaption {
	margin-top: auto;
	padding-top: calc(20px + 16 * var(--f));
	font-size: calc(16px + 1 * var(--f));
}

.quote figcaption strong {
	font-weight: 700;
}

.quote-source {
	color: var(--muted);
}

/* Questions */
.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: calc(32px + 64 * var(--f));
}

.faq-head .section-lede {
	max-width: 400px;
	margin-top: calc(18px + 6 * var(--f));
}

.faq-list {
	border-top: 2px solid var(--ink);
}

.faq-item {
	border-bottom: 1px solid var(--line);
}

.faq-item summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: calc(18px + 6 * var(--f)) 0;
	font-family: var(--font-display);
	font-size: calc(20px + 4 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.25;
	letter-spacing: var(--display-tracking-small);
	list-style: none;
	cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-sign {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 0.5em;
}

.faq-sign::before,
.faq-sign::after {
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	background: currentColor;
	content: "";
}

.faq-sign::after {
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.faq-item[open] .faq-sign::after {
	transform: rotate(0deg);
}

.faq-more {
	margin-top: calc(24px + 8 * var(--f));
}

.faq-more a {
	font-weight: 700;
	text-decoration: none;
}

.faq-answer {
	max-width: 640px;
	padding: 0 38px calc(20px + 6 * var(--f)) 0;
	color: var(--body);
	font-size: calc(16px + 2 * var(--f));
	line-height: 1.65;
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: start;
	gap: calc(40px + 56 * var(--f));
}

.contact-title {
	margin-top: calc(18px + 2 * var(--f));
	font-size: clamp(40px, max(5vw, min(13.3vw, 52px)), 72px);
	font-weight: var(--display-weight);
	line-height: 1.02;
	letter-spacing: var(--display-tracking);
}

.contact-lede {
	max-width: 460px;
	margin-top: calc(24px + 4 * var(--f));
	font-size: calc(18px + 2 * var(--f));
}

.contact-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: calc(24px + 12 * var(--f)) 40px;
	margin-top: calc(40px + 16 * var(--f));
}

.contact-item dt {
	font-size: calc(12px + 1 * var(--f));
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-item dd {
	margin-top: calc(6px + 2 * var(--f));
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: break-word;
}

.contact-item--text dd {
	font-size: calc(18px + 2 * var(--f));
	font-weight: 600;
}

.contact-item--text a {
	text-decoration: none;
}

.contact-card {
	padding: calc(24px + 24 * var(--f));
	background: var(--white);
	scroll-margin-top: 8px;
}

.contact-card-title {
	padding-block: 0.2em;
	font-size: calc(24px + 6 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.2;
	letter-spacing: var(--display-tracking-small);
}

.form-notice {
	margin-bottom: 24px;
	padding: 14px 16px;
	border-radius: 4px;
	background: var(--ink);
	color: var(--white);
	font-weight: 600;
}

.form-notice.is-error {
	border: 2px solid #b42318;
	background: var(--white);
	color: #b42318;
}

.contact-form {
	position: relative;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(16px + 4 * var(--f));
	margin-top: calc(24px + 8 * var(--f));
}

.form-grid .full {
	grid-column: 1 / -1;
}

.field label {
	display: block;
	margin-bottom: 8px;
	font-size: calc(14px + 1 * var(--f));
	font-weight: 600;
}

.field input,
.field select,
.field textarea {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 calc(14px + 2 * var(--f));
	border: 1.5px solid var(--field);
	border-radius: 4px;
	background-color: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: calc(16px + 1 * var(--f));
	font-weight: 400;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}

.field select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1b2d' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}

.field textarea {
	height: auto;
	min-height: calc(120px + 8 * var(--f));
	padding-block: 14px;
	line-height: 1.5;
	resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
	border-color: var(--ink);
	outline-offset: 1px;
}

.form-actions {
	display: grid;
	gap: calc(16px + 4 * var(--f));
	margin-top: 20px;
}

.form-note {
	color: var(--muted);
	font-size: calc(13px + 1 * var(--f));
	line-height: 1.5;
}

.honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Inner pages */
.page-hero {
	padding: calc(44px + 28 * var(--f)) 0 calc(40px + 24 * var(--f));
	border-bottom: 1px solid var(--line);
}

.page-title {
	max-width: 18ch;
	margin-top: calc(18px + 2 * var(--f));
	font-size: calc(44px + 44 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.02;
	letter-spacing: var(--display-tracking);
}

.page-hero .container > :first-child {
	margin-top: 0;
}

.page-hero .section-lede {
	max-width: 680px;
	margin-top: 24px;
	font-size: calc(18px + 4 * var(--f));
	line-height: 1.5;
}

.page-actions {
	margin-top: 32px;
}

.entry-content {
	color: var(--body);
	font-size: calc(17px + 2 * var(--f));
	line-height: 1.7;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content > p:first-child {
	color: var(--ink);
	font-size: 1.12em;
	line-height: 1.6;
}

.entry-content h2,
.entry-content h3 {
	color: var(--ink);
	font-weight: var(--display-weight);
	line-height: 1.15;
	letter-spacing: var(--display-tracking-small);
}

.entry-content h2 {
	margin-top: 1.7em;
	padding-top: 1.1em;
	border-top: 1px solid var(--line);
	font-size: calc(28px + 8 * var(--f));
}

.entry-content h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.entry-content h3 {
	margin-top: 1.5em;
	font-size: calc(21px + 3 * var(--f));
}

.entry-content h2 + *,
.entry-content h3 + * {
	margin-top: 0.7em;
}

.entry-content a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 0;
	list-style: none;
}

.entry-content ol {
	counter-reset: bhl-step;
}

.entry-content li {
	position: relative;
	padding-left: 1.5em;
}

.entry-content li + li {
	margin-top: 0.55em;
}

/* Bullets repeat the small tangerine square used beside section labels. */
.entry-content ul > li::before {
	position: absolute;
	top: 0.68em;
	left: 0.1em;
	width: 0.42em;
	height: 0.42em;
	background: var(--accent);
	content: "";
}

.entry-content ol > li {
	padding-left: 2.4em;
	counter-increment: bhl-step;
}

.entry-content ol > li::before {
	position: absolute;
	top: 0.28em;
	left: 0;
	color: var(--muted);
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	content: counter(bhl-step, decimal-leading-zero);
}

.entry-content li strong {
	color: var(--ink);
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
	margin-top: 0.55em;
}

.entry-content blockquote {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 1.25em;
	font-weight: 500;
	line-height: 1.35;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.entry-content .aligncenter {
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	margin-top: 8px;
	color: var(--muted);
	font-size: 14px;
}

/* A page with a side column: the text on the left, next steps on the right. */
.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	align-items: start;
	gap: calc(40px + 56 * var(--f));
}

.page-main {
	max-width: 760px;
}

.legal-note {
	margin-top: calc(40px + 16 * var(--f));
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.page-aside {
	position: sticky;
	top: calc(var(--header-h) + 32px);
	display: grid;
	gap: calc(32px + 8 * var(--f));
}

.admin-bar .page-aside {
	top: calc(var(--header-h) + 64px);
}

.aside-card {
	padding: calc(28px + 4 * var(--f));
	background: var(--ink);
	color: var(--white);
}

.aside-title {
	font-size: calc(26px + 4 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.12;
	letter-spacing: var(--display-tracking-small);
}

.aside-card p {
	margin-top: 12px;
	color: var(--on-ink-muted);
	font-size: 16px;
}

.aside-card .btn {
	display: block;
	margin-top: 24px;
}

.aside-phone {
	display: block;
	margin-top: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.aside-nav ul {
	margin: 16px 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.aside-nav a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.cta-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: calc(48px + 16 * var(--f));
	padding: calc(28px + 12 * var(--f));
	background: var(--ink);
	color: var(--white);
}

.cta-band p {
	font-family: var(--font-display);
	font-size: calc(24px + 8 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.15;
	letter-spacing: var(--display-tracking-small);
}

.post-entry + .post-entry {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--line);
}

.post-title {
	margin-bottom: 12px;
	font-size: calc(26px + 6 * var(--f));
	font-weight: var(--display-weight);
	line-height: 1.1;
	letter-spacing: var(--display-tracking-small);
}

.post-title a {
	text-decoration: none;
}

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: 4px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.pagination .page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

/* Footer */
.site-footer {
	padding: calc(56px + 8 * var(--f)) 0 calc(40px + 8 * var(--f));
	background: var(--ink);
	color: var(--white);
}

.site-footer .brand {
	color: var(--white);
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px 48px;
}

.footer-tagline {
	display: none;
	margin-top: 12px;
	color: var(--on-ink-muted);
	font-size: 15px;
	line-height: 1.5;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	font-size: 16px;
	text-decoration: none;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: calc(36px + 12 * var(--f));
	padding-top: 24px;
	border-top: 1px solid var(--ink-line);
	color: var(--on-ink-muted);
	font-size: calc(14px + 1 * var(--f));
}

.footer-credit a {
	color: var(--white);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Phone call bar */
.mobile-cta {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	display: none;
	gap: 12px;
	padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--ink-line);
	background: var(--ink);
	transition: transform 0.25s ease, visibility 0s linear 0s;
}

.mobile-cta.is-hidden {
	visibility: hidden;
	transform: translateY(110%);
	transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.mobile-cta a {
	display: block;
	padding: 15px 8px;
	border: 2px solid var(--white);
	border-radius: 4px;
	color: var(--white);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.mobile-cta .mobile-call {
	flex: 1;
}

.mobile-cta .mobile-consult {
	flex: 1.6;
	border-color: var(--accent);
	background: var(--accent);
	color: var(--ink);
}

/* Narrower screens */
@media (max-width: 1180px) {
	.nav-toggle {
		display: flex;
	}

	.page-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.page-aside {
		position: static;
		max-width: 760px;
	}

	.header-actions {
		margin-left: auto;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100vh - var(--header-h));
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 8px var(--gutter) 24px;
		overflow-y: auto;
		border-bottom: 1px solid var(--line);
		background: var(--white);
		box-shadow: 0 24px 40px -24px rgba(15, 27, 45, 0.25);
	}

	.primary-nav.is-open {
		display: flex;
	}

	.primary-nav .menu {
		flex-direction: column;
		gap: 0;
	}

	.primary-nav a {
		display: block;
		padding: 16px 0;
		border-bottom: 1px solid var(--line);
		font-size: 18px;
		font-weight: 600;
	}

	.primary-nav .nav-phone {
		border-bottom: 0;
	}
}

@media (max-width: 1023px) {
	.practice-grid,
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-stats.has-quote {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-quote {
		max-width: 600px;
		grid-column: 1 / -1;
		justify-self: start;
		padding: calc(24px + 8 * var(--f)) 0 0;
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.hero-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.section-head--split {
		display: block;
	}

	.section-head--split .section-lede {
		max-width: 520px;
		margin-top: 18px;
	}

	.faq-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.faq-head .section-lede {
		max-width: 520px;
	}

	.about-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.about-visual {
		max-width: 480px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site {
		min-height: calc(100vh - 46px);
	}

	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 760px) {
	:root {
		--header-h: 72px;
	}

	html {
		scroll-padding-top: 16px;
	}

	.site-header,
	.admin-bar .site-header {
		position: relative;
		top: 0;
	}

	.logo {
		width: 187px;
		height: 28px;
	}

	.header-actions .btn {
		display: none;
	}

	.stat-number {
		line-height: 0.95;
	}

	/* The reviews section carries the quotes on phones, so the opening screen stays short. */
	.hero-quote {
		display: none;
	}

	.faq-answer {
		padding-right: 0;
	}

	/* Practice areas become an accordion. Without the script, every panel stays open. */
	.practice-grid {
		display: block;
		border-left: 0;
	}

	.practice-card {
		display: block;
		min-height: 0;
		padding: 20px 0;
		border-right: 0;
		background: none;
	}

	.practice-card.is-open {
		padding: 24px 0;
	}

	.practice-num {
		display: none;
	}

	.practice-title {
		margin-top: 0;
		font-size: 22px;
		line-height: 1.2;
		letter-spacing: -0.01em;
	}

	.practice-body {
		display: block;
	}

	.practice-body p {
		margin-top: 12px;
		font-size: 16px;
	}

	.practice-link {
		display: inline-block;
		padding-top: 12px;
	}

	.steps {
		display: block;
	}

	.step {
		padding: 0 0 36px 30px;
		border-top: 0;
		border-left: 1px solid var(--ink-line);
	}

	.step:last-child {
		padding-bottom: 0;
	}

	.step::before {
		top: 0;
		left: -7px;
	}

	.step h3 {
		line-height: 1.2;
		letter-spacing: -0.01em;
	}

	.about-title {
		line-height: 1.06;
	}

	.quote-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.quote blockquote {
		line-height: 1.4;
		letter-spacing: -0.005em;
	}

	.contact-item dd {
		font-size: 21px;
	}

	.contact-item--text dd {
		font-size: 18px;
	}

	.form-grid .field--wide-on-phones {
		grid-column: 1 / -1;
	}

	.site-footer {
		padding-bottom: calc(40px + 83px + env(safe-area-inset-bottom, 0px));
	}

	.footer-top {
		display: block;
	}

	.footer-tagline {
		display: block;
	}

	.footer-nav {
		margin-top: 28px;
	}

	.footer-nav ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
	}

	.footer-legal {
		display: block;
		line-height: 1.6;
	}

	.footer-legal .footer-ad {
		color: var(--white);
		font-weight: 700;
	}

	.footer-legal p + p {
		margin-top: 8px;
	}

	.mobile-cta {
		display: flex;
	}
}

@media (max-width: 600px) {
	.hero-title {
		font-size: clamp(40px, 12.8vw, 50px);
		line-height: 1.04;
		letter-spacing: -0.025em;
	}

	.hero-title br {
		display: none;
	}

	.hl {
		padding: 0 0.1em;
	}

	.hero-lead {
		line-height: 1.6;
	}

	.hero-actions {
		flex-direction: column;
		gap: 12px;
	}

	.hero-actions .btn,
	.about-cta .btn {
		display: block;
		padding: 17px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
