/*
Theme Name: Elle Blanaru Law
Theme URI: https://example.com/
Author: Copilot
Description: A refined one-page block theme for Elle Blanaru's criminal defence practice in Nanaimo, BC.
Version: 1.0.0
Text Domain: elle-blanaru-law
Tags: full-site-editing, block-theme, one-column, custom-colors, custom-logo, featured-images, responsive-layout
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Libre+Franklin:wght@300;400;500;600&display=swap');

:root {
    --ink: #1a1a1f;
    --ivory: #f5f0e8;
    --warm: #c4a77d;
    --warm-deep: #96784a;
    --slate: #555560;
    --mist: #e8e2d8;
    --white: #fefcf9;
    --cream: #f8f4ed;
    --accent-dark: #2c2c34;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    background: var(--white);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Film-grain overlay — CSS-only, pointer-events disabled */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9000;
    animation: grain-drift 9s steps(2) infinite;
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}

/* ═══════════════ TOP BAR ═══════════════ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: var(--ink);
    text-align: center;
    padding: 0.55rem 1rem;
}

.top-bar a {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--warm);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--ivory);
}

/* ═══════════════ NAV ═══════════════ */
nav {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.4rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding: 0.9rem 4rem;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-logo span {
    color: var(--warm-deep);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--warm-deep);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.nav-active {
    color: var(--ink);
}

.nav-links a.nav-active::after {
    width: 100%;
    background: var(--warm);
}

.nav-cta {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    color: var(--warm-deep) !important;
    border: 1.5px solid var(--warm);
    padding: 0.55rem 1.4rem;
    transition: all 0.3s !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--warm-deep) !important;
    color: var(--white) !important;
    border-color: var(--warm-deep) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    background: none;
    border: none;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s;
    display: block;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 58% 58% at 82% 22%, rgba(196, 167, 125, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 52% 48% at 18% 80%, rgba(196, 167, 125, 0.16) 0%, transparent 52%),
        radial-gradient(ellipse 75% 90% at 50% 50%, rgba(26, 26, 31, 0.028) 0%, transparent 65%),
        linear-gradient(148deg, #fefcf9 0%, #fdf9f3 30%, #f9f0e3 65%, #f3e6d0 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(116deg,
            rgba(196, 167, 125, 0.11) 0px, rgba(196, 167, 125, 0.11) 1px,
            transparent 1px, transparent 50px);
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 52%, transparent 82%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 52%, transparent 82%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Top padding > bottom shifts the flex-center point downward */
    padding: clamp(5.5rem, 9vh, 7.5rem) 2rem 4rem 5rem;
    position: relative;
    z-index: 2;
}

.hero-content::before {
    content: '';
    position: absolute;
    left: 3rem;
    top: clamp(9rem, 15vh, 13rem);
    width: 1px;
    height: calc(100% - clamp(13rem, 22vh, 18rem));
    background: linear-gradient(to bottom, transparent, rgba(196, 167, 125, 0.3) 22%, rgba(196, 167, 125, 0.3) 78%, transparent);
    pointer-events: none;
}

/* Ambient orbs — depth and warmth */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(88px);
    will-change: transform;
}

.hero-orb-a {
    width: min(620px, 58vw);
    height: min(620px, 58vw);
    background: radial-gradient(circle, rgba(196, 167, 125, 0.2) 0%, transparent 70%);
    top: -18%;
    right: -8%;
    animation: orb-float-a 22s ease-in-out infinite;
}

.hero-orb-b {
    width: min(480px, 46vw);
    height: min(480px, 46vw);
    background: radial-gradient(circle, rgba(150, 120, 74, 0.13) 0%, transparent 70%);
    bottom: -12%;
    left: -6%;
    animation: orb-float-b 28s ease-in-out infinite;
}

@keyframes orb-float-a {

    0%,
    100% {
        transform: translate(0, 0);
    }

    38% {
        transform: translate(-32px, 22px);
    }

    72% {
        transform: translate(18px, -16px);
    }
}

