@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   THEME: HOME
   ============================================================ */
.theme-home {
    --accent: #20C058;
    --accent-dim: rgba(32, 192, 88, 0.15);
    --navy: #2A3260;
    --bg-body: #f8f8fc;
    --bg-tagline: #ffffff;
    --bg-footer: #f3f4f8;
    --text-tagline: #2A3260;
    --text-footer: #2A3260;
    --text-footer-muted: #6b7280;
    --border-footer: #e5e7eb;
    --card-header-bg: #f8fafc;
    --card-header-border: #e9ecf3;
    --card-title-color: #2A3260;
    --form-card-border: rgba(42, 50, 96, 0.12);
    --badge-bg: rgba(255,255,255,0.12);
    --badge-border: rgba(255,255,255,0.25);
    --badge-color: #ffffff;
    --org-badge-bg: #ffffff;
    --org-badge-color: #2A3260;
    --org-name-color: rgba(255,255,255,0.88);
    --stat-value-color: #ffffff;
    --stat-label-color: rgba(255,255,255,0.55);
    --stat-border: rgba(255,255,255,0.15);
    --headline-color: #ffffff;
    --copy-color: rgba(255,255,255,0.78);
    --overlay: linear-gradient( 105deg, rgba(42, 50, 96, 0.97) 0%, rgba(42, 50, 96, 0.84) 45%, rgba(42, 50, 96, 0.38) 100% );
    background-color: var(--bg-body);
}

/* ============================================================
   THEME: GALA
   ============================================================ */
.theme-gala {
    --accent: #C9A84C;
    --accent-dim: rgba(201, 168, 76, 0.15);
    --navy: #0a0a1e;
    --bg-body: #07070f;
    --bg-tagline: #0a0a1e;
    --bg-footer: #07070f;
    --text-tagline: #ffffff;
    --text-footer: rgba(255,255,255,0.7);
    --text-footer-muted: rgba(255,255,255,0.3);
    --border-footer: rgba(255,255,255,0.06);
    --card-header-bg: #0d0d22;
    --card-header-border: rgba(255,255,255,0.08);
    --card-title-color: #ffffff;
    --form-card-border: rgba(255,255,255,0.08);
    --badge-bg: rgba(201, 168, 76, 0.12);
    --badge-border: rgba(201, 168, 76, 0.35);
    --badge-color: #C9A84C;
    --org-badge-bg: rgba(255,255,255,0.1);
    --org-badge-color: #ffffff;
    --org-name-color: rgba(255,255,255,0.75);
    --stat-value-color: #ffffff;
    --stat-label-color: rgba(255,255,255,0.45);
    --stat-border: rgba(255,255,255,0.08);
    --headline-color: #ffffff;
    --copy-color: rgba(255,255,255,0.68);
    --overlay: linear-gradient( 105deg, rgba(10, 10, 30, 0.98) 0%, rgba(10, 10, 30, 0.87) 45%, rgba(26, 16, 48, 0.48) 100% );
    background-color: var(--bg-body);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2.5rem;
    height: 52px;
    background: rgba(8, 10, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-logo {
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.88;
    flex-shrink: 0;
}

.topbar-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
}

    .topbar-nav a {
        font-size: 0.88rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.55);
        transition: color 0.18s;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

        .topbar-nav a:hover {
            color: #ffffff;
        }

    /* Dropdowns */
    .topbar-nav .dropdown {
        position: relative;
        display: flex;
        align-items: center;
    }

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.18s;
}

.topbar-nav .dropdown:hover .dropdown-toggle {
    color: #ffffff;
}

.dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: rgba(8, 10, 32, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    padding-top: 0.75rem;
    margin-top: 8px;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

    /* invisible bridge so the hover doesn't break crossing the gap */
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 8px;
    }

.topbar-nav .dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
    letter-spacing: 0.02em;
}

    .dropdown-menu a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
    }

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 2px;
        transition: transform 0.22s ease, opacity 0.22s ease;
        transform-origin: center;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile nav panel */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 10, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

    .mobile-nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-nav a {
        display: block;
        font-size: 1.15rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.72);
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        transition: color 0.15s;
        letter-spacing: 0.01em;
    }

        .mobile-nav a:hover {
            color: #ffffff;
        }

.mobile-nav-group {
    padding-top: 0.5rem;
}

.mobile-nav-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    padding: 1.25rem 0 0.25rem;
}

.mobile-nav-group a {
    padding-left: 0.75rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 1.25rem;
    }

    .topbar-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.theme-home .hero-backdrop {
    background-image: url('/Content/images/hero-bg.jpg');
    opacity: 0.65;
    mix-blend-mode: luminosity;
}

.theme-gala .hero-backdrop {
    background-image: url('/Content/images/hero-gala.jpg');
    opacity: 0.38;
}

/* Directed giving page backdrops */
.backdrop-1 .hero-backdrop {
    background-image: url('/Content/images/hero-directed1.jpg');
    opacity: 0.5;
    mix-blend-mode: normal;
}

