/*
 * SimpliCity sitewide layer, Bold Local in brand colors (theme 2.16.0, Nov 6 2026).
 *
 * Source: the approved mockup, claude.ai/artifact/WYcRwCq2FKnW6SCzHg77S8
 * ("Approve, update guide", Wade, Nov 6 2026). Header, footer, interior heroes
 * and the title band on posts and plain pages. Homepages add
 * bold-local-home.css (.bl-home).
 *
 * BRAND.md palette only. Archivo (self-hosted, OFL) for display headlines,
 * numbers and labels; DM Sans and Cormorant for everything else. Heavy Archivo
 * caps in white may sit on green; DM Sans on green stays regular weight. Gold
 * is fill and line only, never text. Grain and topo textures on green and
 * cream (BRAND.md "Approved exceptions (Wade, Nov 6, 2026)").
 */

/* ---- Archivo and tokens ------------------------------------------------- */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-variable-latin.woff2") format("woff2-variations"),
         url("../fonts/archivo-variable-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 98%; }
:root {
    --bl-green: #254033;
    --bl-green-800: #213c2f;
    --bl-ink: #262624;
    --bl-amber: #c9ae74;
    --bl-cream: #f5f4ee;
    --bl-paper: #fbfaf6;
    --bl-meta: #66645e;
    --bl-line-on-dark: rgba(255, 255, 255, 0.22);
    --bl-line-on-light: rgba(38, 38, 36, 0.16);
    --bl-font: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
    --bl-grad: linear-gradient(135deg, #3b5e4d 0%, #254033 60%);
    --bl-r1: 3px;
    --bl-sh-header: 0 1px 0 rgba(38, 38, 36, 0.12), 0 6px 18px -10px rgba(33, 60, 47, 0.35);
    --bl-sh-stamp: 14px 14px 0 0 #c9ae74;
    --bl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --bl-dur: 200ms;
    --bl-topo: url("../img/topo.svg");
    --bl-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --header-h: 96px;
}
@media (prefers-reduced-motion: reduce) { :root { --bl-dur: 0ms; } }

/* ---- Textures (green and cream sections) -------------------------------- */
.bl-textured { position: relative; isolation: isolate; overflow: hidden; }
.bl-textured::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--bl-grain); opacity: 0.28; mix-blend-mode: multiply;
}
.bl-textured.bl-on-light::after { opacity: 0.16; }
.bl-topo::before {
    content: ""; position: absolute; inset: -10%; z-index: -2; pointer-events: none;
    background: var(--bl-topo) center / cover no-repeat; opacity: 0.08;
}
.bl-topo.bl-on-light::before { filter: invert(1); opacity: 0.06; }

