/*
 * PATRIMOINE DE CORNILLAC - Master Responsive Stylesheet
 * Architecture: Double-Decker Header, Donexa Volunteer Palette, Serif Headings
 * Non-Profit Loi 1901 Public Utility Guidelines Compliance
 */

:root {
    --primary-accent: #E06D53;
    --primary-accent-hover: #c85a40;
    --dark-contrast: #18191B;
    --dark-slate-alt: #1C1A17;
    --soft-background: #F8F5F0;
    --card-bg: #FFFFFF;
    --border-sand: #E8E2D8;
    --border-soft: #E5E7EB;
    --text-primary: #222222;
    --text-muted: #666666;
    --font-heading: 'Cinzel', 'Lora', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--soft-background);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    padding-top: 130px; /* Crucial: Prevents layout clipping under double-decker fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   Vertical Reading Progress Indicator
   ========================================================================= */
#vertical-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 0%;
    background: #E06D53;
    z-index: 10001;
    transition: height 0.1s linear;
}

@media (max-width: 992px) {
    #vertical-progress-bar {
        display: none !important;
    }
}

/* =========================================================================
   Double-Decker Header
   ========================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

/* Row 1: Utility Top Bar (40px) */
.utility-top-bar {
    background-color: var(--dark-contrast);
    color: #F8F5F0;
    height: 40px;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.divider {
    color: rgba(255, 255, 255, 0.25);
}

.reg-badge, .siren-tag {
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    background: rgba(224, 109, 83, 0.2);
    color: #FF9E87;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.pres-label strong {
    color: #FFFFFF;
}

.phone-link, .legal-shortcut {
    color: #F8F5F0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-link:hover, .legal-shortcut:hover {
    color: var(--primary-accent);
}

/* Row 2: Main Navigation Bar */
.main-nav-bar {
    background-color: #FFFFFF;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-sand);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--dark-contrast);
}

.logo-symbol {
    width: 44px;
    height: 44px;
    background: var(--primary-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(224, 109, 83, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    color: var(--dark-contrast);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary-accent);
    letter-spacing: 0.75px;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-link-item {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.chevron {
    font-size: 0.65rem;
    color: var(--primary-accent);
    transition: transform 0.2s ease;
}

.nav-link-item:hover {
    color: var(--primary-accent);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    min-width: 230px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-sand);
    border-radius: 10px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.dropdown-menu li a {
    display: block;
    padding: 9px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--soft-background);
    color: var(--primary-accent);
}

/* Two-Tone Pill CTA Buttons */
.btn-pill-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-accent);
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 11px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(224, 109, 83, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill-cta:hover {
    background: var(--primary-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(224, 109, 83, 0.35);
}

.btn-pill-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--dark-contrast) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 11px 24px;
    border-radius: 50px;
    border: 2px solid var(--border-sand);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pill-cta-outline:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent) !important;
    transform: translateY(-3px);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-bar {
    width: 26px;
    height: 3px;
    background: var(--dark-contrast);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================================================
   Typography & Universal Headings
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-contrast);
    line-height: 1.25;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.125rem;
    font-weight: 700;
    margin-bottom: 18px;
}

h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tagline-eyebrow {
    color: var(--primary-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tagline-eyebrow::before {
    content: "•";
    font-size: 1.2rem;
    line-height: 1;
}

.lead-statement {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--dark-contrast);
    font-weight: 500;
    margin-bottom: 24px;
}

/* =========================================================================
   Layout Containers & Alternating Sections
   ========================================================================= */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-section {
    padding: 70px 0;
}

.section-tint-soft {
    background-color: var(--soft-background);
}

.section-tint-white {
    background-color: #FFFFFF;
}

.section-tint-dark {
    background-color: var(--dark-contrast);
    color: #F8F5F0;
}

.section-tint-dark h1,
.section-tint-dark h2,
.section-tint-dark h3 {
    color: #FFFFFF;
}

.section-tint-dark p {
    color: #D1D5DB;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.section-header-left {
    text-align: left;
    margin-bottom: 40px;
}

/* =========================================================================
   Hero Section Pattern
   ========================================================================= */
.hero-wrapper {
    padding: 50px 0 70px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--soft-background) 100%);
    border-bottom: 1px solid var(--border-sand);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFF1EE;
    color: var(--primary-accent);
    border: 1px solid rgba(224, 109, 83, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-summary-2-sentences {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid var(--primary-accent);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.hero-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-phone-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-phone-callout strong {
    color: var(--dark-contrast);
}

.hero-impact-widget {
    background: #FFFFFF;
    border: 1px solid var(--border-sand);
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.widget-title-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--border-sand);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-accent);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.hero-media-wrapper {
    position: relative;
}

.hero-banner-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   Documentary Photography & Figcaption Styling
   ========================================================================= */
.doc-figure {
    margin: 24px 0 16px 0;
}

.doc-photo {
    width: 100%;
    height: auto;
    max-height: 440px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    object-fit: cover;
    display: block;
}

.doc-photo-sm {
    max-height: 280px;
}

.doc-caption {
    font-size: 0.875rem;
    font-style: italic;
    color: #64748B;
    margin-top: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* =========================================================================
   Mandatory 120+ Word Mission Callout Box
   ========================================================================= */
.mandatory-mission-box {
    background: #FFFFFF;
    border-left: 6px solid var(--primary-accent);
    border-radius: 12px;
    border-top: 1px solid var(--border-sand);
    border-right: 1px solid var(--border-sand);
    border-bottom: 1px solid var(--border-sand);
    padding: 36px 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.mission-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mission-icon-shield {
    color: var(--primary-accent);
}

.mission-box-header h3 {
    margin-bottom: 0;
    color: var(--dark-contrast);
    font-size: 1.5rem;
}

.mission-box-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
}

.mission-meta-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--soft-background);
    border: 1px solid var(--border-sand);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* =========================================================================
   Action & Program Cards
   ========================================================================= */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.action-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--border-sand);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.card-badge-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFF1EE;
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-contrast);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.card-link:hover {
    gap: 10px;
}

