:root {
    --navy: #18253a;
    --gold: #E0B85A;
    --amber: #C6842D;
    --pearl: #FFF7DF;
    --slate: #F7F1E3;
    --charcoal: #360018;
    --muted: #746c6e;
    --white: #FFFFFF;
    --line: rgba(54, 0, 24, .11);
    --shadow: 0 22px 60px rgba(54, 0, 24, .08);
    --green: #5B876E;
    --mint: #E9F2EA;
    --coral: #D98463;
    --burgundy: #71002F;
    --ink: #1C1217;
    --shadow-lg: 0 34px 90px rgba(54, 0, 24, .13);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(113, 0, 47, .045) 0 1px, transparent 1px 25%),
        linear-gradient(180deg, #fffbf0 0%, var(--pearl) 48%, #fffaf0 100%);
    font-family: "Noto Sans Gujarati", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
body::before { content: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1700px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section--soft {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,241,227,.72));
}
.section--soft::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(54,0,24,.07) 0 1px, transparent 1px 25%);
    pointer-events: none;
}
.section--soft > .container { position: relative; }
.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--burgundy);
    background: rgba(107, 6, 46, .06);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.section-title {
    margin: 16px 0 12px;
    font-family: "Noto Serif Gujarati", serif;
    font-size: clamp(34px, 4.4vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
    color: var(--charcoal);
}
.section-lead { max-width: 880px; color: var(--muted); font-size: 19px; }
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
    transition: transform .65s ease;
}
.btn:hover::before { transform: translateX(120%) skewX(-18deg); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(33, 6, 22, .14); }
.btn--gold { color: var(--charcoal); background: var(--gold); box-shadow: none; }
.btn--navy { color: var(--white); background: var(--burgundy); }
.btn--ghost { color: var(--white); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .36); }

.topbar {
    position: relative;
    z-index: 20;
    color: rgba(255, 247, 223, .82);
    background: var(--burgundy);
    font-size: 13px;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; }
.topbar__links { display: flex; gap: 16px; color: var(--gold); font-weight: 800; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(54, 0, 24, .08);
    background: rgba(255, 249, 233, .88);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 10px 36px rgba(54, 0, 24, .06);
    transition: min-height .24s ease, background .24s ease, box-shadow .24s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 250, 236, .96);
    box-shadow: 0 18px 55px rgba(54, 0, 24, .1);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 410px; }
.brand img {
    /* width: 104px;
    height: 78px; */
    width: 200px;
    height: auto;
    margin: 10px 0px;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.brand strong { display: block; color: var(--charcoal); font-family: "Noto Serif Gujarati", serif; font-size: 19px; line-height: 1.16; }
.brand small { color: var(--muted); font-weight: 800; letter-spacing: 0; }
.nav__menu { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 800; }
.nav__menu a:not(.btn) { position: relative; color: #251a1e; }
.nav__menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .2s ease;
}
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; }
.nav__toggle { display: none; border: 0; background: var(--burgundy); color: var(--white); border-radius: 8px; padding: 10px 13px; font-size: 20px; }

