/* ================================================================
   FONTS
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Fraunces:ital,wght@0,600;0,700;1,100;1,300&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,400;1,700&display=swap');

/* ================================================================
   DESIGN TOKENS
   ================================================================ */

:root {
    /* Primary green palette */
    --green:         #2D6A4F;
    --green-dark:    #1B4332;
    --green-light:   #40916C;

    /* Text */
    --text-primary:  #1A1A1A;
    --text-mid:      #6B7280;
    --text-light:    #ffffff;

    /* Backgrounds */
    --bg-white:      #ffffff;
    --bg-alt:        #F8FAF9;  /* Very slight green tint */
    --card-bg:       #ffffff;

    /* Gold — badge only */
    --gold-accent:   #C8A951;

    /* Radii & effects */
    --radius-sm:     10px;
    --radius-card:   18px;
    --radius-pill:   980px;
    --shadow-card:   0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover:  0 12px 40px rgba(0, 0, 0, 0.12);
    --glow-green:    0 4px 20px rgba(45, 106, 79, 0.3);
    --transition:    200ms ease;

    /* Legacy aliases — admin pages reference these */
    --primary-color:    var(--green);
    --secondary-color:  var(--green-light);
    --background-light: var(--bg-white);
    --background-dark:  var(--green-dark);
    --border-radius:    var(--radius-sm);
    --shadow-light:     var(--shadow-card);
    --text-dark:        var(--text-primary);
    --apple-dark:       var(--text-primary);
}


/* ================================================================
   BASE RESET
   ================================================================ */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

h1, h2, h3, h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

p { margin-bottom: 1em; }

a {
    color: var(--green);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { text-decoration: underline; }


/* ================================================================
   HEADER & NAVIGATION

   Solid green-dark by default (admin pages, fallback).
   On .page-home: starts transparent over hero, frosted on scroll.
   ================================================================ */

header {
    background-color: var(--green-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    /* No transition — navbar appears in its final state immediately */
}

/* Homepage: frosted glass from the first frame, no transparent phase.
   Links are dark (#1A1A1A) and visible before any scroll event fires. */
.page-home header {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

/* --- Wordmark --- */

.wordmark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.wordmark-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wordmark-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.wordmark-city {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.wordmark-sub {
    font-size: 0.62rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
}

/* Homepage wordmark always dark (frosted white navbar) */
.page-home .wordmark-city { color: var(--text-primary); }
.page-home .wordmark-sub  { color: var(--text-mid); }

/* --- Nav links ---
   White when transparent (over dark hero), #1A1A1A when frosted */

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Default nav links: white on dark green header (admin pages) */
header nav ul li a {
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

header nav ul li a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Homepage: dark links on white frosted header — visible immediately */
.page-home header nav ul li a {
    color: var(--text-primary);
}

.page-home header nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

/* Login pill — default: outlined white (admin pages on dark header) */
.nav-button {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--radius-pill) !important;
    padding: 7px 18px !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color var(--transition), transform var(--transition),
                color var(--transition), border-color var(--transition) !important;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.28) !important;
    text-decoration: none !important;
}

/* Homepage: solid green pill on white frosted header */
.page-home .nav-button {
    background-color: var(--green) !important;
    color: var(--text-light) !important;
    border-color: var(--green) !important;
}

.page-home .nav-button:hover {
    background-color: var(--green-dark) !important;
    transform: scale(1.03);
    text-decoration: none !important;
}


/* ================================================================
   BUTTONS

   All buttons share: 200ms ease transition, scale(1.03) + green glow on hover.
   ================================================================ */

.button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    border: 1.5px solid transparent;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
}

/* Primary: green bg, white text */
.button.primary {
    background-color: var(--green);
    color: var(--text-light);
    border-color: var(--green);
}

.button.primary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    transform: scale(1.03);
    box-shadow: var(--glow-green);
    text-decoration: none;
}


/* Secondary/outlined: white bg, green border + text, fills green on hover */
.button.secondary-outline {
    background-color: var(--bg-white);
    color: var(--green);
    border-color: var(--green);
    font-size: 0.875rem;
    padding: 9px 20px;
}

.button.secondary-outline:hover {
    background-color: var(--green);
    color: var(--text-light);
    border-color: var(--green);
    transform: scale(1.03);
    box-shadow: var(--glow-green);
    text-decoration: none;
}


/* ================================================================
   HERO SECTION
   ================================================================ */

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 88vh;
    overflow: hidden;
    color: var(--text-light);
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0d2a1f 0%, #1B4332 60%, #2D6A4F 100%);
}

.swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.40) 45%,
        rgba(0, 0, 0, 0.10) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 10;
}

.hero-content-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 80px clamp(28px, 7vw, 120px);
    max-width: 660px;
}

.hero-content-overlay h2 {
    color: var(--text-light);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
    max-width: 560px;
    letter-spacing: -0.01em;
    line-height: 1.12;
}

/* "Yorba Linda:" in regular upright weight; subtitle line in italic */
.hero-headline-city {
    font-style: normal;
    font-weight: 700;
    display: block;
}

.hero-headline-tagline {
    font-style: italic;
    font-weight: 400;
    display: block;
}

.hero-content-overlay .tagline {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.8;
    font-weight: 400;
}

/* Two-button row */
.hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Primary hero button: solid green */
.button.hero-cta-primary {
    background-color: var(--green);
    color: #fff;
    border-color: var(--green);
    font-weight: 600;
}

.button.hero-cta-primary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    transform: scale(1.03);
    box-shadow: var(--glow-green);
}

/* Secondary hero button: white outlined */
.button.hero-cta-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.button.hero-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: scale(1.03);
}

.swiper-button-prev,
.swiper-button-next {
    color: rgba(255, 255, 255, 0.6) !important;
    transform: scale(0.75);
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9) !important;
}


/* ================================================================
   CONTENT SECTIONS
   ================================================================ */

.content-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.directory-section {
    padding: 120px 0;
    background-color: var(--bg-alt);
}

/* Opportunities — white, not dark */
.opportunity-section {
    padding: 120px 0;
    background-color: var(--bg-alt);
    color: var(--text-primary);
}

.opportunity-section h2,
.opportunity-section p,
.opportunity-section h4 {
    color: var(--text-primary);
}

/* Section headings */
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Thin green accent line under headings */
.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    margin-top: 14px;
    opacity: 0.6;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 56px;
    max-width: 560px;
    line-height: 1.8;
    font-weight: 400;
}


/* ================================================================
   CARDS
   ================================================================ */

