/* ======================================================================
   JEEV AAHAR KALYAN FOUNDATION — STYLESHEET
   Organized top to bottom in the same order sections appear on the page.
   All colors/spacing/type live in :root as variables — change a value
   once here and it updates everywhere.
   ====================================================================== */

:root {
    /* ---- Color: warm, earthy palette (turmeric, clay, rice paper) ---- */
    --ink:        #26190f;   /* headings, body text */
    --ink-soft:   #5c4a3a;   /* secondary text */
    --paper:      #faf5ea;   /* page background */
    --card:       #fffdf8;   /* card/panel background */
    --sand:       #f0e4c9;   /* alternate section background */
    --saffron:    #d9900a;   /* primary accent — CTAs, links, highlights */
    --saffron-deep: #a86a05;
    --terracotta: #a64b32;   /* secondary accent — urgency, donate */
    --banyan:     #3f5443;   /* tertiary accent — nature / animal welfare */
    --border:     #e3d3ae;
    --shadow: 0 18px 45px rgba(38,25,15,0.10);
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
}

/* Theme 2 — Banyan (forest / animal-welfare forward) */
body.theme-green {
    --saffron: #3f5443;
    --saffron-deep: #2c3d2f;
    --terracotta: #c9762f;
    --banyan: #7a9b74;
    --paper: #f6f7f0;
    --sand: #e6ead8;
}

/* Theme 3 — Indigo (evening / festival forward) */
body.theme-royal {
    --saffron: #4a3f8f;
    --saffron-deep: #332a66;
    --terracotta: #b5482f;
    --banyan: #8f7a3f;
    --paper: #f6f5fb;
    --sand: #e6e2f4;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: "Work Sans", sans-serif;
    color: var(--ink-soft);
    background: var(--paper);
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: white;
    padding: 12px 20px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.container { width: min(1120px, 92%); margin: auto; }
.section { padding: 100px 0; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--saffron-deep);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terracotta);
}

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

.section-heading h2,
.about-content h2,
.contact h2,
.donate-content h2 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.section-heading p { font-size: 1.05rem; }


/* ============================= NAVBAR ============================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250,245,234,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper { height: 78px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }

/* Logo image slot — see images/README.md to swap this for a real mark */
.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--sand);
    overflow: hidden;
    font-size: 1.3rem;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }

.logo strong, .logo small { display: block; }
.logo strong { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.08rem; }
.logo small { color: var(--saffron-deep); font-size: 0.7rem; }

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

nav a { color: var(--ink); font-size: 0.92rem; font-weight: 500; transition: var(--transition); }
nav a:hover { color: var(--saffron-deep); }

.nav-donate {
    background: var(--terracotta);
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
}
.nav-donate:hover { background: var(--saffron-deep); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
}
.menu-toggle::before { top: 0; }
.menu-toggle span { top: 11px; }
.menu-toggle::after { bottom: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(11px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-11px) rotate(-45deg); }


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

.hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

/* Textured fallback so the hero looks intentional with no photo yet.
   Drop images/hero.jpg in and it layers underneath this tint automatically. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(217,144,10,0.35), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(166,75,50,0.35), transparent 50%),
        url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(38,25,15,0.92) 20%, rgba(38,25,15,0.55) 60%, rgba(38,25,15,0.25));
}

.hero-content { position: relative; z-index: 2; max-width: 720px; color: white; padding-top: 70px; }

.eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 30px;
    font-size: 0.85rem;
}

.hero h1 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    line-height: 1.05;
    margin-bottom: 22px;
    font-style: italic;
}

.hero p { max-width: 620px; font-size: 1.12rem; color: rgba(255,255,255,0.88); }

.hero-buttons { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 12px 26px;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { background: var(--saffron-deep); transform: translateY(-2px); }
.btn-outline { color: white; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: white; color: var(--ink); }
.btn-light { background: white; color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn[disabled] { opacity: 0.6; cursor: progress; }


/* ============================== STATS ============================== */

.stats { background: var(--card); padding: 40px 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 15px; }
.stat-card strong {
    display: block;
    color: var(--terracotta);
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 2.3rem;
}
.stat-card span { font-size: 0.9rem; }


/* ============================== ABOUT =============================== */

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }

.image-placeholder {
    min-height: 460px;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(217,144,10,0.16), rgba(166,75,50,0.18));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 2px dashed var(--border);
    color: var(--saffron-deep);
    overflow: hidden;
}
.image-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder span { font-weight: 700; }
.image-placeholder small { font-size: 0.8rem; }

.about-content p { margin-bottom: 18px; }

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
    color: var(--ink);
    font-weight: 600;
    list-style: none;
}
.check-list li { display: flex; align-items: center; gap: 8px; }
.check-list li::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--banyan);
    flex-shrink: 0;
}

