* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maroon: #741b1b;
    --maroon-dark: #421010;
    --red: #9c2929;
    --cream: #fffaf3;
    --cream-dark: #f5eadb;
    --gold-light: #f3d7ae;
    --text: #302522;
    --muted: #756963;
    --white: #ffffff;
    --border: #eadcca;
    --shadow: 0 18px 45px rgba(66, 26, 18, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Noto Sans Malayalam",
        "Manjari",
        sans-serif;

    background: var(--cream);

    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: min(1120px, 92%);

    margin-left: auto;
    margin-right: auto;
}


/* =====================================================
   LOADER
===================================================== */

.page-loader {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--cream);

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.page-loader.hide {
    opacity: 0;

    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-om {
    font-size: 65px;

    color: var(--maroon);

    line-height: 1;

    animation:
        loaderPulse 1.2s ease-in-out infinite;
}

.loader-line {
    width: 70px;

    height: 2px;

    background: var(--maroon);

    margin: 15px auto 10px;

    animation:
        loaderLine 1.2s ease-in-out infinite;
}

.loader-text {
    font-size: 12px;

    letter-spacing: 3px;

    color: var(--maroon);
}

@keyframes loaderPulse {

    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }

}

@keyframes loaderLine {

    0% {
        width: 35px;
    }

    50% {
        width: 80px;
    }

    100% {
        width: 35px;
    }

}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        rgba(255, 250, 243, 0.96);

    border-bottom:
        1px solid rgba(116, 27, 27, 0.10);

    backdrop-filter: blur(12px);

    transition: 0.3s ease;
}

.nav-container {
    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;

    align-items: center;

    gap: 11px;

    color: var(--maroon);
}

.logo-icon {
    width: 43px;
    height: 43px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--maroon);

    color: white;

    font-size: 24px;

    box-shadow:
        0 6px 20px
        rgba(116, 27, 27, 0.20);
}

.logo-text strong,
.logo-text small {
    display: block;

    line-height: 1.2;
}

.logo-text strong {
    font-size: 18px;
}

.logo-text small {
    margin-top: 3px;

    font-size: 11px;

    color: var(--muted);
}


/* NAV */

.navigation {
    display: flex;

    align-items: center;

    gap: 4px;
}

.navigation a {
    padding: 10px 12px;

    border-radius: 9px;

    color: #51433e;

    font-size: 14px;

    font-weight: 600;

    transition: 0.25s ease;
}

.navigation a:hover {
    background: #f3e7d7;

    color: var(--maroon);
}


/* MENU BUTTON */

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background: transparent;

    cursor: pointer;

    padding: 8px;
}

.menu-button span {
    display: block;

    height: 2px;

    background: var(--maroon);

    margin: 6px 0;

    border-radius: 4px;

    transition: 0.3s;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #3e0d0d,
            #741b1b 55%,
            #9c3923
        );
}

.hero-background {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 72% 40%,
            rgba(255, 218, 169, 0.16),
            transparent 32%
        );
}

.hero-decoration {
    position: absolute;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 50%;
}

.hero-decoration-one {
    width: 650px;
    height: 650px;

    right: -300px;
    top: -220px;
}

.hero-decoration-two {
    width: 400px;
    height: 400px;

    left: -260px;
    bottom: -250px;
}

.hero-container {
    position: relative;

    z-index: 2;
}

.hero-content {
    max-width: 850px;

    padding-top: 80px;

    color: white;
}

.hero-label {
    display: inline-block;

    padding: 7px 16px;

    margin-bottom: 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.30);

    border-radius: 30px;

    font-size: 14px;

    background:
        rgba(255, 255, 255, 0.06);
}

.hero h1 {
    font-size:
        clamp(42px, 7vw, 78px);

    line-height: 1.15;

    letter-spacing: -2px;

    font-weight: 800;
}

.hero h1 span {
    display: block;

    color: var(--gold-light);

    font-weight: 500;
}

.hero p {
    max-width: 620px;

    margin-top: 22px;

    margin-bottom: 30px;

    color: #f8e8db;

    font-size: 18px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


/* =====================================================
   BUTTONS
===================================================== */

.button {
    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 22px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 700;

    transition: 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-white {
    background: white;

    color: var(--maroon);
}

.button-outline {
    border:
        1px solid
        rgba(255, 255, 255, 0.55);

    color: white;
}

.button-outline:hover {
    background: white;

    color: var(--maroon);
}

.button-maroon {
    background: var(--maroon);

    color: white;
}

.button-whatsapp {
    background: #198754;

    color: white;
}

.scroll-button {
    position: absolute;

    z-index: 3;

    bottom: 25px;

    left: 50%;

    transform: translateX(-50%);

    width: 42px;
    height: 42px;

    border:
        1px solid
        rgba(255, 255, 255, 0.30);

    border-radius: 50%;

    display: grid;

    place-items: center;

    color: white;

    animation:
        scrollDown 1.5s infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        transform:
            translate(-50%, 0);
    }

    50% {
        transform:
            translate(-50%, 7px);
    }

}


/* =====================================================
   COMMON SECTIONS
===================================================== */

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--maroon);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.section-label.light {
    color: #eac6a4;
}