.card {
    background-color: var(--card-bg);
    padding: 32px 36px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-no-lift:hover {
    transform: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

/* Resource cards */
.resource-card {
    padding: 36px;
    border-radius: var(--radius-card);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    margin-bottom: 0;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.resource-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.resource-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 24px;
    line-height: 1.75;
}


/* ================================================================
   MAP & LISTING LAYOUT
   ================================================================ */

.map-section-placeholder {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.map-view-placeholder,
#businessMap,
#commercialMapContainer {
    flex: 2;
    min-height: 500px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background-color: #dde8e3;
}

.listing-table-placeholder {
    flex: 1;
    padding: 28px;
    color: var(--text-primary);
    background: var(--card-bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.listing-table-placeholder h4 {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

#commercialListingTable {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e4ede8;
    border-radius: 8px;
    padding: 8px;
}

#commercialListingTable ul { list-style: none; }

#commercialListingTable li {
    font-size: 0.88rem;
    color: var(--text-mid);
    padding: 8px 4px;
    border-bottom: 1px solid #f0f5f2;
}

#commercialListingTable li:last-child { border-bottom: none; }


/* ================================================================
   DIRECTORY CALLOUT
   ================================================================ */

.directory-callout {
    background: var(--bg-white);
    border: 1px solid #d8e8df;
    border-radius: var(--radius-card);
    padding: 48px 40px;
    margin-top: 56px;
    text-align: center;
}

.directory-callout p {
    color: var(--text-mid);
    margin-bottom: 6px;
}

.directory-callout strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}


/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ================================================================
   FORMS (Admin)
   ================================================================ */

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.admin-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
}


/* ================================================================
   FLASH MESSAGES
   ================================================================ */

.flash-message {
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.flash-success {
    background-color: #d1fae5;
    color: #064e3b;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.flash-info {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}


/* ================================================================
   FOOTER
   ================================================================ */

footer {
    background-color: var(--green-dark);
    color: rgba(255, 255, 255, 0.55);
    padding: 72px 0 32px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

footer h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color var(--transition);
}

footer a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 12px; }
footer address { font-style: normal; line-height: 2; font-size: 0.9rem; }

.copyright {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
    header nav ul { display: none; }
    .hero-banner { min-height: 75vh; }
    .content-section,
    .directory-section,
    .opportunity-section { padding: 80px 0; }
    .map-section-placeholder { flex-direction: column; }
    .map-view-placeholder,
    #businessMap,
    #commercialMapContainer,
    .listing-table-placeholder { min-height: 380px; flex: auto; }
    .admin-card-grid { grid-template-columns: 1fr; }
    .footer-columns { flex-direction: column; gap: 32px; }
}

@media (max-width: 600px) {
    .wordmark-sub { display: none; }
    .container { padding: 0 20px; }
    .card, .resource-card { padding: 24px; }
    .directory-callout { padding: 32px 24px; }
    .hero-content-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.60) 0%,
            rgba(0, 0, 0, 0.72) 100%
        );
    }
    .hero-content-inner {
        padding: 60px 24px;
        max-width: 100%;
    }
    .hero-cta-row { flex-direction: column; gap: 12px; }
    .hero-cta-row .button { width: 100%; text-align: center; }
}


/* ================================================================
   HOME PAGE — COMPLETE REDESIGN
   New class names (hero-dark, section-*, btn-hp-*) keep this
   fully isolated from admin page styles.
   ================================================================ */

/* Custom props available inside .page-home */
.page-home {
    font-family: 'DM Sans', 'Inter', sans-serif;
}

/* ---- DARK HERO (NO CAROUSEL) ---- */

.hero-dark {
    min-height: 82vh;
    background:
        linear-gradient(to right, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.20) 38%, rgba(0,0,0,0.0) 58%),
        url('https://res.cloudinary.com/dwwidcozk/image/upload/q_100/06-Yorba-Linda-Library-David-Lloyd-3764-Edit_km6obg') center center / cover no-repeat;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-dark-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 120px 5vw 100px 5vw;
}

.hero-dark-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4ADE80;
    margin-bottom: 44px;
}

.hero-dark-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #4ADE80;
    flex-shrink: 0;
}

.hero-dark-headline {
    margin: 0 0 36px;
    max-width: 700px;
}

.hero-dark-city {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(3rem, 7vw, 6.5rem);
    color: #FAFAFA;
    letter-spacing: -0.04em;
    line-height: 0.92;
}

.hero-dark-tagline {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 100;
    font-style: italic;
    font-size: clamp(1.8rem, 4.5vw, 4.5rem);
    color: rgba(250, 250, 250, 0.88);
    letter-spacing: -0.025em;
    line-height: 1.0;
    margin-top: 14px;
}

.hero-dark-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: rgba(250, 250, 250, 0.88);
    max-width: 420px;
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 52px;
}

.hero-dark-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-hp-primary {
    display: inline-block;
    padding: 14px 30px;
    background: #4ADE80;
    color: #071008;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 980px;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 180ms ease, transform 180ms ease;
}

.btn-hp-primary:hover {
    background: #6EF79F;
    transform: scale(1.04);
    text-decoration: none;
}

.btn-hp-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(250, 250, 250, 0.88);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 180ms ease, gap 180ms ease;
}

.btn-hp-ghost:hover {
    color: #FAFAFA;
    gap: 14px;
    text-decoration: none;
}

