/* ==========================================================================
   सरदार पटेल सेवा समिति — main stylesheet
   No build step. Edit this file, save, SFTP uploads it, it is live.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-hi);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }

img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 700; }

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute; left: -9999px;
    background: var(--c-primary); color: var(--c-text-invert);
    padding: var(--sp-3) var(--sp-5); z-index: 200;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* --- Layout primitives -------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--c-bg-alt); }
.section--deep {
    background: var(--brown-800);
    color: var(--c-text-invert);
}

/* Ornamental heading — echoes the rope ring on the emblem */
.section-head { text-align: center; margin-bottom: var(--sp-7); }
.section-head h2 {
    font-size: var(--fs-2xl);
    color: var(--c-primary);
    margin-bottom: var(--sp-3);
}
.section--deep .section-head h2 { color: var(--gold-300); }

.section-head p {
    max-width: 60ch;
    margin-inline: auto;
    color: var(--c-text-muted);
    font-size: var(--fs-md);
}
.section--deep .section-head p { color: var(--cream-300); }

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}
.ornament::before, .ornament::after {
    content: "";
    height: 1px;
    width: 56px;
    background: linear-gradient(90deg, transparent, var(--c-accent));
}
.ornament::after { background: linear-gradient(270deg, transparent, var(--c-accent)); }
.ornament span {
    width: 9px; height: 9px;
    transform: rotate(45deg);
    background: var(--c-accent);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease,
                border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--c-primary); color: var(--c-text-invert); }
.btn--primary:hover { background: var(--c-primary-hover); }

.btn--gold { background: var(--c-accent); color: var(--brown-900); }
.btn--gold:hover { background: var(--gold-400); }

.btn--outline {
    border-color: var(--c-accent);
    color: var(--gold-300);
    background: transparent;
}
.btn--outline:hover { background: var(--c-accent); color: var(--brown-900); }

.btn--ghost { border-color: var(--c-border-strong); color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary-soft); }

.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
    background: var(--maroon-900);
    color: var(--cream-300);
    font-size: var(--fs-xs);
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 40px;
    flex-wrap: wrap;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold-300); }
.topbar-contact { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

.lang-switch { display: flex; align-items: center; gap: var(--sp-1); }
.lang-switch a {
    padding: 2px var(--sp-2);
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.lang-switch a[aria-current="true"] {
    background: var(--c-accent);
    color: var(--brown-900);
    font-weight: 700;
}

.site-header {
    background: var(--c-primary);
    color: var(--c-text-invert);
    border-bottom: 3px solid var(--c-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    min-height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    flex-shrink: 0;
}
.brand img {
    width: 56px; height: 54px;
    border-radius: 50%;
    border: 2px solid var(--c-accent);
    background: var(--cream-100);
}
.brand-text strong {
    display: block;
    font-size: var(--fs-md);
    line-height: 1.25;
    letter-spacing: .01em;
}
.brand-text span {
    display: block;
    font-size: var(--fs-xs);
    color: var(--gold-300);
}

.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; align-items: center; gap: var(--sp-1); }
.site-nav a {
    display: block;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,.10); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c-accent); }

.header-cta { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* The nav carries its own copy of the CTAs for the mobile drawer. Hide it on
   desktop, where the standalone .header-cta beside the nav is the visible one. */
.site-nav .header-cta { display: none; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: var(--radius-sm);
    color: inherit;
    padding: var(--sp-2) var(--sp-3);
    margin-inline-start: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 50% 38%, rgba(201,150,63,.20), transparent 62%),
        linear-gradient(160deg, var(--brown-800), var(--maroon-900) 78%);
    color: var(--c-text-invert);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; inset-inline: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
}
/* Child combinator, not descendant: the quote band further down also has a
   .container, and it must NOT inherit this two-column grid. */
