/* =========================================================
   EverNorth Construction — Theme Styles
   Built by RankFlow Systems LLC
   Aesthetic: PNW Industrial Luxe
   Palette:  Steel Charcoal · Forged Copper · Timberline Green · Bone
   Type: Fraunces (display serif) + Manrope (sans body)
   ========================================================= */

:root {
    /* Core palette */
    --steel-950: #14161a;
    --steel-900: #1b1e23;
    --steel-800: #23272d;
    --steel-700: #2e333a;
    --steel-500: #4b525a;
    --steel-300: #8c939c;
    --steel-100: #d3d6da;

    --copper-700: #8a4a24;
    --copper-600: #a8592c;
    --copper-500: #c76a34;
    --copper-400: #dc8351;
    --copper-300: #eaa079;

    --timber-800: #2e3a2a;
    --timber-700: #3d4d38;
    --timber-500: #5a6f52;

    --bone-100: #f5f0e6;
    --bone-200: #ebe4d4;
    --bone-300: #ddd3bf;

    --ink: #0e1013;
    --paper: #faf7f0;
    --line: rgba(20, 22, 26, 0.12);
    --line-strong: rgba(20, 22, 26, 0.22);

    /* Type — single modern sans across the entire theme */
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: var(--font-main);
    --font-body:    var(--font-main);

    /* Text tokens */
    --text-body:    #333333;
    --text-heading: #111111;

    /* Form tokens */
    --form-bg:      #FFFFFF;
    --form-border:  #E5E7EB;
    --form-label:   #4B5563;
    --form-text:    #111111;

    /* Rhythm */
    --container: min(1240px, 92vw);
    --container-narrow: min(880px, 92vw);
    --radius: 3px;
    --radius-lg: 6px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.15, 1);

    /* Header */
    --nav-h: 78px;

    /* Hero background — ships with the theme, overridable via ACF `hero_background`. */
    --hero-image: url('../images/hero.jpg');
    --hero-position: 60% 55%;
    --hero-overlay: linear-gradient(160deg, rgba(14, 16, 19, 0.86) 0%, rgba(20, 22, 26, 0.72) 45%, rgba(14, 16, 19, 0.88) 100%);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: auto; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--paper);
    overflow-x: hidden;
    /* Locked-scroll compatible padding — no horizontal shift on mobile */
    padding-right: 0 !important;
}
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: var(--scroll-top, 0);
    left: 0;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* -------------------- Typography -------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    color: var(--text-heading);
}
h1 {
    font-size: clamp(2.4rem, 5.6vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
h4 {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}
p { max-width: 65ch; }

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--copper-500);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--copper-500);
    display: inline-block;
}
/* Automatic vertical rhythm after an eyebrow — replaces inline margin-top on h1/h2/h3 */
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3 { margin-top: 1rem; }
.section-lede { max-width: 55ch; margin-top: 1.5rem; font-size: 1.1rem; color: var(--steel-700); }
.dark .section-lede { color: rgba(245, 240, 230, 0.78); }
.section-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.section-intro { margin-bottom: 3.5rem; max-width: 55ch; }
.bone-bg { background: var(--bone-100); }
.paper-bg { background: var(--paper); }
.lede-link { color: var(--copper-400); }
.lede-link:hover { color: var(--copper-300); }
.hours-list { font-family: var(--font-main); font-size: 0.95rem; line-height: 1.7; }
.hours-day { display: inline-block; min-width: 42px; color: var(--steel-500); }
.eyebrow--soft { color: rgba(245, 240, 230, 0.85); }
.eyebrow--soft::before { background: rgba(245, 240, 230, 0.85); }
.cta-banner-title { margin-top: 1rem; }
.side-list-title { font-size: 1.1rem; letter-spacing: 0.02em; }
.error-404-copy { margin: 1rem auto 2rem; max-width: 50ch; }
.area-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin: -2rem -1.75rem 1.25rem;
}
.area-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: grayscale(15%); }
.area-card:hover .area-card-media img { transform: scale(1.04); filter: grayscale(0%); }
.area-card-blurb { margin-top: 0.75rem; }

/* -------------------- Clean Subpage Layout (services + locations) -------------------- */
.clean-page {
    background: #FFFFFF;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.clean-page-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}
.clean-page-title {
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--text-heading);
    font-size: clamp(2.2rem, 4.6vw, 3.85rem);
    max-width: 24ch;
    margin: 0 auto;
}
.clean-page-license {
    margin: 1rem auto 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-600);
    font-weight: 600;
}

.clean-page-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    align-items: start;
}