.hero-dark-bottom-rule {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    z-index: 2;
}

/* ---- METRICS (BORDERED GRID) ---- */

.section-metrics {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.metrics-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    border-left: 1px solid rgba(0, 0, 0, 0.07);
}

.metric-block {
    padding: 72px 32px;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-block-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 600;
    color: #16A34A;
    line-height: 1;
    letter-spacing: -0.03em;
}

.metric-block-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9CA3AF;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.5;
    max-width: 140px;
}

/* ---- SHARED SECTION TYPOGRAPHY ---- */

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #16A34A;
    display: block;
    margin-bottom: 18px;
}

.section-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
}

.section-body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #6B7280;
    max-width: 500px;
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 64px;
}

/* ---- OPPORTUNITIES ---- */

.section-opportunities {
    padding: 140px 0;
    background: #F4F6F4;
}

.section-opportunities .section-heading { color: #0C100E; }

/* ---- RESOURCES (DARK ROWS) ---- */

.section-resources {
    background: #0C100E;
    padding: 140px 0;
}

.section-resources .section-label  { color: #4ADE80; }
.section-resources .section-heading { color: #FAFAFA; }

.resources-list {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 0;
}

.resource-row {
    display: grid;
    grid-template-columns: 72px 1fr 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 180ms ease;
}

.resource-row:hover { text-decoration: none; }
.resource-row:hover .resource-row-title { color: #4ADE80; }
.resource-row:hover .resource-row-arrow {
    transform: translate(5px, -5px);
    color: #4ADE80;
}

.resource-row-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(250, 250, 250, 0.22);
    letter-spacing: 0.02em;
}

.resource-row-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.1rem, 1.8vw, 1.55rem);
    font-weight: 600;
    color: #FAFAFA;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: color 200ms ease;
}

.resource-row-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(250, 250, 250, 0.48);
    line-height: 1.8;
    font-weight: 300;
}

.resource-row-arrow {
    font-size: 1.3rem;
    color: rgba(250, 250, 250, 0.24);
    transition: transform 220ms ease, color 220ms ease;
    flex-shrink: 0;
    line-height: 1;
}

/* ---- DIRECTORY ---- */

.section-directory {
    padding: 140px 0;
    background: #FFFFFF;
}

.section-directory .section-heading { color: #0C100E; }

.directory-split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: stretch;
}

.directory-map-box {
    width: 100%;
    min-height: 520px;
    border-radius: 18px;
    background: #E2EAE2;
    overflow: hidden;
}

.directory-sidebar {
    background: #F4F6F4;
    border-radius: 18px;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.directory-sidebar-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #0C100E;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.directory-sidebar-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: #6B7280;
    line-height: 1.8;
    font-weight: 300;
}

.btn-hp-dark {
    display: inline-block;
    padding: 13px 26px;
    background: #0C100E;
    color: #FAFAFA;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.87rem;
    font-weight: 600;
    border-radius: 980px;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 180ms ease;
    align-self: flex-start;
}

.btn-hp-dark:hover {
    background: #1D2E22;
    text-decoration: none;
}

/* ---- FOOTER (HOME) ---- */

.footer-hp {
    background: #0C100E;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-hp-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-hp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 40px;
}

.footer-hp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-hp-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.footer-hp-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(250, 250, 250, 0.4);
    max-width: 180px;
    line-height: 1.4;
}

.footer-hp-cols {
    display: flex;
    gap: 80px;
}

.footer-hp-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 250, 250, 0.3);
    margin-bottom: 20px;
}

.footer-hp-col ul { list-style: none; }
.footer-hp-col ul li { margin-bottom: 12px; }

.footer-hp-col a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(250, 250, 250, 0.48);
    text-decoration: none;
    transition: color 180ms ease;
}

.footer-hp-col a:hover {
    color: #FAFAFA;
    text-decoration: none;
}