.text-link { color: var(--saffron-deep); font-weight: 700; }


/* =============================== WORK ================================ */

.work { background: var(--sand); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.work-card {
    padding: 32px 26px;
    border-radius: var(--radius-md);
    background: var(--card);
    border-left: 4px solid var(--accent-color, var(--saffron));
    transition: var(--transition);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { font-size: 2.3rem; margin-bottom: 18px; }
.work-card h3 { color: var(--ink); margin-bottom: 10px; font-size: 1.2rem; font-family: "Fraunces", serif; }
.work-card p { font-size: 0.92rem; margin-bottom: 20px; }
.work-card a { color: var(--saffron-deep); font-weight: 700; }


/* ============================= CAMPAIGN =============================== */

.campaign {
    padding: 80px 0;
    background: linear-gradient(110deg, var(--terracotta), var(--saffron-deep));
    color: white;
}
.campaign-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.campaign h2 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.2rem);
    max-width: 680px;
    line-height: 1.15;
    margin-bottom: 15px;
}
.campaign p { max-width: 620px; opacity: 0.92; }
.campaign .btn-light { flex-shrink: 0; }


/* =============================== TEAM ================================= */

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

.team-card { text-align: center; padding: 26px 20px; background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow); }

.team-photo {
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.6rem;
    overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 { color: var(--ink); font-family: "Fraunces", serif; font-size: 1.05rem; }
.team-card p { color: var(--saffron-deep); font-size: 0.85rem; font-weight: 700; margin-top: 2px; }
.team-card .phone { display: block; margin-top: 8px; font-size: 0.8rem; }

.team-empty { text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }


/* ============================== GALLERY ================================ */

.gallery { background: var(--card); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.gallery-item {
    min-height: 260px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    overflow: hidden;
    transition: var(--transition);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { transform: scale(1.02); }


/* =============================== DONATE ================================= */

.donate-box {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 55px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    box-shadow: var(--shadow);
}

.donation-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.donation-options button {
    border: 1px solid var(--border);
    background: var(--sand);
    color: var(--ink);
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
}
.donation-options button.active { background: var(--terracotta); color: white; border-color: var(--terracotta); }

.donation-panel { background: var(--sand); padding: 30px; border-radius: var(--radius-md); text-align: center; }
.donation-panel h3 { font-family: "Fraunces", serif; color: var(--ink); margin-bottom: 6px; }

.qr-placeholder {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    background: white;
    border: 2px dashed var(--border);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qr-placeholder img { width: 100%; height: 100%; object-fit: contain; }

.full-width { width: 100%; }


/* =============================== CONTACT ================================= */

.contact { background: var(--sand); }
.contact-details { margin-top: 35px; display: grid; gap: 20px; }
.contact-details div { display: flex; flex-direction: column; }
.contact-details strong { color: var(--ink); }
.contact-details span { color: var(--saffron-deep); }

.contact-form {
    display: grid;
    gap: 15px;
    background: var(--card);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    background: var(--paper);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--saffron); }

.form-message { font-weight: 700; min-height: 1.2em; }
.form-message.success { color: var(--banyan); }
.form-message.error { color: var(--terracotta); }


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

footer { background: var(--ink); color: #d9cdbe; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: white; font-family: "Fraunces", serif; font-size: 1.25rem; margin-bottom: 15px; }
.footer-logo .logo-mark { width: 34px; height: 34px; background: rgba(255,255,255,0.1); }
footer h4 { color: white; margin-bottom: 15px; font-family: "Fraunces", serif; font-weight: 600; }
footer a { display: block; margin-bottom: 8px; color: #d9cdbe; }
footer a:hover { color: white; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding: 20px; font-size: 0.8rem; }


/* ============================ THEME SWITCHER ============================= */

.theme-switcher {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 999;
    display: flex;
    gap: 5px;
    padding: 7px;
    border-radius: 30px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.theme-switcher button {
    border: 0;
    background: var(--sand);
    color: var(--ink);
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
}
.theme-switcher button.active { background: var(--terracotta); color: white; }


/* ============================== ANIMATION ================================ */

.reveal { opacity: 0; transform: translateY(24px); transition: 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


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

@media (max-width: 950px) {
    nav ul { gap: 15px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .menu-toggle { display: block; }

    nav ul {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        padding: 20px;
        background: var(--card);
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        box-shadow: var(--shadow);
    }
    nav ul.active { display: flex; }

    .hero { min-height: 680px; }
    .two-column, .donate-box { grid-template-columns: 1fr; }
    .campaign-inner { flex-direction: column; align-items: flex-start; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .donate-box { padding: 30px 22px; }
}

@media (max-width: 520px) {
    .section { padding: 70px 0; }
    .cards-grid, .team-grid, .gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .theme-switcher { left: 10px; right: 10px; justify-content: center; }
}