/* Left column — long-form SEO copy */
.clean-page-text {
    text-align: left;
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.7;
}
.clean-page-text > *:first-child { margin-top: 0; }
.clean-page-text p {
    margin: 0 0 1.25rem;
    max-width: none;
}
.clean-page-text h2 {
    margin: 2rem 0 1rem;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    color: var(--text-heading);
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.clean-page-text h2:first-child { margin-top: 0; }
.clean-page-text h3 {
    margin: 1.75rem 0 0.6rem;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    color: var(--text-heading);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.clean-page-text h4 {
    margin: 1.25rem 0 0.4rem;
    font-size: 1.05rem;
    color: var(--text-heading);
}
.clean-page-text ul,
.clean-page-text ol {
    margin: 1rem 0 1.5rem 1.25rem;
    padding: 0;
}
.clean-page-text li {
    margin: 0.5rem 0;
    padding-left: 0.35rem;
    line-height: 1.65;
}
.clean-page-text li::marker { color: var(--copper-500); }
.clean-page-text a {
    color: var(--copper-600);
    text-decoration: none;
    border-bottom: 1px solid rgba(199, 106, 52, 0.4);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.clean-page-text a:hover { color: var(--text-heading); border-bottom-color: var(--text-heading); }
.clean-page-text strong { color: var(--text-heading); font-weight: 700; }
.clean-page-text em { color: var(--copper-700); font-style: italic; }
.clean-page-text blockquote {
    margin: 1.75rem 0;
    padding: 0 1.5rem;
    border-left: 3px solid var(--copper-500);
    color: var(--text-heading);
    font-style: italic;
}

/* Right column — Customizer image */
.clean-page-media {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.clean-page-main-image {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: block;
}

@media (max-width: 900px) {
    .clean-page-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2.25rem auto;
    }
    .clean-page-media { position: static; }
    .clean-page-main-image { max-height: 460px; }
}
.map-caption { margin-top: 1.25rem; color: var(--steel-500); font-size: 0.92rem; }
.map-caption strong { color: var(--ink); }

/* -------------------- Layout helpers -------------------- */
.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.grain::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.dark { background: var(--steel-900); color: var(--bone-100); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone-100); }
.dark .eyebrow { color: var(--copper-400); }
.dark .eyebrow::before { background: var(--copper-400); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.05rem 1.6rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn-primary {
    background: var(--copper-500);
    color: #FFFFFF;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-primary:hover {
    background: var(--copper-600);
    color: #FFFFFF;
    box-shadow: none;
}
.btn-ghost {
    color: var(--paper);
    border: 1px solid rgba(245, 240, 230, 0.35);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--steel-900); color: var(--paper); }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }
.btn-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* -------------------- Header / Nav -------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(20, 22, 26, 0.35); }
.nav-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.brand-mark { height: 52px; width: auto; }
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-text .name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}
.brand-text .tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--copper-500);
    margin-top: 3px;
}

.nav-menu { list-style: none; padding: 0; display: flex; align-items: center; gap: 2rem; }
.nav-menu > li { position: relative; }
.nav-menu > li > a,
.nav-menu > li > button {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s var(--ease);
    position: relative;
}
.nav-menu > li > a::after,
.nav-menu > li > button::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--copper-500);
    transition: width 0.3s var(--ease);
}
.nav-menu > li:hover > a::after,
.nav-menu > li:hover > button::after,
.nav-menu > li.current-menu-item > a::after { width: 100%; }
.nav-menu > li:hover > a,
.nav-menu > li:hover > button { color: var(--copper-600); }

.dropdown-toggle .caret { transition: transform 0.3s var(--ease); font-size: 0.7em; }
.dropdown:hover .caret { transform: rotate(180deg); }

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -20px;
    min-width: 260px;
    background: var(--steel-900);
    color: var(--paper);
    padding: 1rem 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 25px 60px -20px rgba(0,0,0,0.35);
}
.dropdown-panel::before {
    content: "";
    position: absolute;
    top: -10px; left: 30px;
    border: 6px solid transparent;
    border-bottom-color: var(--steel-900);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--bone-100);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
    border-left: 2px solid transparent;
}
.dropdown-panel a:hover {
    background: var(--steel-800);
    color: var(--copper-300);
    padding-left: 1.75rem;
    border-left-color: var(--copper-500);
}

