@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Telugu:wght@400;500;600;700;800&family=Noto+Serif+Telugu:wght@500;600;700;800&display=swap');

:root {
    --brown: #5a1f09;
    --dark: #321006;
    --orange: #df650d;
    --gold: #e9b34d;
    --cream: #fffaf0;
    --ink: #703014;
    --muted: #87634f;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 15px/1.75 "Noto Sans Telugu", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(var(--max), calc(100% - 44px));
    margin: auto;
}


/* TOP BAR */

.topbar {
    height: 31px;
    color: #f7d9a1;
    background: linear-gradient(100deg, #5a1d08, #3c1308);
    font-size: 11px;
}

.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-links {
    display: flex;
    gap: 20px;
}


/* HEADER */

.header {
    height: 72px;
    background: #fffdf9;
    box-shadow: 0 2px 12px #56210718;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 285px;
    height: 58px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.nav a:hover,
.nav a.active {
    color: var(--orange);
}

.button {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 25px;
    background: linear-gradient(135deg, #ed800f, #d34d08);
    color: #fff;
    box-shadow: 0 6px 13px #b54c2633;
}

.button.light {
    background: #fff;
    color: #b75218;
}

.menu {
    display: none;
    border: 0;
    background: none;
    color: var(--brown);
    font-size: 27px;
}


/* PAGE HERO */

.page-hero {
    position: relative;
    min-height: 270px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #f6ce75,
            #fff0c8,
            #e9af48
        );
}

.page-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        url('../images/hero-bg.jpg')
        center / cover;

    opacity: .42;

    mix-blend-mode: multiply;
}

.page-hero-inner {
    position: relative;
    text-align: center;
    padding: 48px 0;
}

.page-hero h1 {
    margin: 0;

    color: #6e2b13;

    font:
        800 38px/1.3
        "Noto Serif Telugu",
        serif;
}

.page-hero p {
    max-width: 720px;
    margin: 8px auto;

    color: #7e472a;
}


/* SECTIONS */

.section {
    padding: 52px 0;
}

.alt {
    background:
        linear-gradient(
            120deg,
            #fffdf8,
            #fff1d1
        );
}

.title {
    text-align: center;
    margin-bottom: 28px;
}

.title h2 {
    margin: 0;

    font:
        800 28px/1.35
        "Noto Serif Telugu",
        serif;
}

.title p {
    max-width: 720px;
    margin: 7px auto;

    color: var(--muted);
}


/* TWO COLUMN */

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.portrait {
    width: 100%;
    max-width: 460px;
    max-height: 500px;

    object-fit: contain;

    margin: auto;

    filter:
        drop-shadow(
            0 10px 18px
            #4b1d1022
        );
}


/* CARDS */

.cards {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.card {
    padding: 24px;

    background: #fff;

    border:
        1px solid
        #edcf9d;

    border-radius: 12px;

    box-shadow:
        0 7px 20px
        #54230912;
}

.card h3 {
    margin: 0 0 8px;

    font:
        700 19px
        "Noto Serif Telugu",
        serif;
}

.card p {
    margin: 0;
    color: #785846;
}

.icon {
    font-size: 30px;
    color: var(--orange);
}


/* GOLD BANNER */

.gold-banner {
    padding: 28px 0;

    background:
        linear-gradient(
            90deg,
            #ffd66f,
            #fff7de 48%,
            #e9b44c
        );
}

.gold-inner {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 22px;

    text-align: center;
}

.gold-inner img {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

.gold-inner h2 {
    margin: 0;

    color: #cf2a60;

    font:
        800 32px
        "Noto Serif Telugu",
        serif;
}

.gold-inner p {
    margin: 0;
    font-weight: 700;
}


/* PROGRAMS */

.programs {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.program {
    overflow: hidden;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 7px 20px
        #54230918;
}

.program-img {
    height: 145px;

    position: relative;

    background:
        url('../images/hero-bg.jpg')
        center / cover;
}

.date {
    position: absolute;

    left: 14px;
    bottom: -21px;

    padding: 4px 11px;

    background: var(--orange);
    color: #fff;

    border-radius: 7px;

    text-align: center;
}

.date strong {
    display: block;
    font-size: 19px;
}

.program-body {
    padding: 30px 17px 17px;
}

.program-body h3 {
    margin: 0;

    font:
        700 18px
        "Noto Serif Telugu",
        serif;
}

.program-body p {
    margin: 4px 0;

    color: #785846;
    font-size: 13px;
}


/* QUOTE */

.quote {
    position: relative;

    overflow: hidden;

    padding: 45px 0;

    background: #f2cb78;

    text-align: center;
}

.quote::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        url('../images/hero-bg.jpg')
        center / cover;

    opacity: .38;

    mix-blend-mode: multiply;
}

.quote-inner {
    position: relative;
}

.quote blockquote {
    max-width: 850px;

    margin: 0 auto 8px;

    font:
        800 25px/1.55
        "Noto Serif Telugu",
        serif;
}

.quote small {
    font-weight: 800;
}


/* GALLERY */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.gallery figure {
    margin: 0;

    overflow: hidden;

    background: #fff;

    border-radius: 10px;

    box-shadow:
        0 5px 15px
        #54230915;
}

.gallery img {
    width: 100%;
    height: 190px;

    object-fit: cover;

    background: #e9c675;

    transition:
        transform .3s ease;
}

.gallery figure:hover img {
    transform: scale(1.04);
}

.gallery figcaption {
    padding: 8px;

    text-align: center;

    font-size: 12px;
    font-weight: 700;
}


/* CONTACT */

.contact {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 24px;
}

.box {
    padding: 25px;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 7px 20px
        #54230912;
}

.box h3 {
    margin-top: 0;

    font:
        700 20px
        "Noto Serif Telugu",
        serif;
}

.fields {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}

.field {
    margin-bottom: 13px;
}

.field label {
    display: block;

    font-size: 13px;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;

    padding: 10px;

    border:
        1px solid
        #dfc9aa;

    border-radius: 8px;

    background: #fffdf9;

    font: inherit;
}

.field textarea {
    min-height: 120px;
}


/* NOTICE */

.notice {
    padding: 13px 16px;

    border-left:
        4px solid
        var(--orange);

    background: #fff5df;
}


/* DONATION */

.donation {
    padding: 35px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #fff3cf,
            #fffdf8
        );

    border:
        1px solid
        #e5c17b;

    border-radius: 14px;
}

.donation img {
    width: 110px;
    height: 110px;

    object-fit: contain;

    margin: auto;
}

.donation h2 {
    font:
        800 27px
        "Noto Serif Telugu",
        serif;
}


/* SEVA */

.seva {
    color: #f5d4a2;

    background:
        linear-gradient(
            100deg,
            #662506,
            #3c1407
        );
}

.seva-inner {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 18px 0;
}

.seva h2 {
    margin: 0;

    color: #fff;

    font:
        700 20px
        "Noto Serif Telugu",
        serif;
}

.seva p {
    margin: 2px 0;

    font-size: 12px;
}

.seva .button {
    margin-left: auto;
}


/* FOOTER */

footer {
    padding: 28px 0 10px;

    background:
        linear-gradient(
            100deg,
            #48200c,
            #2a0e06
        );

    color: #e7caa1;

    font-size: 12px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr 1fr 1.2fr;

    gap: 35px;
}

.footer-logo {
    width: 285px;
    height: 58px;

    object-fit: contain;
}

.footer-grid h3 {
    color: #f6d298;

    font:
        700 16px
        "Noto Serif Telugu",
        serif;
}

.footer-grid p {
    margin: 5px 0;
}

.footer-grid > div:nth-child(2) a {
    display: block;
    margin: 3px 0;
}

.copyright {
    border-top:
        1px solid
        #ffffff22;

    margin-top: 18px;

    padding-top: 9px;

    text-align: center;

    font-size: 10px;
}


/* MOBILE */

@media (max-width: 800px) {

    .menu {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav.open {
        position: absolute;

        top: 72px;
        left: 14px;
        right: 14px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 12px;

        background: #fff;

        box-shadow:
            0 12px 25px
            #0002;
    }

    .nav.open a {
        padding: 9px;
    }

    .two,
    .contact {
        grid-template-columns: 1fr;
    }

    .cards,
    .programs {
        grid-template-columns:
            1fr 1fr;
    }

    .gallery {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .brand img {
        width: 220px;
    }
}


@media (max-width: 520px) {

    .container {
        width:
            calc(100% - 28px);
    }

    .page-hero h1 {
        font-size: 29px;
    }

    .cards,
    .programs {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .gallery img {
        height: 145px;
    }

    .gold-inner img {
        width: 75px;
        height: 75px;
    }

    .gold-inner h2 {
        font-size: 23px;
    }

    .seva-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .seva .button {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .fields {
        grid-template-columns: 1fr;
    }
}