.hero { position: relative; min-height: auto; overflow: hidden; padding: 34px 0 0; background: transparent; }
.hero--helpo { clip-path: none; }
.hero::before, .hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(.2px);
}
.hero .swiper { position: relative; z-index: 1; }
.hero::before {
    width: 360px;
    height: 360px;
    right: -110px;
    top: 9%;
    background: radial-gradient(circle, rgba(212,175,55,.32), transparent 66%);
}
.hero::after {
    width: 620px;
    height: 620px;
    right: 8%;
    bottom: -360px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 0 0 44px rgba(255,255,255,.025);
}
.hero .swiper {
    width: min(1600px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 34px 86px rgba(54, 0, 24, .14);
}
.hero .swiper-slide { min-height: 720px; }
.hero__slide {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 720px;
    color: var(--white);
    background-position: center;
    background-size: cover;
}
.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(54,0,24,.94), rgba(54,0,24,.70), rgba(24,37,58,.12)),
        linear-gradient(180deg, rgba(15,23,42,.04), rgba(15,23,42,.76));
}
.hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(255,255,255,.08) 0 1px, transparent 1px 132px),
        radial-gradient(circle at 22% 24%, rgba(224,184,90,.22), transparent 21rem);
    opacity: .7;
}
.hero__content { position: relative; z-index: 1; max-width: 850px; padding: 84px 0; }
.hero__badge { color: var(--gold); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.hero h1 {
    margin: 20px 0;
    font-family: "Noto Serif Gujarati", serif;
    font-size: clamp(46px, 6.4vw, 104px);
    line-height: .96;
    text-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.hero h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, #ffffff, #f7dd8a, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero p { max-width: 680px; color: rgba(255,255,255,.84); font-size: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.impact-strip { position: relative; z-index: 3; margin-top: -54px; padding-bottom: 18px; }
.impact-strip::before {
    content: "";
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(180deg, transparent, var(--pearl));
    z-index: -1;
}
.hero__stats { position: relative; z-index: 3; margin-top: -74px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card, .glass-card, .activity-card, .event-card, .member-card, .donor-card, .admin-card {
    border: 1px solid rgba(54, 0, 24, .08);
    background: rgba(255, 253, 246, .9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-card { padding: 28px; position: relative; overflow: hidden; }
.stat-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--gold), var(--amber));
}
.stat-card strong { display: block; color: var(--burgundy); font-size: 42px; line-height: 1; }
.stat-card span { color: var(--muted); font-weight: 800; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.intro-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 86px; align-items: center; }
.intro-media { position: relative; min-height: 620px; }
.intro-media::before {
    content: "";
    position: absolute;
    width: 78%;
    height: 78%;
    left: -24px;
    bottom: 0;
    border-radius: 8px 120px 8px 8px;
    background: linear-gradient(135deg, var(--gold), var(--amber));
}
.intro-media img {
    position: relative;
    width: 88%;
    height: 590px;
    object-fit: cover;
    border-radius: 8px 120px 8px 8px;
    box-shadow: var(--shadow-lg);
}
.floating-note {
    position: absolute;
    right: 0;
    bottom: 58px;
    max-width: 260px;
    padding: 22px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--navy));
    box-shadow: var(--shadow);
}
.floating-note strong { display: block; font-size: 22px; }
.floating-note span { color: rgba(255,255,255,.78); }
.cause-list { display: grid; gap: 16px; margin-top: 30px; }
.cause-list article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 16px 42px rgba(15,23,42,.07);
}
.cause-list span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    color: #2a1a02;
    background: linear-gradient(135deg, var(--gold), #fff1b8);
    font-weight: 900;
}
.cause-list h3 { margin: 0 0 4px; color: var(--navy); font-family: "Noto Serif Gujarati", serif; }
.cause-list p { grid-column: 2; margin: -16px 0 0; color: var(--muted); }
.glass-card { padding: 30px; position: relative; overflow: hidden; }
.glass-card::before, .portal-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 36%, rgba(212,175,55,.12));
}
.mission-list { display: grid; gap: 16px; margin-top: 24px; }
.mission-list div { padding: 18px; border-radius: 8px; background: var(--slate); border: 1px solid var(--line); }
.portrait-stack { position: relative; min-height: 520px; }
.portrait-stack img { position: absolute; border-radius: 8px; box-shadow: var(--shadow); object-fit: cover; }
.portrait-stack img:first-child { width: 78%; right: 0; top: 0; }
.portrait-stack img:last-child { width: 55%; left: 0; bottom: 0; border: 10px solid var(--pearl); }

.section-heading { max-width: 820px; margin-bottom: 20px; }
.activity-grid, .events-grid, .member-grid, .donor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 38px; }
.events-grid--wide { grid-template-columns: repeat(2, 1fr); }
.activity-card { padding: 30px; position: relative; overflow: hidden; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.activity-card:hover, .event-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,.44); }
.activity-card::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -42px;
    top: -42px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(212,175,55,.28), transparent 68%);
}
.activity-card__icon { font-size: 34px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 8px; background: var(--mint); }
.activity-card h3, .event-card h3, .member-card h3 { color: var(--navy); font-family: "Noto Serif Gujarati", serif; line-height: 1.25; }
.activity-card a { color: var(--green); font-weight: 900; }

.event-card { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(15,23,42,.1); transition: transform .24s ease, box-shadow .24s ease; border: 1px solid rgba(15,23,42,.06); }
.event-card--feature { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; }
.event-card--feature img { height: 100%; min-height: 340px; }
.event-card img { width: 100%; height: 230px; object-fit: cover; transition: transform .32s ease; }
.event-card:hover img { transform: scale(1.06); }
.event-card__body { padding: 22px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--navy);
    background: rgba(26,54,93,.08);
    font-weight: 800;
    font-size: 13px;
}
.portal-cta {
    position: relative;
    overflow: hidden;
    padding: 54px;
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 18%, rgba(224,184,90,.22), transparent 18rem),
        linear-gradient(135deg, rgba(113,0,47,.96), rgba(24,37,58,.98));
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.portal-cta::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -80px;
    top: -130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(212,175,55,.34), transparent 68%);
    z-index: -1;
}
.portal-cta__grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.portal-cta h2 { margin: 0 0 10px; font-family: "Noto Serif Gujarati", serif; font-size: clamp(30px, 4vw, 52px); line-height: 1.18; }
.portal-cta p { max-width: 720px; color: rgba(255,255,255,.78); }
.donor-card { padding: 24px; text-align: center; }
.donor-card strong { display: block; color: var(--navy); font-size: 18px; }
.donor-card span { color: var(--amber); font-weight: 900; }
.mosaic-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 18px; margin-top: 34px; }
.mosaic-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    isolation: isolate;
}
.mosaic-card--large { grid-column: span 2; grid-row: span 2; }
.mosaic-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mosaic-card:hover img { transform: scale(1.08); }
.mosaic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(15,23,42,.86)); }
.mosaic-card div { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; color: var(--white); }
.mosaic-card span { color: var(--gold); font-weight: 900; font-size: 13px; }
.mosaic-card h3 { margin: 6px 0 0; font-family: "Noto Serif Gujarati", serif; }
.center-action { text-align: center; margin-top: 34px; }