.nav-cta {
    display: flex; align-items: center; gap: 1rem;
    margin-left: auto;
}
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.1rem 0.55rem 0.85rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.005em;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-phone:hover {
    color: var(--copper-600);
    border-color: var(--copper-500);
    background: var(--bone-100);
    transform: translateY(-1px);
}
.nav-phone-icon {
    display: inline-grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--copper-500);
    color: var(--paper);
    flex-shrink: 0;
    transition: background 0.25s var(--ease);
}
.nav-phone-icon svg { width: 14px; height: 14px; }
.nav-phone:hover .nav-phone-icon { background: var(--copper-600); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    position: relative;
    z-index: 100;
}
.nav-toggle span {
    position: absolute;
    left: 8px; right: 8px;
    height: 2px; background: var(--ink);
    transition: transform 0.35s var(--ease), opacity 0.2s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--nav-h));
    background-color: var(--steel-950);
    color: var(--bone-100);
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 8rem);
    isolation: isolate;
}
/* Photo layer — full-bleed, dimmed for text contrast. Override via --hero-image. */
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--hero-image, none);
    background-size: cover;
    background-position: var(--hero-position, center);
    background-repeat: no-repeat;
    filter: grayscale(25%) contrast(1.08) brightness(0.5) saturate(0.9);
    z-index: -3;
}
/* Dark tint + brand color washes. Keeps white text readable on any photo. */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 16, 19, 0.78) 0%, rgba(14, 16, 19, 0.45) 45%, rgba(14, 16, 19, 0.7) 100%),
        var(--hero-overlay),
        radial-gradient(ellipse at 15% 20%, rgba(199, 106, 52, 0.22), transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(90, 111, 82, 0.24), transparent 60%);
    z-index: -2;
    pointer-events: none;
}
.hero-grain {
    position: absolute; inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* Optional readability halo behind the copy column on wide screens */
.hero-copy {
    position: relative;
}
.hero-copy::before {
    content: "";
    position: absolute;
    inset: -2rem -3rem -2rem -3rem;
    background: radial-gradient(ellipse at 30% 50%, rgba(14, 16, 19, 0.45) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.hero-copy .eyebrow { animation: fadeUp 0.9s var(--ease) 0.1s both; }
.hero-copy h1 { animation: fadeUp 1s var(--ease) 0.25s both; margin-top: 1.5rem; color: var(--bone-100); }
.hero-copy h1 .accent {
    font-style: italic;
    color: var(--copper-400);
    font-weight: 400;
}
.hero-lede {
    margin-top: 1.75rem;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(245, 240, 230, 0.78);
    max-width: 48ch;
    animation: fadeUp 1s var(--ease) 0.4s both;
}
.hero-badges {
    margin-top: 2.5rem;
    display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
    animation: fadeUp 1s var(--ease) 0.55s both;
}
.hero-badges .badge {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.85);
    font-weight: 600;
}
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper-500); box-shadow: 0 0 0 4px rgba(199,106,52,0.18); }

/* Lead form card — stark white, subtle border, zero glow */
.lead-card {
    background: var(--form-bg);
    color: var(--text-body);
    border: 1px solid var(--form-border);
    border-radius: 4px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    position: relative;
    box-shadow: none;
    animation: fadeUp 1s var(--ease) 0.5s both;
    isolation: isolate;
}
.lead-card .kicker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-600);
    margin-bottom: 0.6rem;
}
.lead-card h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.7rem);
    margin-bottom: 1.75rem;
    color: var(--text-heading);
    letter-spacing: -0.015em;
}

/* -------- Premium Form UI -------- */
.lead-form { display: grid; gap: 1.1rem; }

.field { position: relative; }

.field label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--form-label);
    margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--form-text);
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: 4px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #9CA3AF; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--copper-500);
    background: var(--form-bg);
    box-shadow: none;
    outline: none;
}

.field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23111111' d='M0 0h12L6 8z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3rem;
    cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.lead-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1.15rem 1.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    margin-top: 0.65rem;
    box-shadow: none;
    transition: background 0.2s ease;
}
.lead-form .btn-primary:hover {
    background: var(--copper-600);
    box-shadow: none;
}

.lead-notice { font-size: 0.75rem; color: var(--steel-500); margin-top: 0.85rem; text-align: center; }
.lead-honeypot { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

.lead-message { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.92rem; }
.lead-message.success { background: #e8f2e0; color: #2d4a1c; border-left: 3px solid var(--timber-700); }
.lead-message.error { background: #f7e0d6; color: #6d2b12; border-left: 3px solid var(--copper-600); }

/* Two-column tightening for name/phone side-by-side when tight */
@media (min-width: 480px) and (max-width: 1024px) {
    .lead-form.compact { grid-template-columns: 1fr 1fr; }
    .lead-form.compact .field-full,
    .lead-form.compact .btn-primary,
    .lead-form.compact .lead-notice { grid-column: 1 / -1; }
}

/* -------------------- Trust bar -------------------- */
.trust-bar {
    background: var(--bone-100);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
}
.trust-bar .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}
.trust-item {
    display: flex; align-items: center; gap: 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--steel-700);
}
.trust-item .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--copper-600); line-height: 1; }
.trust-item strong { display: block; font-weight: 700; color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; }
.trust-item span { display: block; font-size: 0.78rem; color: var(--steel-500); }

/* -------------------- Services block -------------------- */
.services { background: var(--paper); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.section-head h2 { margin-top: 1rem; max-width: 22ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.service-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--copper-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
    z-index: 3;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--steel-700);
    box-shadow: 0 30px 60px -30px rgba(20, 22, 26, 0.28);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bone-100);
}
.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
    filter: grayscale(15%) brightness(0.96);
}
.service-card:hover .service-card-media img { transform: scale(1.05); filter: grayscale(0%) brightness(1); }

