/*
Theme Name: Briggman Professional Services
Theme URI: https://davebriggman.com
Author: David B. Briggman
Author URI: https://davebriggman.com
Description: Business theme for David B. Briggman: notary public, private process server, freelance paralegal, and property and casualty insurance agent in Keezletown, Virginia. Includes a home page and four service page templates with Shenandoah Valley illustrations.
Version: 1.0.0
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: briggman
*/
/* Layout: sticky name bar, short hero with contact, four service sections in alternating bands, each with a credential panel where one applies. */
:root {
  --bg: #F4F5F3;
  --band: #E9ECE8;
  --surface: #FFFFFF;
  --ink: #18212B;
  --muted: #55606B;
  --line: #CDD3CF;
  --accent: #2E5A4E;
  --accent-ink: #FFFFFF;
  --seal: #8A6A1F;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121820; --band: #18202A; --surface: #1D2631; --ink: #E6E9E6; --muted: #A2ACB4;
    --line: #2F3A45; --accent: #7FB8A6; --accent-ink: #0F1A16; --seal: #D2B062; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121820; --band: #18202A; --surface: #1D2631; --ink: #E6E9E6; --muted: #A2ACB4;
  --line: #2F3A45; --accent: #7FB8A6; --accent-ink: #0F1A16; --seal: #D2B062; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  margin: 0;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: 0.005em; }
.nav { display: flex; gap: 1.25rem; overflow-x: auto; max-width: 100%; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; padding-block: 0.25rem; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 4.5rem 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.04; margin: 0 0 1.25rem; text-wrap: balance; }
.hero p.lede { color: var(--muted); max-width: 38rem; margin: 0; font-size: 1.15rem; }
.roles { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.roles a { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; background: var(--surface); }
.roles a:hover { border-color: var(--accent); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; display: grid; gap: 1rem; }
.contact-card dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-card dd { margin: 0.15rem 0 0; font-size: 1.05rem; }
.contact-card dl { margin: 0; display: grid; gap: 0.9rem; }
.btn { display: inline-block; text-align: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 0.7rem 1.1rem; border-radius: 4px; }

/* Service sections */
.service { padding-block: 4rem; border-top: 1px solid var(--line); scroll-margin-top: 4rem; }
.service:nth-of-type(even) { background: var(--band); }
.service-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.service h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 1rem; text-wrap: balance; }
.service p { max-width: 40rem; margin: 0 0 1rem; }
.offer { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2rem; max-width: 40rem; }
.offer li { padding-left: 1.1rem; position: relative; }
.offer li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.45rem; height: 1px; background: var(--accent); }
.note { font-size: 0.88rem; color: var(--muted); margin-top: 1.5rem !important; }

/* Credential panel, modeled on a commission certificate */
.credential { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; position: relative; }
.credential::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.credential .issuer { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--seal); font-weight: 600; margin: 0 0 0.35rem; }
.credential .kind { font-family: var(--display); font-size: 1.35rem; margin: 0 0 1.1rem; line-height: 1.2; }
.credential dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem 1rem; font-size: 0.95rem; }
.credential dt { color: var(--muted); }
.credential dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.credential dd.name { font-family: var(--body); font-weight: 500; }
.credential.plain dd { font-family: var(--body); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot p { margin: 0; }

@media (max-width: 760px) {
  .hero { padding-block: 2.75rem 2.5rem; }
  .hero-grid, .service-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .service { padding-block: 3rem; }
  .nav { gap: 1rem; }
}

/* Multi-page additions */
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 1.25rem; }
.crumb a { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.75rem; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 0.75rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card .cred { font-family: var(--mono); font-size: 0.8rem; color: var(--seal); letter-spacing: 0.02em; }
.section-head { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.15; margin: 0 0 1.5rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 0.9rem; }
.steps li::before { content: "Step " counter(step); display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.35rem; }
.steps h3 { font-size: 1.05rem; margin: 0 0 0.3rem; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; max-width: 42rem; }
.checklist li { padding-left: 1.1rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.45rem; height: 1px; background: var(--accent); }
.cta { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.25rem; }
.cta p { margin: 0; color: var(--muted); }
.page-hero { padding-block: 3.5rem 3rem; }
.page-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.06; margin: 0 0 1rem; text-wrap: balance; }
.page-hero .lede { color: var(--muted); max-width: 40rem; margin: 0; font-size: 1.15rem; }
.site-foot .wrap { align-items: flex-start; }
.site-foot p { margin: 0; }
.foot-id { display: grid; gap: 0.2rem; }
.foot-name { color: var(--ink); font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.foot-creds { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 1rem 3rem; }
.foot-creds dt { color: var(--ink); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.2rem; }
.foot-creds dd { margin: 0; font-size: 0.85rem; }
.foot-creds .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.site-foot .foot-base { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; }
@media (max-width: 600px) { .foot-creds { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards, .steps { grid-template-columns: minmax(0, 1fr); } .page-hero { padding-block: 2.5rem 2rem; } }

/* WordPress theme additions */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand svg { width: 1.6rem; height: 1.6rem; color: var(--accent); flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav li { margin: 0; }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--ink); border-bottom: 2px solid var(--accent); }
.art { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--band); }
.art img { display: block; width: 100%; height: auto; }
.hero-art { padding-block: 0 3.5rem; }
.hero-art .art img { aspect-ratio: 16 / 7; object-fit: cover; object-position: center 70%; }
.banner { padding-block: 0 3rem; }
.banner .art img { aspect-ratio: 40 / 11; object-fit: cover; }
.card .icon { width: 2.25rem; height: 2.25rem; color: var(--accent); }
.entry { max-width: 42rem; }
.entry > * + * { margin-top: 1rem; }
.entry h2, .entry h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; background: var(--surface); padding: 0.5rem 0.75rem; width: auto; height: auto; clip: auto; }
@media (max-width: 760px) {
  .nav ul { gap: 1rem; }
  .banner .art img { aspect-ratio: 16 / 7; }
  .hero-art { padding-block: 0 2.5rem; }
}