.archive-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 58px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 10%, rgba(224,184,90,.24), transparent 19rem),
        linear-gradient(135deg, rgba(113,0,47,.96), rgba(24,37,58,.96));
}
.archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 82% 18%, rgba(212,175,55,.26), transparent 19rem), linear-gradient(120deg, rgba(255,255,255,.08) 0 1px, transparent 1px 120px);
}
.archive-hero .container { position: relative; z-index: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.filters a, .filter-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--white);
    color: var(--navy);
    font-weight: 900;
    cursor: pointer;
}
.filters a.is-active, .filter-button.is-active { background: linear-gradient(135deg, var(--gold), var(--amber)); border-color: transparent; color: #231604; }
.dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0; }
.dashboard__item { padding: 22px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); }
.dashboard__item strong { color: var(--navy); font-size: 28px; display: block; }

.gallery-grid { margin-top: 30px; }
.gallery-item { width: calc(25% - 18px); margin: 9px; border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 16px 44px rgba(15,23,42,.1); border: 1px solid rgba(255,255,255,.75); }
.gallery-item a { display: block; position: relative; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .28s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item span { display: block; padding: 14px 16px; color: var(--navy); font-weight: 800; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 900; color: var(--navy); }
.field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-card { padding: 28px; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; background: #ecfdf5; color: #065f46; font-weight: 800; }
.notice--error { background: #fef2f2; color: #991b1b; }

.footer {
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,.76);
    background:
        radial-gradient(circle at 10% 0%, rgba(212,175,55,.18), transparent 22rem),
        linear-gradient(135deg, #08111f, var(--charcoal));
    padding-top: 70px;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(255,255,255,.06) 0 1px, transparent 1px 120px);
    pointer-events: none;
}
.footer .container, .footer__bottom { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .9fr 1.1fr; gap: 34px; }
.footer h3, .footer h4 { color: var(--white); margin-top: 0; }
.footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.82); }
.footer__logo { width: 78px; margin-bottom: 14px; }
.map-card iframe { width: 100%; height: 210px; border: 0; border-radius: 8px; filter: grayscale(.2); }
.footer__bottom { margin-top: 42px; padding: 18px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 1240px) {
    .nav { min-height: 94px; }
    .brand { min-width: 330px; }
    .brand img { width: 88px; height: 66px; }
    .brand strong { font-size: 16px; }
    .nav__menu { gap: 16px; font-size: 13px; }
    .nav__menu .btn { padding-inline: 18px; }
}

@media (max-width: 980px) {
    .topbar__inner { flex-direction: column; gap: 4px; }
    .nav__toggle { display: inline-flex; }
    .nav__menu {
        position: absolute;
        inset: 94px 16px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .nav__menu.is-open { display: flex; }
    .split, .intro-grid, .portal-cta__grid, .admin-layout, .event-card--feature { grid-template-columns: 1fr; }
    .stats-grid, .activity-grid, .events-grid, .member-grid, .donor-grid, .dashboard, .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item { width: calc(50% - 18px); }
    .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .section { padding: 68px 0; }
    .container, .hero .swiper { width: min(100% - 24px, 1600px); }
    .topbar { display: none; }
    .nav { min-height: 82px; }
    .brand { min-width: 0; }
    .brand img { width: 72px; height: 54px; }
    .brand strong { font-size: 13px; }
    .brand small { font-size: 11px; }
    .nav__menu { inset: 82px 12px auto; }
    .hero--helpo { clip-path: none; }
    .hero { padding-top: 16px; }
    .hero .swiper, .hero .swiper-slide, .hero__slide { min-height: 590px; }
    .hero__content { padding: 56px 0; }
    .hero h1 { font-size: clamp(38px, 13vw, 58px); }
    .hero p { font-size: 17px; }
    .impact-strip, .hero__stats { margin-top: 0; padding: 24px 0; background: var(--slate); }
    .stats-grid, .activity-grid, .events-grid, .member-grid, .donor-grid, .dashboard, .footer__grid, .form-grid { grid-template-columns: 1fr; }
    .intro-media { min-height: auto; }
    .intro-media img { width: 100%; height: 430px; }
    .floating-note { position: relative; right: auto; bottom: auto; margin-top: -38px; }
    .cause-list article { grid-template-columns: 1fr; }
    .cause-list p { grid-column: 1; margin-top: 0; }
    .mosaic-grid { display: block; }
    .mosaic-card { margin-bottom: 16px; }
    .portrait-stack { min-height: auto; display: grid; gap: 16px; }
    .portrait-stack img { position: static; width: 100% !important; border: 0 !important; }
    .gallery-item { width: 100%; margin: 0 0 16px; }
    .portal-cta { padding: 32px; }
}
