:root {
  --br-navy-deep: #0E2536;
  --br-navy: #13314B;
  --br-forest: #2E7D46;
  --br-sage: #8fcba5;
  --br-paper: #F6F8F9;
  --br-gold: #C0894A;
  --br-ink: #1C2B33;
  --br-muted: #617078;
  --br-line: #d8dedb;
  --br-white: #fff;
  --br-shadow: 0 18px 50px rgba(16, 42, 54, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--br-ink); background-color: #fbfcfc; background-image: radial-gradient(rgba(19,49,75,.05) 1.1px, transparent 1.2px); background-size: 24px 24px; background-position: -8px -8px; font-family: Inter, Arial, sans-serif; line-height: 1.65; }
body.admin-bar .br-header { top: 32px; }
a { color: inherit; }
.br-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.br-narrow { max-width: 850px; text-align: center; }
.br-section { padding: 92px 0; }
.br-section-paper { background: var(--br-paper); }
.br-section-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.br-kicker, .br-eyebrow { display: inline-block; margin-bottom: 15px; color: var(--br-forest); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Fraunces, Georgia, serif; }
h2 { margin-bottom: 18px; color: var(--br-navy); font-size: clamp(2rem, 4.2vw, 3.15rem); line-height: 1.08; }
h3 { color: var(--br-navy); font-size: 1.5rem; }
p { margin-top: 0; }
.br-large-copy { color: var(--br-muted); font-family: Fraunces, Georgia, serif; font-size: clamp(1.2rem, 2.3vw, 1.65rem); line-height: 1.55; }
.br-section-head p { color: var(--br-muted); font-size: 1.05rem; }

.br-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(25, 50, 60, .1); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.br-nav { display: flex; min-height: 98px; align-items: center; justify-content: space-between; gap: 22px; }
.br-brand { display: inline-flex; flex: none; align-items: center; gap: 14px; color: var(--br-navy); text-decoration: none; }
.br-brand img { width: 76px; height: 76px; object-fit: contain; }
.br-brand-copy { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.br-brand-copy strong { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.45rem; letter-spacing: .04em; white-space: nowrap; }
.br-brand-copy span { margin-top: 9px; color: var(--br-forest); font-size: .8rem; font-weight: 700; letter-spacing: .16em; }
.br-primary-nav { display: flex; align-items: center; gap: 17px; }
.br-primary-nav a { color: var(--br-navy); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.br-primary-nav a:hover { color: var(--br-forest); }
.br-menu-toggle { display: none; border: 1px solid var(--br-navy); border-radius: 999px; background: transparent; color: var(--br-navy); padding: 8px 14px; font: inherit; font-weight: 700; }

.br-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--br-forest); border-radius: 999px; background: var(--br-forest); color: #fff !important; padding: 12px 24px; font-size: .88rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.br-button:hover { transform: translateY(-2px); background: #24623A; }
.br-button-small { min-height: 40px; padding: 9px 18px; }
.br-button-outline { border-color: rgba(255,255,255,.58); background: transparent; }
.br-button-outline:hover { background: rgba(255,255,255,.1); }
.br-button-outline-light { border-color: rgba(255,255,255,.5); background: transparent; }
.br-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.br-hero { position: relative; min-height: 680px; overflow: hidden; background: var(--br-navy-deep); color: #fff; isolation: isolate; }
.br-hero::after { position: absolute; z-index: -2; inset: 0; background: url('../img/heritage/taft-davenport-1908.jpg') center 28% / cover no-repeat; content: ''; animation: br-ken-burns 30s ease-in-out infinite alternate; }
.br-hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,28,38,.96) 0%, rgba(12,36,46,.84) 43%, rgba(12,36,46,.26) 78%, rgba(12,36,46,.45) 100%); content: ''; }
.br-hero-inner { display: flex; min-height: 680px; align-items: center; }
.br-hero-copy { max-width: 670px; padding: 80px 0 92px; }
.br-hero .br-eyebrow { color: var(--br-sage); }
.br-hero h1 { margin-bottom: 24px; color: #fff; font-size: clamp(3rem, 6vw, 5.35rem); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.br-hero h1 em { color: var(--br-sage); font-weight: 500; }
.br-hero p { max-width: 580px; margin-bottom: 32px; color: #d5e0e4; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.br-trust { margin-top: 26px; color: #c4d3d8; font-size: .8rem; letter-spacing: .03em; }
.br-image-credit { position: absolute; right: 20px; bottom: 14px; color: rgba(255,255,255,.7); font-size: .68rem; letter-spacing: .08em; }
@keyframes br-ken-burns { from { transform: scale(1.03); } to { transform: scale(1.14) translateY(-2%); } }

.br-intro { border-bottom: 1px solid var(--br-line); }
.br-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.br-level { position: relative; min-height: 330px; border: 1px solid #d7ded9; background: rgba(255,255,255,.72); padding: 32px 26px; }
.br-level > span, .br-service-number { color: var(--br-gold); font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.br-level h3 { margin: 40px 0 12px; }
.br-level strong { display: block; margin-bottom: 18px; color: var(--br-forest); font-family: Fraunces, Georgia, serif; font-size: .96rem; }
.br-level p { color: var(--br-muted); font-size: .9rem; }
.br-level-featured { border-color: var(--br-forest); background: var(--br-navy); box-shadow: var(--br-shadow); }
.br-level-featured h3, .br-level-featured p { color: #fff; }
.br-level-featured strong { color: var(--br-sage); }

.br-services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--br-line); border-left: 1px solid var(--br-line); }
.br-service { min-height: 290px; border-right: 1px solid var(--br-line); border-bottom: 1px solid var(--br-line); padding: 38px; transition: background .25s ease, transform .25s ease; }
.br-service:hover { background: var(--br-paper); }
.br-service h3 { margin: 28px 0 14px; font-size: 2rem; }
.br-service p { max-width: 530px; color: var(--br-muted); }
.br-service a { color: var(--br-forest); font-size: .88rem; font-weight: 700; text-decoration: none; }

.br-story-band { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: var(--br-navy-deep); color: #fff; isolation: isolate; }
.br-story-band::before { position: absolute; z-index: -2; inset: 0; background: url('../img/heritage/davenport-courthouse-1911.jpg') center / cover no-repeat; content: ''; filter: grayscale(1); }
.br-story-band::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(16,42,54,.96), rgba(16,42,54,.82) 56%, rgba(16,42,54,.35)); content: ''; }
.br-story-content { padding-block: 90px; }
.br-story-content .br-kicker { color: var(--br-sage); }
.br-story-content h2 { max-width: 690px; color: #fff; }
.br-story-content p { max-width: 700px; color: #d8e1e4; font-size: 1.08rem; }

.br-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.br-process article { border-top: 2px solid var(--br-gold); padding-top: 24px; }
.br-process span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--br-navy); color: #fff; font-weight: 700; }
.br-process h3 { margin: 22px 0 12px; }
.br-process p { color: var(--br-muted); }

.br-cta { background: var(--br-forest); color: #fff; }
.br-cta-inner { display: flex; min-height: 300px; align-items: center; justify-content: space-between; gap: 50px; padding-block: 65px; }
.br-cta h2 { margin-bottom: 12px; color: #fff; }
.br-cta .br-kicker { color: #d5efdf; }
.br-cta p { color: #e4f1e8; }

.br-footer { background: #0d242e; color: #cad6da; padding: 66px 0 24px; }
.br-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px; }
.br-footer h2 { margin-bottom: 14px; color: #fff; font-family: Inter, Arial, sans-serif; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.br-footer-grid > div > a:not(.br-brand), .br-footer-grid > div > span { display: block; margin: 8px 0; color: #cad6da; font-size: .88rem; text-decoration: none; }
.br-brand-footer { margin-bottom: 18px; color: #fff; }
.br-brand-footer .br-brand-copy span { color: var(--br-sage); }
.br-footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .72rem; }
.br-footer-bottom a { color: #cad6da; }

.br-content-shell { min-height: 55vh; margin-inline: auto; padding-top: 80px; padding-bottom: 90px; }
.br-content-shell > .wp-block-post-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.br-post-card { margin-bottom: 24px; border: 1px solid var(--br-line); padding: 28px; }

/* WooCommerce */
.woocommerce .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--br-line); }
.woocommerce .woocommerce-MyAccount-navigation a { display: block; padding: 13px 4px; color: var(--br-navy); font-weight: 600; text-decoration: none; }
.woocommerce .woocommerce-MyAccount-navigation .is-active a { color: var(--br-forest); }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button { border-radius: 999px; background: var(--br-forest); color: #fff; padding: .85em 1.4em; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover { background: var(--br-navy); color: #fff; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select { border: 1px solid #b9c5c1; border-radius: 4px; padding: 12px; }

.br-reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s ease; }
.br-reveal.is-visible { opacity: 1; transform: none; }

/* Collapse the primary nav to the mobile menu early enough that the full set of links never crowds or wraps the bar. */
@media (max-width: 1180px) {
  .br-primary-nav { position: absolute; top: 98px; right: 20px; left: 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; border: 1px solid var(--br-line); background: #fff; box-shadow: var(--br-shadow); padding: 18px; }
  .br-primary-nav.is-open { display: flex; }
  .br-primary-nav a { padding: 12px 8px; }
  .br-menu-toggle { display: inline-flex; }
}
@media (max-width: 960px) {
  body.admin-bar .br-header { top: 46px; }
  .br-levels { grid-template-columns: repeat(2, 1fr); }
  .br-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .br-wrap { width: min(100% - 28px, 1180px); }
  .br-section { padding: 68px 0; }
  .br-brand img { width: 60px; height: 60px; }
  .br-brand-copy strong { font-size: 1.1rem; }
  .br-brand-copy span { font-size: .68rem; }
  .br-hero, .br-hero-inner { min-height: 610px; }
  .br-hero-copy { padding-block: 70px; }
  .br-hero h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .br-levels, .br-services, .br-process, .br-footer-grid { grid-template-columns: 1fr; }
  .br-level { min-height: 0; }
  .br-services { border-left: 0; }
  .br-service { border-left: 1px solid var(--br-line); padding: 30px 24px; }
  .br-process { gap: 30px; }
  .br-footer-grid { gap: 35px; }
  .br-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .br-hero::after { animation: none; }
  .br-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Intake form ---- */
.br-intake { max-width: 620px; margin: 8px 0 0; }
.br-field { display: block; margin-bottom: 18px; color: var(--br-navy); font-weight: 600; font-size: .95rem; }
.br-field > span { color: var(--br-forest); }
.br-field .br-optional { color: var(--br-muted); font-weight: 400; }
.br-intake input[type="text"], .br-intake input[type="email"], .br-intake input[type="tel"], .br-intake textarea, .br-intake select {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid #b9c5c1; border-radius: 8px;
  font: inherit; font-weight: 400; color: var(--br-ink); background: #fff;
}
.br-intake input:focus, .br-intake textarea:focus, .br-intake select:focus { outline: none; border-color: var(--br-forest); box-shadow: 0 0 0 3px rgba(46,125,70,.15); }
.br-intake input[type="file"] { margin-top: 8px; font-weight: 400; color: var(--br-muted); }
.br-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; color: var(--br-ink); font-size: .92rem; font-weight: 400; }
.br-consent input { margin-top: 3px; flex: none; }
.br-field-note { margin-top: 16px; color: var(--br-muted); font-size: .82rem; }
.br-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.br-form-note { padding: 22px 24px; border-radius: 12px; font-size: 1.05rem; }
.br-form-success { border: 1px solid var(--br-forest); background: #eef6f0; color: var(--br-navy); }