.footer-hp-col address {
    font-style: normal;
    font-size: 0.875rem;
    color: rgba(250, 250, 250, 0.48);
    line-height: 2;
}

.footer-hp-copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(250, 250, 250, 0.2);
}

/* ---- PAGE LOADER ---- */

.page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.page-loader.page-loader-done {
    opacity: 0;
    pointer-events: none;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.page-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(45, 106, 79, 0.15);
    border-top-color: #2D6A4F;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

.page-loader-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1A1A1A;
    margin: 0;
}

.page-loader-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #9CA3AF;
    margin: 0;
}

/* ---- METRIC CITATION ---- */

.metric-block-cite {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6rem;
    color: #C4C9D0;
    letter-spacing: 0.03em;
    line-height: 1.4;
    margin-top: 4px;
}

/* ---- BUSINESS MAP FILTER BAR ---- */

.map-search-bar {
    margin-bottom: 14px;
}
.map-search-input {
    width: 100%;
    max-width: 360px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
    box-sizing: border-box;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.map-search-input:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.map-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.map-filter-btn {
    padding: 8px 20px;
    border-radius: 980px;
    border: 1.5px solid #D1D5DB;
    background: #fff;
    color: #374151;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.map-filter-btn:hover {
    border-color: #2D6A4F;
    color: #2D6A4F;
}

.map-filter-btn.active {
    background: #2D6A4F;
    border-color: #2D6A4F;
    color: #fff;
}

/* ---- STAGGER DELAYS (reuse existing animate-on-scroll system) ---- */

.metrics-inner .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.metrics-inner .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.metrics-inner .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.metrics-inner .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }

.resources-list .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.resources-list .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.resources-list .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
    .metrics-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
    .resource-row {
        grid-template-columns: 56px 1fr auto;
        gap: 24px;
    }
    .resource-row-desc { display: none; }
    .directory-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-dark-inner { padding: 120px 6vw 100px; }
    .hero-dark-city   { font-size: clamp(2.6rem, 10vw, 4.5rem); }
    .hero-dark-tagline { font-size: clamp(1.5rem, 6.5vw, 3rem); }
    .section-opportunities,
    .section-resources,
    .section-directory { padding: 100px 0; }
    .footer-hp-top  { flex-direction: column; gap: 40px; }
    .footer-hp-cols { gap: 40px; flex-wrap: wrap; }
    .resource-row {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }
    .resource-row-num { display: none; }

    /* Keep business map tall and visible on mobile */
    .directory-map-box {
        min-height: 420px;
    }

    /* Move sidebar below map on mobile */
    .directory-split {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .metrics-inner { grid-template-columns: 1fr; }
    .metric-block  { padding: 48px 24px; }
    .hero-dark-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* --- Section eyebrow labels --- */
.section-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

/* Section header wrapper: groups eyebrow + title + subtitle */
.section-header {
    margin-bottom: 64px;
}

/* Suppress underline accent when eyebrow already establishes hierarchy */
.section-header .section-title::after {
    display: none;
}

/* Cormorant Garamond for editorial section titles on the home page */
.page-home .section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 16px;
}

/* --- Hero: centered full-viewport layout --- */
.page-home .hero-content-overlay {
    background: linear-gradient(
        160deg,
        rgba(10, 28, 18, 0.62) 0%,
        rgba(15, 40, 25, 0.72) 50%,
        rgba(10, 28, 18, 0.66) 100%
    );
    justify-content: center;
}

.page-home .hero-content-inner {
    align-items: center;
    text-align: center;
    padding: 100px 40px 80px;
    max-width: 800px;
}

/* Eyebrow above headline */
.hero-eyebrow {
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.50);
    margin-bottom: 32px;
    display: block;
}

/* Override Playfair Display from base rule for home page hero */
.page-home .hero-content-overlay h1,
.page-home .hero-content-overlay h2 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    font-size: inherit;
    color: #fff;
    text-shadow: none;
    max-width: none;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 28px;
}

/* "Yorba Linda" — clean, tight, sans-serif */
.page-home .hero-headline-city {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    display: block;
    font-style: normal;
}