/* =========================================================================
   Stats & Impact Metrics Grid
   ========================================================================= */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stat-item {
    background: #FFFFFF;
    border: 1px solid var(--border-sand);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-accent);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* =========================================================================
   Editorial Rich Content Sections & Sidebars
   ========================================================================= */
.editorial-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.editorial-layout-reverse {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.editorial-prose {
    font-size: 1.05rem;
    line-height: 1.85;
}

.editorial-prose p {
    margin-bottom: 20px;
}

.sidebar-card {
    background: #FFFFFF;
    border: 1px solid var(--border-sand);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-accent);
}

.key-fact-list {
    list-style: none;
}

.key-fact-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.key-fact-list li:last-child {
    border-bottom: none;
}

.key-fact-list strong {
    color: var(--dark-contrast);
}

/* =========================================================================
   Forms & Inputs (Intake, Contact, Volunteer)
   ========================================================================= */
.civic-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border-sand);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark-contrast);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #FFFFFF;
    border: 1px solid var(--border-sand);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(224, 109, 83, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================================================================
   Data Tables (Finances, Impact)
   ========================================================================= */
.table-responsive {
    overflow-x: auto;
    margin: 25px 0;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid var(--border-sand);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9375rem;
}

.data-table th {
    background: #F8F5F0;
    color: var(--dark-contrast);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-sand);
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #FAFAF8;
}

/* =========================================================================
   Accordion / FAQ UI
   ========================================================================= */
.faq-accordion {
    margin: 30px 0;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border-sand);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-contrast);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    color: var(--primary-accent);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* =========================================================================
   Universal Footer Styling & Exact Disclosures
   ========================================================================= */
.site-footer {
    background-color: var(--dark-contrast);
    color: #F8F5F0;
    padding-top: 60px;
    border-top: 4px solid var(--primary-accent);
}

.footer-top-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 50px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
    gap: 40px;
}

.footer-brand .footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    display: block;
    margin-bottom: 4px;
}

.footer-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-accent);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-desc {
    color: #A3A3A3;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-reg-info p {
    color: #CBD5E1;
    font-size: 0.8125rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.footer-reg-info a {
    color: var(--primary-accent);
    text-decoration: none;
}

.footer-heading {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary-accent);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--primary-accent);
    padding-left: 4px;
}

.funding-notice-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    margin-top: 18px;
}

.small-funding-text {
    font-size: 0.775rem;
    color: #CBD5E1;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Mandatory Disclosure Block */
.footer-disclosure-block {
    background: #111213;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.disclosure-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.exact-disclosure-statement {
    color: #D1D5DB;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
    text-align: center;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background: #0E0F10;
    padding: 20px 0;
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.copyright-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright-text {
    margin-bottom: 0;
    color: #9CA3AF;
}

.domain-indicator {
    margin-bottom: 0;
    font-family: var(--font-mono);
    color: #9CA3AF;
    font-size: 0.75rem;
}

/* =========================================================================
   Universal AJAX Modal Popup
   ========================================================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 25, 27, 0.75);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-sand);
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon-badge {
    width: 72px;
    height: 72px;
    background: #FFF1EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-contrast);
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

/* =========================================================================
   Mobile Responsiveness
   ========================================================================= */
@media (max-width: 992px) {
    .utility-top-bar {
        display: none; /* Hide top bar on mobile/tablet */
    }

    body {
        padding-top: 80px; /* Reduced offset when top utility bar is hidden */
    }

    .main-nav-bar {
        top: 0 !important;
    }

    .mobile-menu-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu-wrapper.nav-active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--border-soft);
    }

    .nav-link-item {
        width: 100%;
        padding: 14px 0;
        font-size: 1rem;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 10px 15px;
        background: #FAFAF8;
    }

    .nav-action-cta {
        margin-top: 24px;
        width: 100%;
    }

    .nav-action-cta .btn-pill-cta {
        width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .card-grid-3, .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-layout, .editorial-layout-reverse {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    .card-grid-2, .card-grid-3, .card-grid-4, .stats-strip {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
    }

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

    .copyright-container {
        flex-direction: column;
        text-align: center;
    }
}
