/* Legal Peace of Mind — Premium sage green + cream editorial theme */

:root {
    --color-sage: #4a6741;
    --color-sage-dark: #2f4229;
    --color-sage-light: #5c7d52;
    --color-sage-muted: #6b8f61;
    --color-cream: #faf8f4;
    --color-cream-dark: #f0ebe3;
    --color-white: #ffffff;
    --color-text: #1f1f1f;
    --color-text-muted: #4a4a4a;
    --color-border: #d8d2c8;
    --color-focus: #2563eb;
    --color-error: #b91c1c;
    --color-success-bg: #ecfdf5;
    --color-success-text: #065f46;
    --color-gold: #c4a962;
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --topbar-height: 40px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(31, 31, 31, 0.06);
    --shadow-md: 0 8px 32px rgba(31, 31, 31, 0.1);
    --shadow-lg: 0 16px 48px rgba(31, 31, 31, 0.12);
    --shadow-card: 0 4px 20px rgba(47, 66, 41, 0.08);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-sage-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-sage);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-sage);
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Header top bar ── */

.header-top {
    background: var(--color-sage-dark);
    color: var(--color-cream);
    font-size: 0.875rem;
}

.header-top-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-top a {
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 500;
}

.header-top a:hover {
    text-decoration: underline;
    color: var(--color-white);
}

/* ── Site header ── */

.site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--color-sage-dark);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    transition: color var(--transition);
}

.logo:hover {
    color: var(--color-sage);
}

.logo-icon {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 9px;
    box-shadow: var(--shadow-sm);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    cursor: pointer;
    position: relative;
    z-index: 220;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-sage-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.primary-nav a {
    display: block;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}

.primary-nav a:hover {
    background: var(--color-cream);
    color: var(--color-sage-dark);
}

.primary-nav a.is-active {
    background: var(--color-sage);
    color: var(--color-white);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 31, 31, 0.5);
    z-index: 180;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-overlay.is-open {
    display: block;
}

body.nav-open .site-header {
    z-index: 200;
}

body.nav-open .header-inner {
    position: relative;
    z-index: 210;
}

/* ── Typography ── */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.25;
    color: var(--color-sage-dark);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.875rem;
}

h3 {
    font-size: 1.25rem;
    margin: 0 0 0.625rem;
}

p {
    margin: 0 0 1rem;
}

.lead {
    font-size: 1.1875rem;
    color: var(--color-text-muted);
    max-width: 42rem;
}

.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.5rem;
}

/* ── Layout helpers ── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--color-white);
}

.section-cream {
    background: var(--color-cream-dark);
}

.section-header {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ── */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    color: var(--color-white);
    border-color: var(--color-sage);
    box-shadow: 0 4px 14px rgba(74, 103, 65, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
    border-color: var(--color-sage-light);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(74, 103, 65, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-sage-dark);
    border-color: var(--color-sage);
}

.btn-secondary:hover {
    background: var(--color-sage);
    color: var(--color-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-sage-dark);
}

/* ── Hero (editorial asymmetric) ── */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    background: var(--color-white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-sage) 0%, var(--color-gold) 50%, var(--color-sage-dark) 100%);
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem 3rem max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem));
}

.hero-content .lead {
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-media {
    position: relative;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 66, 41, 0.05) 0%, rgba(47, 66, 41, 0.25) 100%);
}

/* ── Page hero (inner pages) ── */