.service-card-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(20, 22, 26, 0.6));
    pointer-events: none;
}
.service-card-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--paper);
    padding: 0.35rem 0.75rem;
    background: rgba(20, 22, 26, 0.55);
    backdrop-filter: blur(6px);
    border-radius: 2px;
    z-index: 2;
}

.service-card-body {
    padding: 1.75rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.85rem;
}
.service-card-body h3 { font-size: 1.55rem; }
.service-card-body p { color: var(--steel-500); font-size: 0.95rem; flex-grow: 1; line-height: 1.6; }

/* Title link — real anchor, sits above stretched-link */
.service-card-title { color: var(--ink); position: relative; z-index: 2; transition: color 0.25s var(--ease); }
.service-card:hover .service-card-title { color: var(--copper-600); }

/* Inline anchors within the paragraph — must stay clickable */
.service-card-body p a {
    position: relative;
    z-index: 2;
    color: var(--copper-700);
    font-weight: 600;
    border-bottom: 1px solid rgba(199, 106, 52, 0.4);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service-card-body p a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--copper-600);
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.service-card-link::after { content: "→"; transition: transform 0.3s var(--ease); }
.service-card:hover .service-card-link { color: var(--ink); gap: 0.75rem; }
.service-card:hover .service-card-link::after { transform: translateX(4px); }

/* Stretched-link — the Learn More anchor covers the whole card via ::before,
   while title + paragraph anchors live above at z-index 2. */
.service-card-stretched::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* -------------------- Why Choose EverNorth -------------------- */
.why-choose { background: var(--bone-100); }
.why-choose-inner {
    display: flex;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.why-choose-media {
    flex: 1 1 50%;
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 560px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(20, 22, 26, 0.35);
}
.why-choose-media img { width: 100%; height: 100%; object-fit: cover; }
.why-choose-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(160deg, transparent 55%, rgba(20, 22, 26, 0.35));
    pointer-events: none;
}
.why-choose-media-stamp {
    position: absolute;
    left: 1.5rem; bottom: 1.5rem;
    color: var(--paper);
    z-index: 2;
    max-width: 70%;
}
.why-choose-media-stamp .year {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--copper-400);
}
.why-choose-media-stamp .label {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    margin-top: 0.5rem;
    opacity: 0.85;
}
.why-choose-body { flex: 1 1 50%; }
.why-choose-body h2 { margin-top: 1rem; max-width: 18ch; }
.why-choose-lede,
.why-choose-lede p {
    font-size: 1.1rem;
    color: var(--steel-700);
    max-width: 52ch;
    line-height: 1.7;
}
.why-choose-lede { margin-top: 1.5rem; }
.why-choose-lede p { margin-top: 1rem; }
.why-choose-lede p:first-child { margin-top: 0; }
.why-choose-points {
    list-style: none;
    padding: 0;
    margin-top: 2.25rem;
    display: grid;
    gap: 1rem;
}
.why-choose-points li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink);
}
.why-choose-points li:last-child { border-bottom: 1px solid var(--line); }
.why-choose-points .check {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--copper-500);
    color: var(--paper);
    font-size: 0.9rem;
}
.why-choose-points strong { display: block; font-weight: 700; color: var(--ink); }
.why-choose-points span { display: block; color: var(--steel-500); font-size: 0.9rem; margin-top: 0.15rem; }
.why-choose-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Flat bullet variant — single-line strong text, no sub-description */
.why-choose-points--flat li { align-items: center; }
.why-choose-points--flat strong { font-weight: 600; font-size: 1.02rem; }

