:root {
    --brand: #ff7a53;
    --bg: #f4f2f0;
    --surface: #ffffff;
    --text: #212121;
    --muted: #5d5d5d;
    --border: rgba(33, 33, 33, 0.08);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    padding: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem;
    background: var(--brand);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: visible;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    font-family: inherit;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.lang-toggle.active {
    background: #fff;
    color: var(--brand);
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-search {
    display: none;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-search,
.menu-toggle {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 2rem 3rem;
}

.eyebrow {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--brand);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 3.4vw, 4.2rem);
    margin: 0;
    line-height: 1.05;
}

.hero-copy {
    margin: 1.5rem 0 2rem;
    max-width: 38rem;
    color: var(--muted);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background: #fff;
    color: var(--brand);
}

.btn-secondary,
.btn-outline {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.hero-media {
    min-height: 540px;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(255, 122, 83, 0.14), rgba(255, 122, 83, 0.02)), url('../images/govind.jpeg') center 60%/cover no-repeat;
}

.section {
    padding: 3rem 2rem;
}

.page-header {
    max-width: 760px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background: #fff;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(29, 19, 12, 0.06);
}

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.gallery-link {
    display: block;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(29, 19, 12, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.gallery-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(29, 19, 12, 0.12);
}

.card-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.gallery-link:hover .card-overlay {
    background: rgba(255, 122, 83, 0.8);
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    background: #fff;
    border-radius: 28px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 36px rgba(29, 19, 12, 0.05);
    color: var(--muted);
}

.quote-box {
    background: #fff;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(29, 19, 12, 0.06);
    margin-top: 1rem;
}

.quote-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.quote-box strong {
    display: block;
    margin-top: 1.25rem;
    color: var(--brand);
}

.about-section {
    background: #fff;
}

.section-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.about-section h2,
.contact-section h2,
.newsletter-card h2,
.links-card h3 {
    margin: 0 0 1.2rem;
    font-size: clamp(2rem, 2.3vw, 2.6rem);
}

.about-section p {
    color: var(--muted);
    line-height: 1.8;
}

.profile-card {
    background: var(--bg);
    border-radius: 40px;
    padding: 2rem;
    text-align: center;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: url('../images/govind2.jpg') center/cover no-repeat;
    margin-bottom: 1.5rem;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.profile-socials a,
.social-links a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(33, 33, 33, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-socials a:hover,
.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(33, 33, 33, 0.12);
}

.profile-socials a img,
.social-links a img {
    width: 24px;
    height: 24px;
    display: block;
}

.contact-section {
    background: #f5f3f1;
}

.contact-form-card,
.contact-details {
    background: #fff;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(29, 19, 12, 0.06);
}

.flash-message {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 122, 83, 0.14);
    color: var(--brand);
}

.contact-form-card form {
    display: grid;
    gap: 1rem;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1rem 1.25rem;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 1rem) calc(1rem + 2px), calc(100% - 0.75rem) calc(1rem + 2px);
    background-size: 0.5rem 0.5rem, 0.5rem 0.5rem;
    background-repeat: no-repeat;
}

.contact-details .detail-item {
    margin-bottom: 1.5rem;
}

.contact-details strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brand);
}

.contact-details p {
    margin: 0.25rem 0;
    color: var(--muted);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.newsletter-section {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.newsletter-card,
.links-card {
    background: var(--brand);
    color: #fff;
    border-radius: 40px;
    padding: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    border-radius: 999px;
    padding: 1rem 1.25rem;
    border: none;
}

.newsletter-form button {
    border: none;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    padding: 1rem 1.75rem;
    cursor: pointer;
}

.links-card h3 {
    margin-bottom: 1.5rem;
}

.donate-buttons {
    display: grid;
    gap: 1rem;
}

.donate-buttons button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
}

.footer-bar {
    padding: 1.5rem 2rem 2.5rem;
    text-align: center;
    color: rgba(33, 33, 33, 0.6);
}

.footer-bar p {
    margin: 0;
}

.footer-bar a {
    color: #ff7a53;
    text-decoration: none;
    font-weight: 700;
}

.footer-bar a:hover,
.footer-bar a:focus {
    color: #c24f35;
}

@media (max-width: 980px) {

    .topbar,
    .hero-section,
    .section-grid,
    .contact-grid,
    .newsletter-section {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 1rem 1rem 1.25rem;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        background: rgba(255, 122, 83, 0.96);
        padding: 1rem 1.25rem;
        border-radius: 24px;
        width: min(280px, calc(100% - 2rem));
        box-shadow: 0 28px 60px rgba(33, 33, 33, 0.16);
        z-index: 25;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.5rem);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        color: #fff;
        font-weight: 600;
        padding: 0.85rem 0.5rem;
        border-radius: 18px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-section {
        padding-top: 2.5rem;
        gap: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }

    .section-grid,
    .contact-grid,
    .newsletter-section {
        gap: 1.5rem;
    }

    .contact-form-card,
    .contact-details,
    .profile-card,
    .quote-box,
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 650px) {
    .page-shell {
        padding: 0 1rem;
    }

    .topbar {
        padding: 0.85rem 0.85rem 1rem;
    }

    .brand {
        width: 100%;
    }

    .hero-section {
        gap: 1.5rem;
    }

    .hero-media {
        min-height: 320px;
    }

    .page-header h1,
    .about-section h2,
    .contact-section h2,
    .newsletter-card h2,
    .links-card h3 {
        font-size: clamp(1.75rem, 6vw, 2.2rem);
    }

    .hero-copy,
    .section p,
    .contact-details p,
    .quote-box p {
        font-size: 0.98rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .menu-toggle {
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }

    .nav-links {
        right: 0.75rem;
        width: calc(100% - 1.5rem);
    }
}

@media (max-width: 650px) {
    .page-shell {
        padding: 0;
    }

    .topbar {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .hero-section {
        gap: 1.5rem;
    }

    .hero-media {
        min-height: 360px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}