@keyframes orb-float-b {

    0%,
    100% {
        transform: translate(0, 0);
    }

    32% {
        transform: translate(26px, -20px);
    }

    68% {
        transform: translate(-20px, 14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb {
        animation: none;
    }
}

/* Corner registration marks — document/premium feel */
.hero-corner-tl,
.hero-corner-br {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s 1.6s forwards;
}

.hero-corner-tl {
    top: 2.6rem;
    left: 3.6rem;
    border-top: 1.5px solid rgba(196, 167, 125, 0.5);
    border-left: 1.5px solid rgba(196, 167, 125, 0.5);
}

.hero-corner-br {
    bottom: 3.2rem;
    right: 3.6rem;
    border-bottom: 1.5px solid rgba(196, 167, 125, 0.5);
    border-right: 1.5px solid rgba(196, 167, 125, 0.5);
}

.hero-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: var(--warm-deep);
    opacity: 0.65;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 4.2vw, 4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--warm-deep);
}

.hero-desc {
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--slate);
    max-width: 440px;
    margin-bottom: 2.8rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

.btn-primary {
    display: inline-block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Pulsing ring on hero CTA button */
.hero-actions .btn-primary {
    animation: btn-ring-pulse 2.8s ease-out infinite;
}

@keyframes btn-ring-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 167, 125, 0.55);
    }

    100% {
        box-shadow: 0 0 0 14px rgba(196, 167, 125, 0);
    }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
    transform: skewX(-18deg);
    transition: left 0.65s ease;
}

.btn-primary:hover::after {
    left: 145%;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    display: inline-block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    border: 1.5px solid var(--mist);
    transition: all 0.4s;
}

.btn-secondary:hover {
    border-color: var(--warm);
    color: var(--warm-deep);
}

/* Hero image side */
.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 3.5rem 4rem 2rem;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 68% 72% at 60% 38%, rgba(196, 167, 125, 0.14) 0%, transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.hero-image-wrapper {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s 0.4s forwards;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    right: 14px;
    bottom: 14px;
    border: 1.5px solid var(--warm);
    opacity: 0.4;
    z-index: -1;
}

.hero-image-wrapper img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: contrast(1.02) saturate(0.9);
    border: 2.5px solid var(--ink);
}

.hero-image-caption {
    position: absolute;
    bottom: -40px;
    right: 0;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--slate);
    font-style: italic;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    height: 110px;
    background: radial-gradient(ellipse, rgba(196, 167, 125, 0.22) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(18px);
}

/* ── Scroll indicator ─────────────────────────── */
.hero-scroll-cue {
    position: absolute;
    bottom: 2.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

.hero-scroll-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, var(--warm), transparent);
    animation: scroll-drip 2.6s ease-in-out infinite;
}

.hero-scroll-label {
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--warm-deep);
    opacity: 0.7;
}