/* Inline anchor styling used across trust copy */
.why-choose-lede a,
.why-choose-points a {
    color: var(--copper-600);
    font-weight: 600;
    border-bottom: 1px solid rgba(199, 106, 52, 0.4);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.why-choose-lede a:hover,
.why-choose-points a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.why-choose-body h2 em {
    font-style: italic;
    color: var(--copper-500);
    font-weight: 400;
}

/* -------------------- Bottom Form CTA (service pages) -------------------- */
.bottom-cta {
    background: var(--steel-900);
    color: var(--bone-100);
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    isolation: isolate;
}
.bottom-cta::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(199, 106, 52, 0.22), transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(90, 111, 82, 0.22), transparent 55%);
}
.bottom-cta::after {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bottom-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.bottom-cta-copy h2 {
    color: var(--bone-100);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 1rem;
    max-width: 18ch;
}
.bottom-cta-copy h2 em { font-style: italic; color: var(--copper-400); font-weight: 400; }
.bottom-cta-blurb,
.bottom-cta-blurb p {
    margin-top: 1.75rem;
    font-size: 1.1rem;
    color: rgba(245, 240, 230, 0.82);
    max-width: 52ch;
}
.bottom-cta-blurb p:first-child { margin-top: 0; }
.bottom-cta-blurb a {
    color: var(--copper-300);
    border-bottom: 1px solid rgba(234, 160, 121, 0.4);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.bottom-cta-blurb a:hover { color: var(--bone-100); border-bottom-color: var(--bone-100); }
.bottom-cta-trust {
    margin-top: 2.5rem;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.bottom-cta-trust li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(245, 240, 230, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.bottom-cta-trust .dot {
    width: 10px; height: 10px;
    background: var(--copper-500);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px rgba(199, 106, 52, 0.18);
}
.bottom-cta-direct {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 240, 230, 0.15);
    font-size: 0.95rem;
    color: rgba(245, 240, 230, 0.75);
}
.bottom-cta-direct a {
    color: var(--copper-400);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}
.bottom-cta-direct a:hover { border-color: var(--copper-400); }

/* -------------------- About / Split -------------------- */
.split {
    background: var(--paper);
}
.split-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(150deg, var(--steel-800), var(--steel-950));
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4);
}
.split-image::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(199,106,52,0.25), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(90,111,82,0.28), transparent 55%);
}
.split-image::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.55;
}
.split-image .stamp {
    position: absolute;
    left: 2rem; bottom: 2rem;
    color: var(--bone-100);
    z-index: 2;
}
.split-image .stamp .year {
    font-family: var(--font-display);
    font-size: 4rem;
    font-style: italic;
    line-height: 1;
    color: var(--copper-400);
}
.split-image .stamp .label {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    margin-top: 0.35rem;
    color: rgba(245,240,230,0.8);
}
.split-body .lede { font-size: 1.15rem; color: var(--steel-700); margin-top: 1.75rem; }
.split-body .points { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1rem; }
.split-body .points li {
    display: flex; align-items: flex-start; gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.split-body .points li:last-child { border-bottom: 0; padding-bottom: 0; }
.split-body .points .marker {
    font-family: var(--font-display);
    color: var(--copper-500);
    font-size: 1.2rem;
    font-style: italic;
    flex-shrink: 0;
}
.split-body .points strong { display: block; color: var(--ink); }
.split-body .points span { color: var(--steel-500); font-size: 0.92rem; }

/* -------------------- Process -------------------- */
.process {
    background: var(--steel-900);
    color: var(--bone-100);
    position: relative;
    overflow: hidden;
}
.process h1, .process h2, .process h3, .process h4 { color: var(--bone-100); }
.process .eyebrow { color: var(--copper-400); }
.process .eyebrow::before { background: var(--copper-400); }
.process::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 90% 0%, rgba(199,106,52,0.18), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(90,111,82,0.22), transparent 55%);
    z-index: 0;
}
.process > .container { position: relative; z-index: 1; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    counter-reset: step;
}
.process-step {
    background: rgba(20,22,26,0.4);
    border: 1px solid rgba(245,240,230,0.08);
    padding: 2rem 1.5rem;
    border-radius: 3px;
    position: relative;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-4px); border-color: var(--copper-500); }
.process-step .step-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--copper-500);
    line-height: 1;
    font-style: italic;
    margin-bottom: 1rem;
}
.process-step h3 { color: var(--bone-100); font-size: 1.3rem; margin-bottom: 0.5rem; }
.process-step p { color: rgba(245,240,230,0.7); font-size: 0.9rem; }

/* -------------------- Areas -------------------- */
.areas {
    background: var(--paper);
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}
.area-card {
    padding: 2rem 1.75rem;
    border: 1px solid var(--line);
    background: var(--bone-100);
    position: relative;
    overflow: hidden;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}
.area-card::after {
    content: "";
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 32px; height: 32px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c76a34' stroke-width='2'><path d='M12 21s-7-8-7-13a7 7 0 1 1 14 0c0 5-7 13-7 13z'/><circle cx='12' cy='8' r='2.5'/></svg>") no-repeat center/contain;
    opacity: 0.6;
    transition: opacity 0.3s var(--ease);
}
.area-card:hover { background: var(--steel-900); color: var(--bone-100); transform: translateY(-4px); }
.area-card:hover h3 { color: var(--bone-100); }
.area-card:hover::after { filter: brightness(1.5); opacity: 1; }
.area-card h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.area-card p { color: var(--steel-500); font-size: 0.85rem; letter-spacing: 0.02em; }
.area-card:hover p { color: rgba(245,240,230,0.7); }

