/* Gaumata Seva Trust — brand system (orange / amber) */
:root {
    --brand: #F47216;
    --brand-deep: #C6530A;
    --brand-soft: #FF8A3D;
    --brand-glow: rgba(244, 114, 22, 0.18);
    --ink: #1A1410;
    --ink-soft: #3D342E;
    --muted: #6B6158;
    --line: rgba(26, 20, 16, 0.12);
    --surface: #FFFAF6;
    --surface-2: #F7EDE4;
    --white: #FFFFFF;
    --success: #2F6B3A;
    --danger: #B42318;
    --radius: 4px;
    --max: 1120px;
    --nav-h: 72px;
    --font-display: "Fraunces", "Georgia", serif;
    --font-body: "Sora", "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(244, 114, 22, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(255, 138, 61, 0.1), transparent 50%),
        var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }

.container {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-deep);
    margin-bottom: 0.75rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
.btn-donate {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

.btn-primary:hover,
.btn-donate:hover {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
}

.btn-secondary,
.btn-ghost {
    background: transparent;
    color: var(--brand-deep);
    border-color: var(--brand);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: var(--brand-glow);
}

.hero .btn-secondary,
.page-hero .btn-secondary,
.band .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.75);
}

.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.band .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-donate {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(255, 250, 246, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 0;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo span {
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-menu a {
    display: block;
    padding: 0.55rem 0.7rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: var(--radius);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--brand-deep);
}

.nav-menu .btn-donate {
    color: var(--white);
    margin-left: 0.35rem;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.35rem;
    padding: 0.4rem;
    cursor: pointer;
}

/* Hero — full bleed */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: heroZoom 18s var(--ease) both;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(26, 20, 16, 0.25) 0%, rgba(26, 20, 16, 0.55) 45%, rgba(26, 20, 16, 0.88) 100%),
        linear-gradient(90deg, rgba(198, 83, 10, 0.35), transparent 55%);
}

.hero-inner {
    width: min(100% - 2.5rem, var(--max));
    margin: 0 auto;
    padding: clamp(3rem, 8vh, 5rem) 0 clamp(3.5rem, 9vh, 5.5rem);
    max-width: 40rem;
    animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-motto {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #FFD7B0;
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 500;
    max-width: 28ch;
    margin-bottom: 0.85rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
    max-width: 38ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-tagline {
    margin-top: 1.4rem;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* Page header */
.page-hero {
    position: relative;
    min-height: 42vh;
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.page-hero .hero-media img {
    animation: none;
    transform: none;
}

.page-hero-inner {
    width: min(100% - 2.5rem, var(--max));
    margin: 0 auto;
    padding: 3.5rem 0 2.75rem;
    animation: riseIn 0.7s var(--ease) both;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
    margin: 0;
}

/* Commitments — open layout, not card wall */
.commitments {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.commitment {
    padding: 1.75rem 1.25rem;
    border-right: 1px solid var(--line);
    animation: riseIn 0.7s var(--ease) both;
}

.commitment:nth-child(1) { animation-delay: 0.05s; }
.commitment:nth-child(2) { animation-delay: 0.12s; }
.commitment:nth-child(3) { animation-delay: 0.19s; }
.commitment:nth-child(4) { animation-delay: 0.26s; }
.commitment:nth-child(5) { animation-delay: 0.33s; }

.commitment:last-child { border-right: 0; }

.commitment i {
    color: var(--brand);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.commitment h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.commitment p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--muted);
}

/* Split sections */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-visual {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 360px;
}

/* People / founder portraits — never crop the crown of the head */
.split-visual.portrait {
    min-height: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #FFF3E8, #EAD9C8);
}

.split-visual.portrait img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(68vh, 560px);
    object-fit: contain;
    object-position: top center;
}

.quote-line {
    border-left: 3px solid var(--brand);
    padding-left: 1rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin: 1.25rem 0;
}

/* Project CTA band */
.band {
    background:
        linear-gradient(135deg, rgba(198, 83, 10, 0.95), rgba(244, 114, 22, 0.92)),
        var(--brand);
    color: var(--white);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

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

.band h2,
.band p {
    color: var(--white);
}

.band p { margin: 0.35rem 0 0; opacity: 0.92; }

.band .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

/* Budget table */
.budget-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--white);
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.budget-table th,
.budget-table td {
    padding: 0.95rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.budget-table th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--ink);
}

.budget-table td:last-child,
.budget-table th:last-child {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.budget-table tr.total td {
    font-weight: 700;
    background: rgba(244, 114, 22, 0.08);
    color: var(--ink);
    border-bottom: 0;
}

.budget-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* People */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.person {
    text-align: center;
}

.person img,
.person-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center top;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    padding: 14%;
    background: linear-gradient(160deg, #FFE8D4, #E8D5C4);
}

.person-photo {
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-deep);
    background: linear-gradient(145deg, #FFE4CC, var(--surface-2));
    border: 1px solid var(--line);
}

.person.featured {
    grid-column: 1 / -1;
    max-width: 200px;
    margin-inline: auto;
}

.person.featured img {
    max-width: 180px;
    margin-inline: auto;
}

.person h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.person p {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

.founder-panel {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.founder-panel img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: top center;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #FFF3E8, #EAD9C8);
}

/* Why Go-seva list */
.reason-list {
    display: grid;
    gap: 1.5rem;
}

.reason {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.reason:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.reason-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand);
    line-height: 1;
    min-width: 2rem;
}

/* Forms */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--brand-soft);
    border-color: var(--brand);
}

/* Donation */
.donation-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
}