@keyframes scroll-drip {

    0%,
    100% {
        transform: scaleY(1) translateY(0);
        opacity: 0.85;
    }

    50% {
        transform: scaleY(0.55) translateY(5px);
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .hero-scroll-cue {
        display: none;
    }
}

/* ═══════════════ SECTION SHARED ═══════════════ */
section {
    padding: 7rem 5rem;
}

.section-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* ═══════════════ ABOUT ═══════════════ */
.about {
    background:
        repeating-linear-gradient(-45deg,
            rgba(196, 167, 125, 0.028) 0px, rgba(196, 167, 125, 0.028) 1px,
            transparent 1px, transparent 38px),
        linear-gradient(180deg, #f5efe4 0%, var(--cream) 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.about-text p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--slate);
    margin-bottom: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat {
    border-left: 2px solid var(--warm);
    padding-left: 1.2rem;
    transition: border-left-color 0.3s, transform 0.3s ease;
}

.stat:hover {
    border-left-color: var(--warm-deep);
    transform: translateX(3px);
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}

/* About decorative element */
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.72rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.55;
    color: var(--ink);
    padding: 3rem 3rem 2.5rem;
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(196, 167, 125, 0.2);
    box-shadow: 0 22px 60px rgba(26, 26, 31, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.about-quote::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    color: var(--warm);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: 0.5rem;
    line-height: 1;
}

.about-quote cite {
    display: block;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-top: 1.5rem;
}

/* ═══════════════ PRACTICE AREAS ═══════════════ */
.practice {
    background: var(--white);
    background-image: repeating-linear-gradient(135deg,
            rgba(196, 167, 125, 0.025) 0px,
            rgba(196, 167, 125, 0.025) 1px,
            transparent 1px,
            transparent 44px);
}

.practice-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.practice-header p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--slate);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.practice-card {
    padding: 2.5rem 2rem;
    border: 2.5px solid var(--ink);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--warm-deep);
    transition: width 0.4s;
}

.practice-card:hover {
    border-color: var(--warm);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.practice-card:hover::before {
    width: 100%;
}

.practice-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(196, 167, 125, 0.07) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: inherit;
}

.practice-card:hover::after {
    opacity: 1;
}

.practice-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 167, 125, 0.1);
    border: 1.5px solid rgba(196, 167, 125, 0.24);
    border-radius: 50%;
    font-size: 1.2rem;
    margin-bottom: 1.4rem;
    color: var(--warm-deep);
    transition: background 0.4s, border-color 0.4s, transform 0.4s;
}

.practice-card:hover .practice-icon {
    background: rgba(196, 167, 125, 0.2);
    border-color: rgba(196, 167, 125, 0.45);
    transform: scale(1.1) rotate(3deg);
}

.practice-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.practice-card p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--slate);
}

/* ═══════════════ APPROACH ═══════════════ */
.approach {
    background: var(--ink);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 167, 125, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.approach::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 167, 125, 0.038) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 167, 125, 0.038) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 0;
    pointer-events: none;
}

.approach .section-tag {
    color: var(--warm);
}

.approach .section-title {
    color: var(--ivory);
}

/* Ornamental section divider */
.approach-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.6rem 0 2.8rem;
    position: relative;
    z-index: 1;
}

.approach-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(196, 167, 125, 0.22);
}

.approach-divider-diamond {
    width: 5px;
    height: 5px;
    background: var(--warm);
    transform: rotate(45deg);
    opacity: 0.7;
    flex-shrink: 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.approach-item {
    position: relative;
    padding-left: 0;
}

.approach-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--warm);
    opacity: 0.14;
    line-height: 1;
    margin-bottom: 0.5rem;
    user-select: none;
    transition: opacity 0.4s ease;
}

.approach-item:hover .approach-number {
    opacity: 0.32;
}

.approach-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--ivory);
}

.approach-item p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(245, 240, 232, 0.65);
}

/* ═══════════════ SERVICE AREA ═══════════════ */
.service-area {
    background: var(--cream);
}

.service-area-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-area p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--slate);
    margin-bottom: 1rem;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.area-tag {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    background: var(--white);
    border: 1.5px solid rgba(26, 26, 31, 0.16);
    color: var(--slate);
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
    display: inline-block;
}

.area-tag:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--ivory);
    transform: translateY(-1px);
}

.courts-served {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--mist);
    border-top: 3px solid var(--warm);
    box-shadow: 0 14px 42px rgba(26, 26, 31, 0.07);
}

.courts-served h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.court-item {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.court-item:last-child {
    border-bottom: none;
}

.court-dot {
    width: 6px;
    height: 6px;
    background: var(--warm);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.court-item span {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--ink);
}

/* ═══════════════ CONTACT ═══════════════ */
.contact {
    background: var(--white);
    text-align: left;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(196, 167, 125, 0.55) 30%, rgba(150, 120, 74, 0.8) 50%, rgba(196, 167, 125, 0.55) 70%, transparent 100%);
    pointer-events: none;
}