/* -------------------- CTA banner -------------------- */
.cta-banner {
    background: var(--copper-500);
    color: var(--paper);
    padding: clamp(4rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 90% 20%, rgba(0,0,0,0.25), transparent 55%),
        radial-gradient(ellipse at 10% 100%, rgba(0,0,0,0.2), transparent 55%);
}
.cta-banner .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr auto; align-items: center; gap: 2rem; }
.cta-banner h2 { color: var(--paper); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-banner .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-banner .btn { background: var(--steel-900); color: var(--paper); }
.cta-banner .btn:hover { background: var(--ink); }
.cta-banner .btn.outline { background: transparent; border: 1px solid rgba(245,240,230,0.5); }
.cta-banner .btn.outline:hover { background: var(--paper); color: var(--copper-600); border-color: var(--paper); }

/* -------------------- FAQ -------------------- */
.faq {
    background: var(--bone-100);
}
.faq-list {
    margin-top: 3rem;
    max-width: 820px;
    margin-inline: auto;
    display: grid;
    gap: 0;
}
.faq-item {
    border-top: 1px solid var(--line-strong);
    transition: background 0.2s var(--ease);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-q {
    width: 100%;
    text-align: left;
    padding: 1.4rem 0;
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--ink);
    line-height: 1.3;
}
.faq-q .plus {
    flex-shrink: 0;
    width: 32px; height: 32px;
    position: relative;
    border: 1px solid var(--copper-500);
    border-radius: 50%;
}
.faq-q .plus::before,
.faq-q .plus::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    background: var(--copper-500);
    transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
    color: var(--steel-700);
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.5rem; }

/* -------------------- Page headers -------------------- */
.page-header {
    background: var(--steel-900);
    color: var(--bone-100);
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(199,106,52,0.2), transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(90,111,82,0.24), transparent 55%);
}
.page-header::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.55;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--bone-100); margin: 1.25rem 0 1.5rem; max-width: 20ch; }
.page-header .lede { font-size: 1.1rem; color: rgba(245,240,230,0.78); max-width: 55ch; }

.page-header--split { padding-bottom: 0; }
.page-header-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-header-copy .section-actions { margin-top: 2.5rem; }
.page-header-media {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 620px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
    transform: translateY(0);
}
.page-header-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.02);
}
.page-header-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(200deg, transparent 55%, rgba(20, 22, 26, 0.45));
    pointer-events: none;
}

/* Prose-embedded media */
.prose-media {
    margin: 2.5rem 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.prose-media img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.prose-media figcaption {
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--steel-500);
    background: var(--bone-100);
    border-left: 3px solid var(--copper-500);
}
.prose-content-tail { margin-top: 2.5rem; }
.faq-list--tight { margin-top: 1.5rem; }

/* -------------------- Values (About) -------------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.value-card {
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(20, 22, 26, 0.28); border-color: var(--steel-700); }
.value-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.value-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); filter: grayscale(15%); }
.value-card:hover .value-card-media img { transform: scale(1.05); filter: grayscale(0%); }
.value-card-body { padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.65rem; flex-grow: 1; }
.value-card-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2.2rem;
    color: var(--copper-500);
    line-height: 1;
}
.value-card-body h3 { font-size: 1.4rem; }
.value-card-body p { color: var(--steel-500); font-size: 0.95rem; }

/* -------------------- Credentials (About) -------------------- */
.credentials-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.credentials-image {
    margin-top: 2rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(20, 22, 26, 0.35);
}
.credentials-image img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.credentials-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.credentials-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
}
.credentials-list dt { font-weight: 700; color: rgba(245, 240, 230, 0.75); }
.credentials-list dd { color: var(--bone-100); }
.credentials-list a { color: var(--copper-400); }
.credentials-list a:hover { color: var(--copper-300); }

@media (max-width: 1024px) {
    .values-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; }
    .credentials-card { position: static; }
}
.breadcrumbs {
    display: flex; gap: 0.65rem; align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245,240,230,0.7);
}
.breadcrumbs a { color: var(--copper-400); }
.breadcrumbs a:hover { color: var(--copper-300); }
.breadcrumbs .sep { color: rgba(245,240,230,0.4); }

/* -------------------- Content page -------------------- */
.content-page { padding: clamp(4rem, 7vw, 6rem) 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2.5rem; }
.prose h4 { margin-top: 2rem; }
.prose p { margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.7; color: var(--steel-700); }
.prose ul, .prose ol { margin: 1.25rem 0 1.25rem 1.4rem; }
.prose ul li, .prose ol li { margin-top: 0.5rem; color: var(--steel-700); }
.prose ul li::marker { color: var(--copper-500); }
.prose strong { color: var(--ink); }
.prose blockquote {
    border-left: 3px solid var(--copper-500);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--ink);
}