/* ---- Header: white, logo-classic, Archivo nav --------------------------- */
.site-header { background: #fff; border-bottom: 0; box-shadow: var(--bl-sh-header); color: var(--bl-ink); }
.site-header-inner { gap: 28px; padding: 0 32px; }
.site-brand .brand-logo { height: 52px; }
.brand-lockup { gap: 16px; }
.brand-lockup .brand-sep { height: 40px; background: var(--bl-line-on-light); }
.brand-lockup .brand-agent { font-family: var(--bl-font); font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: var(--bl-ink); }
.brand-phone, .brand-phone:hover { font-family: var(--bl-font); font-size: 13px; font-weight: 500; color: var(--bl-meta); }
.brand-phone:hover { color: var(--bl-green); }
.site-nav { gap: 22px; }
.site-nav a, .site-nav button.nav-drop-toggle { font-family: var(--bl-font); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--bl-ink); padding: 8px 0; }
.site-nav a::after, .site-nav button.nav-drop-toggle::after { display: none; }
.site-nav > a::before, .site-nav > .nav-item-drop > .nav-drop-toggle::before {
    content: ""; position: absolute; left: -11px; top: 50%; width: 5px; height: 5px; margin-top: -2px;
    background: var(--bl-amber); opacity: 0; transition: opacity var(--bl-dur);
}
.site-nav a:hover, .site-nav button.nav-drop-toggle:hover { color: var(--bl-green); }
.site-nav > a:hover::before, .site-nav > .nav-item-drop > .nav-drop-toggle:hover::before { opacity: 1; }
.site-nav a[aria-current="page"]:not(.nav-cta) { color: var(--bl-green); }
.site-nav a[aria-current="page"]:not(.nav-cta)::after { display: block; content: ""; position: absolute; left: 0; right: 0; bottom: -2px; width: auto; height: 3px; background: var(--bl-amber); }
.site-nav .nav-cta, .site-nav .nav-cta:hover {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
    background: var(--bl-ink); color: #fff !important; border-radius: var(--bl-r1);
    font-family: var(--bl-font); font-size: 15px; font-weight: 800; letter-spacing: 0.01em;
}
.site-nav .nav-cta:hover { background: var(--bl-green); }
.site-nav .nav-cta::before { display: none; }
.site-nav .nav-drop { border-radius: var(--bl-r1); }
.site-nav .nav-drop a { font-weight: 500; }
.nav-toggle {
    align-items: center; justify-content: center; height: 46px; padding: 0 14px;
    border-radius: var(--bl-r1); background: var(--bl-cream); color: var(--bl-ink);
    font: 800 15px/1 var(--bl-font); letter-spacing: 0.02em; text-transform: uppercase;
}
@media (max-width: 1100px) {
    :root { --header-h: 96px; }
    .site-header-inner { padding: 0 24px; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .site-nav.open { border-bottom: 0; box-shadow: 0 12px 24px rgba(33, 60, 47, 0.18), 0 1px 0 var(--bl-line-on-light); padding: 8px 24px 16px; }
    .site-nav.open > a, .site-nav.open .nav-drop-toggle { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--bl-line-on-light); }
    .site-nav.open > a::before, .site-nav.open .nav-drop-toggle::before { display: none; }
    .site-nav.open .nav-cta { min-height: 48px; margin-top: 12px; padding: 0 20px; border-bottom: 0; font-size: 15px; }
    html.no-js .nav-toggle { display: none; }
}
@media (max-width: 720px) {
    :root { --header-h: 72px; }
    .site-header-inner { gap: 10px; padding: 0 16px; }
    .site-brand .brand-logo { height: 40px; }
    .brand-lockup { gap: 10px; }
    .brand-lockup .brand-sep { height: 30px; }
    .brand-lockup .brand-agent { font-size: 14px; }
    .brand-phone, .brand-phone:hover { font-size: 12px; }
    .nav-toggle { padding: 0 10px; height: 44px; min-width: 44px; }
}

/* ---- Interior heroes (landing, about, contact, reviews, team, STS) ------ */
#main-content > .hero {
    position: relative; isolation: isolate; overflow: hidden;
    background-color: var(--bl-green); background-image: var(--bl-grad);
    color: #fff; padding: 96px 0 88px;
}
#main-content > .hero::before {
    content: ""; position: absolute; inset: -10%; z-index: -2; pointer-events: none;
    background: var(--bl-topo) center / cover no-repeat; opacity: 0.08;
}
#main-content > .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--bl-grain); opacity: 0.28; mix-blend-mode: multiply;
}
#main-content > .hero .hero-headline,
#main-content > .hero h1,
#main-content > .hero h2,
#main-content > .hero h3 { color: #fff; }
#main-content > .hero .hero-headline {
    font-family: var(--bl-font); font-weight: 800; font-variation-settings: "wdth" 68;
    text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.9;
    font-size: clamp(3rem, 6.4vw, 5.75rem); max-width: 17ch; margin-bottom: 28px;
}
#main-content > .hero .hero-headline em { font-style: normal; color: #fff; font-weight: inherit; }
#main-content > .hero :is(p, li, span, label, strong, b, small, time, cite, blockquote, figcaption, q, em, i, .eyebrow, .hero-subhead):not(.btn):not(.btn *):not(.hero-headline *) {
    color: #fff; font-weight: 400;
}
#main-content > .hero .hero-subhead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.6; max-width: 58ch; }
#main-content > .hero a:not(.btn) { color: #fff; font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#main-content > .hero .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--bl-font); font-size: 13px; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase;
}
#main-content > .hero .eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--bl-amber); }
#main-content > .hero .btn {
    min-height: 54px; padding: 0 26px; border-radius: var(--bl-r1);
    font-family: var(--bl-font); font-size: 16px; font-weight: 800; letter-spacing: 0.01em; text-transform: none;
}
#main-content > .hero .btn:hover { transform: none; }
#main-content > .hero .btn:not(.btn-secondary) { background: var(--bl-amber); border-color: var(--bl-amber); color: var(--bl-ink) !important; box-shadow: 0 0 0 1.5px #fff; }
#main-content > .hero .btn:not(.btn-secondary):hover { background: #d6be8a; border-color: #d6be8a; }
#main-content > .hero .btn-secondary { background: transparent; border: 0; box-shadow: inset 0 0 0 1.5px #fff; color: #fff !important; }
#main-content > .hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }
#main-content > .hero :focus-visible { outline-color: #fff; }
/* Photos in an interior hero get the gold offset frame. */
#main-content > .hero .hero-photo { border: 0; border-radius: 0; box-shadow: var(--bl-sh-stamp); }
/* Light cards or forms inside a hero keep charcoal text. */
#main-content > .hero :is(.card, .guide-card, form, .form-card, .contact-card) :is(p, li, span, label, strong, b, small, a) { color: var(--bl-ink); }
#main-content > .hero + .proof-bar { background: var(--bl-green-800); border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* ---- Title band on posts and plain pages -------------------------------- */
.page-article { padding-top: 0; }
.page-article .page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin: 0 calc(50% - 50vw) 56px;
    padding: 80px calc(50vw - 50%) 64px;
    background-color: var(--bl-green); background-image: var(--bl-grad);
    color: #fff;
}
.page-article .page-hero::before {
    content: ""; position: absolute; inset: -10%; z-index: -2; pointer-events: none;
    background: var(--bl-topo) center / cover no-repeat; opacity: 0.08;
}
.page-article .page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--bl-grain); opacity: 0.28; mix-blend-mode: multiply;
}
.page-article .page-hero h1 {
    color: #fff; margin: 0 0 20px;
    font-family: var(--bl-font); font-weight: 800; font-variation-settings: "wdth" 68;
    text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.92;
    font-size: clamp(2.6rem, 5.4vw, 4.75rem); max-width: 20ch;
}
.page-article .page-hero :is(p, span, time, a) { color: #fff; font-weight: 400; }
.page-article .page-hero .entry-updated,
.page-article .page-hero .muted { margin: 0; font-size: 14px; letter-spacing: 0.02em; opacity: 1; }
.page-article .page-hero .page-eyebrow {
    display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
    font-family: var(--bl-font); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.page-article .page-hero .page-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--bl-amber); }