.hero > .container {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: var(--sp-8);
    align-items: center;
    padding-block: var(--sp-8);
}
.hero-eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-300);
    border: 1px solid var(--gold-700);
    border-radius: 999px;
    padding: var(--sp-1) var(--sp-4);
    margin-bottom: var(--sp-5);
}
.hero h1 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--sp-5);
    text-wrap: balance;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold-300);
    display: block;
}
.hero-lead {
    font-size: var(--fs-md);
    color: var(--cream-300);
    max-width: 54ch;
    margin-bottom: var(--sp-6);
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero-emblem { justify-self: center; position: relative; }
.hero-emblem img {
    width: min(380px, 80vw);
    border-radius: 50%;
    border: 4px solid var(--gold-600);
    box-shadow: var(--shadow-lg), 0 0 0 12px rgba(201,150,63,.10);
}

/* The Patel quote is the emotional anchor of the page, so it gets its own
   band rather than being tucked under the hero as a footnote. */
.hero-quote {
    border-top: 1px solid rgba(233,203,142,.28);
    background: rgba(0,0,0,.16);
    padding-block: var(--sp-7);
}
.hero-quote blockquote {
    max-width: 62ch;
    margin-inline: auto;
    text-align: center;
    color: var(--cream-100);
    font-size: var(--fs-lg);
    line-height: var(--lh-loose);
    position: relative;
}
/* Same diamond-and-rules motif as the section headings, so the quote reads as
   part of the system rather than a one-off flourish. */
.hero-quote blockquote::before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    margin: 0 auto var(--sp-5);
    transform: rotate(45deg);
    background: var(--c-accent);
    box-shadow:
        -22px 22px 0 -4px var(--gold-600),
         22px -22px 0 -4px var(--gold-600);
}
.hero-quote cite {
    display: block;
    margin-top: var(--sp-4);
    font-style: normal;
    font-size: var(--fs-sm);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.hero-quote cite::before,
.hero-quote cite::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1px;
    vertical-align: middle;
    margin-inline: var(--sp-3);
    background: var(--gold-600);
}

/* ==========================================================================
   Intro: about + donation, side by side
   ========================================================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-6);
    align-items: stretch;
}

.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-top: 4px solid var(--c-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
}
.panel h2 {
    font-size: var(--fs-xl);
    color: var(--c-primary);
    margin-bottom: var(--sp-4);
}
.panel p + p { margin-top: var(--sp-4); }
.panel p { color: var(--c-text-muted); }

.panel--donate {
    background: linear-gradient(165deg, var(--maroon-700), var(--maroon-900));
    color: var(--c-text-invert);
    border-color: var(--gold-700);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.panel--donate h2 { color: var(--gold-300); }
.panel--donate p { color: var(--cream-300); margin-bottom: var(--sp-5); }

/* ==========================================================================
   The four action cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-5);
}

.action-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-5);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--c-accent);
}
.action-card__icon {
    width: 66px; height: 66px;
    margin: 0 auto var(--sp-4);
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--c-accent-soft);
    border: 2px solid var(--gold-400);
    color: var(--c-primary);
}
.action-card__icon svg { width: 30px; height: 30px; }
.action-card h3 {
    font-size: var(--fs-lg);
    color: var(--c-primary);
    margin-bottom: var(--sp-3);
}
.action-card p {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-5);
    flex-grow: 1;
}

/* ==========================================================================
   People: founders / achievers grid
   ========================================================================== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--sp-5);
}

.person-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform .2s ease, box-shadow .2s ease;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.person-card__photo {
    aspect-ratio: 4 / 5;
    background: var(--cream-200);
    position: relative;
    overflow: hidden;
}
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card__photo .placeholder {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--cream-300), var(--cream-200));
    color: var(--brown-500);
    font-size: var(--fs-3xl);
    font-weight: 700;
}
.person-card__body { padding: var(--sp-4); text-align: center; }
.person-card__body h3 {
    font-size: var(--fs-md);
    color: var(--c-primary);
    margin-bottom: var(--sp-1);
}
.person-card__body span {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

/* ==========================================================================
   Stories
   ========================================================================== */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-5);
}
.story-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-inline-start: 4px solid var(--c-success);
    border-radius: var(--radius);
    padding: var(--sp-5);
    text-decoration: none;
    display: block;
    transition: box-shadow .2s ease, transform .2s ease;
}
.story-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.story-card time {
    font-size: var(--fs-xs);
    color: var(--c-success);
    font-weight: 700;
}
.story-card h3 {
    font-size: var(--fs-md);
    color: var(--c-primary);
    margin-block: var(--sp-2) var(--sp-3);
}
.story-card p { font-size: var(--fs-sm); color: var(--c-text-muted); }

