:root {
    --navy: #182b4d;
    --navy-dark: #0d1d35;
    --gold: #c99213;
    --gold-light: #f3d47d;
    --cream: #faf7ef;
    --cream-dark: #f1eadb;
    --white: #ffffff;
    --text: #26354a;
    --muted: #6e7785;
    --border: rgba(201, 146, 19, 0.18);
    --shadow: 0 16px 45px rgba(26, 36, 54, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(
            circle at top,
            #ffffff 0%,
            #faf7ef 45%,
            #f3ecdc 100%
        );
    color: var(--text);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(24, 43, 77, 0.08);
    backdrop-filter: blur(14px);
}

.header-container {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 190px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    color: var(--navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: var(--gold);
}

.header-donate-btn,
.hero-donate-btn,
.donate-btn,
.complete-donation-btn {
    border: none;
    background:
        linear-gradient(
            135deg,
            #e2b33d,
            #b87a08
        );
    color: #ffffff;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.header-donate-btn:hover,
.hero-donate-btn:hover,
.donate-btn:hover,
.complete-donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(184, 122, 8, 0.28);
}

.header-donate-btn {
    padding: 13px 25px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}


/* =========================
   HERO
========================= */

.hero {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* =========================
   INTRO
========================= */

.intro-section {
    padding: 90px 0 55px;
    text-align: center;
}

.narrow-container {
    max-width: 860px;
}

.section-eyebrow {
    display: inline-block;
    color: #9a7418;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.intro-section h1,
.section-heading h2,
.final-cta h2 {
    font-family: "Cinzel", Georgia, serif;
    color: var(--navy);
}

.intro-section h1 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.intro-section p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}

.trust-line {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.trust-line span {
    font-size: 12px;
    color: var(--navy);
    font-weight: 600;
}


/* =========================
   SEVA SECTIONS
========================= */

.seva-section {
    padding: 55px 0 70px;
}

.heritage-section {
    padding-top: 40px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================
   GRID
========================= */

.seva-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.heritage-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* =========================
   CARDS
========================= */

.seva-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.seva-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(26, 36, 54, 0.16);
}

.seva-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #eee8da;
    overflow: hidden;
}

.seva-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.seva-card:hover .seva-image img {
    transform: scale(1.05);
}

.seva-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 23px;
}

.seva-card-content h3 {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.seva-card-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    min-height: 64px;
    margin-bottom: 20px;
}


/* =========================
   AMOUNT BUTTON
========================= */

.seva-amount {
    align-self: flex-start;
    border: 1px solid rgba(201, 146, 19, 0.30);
    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #f7e7b8
        );
    color: #8a6108;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(201, 146, 19, 0.12);
    transition: all 0.25s ease;
}

.seva-amount:hover {
    background:
        linear-gradient(
            135deg,
            #e0b03a,
            #b87908
        );
    color: #ffffff;
    transform: translateY(-2px);
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9aa1aa;
    font-size: 10px;
    font-weight: 700;
}

.or-divider::before,
.or-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(24, 43, 77, 0.10);
}


/* =========================
   CUSTOM AMOUNT
========================= */

.custom-donation {
    margin-top: auto;
}

.custom-donation label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.amount-row {
    display: flex;
    gap: 9px;
}

.custom-amount {
    width: 100%;
    min-width: 0;
    height: 45px;
    border: 1px solid rgba(24, 43, 77, 0.15);
    border-radius: 11px;
    background: #ffffff;
    padding: 0 13px;
    outline: none;
    font-size: 13px;
    transition: border 0.25s ease;
}

.custom-amount:focus {
    border-color: var(--gold);
}

.donate-btn {
    min-width: 90px;
    height: 45px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 12px;
}


/* =========================
   FINAL CTA
========================= */

.final-cta {
    text-align: center;
    padding: 85px 0;
}

.final-cta h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 16px;
}

.final-cta p {
    max-width: 720px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 14px;
}

.hero-donate-btn {
    padding: 15px 32px;
    border-radius: 999px;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.copyright {
    margin-top: 18px;
    font-size: 11px !important;
}


/* =========================
   MODAL
========================= */

.donation-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.donation-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 30, 0.72);
    backdrop-filter: blur(5px);
}

.donation-box {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.donation-modal.active .donation-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    color: var(--navy);
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
}

.donation-box h2 {
    font-family: "Cinzel", Georgia, serif;
    color: var(--navy);
    margin-bottom: 24px;
    font-size: 30px;
}

.selected-seva {
    background: #faf7ef;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.selected-seva span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
}

.selected-seva strong {
    color: var(--navy);
    font-size: 16px;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(24, 43, 77, 0.16);
    border-radius: 11px;
    padding: 0 14px;
    outline: none;
    transition: border 0.25s ease;
}

.form-group input:focus {
    border-color: var(--gold);
}

.donation-amount-input {
    position: relative;
}

.donation-amount-input span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-weight: 700;
}

.donation-amount-input input {
    padding-left: 35px;
}

.complete-donation-btn {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    margin-top: 8px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .seva-grid,
    .heritage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        gap: 18px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 560px);
    }

    .header-container {
        min-height: 78px;
        gap: 14px;
    }

    .logo img {
        width: 135px;
    }

    .main-nav {
        display: none;
    }

    .header-donate-btn {
        padding: 10px 16px;
        font-size: 11px;
    }

    .hero-image {
        width: 100%;
        min-height: 220px;
        object-fit: cover;
        object-position: center;
    }

    .intro-section {
        padding: 60px 0 35px;
    }

    .intro-section h1 {
        font-size: 31px;
    }

    .trust-line {
        flex-direction: column;
        gap: 7px;
    }

    .seva-section {
        padding: 40px 0 55px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .seva-grid,
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .seva-card-content {
        padding: 20px;
    }

    .seva-image {
        aspect-ratio: 16 / 9;
    }

    .seva-card-content p {
        min-height: auto;
    }

    .final-cta {
        padding: 60px 0;
    }

    .donation-box {
        padding: 32px 22px;
    }

}

@media (max-width: 420px) {

    .logo img {
        width: 115px;
    }

    .header-donate-btn {
        padding: 9px 13px;
    }

    .amount-row {
        flex-direction: column;
    }

    .donate-btn {
        width: 100%;
    }

}