.page-article .page-hero a { text-decoration: none; }
.page-article .page-hero a:hover { text-decoration: underline; text-underline-offset: 3px; }
#main-content .page-article .page-hero a,
#main-content .page-article .page-hero a:hover { color: #fff; font-weight: 400; }

/* ---- Content ------------------------------------------------------------ */
.entry-content h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 2.2em 0 0.6em; }
.entry-content h3 { font-size: 1.5rem; line-height: 1.2; }
.entry-content ul:not([class]) { list-style: none; padding-left: 0; }
.entry-content ul:not([class]) > li { position: relative; padding-left: 1.6em; }
.entry-content ul:not([class]) > li::before {
    content: ""; position: absolute; left: 0.1em; top: 0.62em;
    width: 8px; height: 8px; background: #c9ae74;
}
.entry-content blockquote {
    background: #f5f4ee; border-left: 6px solid #c9ae74; border-radius: 3px;
    padding: 24px 28px; font-family: var(--font-serif); font-style: italic; font-weight: 500;
    font-size: 1.35rem; line-height: 1.4; color: #262624;
}
.entry-content table th { background: #213c2f; color: #fff; font-weight: 400; }
.section-alt { background: #f5f4ee; }

/* ---- Forms -------------------------------------------------------------- */
#main-content :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea):not(.bl-home *) {
    border-radius: 3px;
}

/* ---- Footer: green, grain and topo, place-name wordmark ----------------- */
.bl-footer { position: relative; isolation: isolate; overflow: hidden; padding: 88px 0 0; border-top: 0; background-color: var(--bl-green); background-image: var(--bl-grad); color: #fff; font-size: 16px; }
.bl-footer .wordmark {
    position: absolute; left: -1%; bottom: 40px; z-index: -1; pointer-events: none; white-space: nowrap;
    font-family: var(--bl-font); font-size: 300px; line-height: 0.8; font-weight: 900; font-variation-settings: "wdth" 62;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.05);
}
.bl-footer .container { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.bl-footer .footer-grid { display: grid; grid-template-columns: 300px 1px repeat(auto-fit, minmax(170px, 1fr)); gap: 40px; align-items: start; margin-bottom: 0; }
.bl-footer .footer-rule { align-self: stretch; width: 1px; background: var(--bl-line-on-dark); }
.bl-footer .footer-rule:last-child { display: none; }
.bl-footer .footer-brand-sep { display: none; }
.bl-footer .footer-brand-agent { display: block; margin-top: 12px; font-size: 15px; }
.bl-footer .footer-logo { width: auto; height: 82px; }
.bl-footer .footer-talk {
    margin: 26px 0 14px; color: #fff;
    font-family: var(--bl-font); font-size: 28px; font-weight: 800; font-variation-settings: "wdth" 80;
    text-transform: uppercase; line-height: 1;
}
.bl-footer .footer-contact { font-size: 16px; line-height: 1.7; }
.bl-footer .footer-book {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
    min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--bl-r1);
    background: var(--bl-amber); color: var(--bl-ink) !important; box-shadow: 0 0 0 1.5px #fff;
    font-family: var(--bl-font); font-size: 16px; font-weight: 800; letter-spacing: 0.01em; text-transform: none; text-decoration: none;
}
.bl-footer .footer-book:hover { background: #d6be8a; opacity: 1; transform: none; box-shadow: 0 0 0 1.5px #fff; }
.bl-footer .footer-col h3, .bl-footer .footer-col h4 {
    display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 0; border: 0;
    font-family: var(--bl-font); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.bl-footer .footer-col h3::before, .bl-footer .footer-col h4::before { content: ""; width: 18px; height: 3px; background: var(--bl-amber); flex: none; }
.bl-footer .footer-col li { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.bl-footer .footer-col li a { display: inline; font-size: 15px; font-weight: 400; line-height: 1.4; text-decoration: none; }
.bl-footer .footer-col li a::after { content: "\2192"; display: inline-block; margin-left: 6px; color: #fff; opacity: 0; transition: opacity var(--bl-dur), transform var(--bl-dur); }
.bl-footer .footer-col li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.bl-footer .footer-col li a:hover::after { opacity: 1; transform: translateX(3px); }
.bl-footer .footer-chips {
    display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; margin: 72px 0 0; padding: 22px 0 0;
    border-top: 1px solid var(--bl-line-on-dark); font-size: 14px; font-weight: 400;
}
.bl-footer .footer-chips .sq { display: inline-block; width: 7px; height: 7px; margin: 0 14px; background: var(--bl-amber); flex: none; }
.bl-footer .footer-chips .sq:first-child { margin-left: 0; }
.bl-footer .footer-chips a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bl-footer .footer-bottom { margin-top: 72px; padding: 22px 0 26px; border-top: 1px solid var(--bl-line-on-dark); font-size: 14px; text-align: left; }
.bl-footer .footer-chips + .footer-bottom { margin-top: 0; padding-top: 12px; border-top: 0; }
.bl-footer .footer-legal { margin: 0; opacity: 1; font-weight: 400; }
@media (max-width: 1180px) {
    .bl-footer .container { padding: 0 40px; }
    .bl-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .bl-footer .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
    .bl-footer .footer-rule { display: none; }
}
@media (max-width: 720px) {
    #main-content > .hero { padding: 64px 0 56px; }
    .page-article .page-hero { padding-top: 56px; padding-bottom: 44px; margin-bottom: 40px; }
    .bl-footer { padding-top: 64px; }
    .bl-footer .container { padding: 0 16px; }
    .bl-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .bl-footer .wordmark { font-size: 130px; }
    .bl-footer .footer-chips { margin-top: 48px; }
}

/* ---- Phone action bar (interior pages) ---------------------------------- */
.mobile-action-bar { display: none; }
@media (max-width: 1100px) {
    .mobile-action-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        display: flex; gap: 10px; align-items: center;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top: 0;
        box-shadow: 0 -8px 24px rgba(38, 38, 36, 0.14);
    }
    .mobile-action-bar .btn { flex: 1; min-height: 48px; padding: 0 16px; border-radius: 3px; background: #c9ae74; border-color: #c9ae74; color: #262624 !important; font-family: var(--bl-font); font-weight: 800; font-size: 15px; letter-spacing: 0.01em; text-transform: none; }
    .mobile-action-bar .mobile-action-call {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 48px; padding: 0 20px; border: 0; box-shadow: inset 0 0 0 1.5px #262624; border-radius: 3px;
        color: #262624; font-family: var(--bl-font); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
    }
    body:has(.mobile-action-bar) { padding-bottom: 76px; }
}