.donation-amount {
    padding: 0.85rem;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.donation-amount.active,
.donation-amount:hover {
    border-color: var(--brand);
    background: var(--brand-glow);
    color: var(--brand-deep);
}

.payment-stack {
    display: grid;
    gap: 1.75rem;
}

.payment-block {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.payment-block:first-child {
    border-top: 0;
    padding-top: 0;
}

.payment-block h3,
.payment-block h4 {
    font-family: var(--font-body);
}

.upi-qr-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1rem;
}

.bank-details p {
    margin-bottom: 0.35rem;
}

.side-panel {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.5rem;
}

.side-panel h3 {
    font-family: var(--font-body);
    margin-bottom: 0.75rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.gallery-grid img,
.gallery-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: pointer;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    font-weight: 500;
}

.filter-btn.active {
    border-color: var(--brand);
    color: var(--brand-deep);
    background: var(--brand-glow);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
}

.contact-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.contact-list i {
    color: var(--brand);
    margin-top: 0.2rem;
}

.map-embed {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 1.1rem 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink);
}

.faq-item .faq-body {
    display: none;
    padding-bottom: 1.1rem;
    color: var(--muted);
}

.faq-item.open .faq-body {
    display: block;
}

/* Footer */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    padding: 3.5rem 0 1.5rem;
    margin-top: 2rem;
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer a:hover {
    color: var(--brand-soft);
}

.footer p,
.footer li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer li {
    margin-bottom: 0.45rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

/* Facilities / process */
.facility-list,
.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.facility-item h3,
.process-steps h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.step-num {
    font-family: var(--font-display);
    color: var(--brand);
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.35rem;
}

/* Event strip */
.event-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.event-strip figure {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.event-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.event-strip figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(26, 20, 16, 0.85));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 16, 0.9);
    z-index: 2000;
    padding: 2rem;
}

.image-modal .modal-content {
    max-width: 900px;
    margin: 4vh auto 0;
    position: relative;
}

.image-modal img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -2rem;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.image-caption {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-top: 0.75rem;
}

/* Legal */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.4rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
    color: var(--ink-soft);
}

/* Animations */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}

/* Compat aliases for older class names still used in pages */
.section-header { max-width: 40rem; margin-bottom: 2.5rem; }
.section-header.center,
.section-header.text-center { margin-inline: auto; text-align: center; }
.section-header p { color: var(--muted); }

/* Language switch */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.35rem;
    padding: 0.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.55rem;
    border-radius: 3px;
    cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
    background: var(--brand);
    color: var(--white);
}

body.lang-te {
    font-family: "Noto Sans Telugu", var(--font-body);
}