.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 1.5rem; }
.side-card {
    background: var(--steel-900);
    color: var(--bone-100);
    padding: 2rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.side-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
    background: var(--copper-500);
}
.side-card h4 { color: var(--bone-100); font-size: 1.35rem; margin-bottom: 0.75rem; }
.side-card p { color: rgba(245,240,230,0.8); font-size: 0.92rem; margin-bottom: 1.5rem; }
.side-card .btn-primary { width: 100%; justify-content: center; }
.side-card .phone {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0.5rem 0 0.25rem;
    color: var(--copper-400);
}
.side-card .hours {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245,240,230,0.15);
    font-size: 0.85rem;
    color: rgba(245,240,230,0.75);
}
.side-card .hours strong { color: var(--bone-100); display: block; margin-bottom: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.side-card .hours dl { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }

.side-list { background: var(--bone-100); padding: 2rem; border-radius: 4px; }
.side-list h4 { margin-bottom: 1rem; }
.side-list ul { list-style: none; padding: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0;
    font-weight: 600;
    color: var(--steel-700);
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.side-list a::after { content: "→"; color: var(--copper-500); transition: transform 0.2s var(--ease); }
.side-list a:hover { color: var(--ink); padding-left: 0.5rem; }
.side-list a:hover::after { transform: translateX(3px); }

/* -------------------- Contact page -------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}
.contact-info { display: grid; gap: 1.5rem; }
.contact-block {
    padding: 1.75rem;
    border: 1px solid var(--line);
    background: #fff;
    display: flex; gap: 1.25rem; align-items: flex-start;
}
.contact-block .icon {
    width: 44px; height: 44px;
    background: var(--copper-500);
    color: var(--paper);
    display: grid; place-items: center;
    flex-shrink: 0;
    border-radius: 3px;
}
.contact-block .icon svg { width: 22px; height: 22px; }
.contact-block h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-500); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.35rem; }
.contact-block p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; color: var(--ink); }
.contact-block a:hover { color: var(--copper-600); }

.map-embed { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------------------- Location gallery -------------------- */
.location-hero-facts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245,240,230,0.15);
}
.fact { color: rgba(245,240,230,0.85); }
.fact .num {
    font-family: var(--font-display); font-size: 2.4rem; color: var(--copper-400); line-height: 1;
}
.fact .label { display: block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; margin-top: 0.5rem; color: rgba(245,240,230,0.7); }

/* -------------------- Service page details -------------------- */
.service-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem; margin: 2.5rem 0;
}
.feature-item {
    padding: 1.5rem;
    background: var(--bone-100);
    border-left: 3px solid var(--copper-500);
}
.feature-item h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.feature-item p { font-size: 0.9rem; color: var(--steel-500); margin: 0; }

/* -------------------- Footer -------------------- */
.site-footer {
    background: var(--ink);
    color: var(--bone-200);
    padding: clamp(4rem, 7vw, 6rem) 0 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 90% 0%, rgba(199,106,52,0.14), transparent 55%);
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(245,240,230,0.12);
}
.footer-brand .brand { color: var(--bone-100); }
.footer-brand .brand-text .name { color: var(--bone-100); }
.footer-brand p { margin-top: 1.5rem; color: rgba(245,240,230,0.7); font-size: 0.95rem; max-width: 32ch; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.footer-social a {
    width: 40px; height: 40px;
    border: 1px solid rgba(245,240,230,0.2);
    display: grid; place-items: center;
    border-radius: 50%;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
    color: var(--bone-100);
}
.footer-social a:hover { background: var(--copper-500); border-color: var(--copper-500); color: var(--paper); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--copper-400);
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(245,240,230,0.75); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--copper-400); }

.footer-nap { color: rgba(245,240,230,0.75); font-size: 0.92rem; line-height: 1.75; }
.footer-nap strong { color: var(--bone-100); }
.footer-nap a { color: rgba(245,240,230,0.75); }
.footer-nap a:hover { color: var(--copper-400); }
.footer-license { display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; opacity: 0.75; }