.backdrop-2 .hero-backdrop {
    background-image: url('/Content/images/hero-directed2.jpg');
    opacity: 0.5;
    mix-blend-mode: normal;
}

.backdrop-3 .hero-backdrop {
    background-image: url('/Content/images/hero-directed3.jpg');
    opacity: 0.5;
    mix-blend-mode: normal;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    z-index: 1;
}

.theme-gala .hero-overlay::after {
    content: '';
    position: absolute;
    inset-x: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.5), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 0;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 5rem 5rem 4rem;
    align-items: start;
    min-height: 100dvh;
}

/* ============================================================
   LEFT COLUMN
   ============================================================ */
.col-copy {
    padding-right: 3.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: var(--headline-color);
}

/* Gala-only date badge */
.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.event-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Org brand row */
.org-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

.org-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--org-badge-bg);
    color: var(--org-badge-color);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    border: 1.5px solid rgba(255,255,255,0.18);
}

.theme-gala .org-badge {
    background: rgba(255,255,255,0.09);
    color: #ffffff;
    border-color: rgba(255,255,255,0.18);
}

.org-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--org-name-color);
    letter-spacing: 0.01em;
}

/* Headline */
.headline {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--headline-color);
    margin-bottom: 1.75rem;
}

.headline-accent {
    color: var(--accent);
}

.headline-sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 0.75rem;
}

/* Body copy */
.copy {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--copy-color);
    font-weight: 300;
    max-width: 520px;
}

    .copy p + p {
        margin-top: 1.1rem;
    }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.25rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--stat-border);
}

.stat-value {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--stat-value-color);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
    opacity: 0.9;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stat-label-color);
}

/* ============================================================
   RIGHT COLUMN — FORM CARD
   ============================================================ */
.col-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.form-card {
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 32px 80px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid var(--form-card-border);
    display: flex;
    flex-direction: column;
}

.form-card-header {
    padding: 2.25rem 2rem 1.5rem;
    background: var(--card-header-bg);
    border-bottom: 1px solid var(--card-header-border);
    text-align: center;
}

.theme-gala .form-card {
    background: #ffffff;
}

.theme-gala .form-card-header {
    background: #0d0d22;
    border-bottom-color: rgba(255,255,255,0.08);
}

.form-card-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.form-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--card-title-color);
    letter-spacing: -0.02em;
}

.form-card-body {
    padding: 1rem;
    min-height: 580px;
    background: #ffffff;
}

/* ============================================================
   TAGLINE SECTION
   ============================================================ */
.tagline-section {
    background: var(--bg-tagline);
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.theme-gala .tagline-section {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tagline-inner {
    max-width: 800px;
    text-align: center;
}

.tagline-rule {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 2.5rem;
    opacity: 0.7;
    border: none;
}

.tagline-quote {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-tagline);
    letter-spacing: -0.02em;
}

.theme-home .tagline-quote {
    color: #2A3260;
}

.tagline-rule-bottom {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 2.5rem auto 0;
    opacity: 0.7;
    border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-footer);
    padding: 2rem 2rem 2.5rem;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-nav {
    display: flex;
    gap: 0.25rem 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-footer);
}

    .footer-nav a {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-footer-muted);
        transition: color 0.18s;
        letter-spacing: 0.01em;
        padding: 0.25rem 0;
        white-space: nowrap;
    }

        .footer-nav a:hover {
            color: var(--accent);
        }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-footer);
}

.footer-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-gala .footer-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-footer-muted);
    font-weight: 400;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-footer);
    background: rgba(255,255,255,0.06);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.theme-home .powered-by {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.powered-by:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.powered-by-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-footer-muted);
}

.powered-by-logo {
    height: 18px;
    opacity: 0.85;
}

.theme-gala .powered-by-logo {
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

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

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

.animate-in {
    opacity: 0;
    animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 3.5rem 2rem 3rem;
        gap: 2.5rem;
        min-height: auto;
        align-items: start;
    }

    .col-copy {
        padding-right: 0;
        order: 2;
    }

    .col-form {
        justify-content: center;
        order: 1;
    }

    .form-card {
        max-width: 100%;
        width: 100%;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .tagline-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 2rem 1.25rem 2rem;
        gap: 2rem;
    }

    .col-form {
        width: 100%;
    }

    .form-card {
        border-radius: 1rem;
    }

    .form-card-body {
        min-height: 400px;
    }

    .headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .copy {
        font-size: 0.95rem;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .tagline-section {
        padding: 3rem 1.25rem;
    }

    .tagline-quote {
        font-size: 1.25rem;
    }

    .footer {
        padding: 1.5rem 1.25rem 2rem;
    }

    .footer-nav {
        gap: 0.25rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* 1. Let tier cards shrink and stack on narrow screens */

.tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* minmax(0,...) lets columns shrink below content size */
}

@media (max-width: 420px) {
    .tiers {
        grid-template-columns: 1fr;
    }
    /* stack to a single column on phones */
}

/* 2. Stop the mobile nav from forcing a fixed width wider than the screen */
#mobile-nav {
    width: 100%;
    max-width: 100%;
}