/*
Theme Name: Davis Legal
Theme URI: https://davislegalassociates.com/
Author: Built for Davis Legal Associates
Description: Lightweight, builder-free theme for Davis Legal Associates (L. Joe Davis, Jr., Esq.). On activation it creates the Home, About, Practice Areas, Consultation, Contact, ad landing (/consult/) and Disclaimer pages, sets the front page and builds the menus. Firm details live in Appearance > Customize > Firm Details.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: davis-legal
*/

@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #13213b;
	--navy-2: #1c2f52;
	--navy-3: #2a416b;
	--gold: #b8925a;
	--gold-2: #d2b07c;
	--paper: #faf8f4;
	--tint: #f1ede5;
	--ink: #1d2330;
	--muted: #5b6273;
	--line: #e3ddd1;
	--white: #fff;
	--radius: 6px;
	--shadow: 0 18px 40px -18px rgba(19, 33, 59, .35);
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.center { text-align: center; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: 600 .98rem/1.2 var(--sans);
	padding: .85em 1.4em;
	border-radius: var(--radius);
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { font-size: 1.05rem; padding: 1em 1.6em; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-3); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); color: var(--navy); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.eyebrow { font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; }
.eyebrow--dark { color: var(--gold); }

/* Top bar and header */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar__loc, .topbar__phone { display: inline-flex; align-items: center; gap: .45em; }
.topbar__phone { color: #fff; text-decoration: none; font-weight: 600; }
.topbar__phone:hover { color: var(--gold-2); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand .monogram { width: 46px; height: 46px; color: var(--gold); }
.brand__logo { max-height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 600 1.32rem/1.1 var(--serif); letter-spacing: -.01em; }
.brand__sub { font-size: .78rem; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav .menu a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--navy); border-color: var(--gold); }
.nav-cta { padding: .7em 1.15em; font-size: .92rem; }
.header-call { padding: .6em 1em; font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; content: ""; }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { top: -7px; left: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(184,146,90,.18), transparent 60%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #233a63 100%);
	color: #fff;
	padding: 84px 0 96px;
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 600; }
.hero__lede { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.consult-card, .side-card--dark {
	background: var(--white); color: var(--ink);
	border-radius: 10px; padding: 34px 32px; box-shadow: var(--shadow);
	border-top: 4px solid var(--gold);
}
.consult-card__label { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.consult-card__price { font: 600 3rem/1 var(--serif); color: var(--navy); margin-bottom: 1.2rem; }
.consult-card__price span { font: 500 1rem/1 var(--sans); color: var(--muted); }
.consult-card__price--light { color: #fff; font-size: 2.6rem; }
.consult-card__price--light span { color: rgba(255,255,255,.8); }

.checks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.checks li { display: flex; gap: .65em; align-items: flex-start; padding: .45em 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.checks li:last-child { border-bottom: 0; }
.checks .icon { color: var(--gold); margin-top: .25em; }
.checks--light li { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.92); }
.checks--light .icon { color: var(--gold-2); }

/* Proof strip */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__item { padding: 30px 22px; border-left: 1px solid var(--line); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item strong { display: block; font: 600 1.2rem/1.2 var(--serif); color: var(--navy); margin-bottom: 4px; }
.proof__item span { color: var(--muted); font-size: .92rem; line-height: 1.4; display: block; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
	display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px;
	padding: 30px 28px; text-decoration: none; color: var(--ink);
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card .icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card--feature { border-top: 3px solid var(--navy); }
.card__more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--navy-3); }
.card__more::after { content: " \2192"; }

.process { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.process li { background: var(--white); border-radius: 8px; padding: 34px 30px; position: relative; border: 1px solid var(--line); }
.process__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font: 600 1.15rem/1 var(--serif); margin-bottom: 18px; }
.process p { color: var(--muted); margin: 0; }

.about-teaser { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.about-teaser__media img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.cred-panel { background: var(--navy); color: #fff; border-radius: 10px; padding: 46px 40px; position: relative; overflow: hidden; }
.cred-panel::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(210,176,124,.25); border-radius: 50%; }
.cred-panel .monogram { width: 64px; height: 64px; color: var(--gold-2); margin-bottom: 22px; }
.cred-panel__name { font: 600 1.55rem/1.2 var(--serif); margin-bottom: 18px; }
.cred-panel ul { list-style: none; padding: 0; margin: 0; }
.cred-panel li { padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); font-size: .96rem; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; color: var(--navy); }
.text-link::after { content: " \2192"; }

.cta-band { background: var(--navy); color: #fff; padding: 72px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }

/* Inner pages */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); padding: 64px 0 60px; border-bottom: 4px solid var(--gold); }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 64px; padding-bottom: 96px; }
.page-layout--single { grid-template-columns: minmax(0, 760px); }
.entry { font-size: 1.04rem; }
.entry h2 { margin-top: 1.8em; padding-top: .2em; font-size: 1.75rem; }
.entry > h2:first-child, .entry > .lead + h2 { margin-top: 1.2em; }
.entry h3 { margin-top: 1.5em; }
.entry .lead, .lead { font-size: 1.22rem; color: var(--navy-2); font-family: var(--serif); line-height: 1.55; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.entry li { margin-bottom: .4em; }
.entry ul:not(.credentials) li::marker { color: var(--gold); }
.entry .credentials { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.entry .credentials li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.entry .steps { list-style: none; padding: 0; counter-reset: step; }
.entry .steps li { counter-increment: step; position: relative; padding: 4px 0 18px 56px; margin: 0; }
.entry .steps li::before {
	content: counter(step); position: absolute; left: 0; top: 0;
	width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-2);
	display: grid; place-items: center; font: 600 1rem/1 var(--serif);
}
.entry .cta-inline { margin-top: 2.4em; padding: 22px 26px; background: var(--tint); border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0; font-weight: 500; }
.entry .cta-inline a { font-weight: 700; }
.entry h2[id] { scroll-margin-top: 110px; }

.sidebar { display: flex; flex-direction: column; gap: 22px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; position: sticky; top: 110px; }
.side-card--dark { position: static; }
.side-card--dark p:not(.consult-card__label):not(.consult-card__price) { color: var(--muted); font-size: .96rem; }
.sidebar .side-card--dark { position: sticky; top: 110px; }
.sidebar .side-card--dark + .side-card { position: static; }
.side-card__h { font-size: 1.2rem; margin-bottom: .8em; }
.contact-list, .footer-contact { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .7em; align-items: flex-start; padding: 8px 0; font-size: .96rem; }
.contact-list .icon { color: var(--gold); margin-top: .3em; }
.contact-list a { word-break: break-word; }

/* Form */
.davis-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px; margin-top: 2em; box-shadow: 0 10px 30px -20px rgba(19,33,59,.3); }
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.davis-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.req { color: #a0442f; }
.davis-form input[type=text], .davis-form input[type=email], .davis-form input[type=tel], .davis-form select, .davis-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: .75em .9em; border: 1px solid #cfc7b8; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.davis-form input:focus, .davis-form select:focus, .davis-form textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(42,65,107,.15); }
.davis-form textarea { resize: vertical; }
.form-consent { display: flex !important; gap: .7em; align-items: flex-start; font-weight: 400 !important; font-size: .85rem !important; color: var(--muted) !important; margin: 4px 0 22px !important; line-height: 1.5; }
.form-consent input { margin-top: .3em; flex: none; width: 18px; height: 18px; accent-color: var(--navy); }
.form-fine { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: 8px; padding: 22px 24px; margin: 2em 0; }
.form-notice--ok { background: #eef6ee; border: 1px solid #b7d8b7; }
.form-notice--ok p { margin: .4em 0 0; }
.form-notice--err { background: #fbefec; border: 1px solid #e7bfb5; }

/* Landing template */
.is-landing .site-header { position: static; }
.landing-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 75%); color: #fff; padding: 64px 0 88px; min-height: calc(100vh - 82px); }
.landing-grid { display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: start; }
.landing-copy h1 { color: #fff; }
.landing-form { background: var(--white); color: var(--ink); border-radius: 10px; padding: 32px 30px 26px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.landing-form h2 { font-size: 1.5rem; margin-bottom: .2em; }
.landing-form .davis-form { border: 0; padding: 0; margin-top: 1em; box-shadow: none; }

/* Footer */
.site-footer { background: #0e192e; color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 56px; padding-top: 72px; padding-bottom: 48px; }
.footer-brand__row { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.footer-brand__row .monogram { width: 44px; height: 44px; color: var(--gold-2); }
.footer-brand__row strong { display: block; color: #fff; font: 600 1.2rem/1.2 var(--serif); }
.footer-brand__row span { font-size: .85rem; }
.footer-h { color: #fff; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 5px 0; }
.footer-list a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-list a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: .7em; align-items: flex-start; }
.footer-contact .icon { color: var(--gold-2); margin-top: .3em; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; padding-bottom: 30px; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-legal p { max-width: 900px; }
.footer-legal__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-menu a { color: rgba(255,255,255,.7); }

.mobile-bar { display: none; }

.post-summary { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-meta { color: var(--muted); font-size: .9rem; }

/* Responsive */
@media (max-width: 1020px) {
	.hero__grid, .landing-grid { grid-template-columns: 1fr; gap: 44px; }
	.consult-card { max-width: 520px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.proof__grid { grid-template-columns: repeat(2, 1fr); }
	.proof__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
	.proof__item:nth-child(-n+2) { border-top: 0; }
	.page-layout { grid-template-columns: 1fr; gap: 40px; }
	.side-card, .sidebar .side-card--dark { position: static; }
	.about-teaser { grid-template-columns: 1fr; gap: 44px; }
	.about-teaser__media { max-width: 460px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 82px); height: calc(100dvh - 82px); background: var(--white); border-top: 1px solid var(--line);
		flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 30px;
		transform: translateX(100%); transition: transform .25s ease; visibility: hidden; overflow-y: auto;
	}
	.nav-open .site-nav { transform: none; visibility: visible; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
	.nav-cta { margin-top: 22px; padding: 1em; }
	.nav-open { overflow: hidden; }
	.topbar__loc { display: none; }
	.topbar__inner { justify-content: center; }
}

@media (max-width: 640px) {
	body { font-size: 16px; padding-bottom: 64px; }
	body.is-landing { padding-bottom: 0; }
	.wrap { padding: 0 20px; }
	.site-header__inner { min-height: 72px; }
	.site-nav { height: calc(100vh - 72px); height: calc(100dvh - 72px); }
	.brand .monogram { width: 38px; height: 38px; }
	.brand__name { font-size: 1.12rem; }
	.brand__sub { font-size: .7rem; }
	.hero { padding: 56px 0 64px; }
	.hero__actions .btn { width: 100%; }
	.consult-card, .side-card--dark { padding: 28px 22px; }
	.section { padding: 68px 0; }
	.cards, .process { grid-template-columns: 1fr; }
	.proof__grid { grid-template-columns: 1fr 1fr; }
	.proof__item { padding: 20px 10px 20px 0; }
	.form-grid { grid-template-columns: 1fr; gap: 0; }
	.davis-form { padding: 22px 18px; }
	.landing-form { padding: 26px 18px 20px; }
	.footer-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 56px; }
	.header-call { padding: .55em .8em; font-size: .85rem; white-space: nowrap; flex: none; }
	.is-landing .brand__sub { display: none; }
	.is-landing .brand__name { font-size: 1.02rem; }
	.nav-open .mobile-bar { display: none; }
	.cta-band__actions .btn { width: 100%; }
	.mobile-bar {
		display: grid; grid-template-columns: 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		box-shadow: 0 -6px 20px rgba(0,0,0,.15);
	}
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4em; padding: 18px 10px; font-weight: 700; text-decoration: none; font-size: .98rem; }
	.mobile-bar__call { background: var(--white); color: var(--navy); }
	.mobile-bar__book { background: var(--gold); color: var(--navy); }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