.section h2 {
    margin-bottom: 18px;

    color: #362522;

    font-size:
        clamp(30px, 4vw, 46px);

    line-height: 1.25;
}

.section h2 span {
    color: var(--maroon);
}

.section-heading {
    max-width: 650px;

    margin:
        0 auto 45px;

    text-align: center;
}

.section-heading p {
    color: var(--muted);
}


/* =====================================================
   ABOUT
===================================================== */

.about-section {
    background: var(--cream);
}

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 75px;

    align-items: center;
}

.about-image {
    min-height: 470px;

    overflow: hidden;

    border-radius: 28px;

    box-shadow: var(--shadow);

    background: #e8d8c1;
}

.placeholder-image {
    width: 100%;
    height: 100%;

    min-height: 470px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 8px;

    color: var(--maroon);

    background:
        radial-gradient(
            circle,
            #fff7e9,
            #ead6bc
        );
}

.placeholder-icon {
    font-size: 100px;
}

.about-content > p {
    color: var(--muted);

    margin-bottom: 14px;
}

.about-features {
    display: flex;

    gap: 12px;

    margin-top: 28px;
}

.feature-box {
    flex: 1;

    padding: 15px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 14px;
}

.feature-box strong {
    display: block;

    color: var(--maroon);

    font-size: 13px;
}

.feature-box span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 12px;
}


/* =====================================================
   POOJA
===================================================== */

.pooja-section {
    background: #f8f0e4;
}

.pooja-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.pooja-card {
    padding: 28px 22px;

    background: white;

    border:
        1px solid
        #ebdfcf;

    border-radius: 20px;

    box-shadow:
        0 8px 25px
        rgba(75, 30, 20, 0.04);

    transition: 0.3s ease;
}

.pooja-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);
}

.pooja-icon {
    margin-bottom: 15px;

    font-size: 34px;
}

.pooja-card h3 {
    margin-bottom: 8px;

    font-size: 18px;
}

.pooja-card p {
    min-height: 70px;

    color: var(--muted);

    font-size: 13px;
}

.pooja-card small {
    display: inline-block;

    margin-top: 10px;

    color: var(--maroon);

    font-size: 11px;

    font-weight: 700;
}


/* =====================================================
   EVENTS
===================================================== */

.events-section {
    background: var(--cream);
}

.events-list {
    max-width: 850px;

    margin: auto;
}

.event {
    display: grid;

    grid-template-columns:
        70px 1fr 30px;

    align-items: center;

    gap: 22px;

    padding: 23px 0;

    border-bottom:
        1px solid
        #e6d9ca;
}

.event-number {
    text-align: center;

    color: var(--maroon);

    font-size: 25px;

    font-weight: 700;
}

.event-content h3 {
    margin-bottom: 3px;

    font-size: 19px;
}

.event-content p {
    color: var(--muted);

    font-size: 13px;
}

.event-arrow {
    color: var(--maroon);

    font-size: 22px;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-section {
    background: #f8f0e4;
}

.gallery-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    grid-auto-rows: 180px;

    gap: 14px;
}

.gallery-box {
    overflow: hidden;

    border-radius: 18px;

    background: #e6d4bd;
}

.gallery-large {
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    font-size: 52px;

    background:
        linear-gradient(
            135deg,
            #f4e8d4,
            #dfc7a9
        );

    color: var(--maroon);
}

.gallery-placeholder small {
    font-size: 11px;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #795f51;
}


/* =====================================================
   CTA
===================================================== */

.cta-section {
    padding: 60px 0;

    background: var(--maroon);

    color: white;
}

.cta-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.cta-container h2 {
    max-width: 700px;

    margin: 0;

    color: white;

    font-size:
        clamp(25px, 3.5vw, 40px);

    line-height: 1.3;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-section {
    background: white;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;
}

.contact-content > p {
    color: var(--muted);

    margin-bottom: 25px;
}

.contact-item {
    display: flex;

    gap: 15px;

    margin: 18px 0;
}

.contact-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background: #f7ebdb;
}

.contact-item strong {
    font-size: 14px;
}

.contact-item p {
    margin-top: 2px;

    color: var(--muted);

    font-size: 13px;
}

.contact-item a {
    color: var(--maroon);

    font-weight: 600;
}

.contact-buttons {
    display: flex;

    gap: 10px;

    margin-top: 28px;
}


/* MAP */