.contact-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: start;
}

.contact-copy {
    max-width: 640px;
}

.contact-inner .section-title {
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.contact-block {
    text-align: left;
}

.contact-block-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 0.5rem;
}

.contact-block-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

.contact-block-value a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-block-value a:hover {
    color: var(--warm-deep);
}

.contact-note {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--slate);
    line-height: 1.7;
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--mist);
}

.contact-form {
    background: linear-gradient(165deg, #ffffff 0%, #f8f4ed 100%);
    border: 1px solid var(--mist);
    box-shadow: 0 18px 45px rgba(26, 26, 31, 0.08);
    border-radius: 14px;
    padding: 2rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-field label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--warm-deep);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid #d8cdc0;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 0.82rem 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-field textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--warm-deep);
    box-shadow: 0 0 0 3px rgba(150, 120, 74, 0.15);
}

.contact-field-wide {
    grid-column: 1 / -1;
}

.contact-submit {
    width: 100%;
    margin-top: 1.2rem;
    text-align: center;
}

/* Required asterisk */
.contact-required {
    color: var(--warm-deep);
    margin-left: 0.15em;
}

/* Honeypot — force-hidden across browsers (including Safari autofill quirks) */
.contact-form .contact-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(100%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Submit button — loading state */
.contact-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 220px;
    transition: background 0.4s, transform 0.2s, box-shadow 0.4s, opacity 0.3s;
}

.contact-submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.contact-submit-btn.is-loading {
    opacity: 0.82;
    cursor: not-allowed;
    transform: none !important;
}

.contact-submit-btn.is-loading .contact-submit-spinner {
    display: block;
}

@keyframes contact-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Field error state */
.contact-field.has-error input,
.contact-field.has-error textarea {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.contact-field-error {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #c0392b;
    margin-top: 0.35rem;
    min-height: 1em;
    letter-spacing: 0.01em;
}

.contact-field.has-error label {
    color: #c0392b;
}

/* Status banner (success / error) */
.contact-status {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    border: 1px solid transparent;
}

.contact-status svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.contact-status--success {
    background: #f0faf4;
    border-color: #a3d9b1;
    color: #1a5c30;
}

.contact-status--success svg {
    color: #2e8b57;
}

.contact-status--error {
    background: #fdf3f2;
    border-color: #f5b8b4;
    color: #7a1a14;
}

.contact-status--error svg {
    color: #c0392b;
}

.contact-status a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-note {
    margin-top: 0.9rem;
    margin-bottom: 0;
    color: var(--slate);
    font-size: 0.75rem;
    line-height: 1.6;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
    background: var(--ink);
    color: rgba(245, 240, 232, 0.5);
    padding: 3rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--warm-deep) 25%, var(--warm) 50%, var(--warm-deep) 75%, transparent);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ivory);
}

.footer-logo span {
    color: var(--warm);
}

footer p {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: 1.8rem;
}