/* "The Place to Grow Your Business" — large italic Cormorant for contrast */
.page-home .hero-headline-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3.6rem, 8vw, 6.8rem);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    line-height: 0.98;
    display: block;
    margin-top: 4px;
}

/* Tagline paragraph */
.page-home .hero-content-overlay .tagline {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 48px;
    max-width: 400px;
    line-height: 1.9;
    font-weight: 300;
}

/* Center the CTA row and clean up prev/next arrows */
.page-home .hero-cta-row {
    justify-content: center;
    gap: 14px;
}

.page-home .button.hero-cta-primary,
.page-home .button.hero-cta-secondary {
    padding: 14px 30px;
    font-size: 0.9rem;
}

.page-home .swiper-button-prev,
.page-home .swiper-button-next {
    display: none;
}

/* Scroll hint at bottom of hero */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
    pointer-events: none;
    animation: scrollHintReveal 1s ease 1.8s both;
}

.scroll-hint-label {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.scroll-hint-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.44), transparent);
    transform-origin: top;
    animation: scrollPulse 2.4s ease-in-out 1.8s infinite;
}

@keyframes scrollHintReveal {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(0.5); }
    55%       { opacity: 1;    transform: scaleY(1); }
}

/* --- Metrics strip --- */
.metrics-strip {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.metrics-grid {
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.metric-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    gap: 10px;
}

.metric-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 600;
    color: var(--green);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.5;
    max-width: 120px;
}

.metric-divider {
    width: 1px;
    height: 52px;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* --- Resource cards: numbered editorial style --- */
.page-home .resource-card {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 40px 36px 36px;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.page-home .resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.08);
    border-color: rgba(45, 106, 79, 0.18);
}

.resource-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: rgba(45, 106, 79, 0.16);
    line-height: 1;
    margin-bottom: 18px;
    display: block;
    letter-spacing: -0.02em;
}

.resource-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 220ms ease, color 220ms ease;
}

.resource-link:hover {
    gap: 11px;
    color: var(--green-dark);
    text-decoration: none;
}

/* Staggered reveals for resource cards */
.card-grid .resource-card:nth-child(1).animate-on-scroll { transition-delay: 0s; }
.card-grid .resource-card:nth-child(2).animate-on-scroll { transition-delay: 0.12s; }
.card-grid .resource-card:nth-child(3).animate-on-scroll { transition-delay: 0.24s; }

/* --- Directory callout: horizontal split --- */
.page-home .directory-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    padding: 44px 52px;
    background: linear-gradient(135deg, #f8fcf9 0%, #f1f8f3 100%);
    border: 1px solid rgba(45, 106, 79, 0.10);
    border-radius: var(--radius-card);
    margin-top: 56px;
}

.callout-text {
    flex: 1;
}

.callout-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.callout-text p {
    margin: 0;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- Footer brand row --- */
.footer-top {
    padding-bottom: 40px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border: none;
}

.footer-brand-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
}

/* --- Responsive: metrics & callout --- */
@media (max-width: 900px) {
    .metrics-grid {
        flex-wrap: wrap;
        gap: 36px;
        padding: 48px 0;
    }
    .metric-divider { display: none; }
    .metric-item { flex: calc(50% - 18px); }

    .page-home .directory-callout {
        flex-direction: column;
        text-align: center;
        padding: 40px 36px;
        gap: 28px;
    }
    .callout-text { text-align: center; }
}

@media (max-width: 600px) {
    .hero-scroll-hint { display: none; }
    .metrics-grid { gap: 28px; padding: 40px 0; }
    .metric-item { flex: 100%; }

    .page-home .hero-content-inner {
        padding: 72px 24px 60px;
    }
    .page-home .button.hero-cta-primary,
    .page-home .button.hero-cta-secondary {
        width: 100%;
        text-align: center;
    }
    .page-home .hero-cta-row {
        flex-direction: column;
        gap: 12px;
    }
}