body.lang-te h1,
body.lang-te h2,
body.lang-te h3,
body.lang-te h4,
body.lang-te .hero-brand,
body.lang-te .logo span {
    font-family: "Noto Sans Telugu", var(--font-display);
    line-height: 1.35;
}

body.lang-te .hero-motto {
    font-family: var(--font-display);
}

/* Form feedback */
.form-status {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}

.form-status.show { display: block; }
.form-status.success {
    background: rgba(47, 107, 58, 0.1);
    color: var(--success);
    border: 1px solid rgba(47, 107, 58, 0.25);
}
.form-status.error {
    background: rgba(180, 35, 24, 0.08);
    color: var(--danger);
    border: 1px solid rgba(180, 35, 24, 0.2);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.budget-wrap,
.gallery-grid,
.split-visual,
.map-embed {
    max-width: 100%;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

iframe.map-embed {
    height: auto;
    min-height: 280px;
}

/* Responsive — hamburger + stacked layouts from tablet width */
@media (max-width: 1100px) {
    :root {
        --nav-h: 64px;
    }

    .container {
        width: min(100% - 1.5rem, var(--max));
    }

    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

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

    .commitment:nth-child(2n) {
        border-right: 0;
    }

    .commitment {
        border-bottom: 1px solid var(--line);
    }

    .split,
    .founder-panel,
    .donation-layout,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .split.reverse { direction: ltr; }

    .split-visual img {
        min-height: 240px;
        max-height: 420px;
        width: 100%;
    }

    .split-visual.portrait {
        min-height: 0;
    }

    .split-visual.portrait img,
    .founder-panel img {
        min-height: 0;
        max-height: none;
        height: auto;
        width: 100%;
        object-fit: contain;
        object-position: top center;
    }

    .founder-panel {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: 0;
    }

    .founder-panel img {
        max-width: 320px;
        justify-self: start;
    }

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

    .facility-list,
    .process-steps,
    .event-strip {
        grid-template-columns: 1fr;
    }

    .band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .band-inner .btn {
        width: 100%;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        min-width: 44px;
        min-height: 44px;
        z-index: 1001;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.15rem;
        max-height: calc(100vh - var(--nav-h));
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 12px 24px rgba(26, 20, 16, 0.08);
        z-index: 999;
    }

    .nav-menu.active { display: flex; }

    .nav-menu a {
        padding: 0.85rem 0.75rem;
        font-size: 0.95rem;
    }

    .nav-menu .btn-donate {
        margin: 0.5rem 0 0;
        text-align: center;
        padding: 0.85rem 1rem;
        width: 100%;
    }

    .lang-switch {
        margin: 0.65rem 0 0.25rem;
        width: fit-content;
    }

    .hero {
        min-height: calc(100svh - var(--nav-h));
        min-height: calc(100vh - var(--nav-h));
    }

    .hero-inner,
    .page-hero-inner {
        padding-bottom: 2.5rem;
    }

    .page-hero {
        min-height: 34vh;
    }

    .budget-table th,
    .budget-table td {
        padding: 0.75rem 0.8rem;
        font-size: 0.88rem;
    }

    .side-panel {
        padding: 1.15rem;
    }

    .hero-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 1.25rem, var(--max));
    }

    .section {
        padding: 2.75rem 0;
    }

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

    .commitment {
        border-right: 0;
        padding: 1.35rem 1rem;
    }

    .amount-options {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .logo span {
        font-size: 0.92rem;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .hero-brand {
        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .btn,
    .btn {
        width: 100%;
    }

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

    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem;
    }

    .person.featured {
        max-width: none;
        grid-column: 1 / -1;
    }

    .person.featured img {
        max-width: 140px;
    }

    .upi-qr-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-modal {
        padding: 1rem;
    }

    .close-modal {
        top: 0.25rem;
        right: 0.5rem;
        z-index: 2;
    }

    .reason {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .filter-bar {
        gap: 0.4rem;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 0.4rem);
        text-align: center;
    }
}

@media (max-width: 380px) {
    .amount-options {
        grid-template-columns: 1fr;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