.footer-links a {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(245, 240, 232, 0.5);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--warm);
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes grain-drift {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-4%, -8%);
    }

    40% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(6%, -18%);
    }

    80% {
        transform: translate(-5%, 14%);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse-warm {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(196, 167, 125, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(196, 167, 125, 0);
    }
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Stagger entry delays for grid items */
.practice-grid .practice-card:nth-child(1) {
    transition-delay: 0s;
}

.practice-grid .practice-card:nth-child(2) {
    transition-delay: 0.08s;
}

.practice-grid .practice-card:nth-child(3) {
    transition-delay: 0.16s;
}

.practice-grid .practice-card:nth-child(4) {
    transition-delay: 0.08s;
}

.practice-grid .practice-card:nth-child(5) {
    transition-delay: 0.16s;
}

.practice-grid .practice-card:nth-child(6) {
    transition-delay: 0.24s;
}

.approach-grid .approach-item:nth-child(1) {
    transition-delay: 0s;
}

.approach-grid .approach-item:nth-child(2) {
    transition-delay: 0.1s;
}

.approach-grid .approach-item:nth-child(3) {
    transition-delay: 0.2s;
}

.blog-grid>li:nth-child(1),
.blog-grid>.blog-card:nth-child(1) {
    transition-delay: 0s;
}

.blog-grid>li:nth-child(2),
.blog-grid>.blog-card:nth-child(2) {
    transition-delay: 0.09s;
}

.blog-grid>li:nth-child(3),
.blog-grid>.blog-card:nth-child(3) {
    transition-delay: 0.18s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════ MOBILE ═══════════════ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(254, 252, 249, 0.98);
    backdrop-filter: blur(20px);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--warm-deep);
}

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    line-height: 1;
}

@media (min-width: 1600px) and (min-height: 900px) {
    .hero {
        min-height: 96vh;
    }

    .hero-content {
        padding-left: 6rem;
        padding-right: 2.5rem;
    }

    .hero-image {
        padding-right: 5rem;
    }
}

@media (max-width: 1280px) {
    .hero-content {
        padding-left: 4rem;
        padding-right: 1.5rem;
    }

    .hero-image {
        padding-left: 1.5rem;
        padding-right: 3rem;
    }

    .hero-corner-tl {
        left: 2.5rem;
    }

    .hero-corner-br {
        right: 2.5rem;
    }
}