/* --- Impact counters ---------------------------------------------------- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-5);
    text-align: center;
}
.stat b {
    display: block;
    font-size: var(--fs-3xl);
    color: var(--gold-300);
    line-height: 1.1;
}
.stat span { font-size: var(--fs-sm); color: var(--cream-300); }

/* --- Shared link ------------------------------------------------------- */
.more-link { text-align: center; margin-top: var(--sp-6); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--brown-900);
    color: var(--cream-300);
    padding-block: var(--sp-8) var(--sp-5);
    font-size: var(--fs-sm);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--sp-6);
}
.site-footer h3 {
    font-size: var(--fs-base);
    color: var(--gold-300);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid rgba(233,203,142,.22);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer li + li { margin-top: var(--sp-2); }
.site-footer p { color: var(--brown-300); }

.footer-brand { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-brand img {
    width: 60px; height: 58px;
    border-radius: 50%;
    border: 2px solid var(--gold-600);
    flex-shrink: 0;
}
.footer-brand strong { color: var(--cream-100); font-size: var(--fs-md); }

.footer-share {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
    flex-wrap: wrap;
}
.footer-share span { font-size: var(--fs-xs); color: var(--gold-300); font-weight: 700; }
.footer-share a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(233,203,142,.35);
    color: var(--cream-300);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-share a:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--brown-900);
}
.footer-share svg { width: 18px; height: 18px; }

.footer-contact li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 5px; color: var(--gold-500); }

.footer-bottom {
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid rgba(233,203,142,.18);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    color: var(--brown-300);
}
.footer-bottom ul { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
    .hero > .container { grid-template-columns: 1fr; text-align: center; padding-block: var(--sp-7); }
    .hero-lead { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-emblem { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

    .site-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: var(--c-primary);
        border-bottom: 3px solid var(--c-accent);
        padding: var(--sp-4) var(--sp-5);
        box-shadow: var(--shadow-lg);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav a { padding: var(--sp-3); border-bottom: 1px solid rgba(255,255,255,.12); }

    .header-cta { display: none; }
    .site-nav .header-cta {
        display: flex;
        margin-top: var(--sp-4);
        flex-direction: column;
    }

    .intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    :root { --fs-4xl: 2.25rem; --fs-3xl: 1.875rem; --fs-2xl: 1.625rem; }
    .topbar-contact { display: none; }
    .topbar .container { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand img { width: 46px; height: 44px; }
    .section { padding-block: var(--sp-7); }
}

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

@media print {
    .topbar, .site-header, .hero-actions, .site-footer { display: none; }
}

/* --- इस माह के सक्रिय सदस्य -------------------------------------------------
   Names only, no numbers, no order that reads as a ranking. A visible league
   table invites gaming at the top and demoralises everyone below it, so this
   is a list of thanks and nothing more. Everyone here opted in. */
.active-members {
    list-style: none; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: var(--sp-3);
    max-width: 900px; margin-inline: auto;
}
.active-members li {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: var(--sp-3) var(--sp-5);
    text-align: center;
}
.active-members__name { font-weight: 700; color: var(--c-primary); }
.active-members__place {
    display: block;
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}