.map-box {
    min-height: 430px;

    overflow: hidden;

    border-radius: 24px;

    background: #e8dfd3;
}

.map-content {
    min-height: 430px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            #eee5d9,
            #d9c8b2
        );
}

.map-icon {
    font-size: 52px;
}

.map-content h3 {
    margin-top: 8px;

    font-size: 20px;
}

.map-content p {
    max-width: 300px;

    margin-top: 5px;

    color: var(--muted);

    font-size: 13px;
}

.map-button {
    margin-top: 18px;

    color: var(--maroon);

    font-size: 13px;

    font-weight: 800;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 25px 0;

    background: #2b1714;

    color: #e9dcd1;
}

.footer-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-logo {
    display: flex;

    align-items: center;

    gap: 10px;
}

.footer-logo .logo-icon {
    width: 37px;
    height: 37px;

    font-size: 19px;
}

.footer-logo strong,
.footer-logo small {
    display: block;

    line-height: 1.2;
}

.footer-logo strong {
    font-size: 14px;
}

.footer-logo small {
    color: #bbaaa0;

    font-size: 10px;
}

.copyright {
    color: #bbaaa0;

    font-size: 11px;

    text-align: center;
}

.top-button {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border:
        1px solid
        #5b4038;

    border-radius: 50%;

    color: white;
}


/* =====================================================
   MOBILE BOTTOM
===================================================== */

.mobile-bottom-nav {
    display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .navigation a {
        padding: 9px 8px;

        font-size: 12px;
    }

    .pooja-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 70px;
    }


    /* HEADER */

    .nav-container {
        height: 68px;
    }

    .site-header {
        height: 68px;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        position: absolute;

        top: 68px;

        left: 4%;
        right: 4%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding: 8px;

        background: white;

        border-radius:
            0 0 18px 18px;

        border:
            1px solid
            #eee0cf;

        box-shadow:
            0 20px 40px
            rgba(50, 20, 10, 0.14);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        padding: 12px 14px;

        font-size: 14px;
    }


    /* HERO */

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 75px;
    }

    .hero h1 {
        letter-spacing: -1px;

        font-size:
            clamp(38px, 12vw, 58px);
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .button {
        width: 100%;
    }


    /* COMMON */

    .section {
        padding: 70px 0;
    }


    /* ABOUT */

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 38px;
    }

    .about-image {
        min-height: 330px;
    }

    .placeholder-image {
        min-height: 330px;
    }

    .about-features {
        gap: 8px;
    }

    .feature-box {
        padding: 12px 10px;
    }

    .feature-box span {
        font-size: 10px;
    }


    /* POOJA */

    .pooja-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 12px;
    }

    .pooja-card {
        padding: 22px 16px;
    }

    .pooja-card h3 {
        font-size: 16px;
    }

    .pooja-card p {
        min-height: 80px;

        font-size: 12px;
    }


    /* EVENTS */

    .event {
        grid-template-columns:
            52px 1fr 20px;

        gap: 12px;
    }

    .event-number {
        font-size: 21px;
    }

    .event-content h3 {
        font-size: 16px;
    }

    .event-content p {
        font-size: 12px;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns:
            1fr 1fr;

        grid-auto-rows: 145px;
    }

    .gallery-large {
        grid-row: span 2;
    }

    .gallery-placeholder {
        font-size: 40px;
    }


    /* CTA */

    .cta-container {
        flex-direction: column;

        align-items: flex-start;
    }

    .cta-section {
        padding: 48px 0;
    }


    /* CONTACT */

    .contact-grid {
        gap: 35px;
    }

    .map-box,
    .map-content {
        min-height: 330px;
    }


    /* FOOTER */

    .footer {
        padding-bottom: 85px;
    }

    .footer-container {
        flex-wrap: wrap;
    }

    .copyright {
        order: 3;

        width: 100%;
    }

    .top-button {
        margin-left: auto;
    }


    /* MOBILE BOTTOM NAV */

    .mobile-bottom-nav {
        position: fixed;

        z-index: 2000;

        bottom: 0;
        left: 0;
        right: 0;

        height: 66px;

        display: grid;

        grid-template-columns:
            repeat(5, 1fr);

        background: white;

        border-top:
            1px solid
            #e6dacb;

        box-shadow:
            0 -8px 25px
            rgba(50, 20, 10, 0.08);
    }

    .mobile-bottom-nav a {
        display: flex;

        align-items: center;

        justify-content: center;

        flex-direction: column;

        gap: 1px;

        color: #67534b;

        font-size: 9px;
    }

    .mobile-bottom-nav a span {
        font-size: 18px;

        line-height: 1.1;
    }

    .mobile-bottom-nav a:hover {
        color: var(--maroon);
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 390px) {

    .pooja-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .feature-box span {
        font-size: 9px;
    }

}