@media (max-width: 1024px) {
    nav {
        padding: 1.2rem 2rem;
    }

    nav.scrolled {
        padding: 0.8rem 2rem;
    }

    section {
        padding: 5rem 2.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow: visible;
    }

    .hero-content {
        padding: 5.5rem 2.5rem 2.5rem;
        order: 1;
    }

    .hero-content::before {
        display: none;
    }

    .hero-image {
        padding: 0 2.5rem 5rem;
        justify-content: center;
        order: 2;
    }

    .hero-image-wrapper {
        max-width: 420px;
    }

    .hero-corner-tl,
    .hero-corner-br {
        display: none;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.6rem;
    }

    .practice-grid {
        grid-template-columns: 1fr 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-area-inner {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .hero-content {
        padding: 5rem 1.5rem 2rem;
    }

    .hero-image {
        padding: 0 1.5rem 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .practice-grid {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-field-wide {
        grid-column: auto;
    }

    .contact {
        text-align: center;
    }

    .contact-copy,
    .contact-block {
        text-align: center;
    }

    .contact-details {
        justify-content: center;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 4rem 1.25rem 1.5rem;
    }

    .hero-image {
        padding: 0 1.25rem 2.5rem;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }

    .hero-title {
        font-size: clamp(1.85rem, 9vw, 2.2rem);
    }

    .hero-scroll-cue {
        display: none;
    }
}

/* WordPress block spacing reset for parity with standalone reference HTML. */
.wp-site-blocks>*+* {
    margin-block-start: 0;
}

/* Sticky footer: push footer to the bottom on short-content pages. */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wp-site-blocks>footer {
    margin-top: auto;
}

.site-main.home-main {
    padding: 0;
}

/* Break out only colored sections so their backgrounds span full viewport width. */
.site-main.home-main .about,
.site-main.home-main .approach,
.site-main.home-main .service-area {
    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.site-main.home-main .hero {
    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.site-main.home-main .about {
    margin-bottom: 0;
}

.site-main.about-page-main {
    background: var(--cream);
}

.site-main.about-page-main .about {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
}

.site-main.contact-page-main .contact {
    padding-top: 14rem;
}

@media (max-width: 1024px) {
    .site-main.contact-page-main .contact {
        padding-top: 11rem;
    }
}

@media (max-width: 768px) {
    .site-main.contact-page-main .contact {
        padding-top: 9rem;
    }
}

/* ═══════════════ BLOG ARCHIVE ═══════════════ */
.blog-archive-main {
    padding: 0 0 6rem;
    background:
        radial-gradient(circle at 12% 12%, rgba(196, 167, 125, 0.2) 0%, transparent 38%),
        radial-gradient(circle at 90% 5%, rgba(150, 120, 74, 0.14) 0%, transparent 34%),
        radial-gradient(circle at 55% 88%, rgba(196, 167, 125, 0.1) 0%, transparent 42%),
        radial-gradient(circle at 95% 65%, rgba(150, 120, 74, 0.07) 0%, transparent 28%),
        linear-gradient(180deg, #f8f3ea 0%, #fefcf9 30%, #fefcf9 100%);
}

.blog-hero {
    max-width: 1040px;
    margin: 0 auto;
    padding: 12.5rem 5rem 3.5rem;
    text-align: center;
}

.blog-hero-meta {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 1rem;
}

.blog-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.7rem, 5.2vw, 4.5rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 1.3rem;
}

.blog-hero-desc {
    max-width: 720px;
    margin: 0.8rem auto 0;
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 300;
    color: var(--slate);
}

.blog-query {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 3rem;
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-card {
    height: 100%;
    border: 1px solid #e8dfd1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(26, 26, 31, 0.06);
    overflow: hidden;
    transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #d7c4a6;
    box-shadow: 0 18px 44px rgba(26, 26, 31, 0.1);
}

.blog-card-image {
    margin: 0 !important;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.45rem 1.35rem 1.5rem;
}

.blog-card-cat,
.blog-card-cat a {
    font-size: 0.64rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    color: var(--warm-deep);
}

.blog-card-title {
    margin-top: 0.75rem;
    margin-bottom: 0.85rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.blog-card-title a {
    color: var(--ink);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--warm-deep);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-card-date,
.blog-card-author,
.blog-card-divider {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a6670;
}

.blog-card-excerpt {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--slate);
}

.blog-card-readmore {
    margin-top: 1.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}

.blog-card-readmore:hover {
    color: var(--warm-deep);
}

.blog-pagination {
    margin-top: 2.3rem;
    gap: 0.5rem;
}

.blog-pagination .wp-block-query-pagination-previous,
.blog-pagination .wp-block-query-pagination-next,
.blog-pagination .page-numbers {
    border: 1px solid #dbcbb3;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-pagination .current,
.blog-pagination .page-numbers:hover,
.blog-pagination .wp-block-query-pagination-previous:hover,
.blog-pagination .wp-block-query-pagination-next:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.blog-cta {
    max-width: 1120px;
    margin: 4.2rem auto 0;
    border: 1px solid #e5d9c9;
    border-radius: 18px;
    background: linear-gradient(140deg, #f8f1e6 0%, #fefcf9 52%, #ffffff 100%);
    padding: 2.4rem 2.6rem;
    text-align: center;
    box-shadow: 0 16px 42px rgba(26, 26, 31, 0.08);
}

.blog-cta-meta {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 0.8rem;
}

.blog-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.blog-cta p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--slate);
}

.blog-cta .wp-block-buttons {
    justify-content: center;
    margin-top: 1.4rem;
}

.blog-cta .wp-element-button {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.95rem 1.5rem;
}

/* ═══════════════ BLOG SINGLE ═══════════════ */
.blog-single-main {
    padding: 0 0 6rem;
    background:
        radial-gradient(circle at 88% 8%, rgba(196, 167, 125, 0.13) 0%, transparent 32%),
        radial-gradient(circle at 10% 24%, rgba(150, 120, 74, 0.09) 0%, transparent 28%),
        linear-gradient(180deg, #f8f3ea 0%, #fefcf9 32%, #fefcf9 100%);
}

.post-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 12.2rem 3rem 0;
}

.post-header {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.post-kicker {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 0.95rem;
}

.post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.post-meta-item,
.post-meta-item a {
    font-size: 0.69rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #68606c;
    text-decoration: none;
    margin: 0;
}

.post-featured-image {
    display: block;
    margin: 0 auto 2.2rem;
    max-width: 1040px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2d5c4;
    box-shadow: 0 18px 45px rgba(26, 26, 31, 0.1);
}

.post-featured-image img,
.post-featured-image a img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.post-content-wrap {
    background: #fff;
    border: 1px solid #e7ddcf;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26, 26, 31, 0.06);
    padding: 2.2rem;
}

.post-content-wrap .wp-block-post-content {
    font-size: 1.03rem;
    line-height: 1.9;
    color: #2e2e35;
}

.post-content-wrap .wp-block-post-content h2,
.post-content-wrap .wp-block-post-content h3,
.post-content-wrap .wp-block-post-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1.7rem;
    margin-bottom: 0.8rem;
}

.post-content-wrap .wp-block-post-content p {
    margin-bottom: 1.2rem;
}

.post-content-wrap .wp-block-post-content ul,
.post-content-wrap .wp-block-post-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.post-content-wrap .wp-block-post-content a {
    color: var(--warm-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-tax {
    padding-top: 1.1rem;
    margin-top: 1rem;
    border-top: 1px solid #eee4d7;
}

.post-tags,
.post-tags a {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #615a67;
    text-decoration: none;
}

/* ── Post Back Navigation ─────────────────────────── */
.post-back-nav {
    margin-bottom: 3rem;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--warm-deep);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.post-back-link:hover {
    color: var(--ink);
}

.post-back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(196, 167, 125, 0.35);
    background: rgba(196, 167, 125, 0.08);
    color: var(--warm-deep);
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.post-back-link:hover .post-back-arrow {
    background: var(--warm-deep);
    border-color: var(--warm-deep);
    color: #fff;
    transform: translateX(-3px);
}

.post-back-text {
    position: relative;
}

.post-back-text::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.post-back-link:hover .post-back-text::after {
    width: 100%;
}

/* ── Post Bottom Navigation ─────────────────────────── */
.post-bottom-nav {
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 3.5rem;
    padding-top: 2.2rem;
    border-top: 1px solid #e4d9cc;
}

.pbn-item {
    flex: 1;
    min-width: 0;
}

.pbn-item a {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid #e4d9cc;
    border-radius: 12px;
    background: #faf6f0;
    text-decoration: none;
    color: var(--ink);
    height: 100%;
    box-sizing: border-box;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.pbn-item a:hover {
    background: #fff;
    border-color: var(--warm);
    box-shadow: 0 8px 24px rgba(196, 167, 125, 0.15);
    transform: translateY(-2px);
}

.pbn-prev a {
    align-items: flex-start;
}

.pbn-next a {
    align-items: flex-end;
    text-align: right;
}

.wp-block-post-navigation-link__arrow {
    font-size: 1.1rem;
    color: var(--warm-deep);
    display: inline-block;
    transition: transform 0.2s ease;
}

.pbn-prev a:hover .wp-block-post-navigation-link__arrow {
    transform: translateX(-4px);
}

.pbn-next a:hover .wp-block-post-navigation-link__arrow {
    transform: translateX(4px);
}

.wp-block-post-navigation-link__label {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-deep);
    font-weight: 600;
}

.wp-block-post-navigation-link__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pbn-all-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(196, 167, 125, 0.35);
    border-radius: 12px;
    background: rgba(196, 167, 125, 0.07);
    text-decoration: none;
    color: var(--warm-deep);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.pbn-all-link:hover {
    background: var(--warm-deep);
    border-color: var(--warm-deep);
    color: #fff;
    transform: translateY(-2px);
}

.post-sidebar {
    position: sticky;
    top: 120px;
}

.post-sidebar-card {
    border: 1px solid #e4d6c5;
    border-radius: 14px;
    background: linear-gradient(150deg, #fbf5ea 0%, #ffffff 72%);
    padding: 1.6rem;
    box-shadow: 0 10px 28px rgba(26, 26, 31, 0.08);
}

.post-sidebar-meta {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-deep);
    margin-bottom: 0.6rem;
}

.post-sidebar-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    line-height: 1.12;
    margin-bottom: 0.6rem;
}

.post-sidebar-card p {
    color: var(--slate);
    margin-bottom: 1rem;
}

.post-sidebar-card .wp-block-buttons {
    flex-direction: column;
}

.post-sidebar-card .wp-block-button {
    width: 100%;
}

.post-sidebar-card .wp-element-button {
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.86rem 1rem;
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media (max-width: 1024px) {
    .blog-hero {
        padding: 10rem 2.5rem 3rem;
    }

    .blog-query {
        padding: 0 2rem;
    }

    .blog-cta {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .post-shell {
        padding: 10.2rem 2rem 0;
    }

    .post-content-wrap {
        padding: 1.6rem;
    }
}

@media (max-width: 768px) {
    .blog-archive-main {
        padding-bottom: 4.5rem;
    }

    .blog-hero {
        padding: 8.8rem 1.5rem 2.2rem;
    }

    .blog-query {
        padding: 0 1.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        margin: 3rem 1.2rem 0;
        padding: 1.5rem 1.1rem;
    }

    .post-shell {
        padding: 9rem 1.2rem 0;
    }

    .post-header {
        margin-bottom: 1.5rem;
    }

    .post-featured-image {
        margin-bottom: 1.4rem;
    }

    .post-content-wrap {
        padding: 1.25rem;
    }

    .post-bottom-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pbn-item {
        width: 100%;
    }

    .pbn-next a {
        align-items: flex-start;
        text-align: left;
    }

    .pbn-all-link {
        width: 100%;
        flex-direction: row;
        padding: 0.9rem 1.2rem;
    }
}

/* ═══════════════ WIDE-SCREEN CONTENT CONSTRAINT (≥ 1600 px) ═══════════════ */
/*
 * On viewports wider than 1600 px:
 *   • Full-bleed sections keep their 100 vw width so background colours /
 *     gradients span edge-to-edge, but horizontal padding grows so that the
 *     inner content never exceeds 1600 px wide.
 *   • Sections without a distinctive background are simply capped with max-width.
 *   • The fixed navigation uses the same padding formula.
 *
 *   Formula: max(<original-padding>, (100vw - 1600px) / 2)
 *     — at exactly 1600 px the result equals the original padding (no change).
 *     — above ~1760 px the calc takes over and holds content at 1600 px while
 *       backgrounds still bleed to the viewport edge.
 */
@media (min-width: 1600px) {

    /* Full-bleed sections: background spans viewport, content ≤ 1600 px */
    .about,
    .approach,
    .service-area {
        padding-left: max(5rem, calc((100vw - 1600px) / 2));
        padding-right: max(5rem, calc((100vw - 1600px) / 2));
    }

    /* Hero has no section-level horizontal padding; shift the grid inward */
    .hero {
        padding-left: calc((100vw - 1600px) / 2);
        padding-right: calc((100vw - 1600px) / 2);
    }

    /* Footer — same full-bleed treatment */
    footer {
        padding-left: max(5rem, calc((100vw - 1600px) / 2));
        padding-right: max(5rem, calc((100vw - 1600px) / 2));
    }

    /* Sections without a distinctive background: cap the section box itself */
    .practice,
    .contact {
        max-width: 1600px;
        margin-inline: auto;
    }

    /* Fixed navigation: shift logo + links inward */
    nav,
    nav.scrolled {
        padding-left: max(4rem, calc((100vw - 1600px) / 2));
        padding-right: max(4rem, calc((100vw - 1600px) / 2));
    }
}