.footer-bottom {
    padding: 1.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(245,240,230,0.55);
}
.footer-bottom a { color: rgba(245,240,230,0.75); }
.footer-bottom a:hover { color: var(--copper-400); }
.footer-bottom .rf {
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}
.footer-bottom .rf a { color: var(--copper-400); border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.footer-bottom .rf a:hover { border-color: var(--copper-400); }

/* -------------------- Animations -------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------- 404 -------------------- */
.error-404 {
    padding: 8rem 0;
    text-align: center;
    background: var(--paper);
}
.error-404 .code {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(6rem, 15vw, 12rem);
    color: var(--copper-500);
    line-height: 1;
}
.error-404 h1 { margin: 1rem 0; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .cta-banner .container { grid-template-columns: 1fr; }
    .trust-bar .row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .split-image { aspect-ratio: 16/10; max-height: 480px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-choose-inner { flex-direction: column; align-items: stretch; }
    .why-choose-media { max-width: none; aspect-ratio: 16/10; }
    .bottom-cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .page-header-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .page-header-media { aspect-ratio: 16 / 10; max-height: 420px; }
}

@media (max-width: 1024px) {
    /* Center the hero photo when the layout stacks so the roof job stays in frame. */
    .hero { --hero-position: 55% 60%; }
    /* Kill the copy halo when the copy sits over the image full-width. */
    .hero-copy::before { display: none; }
}

@media (max-width: 820px) {
    :root { --nav-h: 68px; }
    /* Strengthen the overlay on mobile since the image dominates the viewport. */
    .hero::after {
        background:
            linear-gradient(180deg, rgba(14, 16, 19, 0.78) 0%, rgba(14, 16, 19, 0.6) 50%, rgba(14, 16, 19, 0.82) 100%),
            var(--hero-overlay);
    }
    .hero::before { filter: grayscale(25%) contrast(1.05) brightness(0.42) saturate(0.9); }
    .nav-menu { display: none; }
    .nav-phone .nav-phone-number { display: none; }
    .nav-phone { padding: 0.4rem; border: 0; }
    .nav-toggle { display: block; }

    .nav-menu.mobile-open {
        display: flex;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        bottom: 0;
        background: var(--steel-950);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 2rem 3rem;
        overflow-y: auto;
        gap: 0;
        z-index: 95;
    }
    .nav-menu.mobile-open > li {
        border-bottom: 1px solid rgba(245,240,230,0.12);
    }
    .nav-menu.mobile-open > li > a,
    .nav-menu.mobile-open > li > button {
        color: var(--bone-100);
        padding: 1.25rem 0;
        width: 100%;
        justify-content: space-between;
        font-size: 0.95rem;
    }
    .nav-menu.mobile-open > li > a::after,
    .nav-menu.mobile-open > li > button::after { display: none; }
    .nav-menu.mobile-open .dropdown-panel {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease);
    }
    .nav-menu.mobile-open .dropdown-panel::before { display: none; }
    .nav-menu.mobile-open .dropdown.open .dropdown-panel { max-height: 500px; }
    .nav-menu.mobile-open .dropdown-panel a { padding: 0.75rem 1.25rem; color: rgba(245,240,230,0.8); }
    .nav-menu.mobile-open .dropdown-panel a:hover { padding-left: 1.5rem; }

    .hero { min-height: auto; padding: 3rem 0 5rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
    .trust-bar .row { grid-template-columns: 1fr 1fr; }
    .brand-text .tag { display: none; }
    .brand-mark { height: 44px; }
    .brand-text .name { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .trust-bar .row { grid-template-columns: 1fr; }
    .location-hero-facts { grid-template-columns: 1fr; }
    .brand-text { display: none; }
}

/* -------------------- Accessibility -------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--copper-500); outline-offset: 3px; border-radius: 2px; }

/* Skip link */
.skip-link {
    position: absolute; top: -100px; left: 0;
    padding: 0.75rem 1.25rem;
    background: var(--ink); color: var(--paper);
    z-index: 999;
}
.skip-link:focus { top: 0; }

/* ---- Portfolio page ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.portfolio-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--bone-100);
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.portfolio-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
    filter: saturate(0.95);
}
.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(20,22,26,0.35));
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}
.portfolio-item:hover {
    transform: translateY(-4px);
    border-color: var(--copper-500);
    box-shadow: 0 18px 40px rgba(20,22,26,0.14);
}
.portfolio-item:hover img {
    transform: scale(1.05);
    filter: saturate(1.05);
}
.portfolio-item:hover::after { opacity: 1; }

.portfolio-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--steel-500);
    border: 1px dashed var(--line);
    background: var(--bone-100);
}
.portfolio-empty a { color: var(--copper-600); border-bottom: 1px solid currentColor; }
.portfolio-empty a:hover { color: var(--ink); }

.portfolio-body {
    max-width: 900px;
    margin: 3rem auto 0;
    color: var(--steel-500);
    line-height: 1.7;
}
.portfolio-body h2 { margin-top: 2rem; color: var(--ink); }
.portfolio-body .wp-block-gallery { gap: 1.25rem !important; margin: 1.5rem 0; }
.portfolio-body img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}

/* Tablet */
@media (max-width: 960px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
/* Mobile */
@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .portfolio-item { aspect-ratio: 4 / 3; }
    .portfolio-body { margin-top: 2rem; }
}

/* ---- HouseCall Pro lead iframe (replaces custom form) ---- */
.lead-card--hcp {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    overflow: hidden;
}
.lead-card--hcp h3 { margin-bottom: 1rem; }
.hcp-lead-iframe {
    display: block;
    width: 100%;
    min-height: 620px;
    border: 0;
    background: transparent;
}
@media (max-width: 960px) {
    .hcp-lead-iframe { min-height: 700px; }
}
@media (max-width: 600px) {
    .lead-card--hcp { padding: 1rem; }
    .hcp-lead-iframe { min-height: 780px; }
}