.page-hero {
    background: linear-gradient(135deg, var(--color-sage-dark) 0%, #243520 100%);
    color: var(--color-cream);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(196, 169, 98, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero--split {
    padding: 0;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    min-height: 340px;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.page-hero-text {
    padding-right: 1rem;
}

.page-hero-media {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(250, 248, 244, 0.15);
}

.page-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.page-hero .lead {
    color: var(--color-cream);
    margin-bottom: 0;
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--color-cream);
}

.breadcrumb span {
    color: rgba(250, 248, 244, 0.7);
}

/* ── Alternating feature rows ── */

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.feature-row.reverse .feature-text {
    order: 2;
}

.feature-row.reverse .feature-media {
    order: 1;
}

.feature-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.feature-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.inline-media {
    margin: 2rem 0;
}

.inline-media img {
    aspect-ratio: 16 / 10;
}

.feature-text h2 {
    margin-top: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--color-sage);
    border-radius: 50%;
}

/* ── Practice area cards ── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.practice-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow-card);
}

.practice-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.practice-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.practice-card:hover img {
    transform: scale(1.03);
}

.practice-card-body {
    padding: 1.5rem;
}

.practice-card-body h3 {
    margin-top: 0;
}

.practice-card-body p:last-child {
    margin-bottom: 0;
}

.practice-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.practice-card-link:hover {
    text-decoration: underline;
}

/* ── Stats strip ── */

.stats-strip {
    background: linear-gradient(135deg, var(--color-sage-dark) 0%, var(--color-sage) 100%);
    color: var(--color-white);
    padding: 3rem 0;
    position: relative;
}

.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-item span {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ── CTA band ── */

.cta-band {
    background: linear-gradient(135deg, var(--color-sage-dark) 0%, #1a2a16 100%);
    color: var(--color-cream);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(196, 169, 98, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-band h2 {
    color: var(--color-white);
}

.cta-band p {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    color: var(--color-cream);
}

/* ── FAQ accordion ── */

.faq-section {
    max-width: 48rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.125rem 0;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-sage-dark);
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--color-sage);
}

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-sage);
    transition: transform var(--transition);
}

.faq-question[aria-expanded="true"]::after {
    content: '−';
}

.faq-answer {
    padding: 0 0 1.125rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ── Two-column content ── */

.content-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.content-main h2 {
    margin-top: 2rem;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    box-shadow: var(--shadow-card);
}

.content-sidebar h2 {
    font-size: 1.125rem;
    margin-top: 0;
}

.content-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-sidebar li {
    margin-bottom: 0.5rem;
}

.content-sidebar a {
    text-decoration: none;
    font-weight: 500;
}

.content-sidebar a:hover {
    text-decoration: underline;
}

/* ── Contact page ── */

.contact-block {
    padding: 3rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.contact-sidebar h2 {
    font-size: 1.25rem;
    margin-top: 0;
}

.contact-sidebar address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.contact-sidebar address p {
    margin-bottom: 0.375rem;
}

.contact-image {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.contact-main h2 {
    margin-top: 0;
}

.form-intro {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row > div {
    min-width: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--color-error);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.form-success {
    background: var(--color-success-bg);
    border: 1px solid #a7f3d0;
    color: var(--color-success-text);
    padding: 2rem;
    border-radius: var(--radius);
}

.form-success h2 {
    color: var(--color-success-text);
    margin-top: 0;
}

/* ── Map ── */

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    min-height: 400px;
    background: var(--color-cream-dark);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.map-wrapper iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 400px;
    min-height: 280px;
}

/* ── Process steps ── */

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.process-step {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-sage);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 50%;
    margin-bottom: 0.875rem;
}

.process-step h3 {
    margin-top: 0;
}

/* ── Legal pages ── */

.legal-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
}

.legal-content h3 {
    margin-top: 1.75rem;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ── 404 ── */

.error-page {
    text-align: center;
    padding: 5rem 1.5rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-page h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.error-page p {
    max-width: 28rem;
    color: var(--color-text-muted);
}

/* ── Footer ── */

.site-footer {
    background: var(--color-sage-dark);
    color: var(--color-cream);
    padding: 3rem 0 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.5rem;
}

.footer-tagline {
    color: rgba(250, 248, 244, 0.85);
    max-width: 28rem;
    margin-bottom: 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h2 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(250, 248, 244, 0.85);
    text-decoration: none;
    font-size: 0.9375rem;
}

.footer-col a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9375rem;
}

.footer-contact address p {
    margin: 0 0 0.375rem;
    color: rgba(250, 248, 244, 0.85);
}

.footer-contact a {
    color: rgba(250, 248, 244, 0.85);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(250, 248, 244, 0.15);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(250, 248, 244, 0.7);
}

.footer-bottom p {
    margin: 0;
}

/* ── Cookie banner ── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

.cookie-inner h2 {
    font-size: 1rem;
    margin: 0;
    flex: 0 0 100%;
}

.cookie-inner p {
    flex: 1;
    margin: 0;
    font-size: 0.9375rem;
    min-width: 200px;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Values grid ── */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--color-white);
    border-left: 4px solid var(--color-sage);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.value-card--image {
    padding: 0;
    border-left: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.value-card--image img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.value-card-body {
    padding: 1.5rem;
}

.value-card--image .value-card-body {
    border-top: 3px solid var(--color-sage);
}

.value-card h3 {
    margin-top: 0;
}

/* ── Responsive ── */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero::before {
        width: 100%;
        height: 4px;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .page-hero-text {
        padding-right: 0;
        order: 2;
    }

    .page-hero-media {
        order: 1;
        max-height: 280px;
    }

    .page-hero-media img {
        min-height: 220px;
    }

    .hero-content {
        padding: 2.5rem 1.5rem;
        order: 2;
    }

    .hero-media {
        order: 1;
        max-height: 320px;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
    }

    .feature-row.reverse .feature-text,
    .feature-row.reverse .feature-media {
        order: unset;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-two-col {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        flex-wrap: nowrap;
        background: var(--color-white);
        padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s;
        z-index: 190;
        gap: 0;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .primary-nav a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        font-family: var(--font-sans);
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-text);
        background: transparent;
        box-shadow: none;
    }

    .primary-nav a::after {
        content: none;
    }

    .primary-nav a:hover,
    .primary-nav a:focus-visible {
        background: var(--color-cream);
        color: var(--color-sage-dark);
        transform: none;
    }

    .primary-nav a.is-active {
        background: var(--color-sage);
        color: var(--color-white);
        padding-left: 0.875rem;
        padding-right: 0.875rem;
        margin: 0 -0.875rem;
        border-bottom-color: var(--color-sage);
        box-shadow: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 2.5rem 0;
    }

    .page-hero-grid {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .page-hero-media {
        max-height: 220px;
    }

    .hero-content {
        padding: 2rem 1.25rem;
    }

    .hero-media {
        max-height: 260px;
    }

    .map-wrapper iframe {
        height: 280px;
    }

    .contact-grid {
        gap: 2rem;
        padding: 0 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .header-top-inner {
        justify-content: center;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.0625rem;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
