/* =========================================================
   ELAALUTHU THIRUCHENTHUR MURUGAN TEMPLE
   ANNATHANAM PAGE
   PREMIUM FINAL CSS
========================================================= */


/* =========================================================
   ROOT COLORS
========================================================= */

:root {

    --cream:
        #FFF4E3;

    --cream-light:
        #FFF9F1;

    --cream-soft:
        #FFFDF8;

    --cream-dark:
        #F0DEC3;


    /* MAROON */

    --maroon:
        #7A1F2B;

    --maroon-dark:
        #5A121D;

    --maroon-deep:
        #3C080F;


    /* TERRACOTTA */

    --orange:
        #D96B27;

    --orange-dark:
        #B84D18;

    --orange-light:
        #E58A4A;


    /* GOLD */

    --gold:
        #E5A72A;

    --gold-light:
        #F6D36F;

    --gold-dark:
        #A96F10;


    /* TEXT */

    --text:
        #3B2520;

    --muted:
        #78665D;

    --muted-light:
        #927D72;


    /* SHADOW */

    --shadow:
        0 18px 48px
        rgba(
            70,
            18,
            27,
            .10
        );

    --shadow-hover:
        0 30px 70px
        rgba(
            70,
            18,
            27,
            .20
        );
}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing:
        border-box;
}


html {

    scroll-behavior:
        smooth;
}


body {

    margin:
        0;

    padding:
        0;

    background:
        var(--cream);

    color:
        var(--text);

    font-family:
        "Noto Sans Tamil",
        "Nirmala UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing:
        antialiased;
}


/* =========================================================
   PAGE
========================================================= */

.annathanam-page {

    width:
        100%;

    min-height:
        100vh;

    overflow:
        hidden;

    background:

        linear-gradient(
            180deg,
            #FFF4E3 0%,
            #F0DEC3 100%
        );
}


/* =========================================================
   HERO
========================================================= */

.annathanam-hero {

    position:
        relative;

    min-height:
        325px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    overflow:
        hidden;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(
                229,
                167,
                42,
                .18
            ),
            transparent 32%
        ),

        radial-gradient(
            circle at 0% 100%,
            rgba(
                217,
                107,
                39,
                .14
            ),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #3C080F 0%,
            #5A121D 30%,
            #7A1F2B 58%,
            #4C0C16 100%
        );
}


/* =========================================================
   HERO GLOW
========================================================= */

.hero-glow {

    position:
        absolute;

    width:
        600px;

    height:
        600px;

    top:
        -500px;

    left:
        50%;

    transform:
        translateX(-50%);

    border-radius:
        50%;

    background:

        radial-gradient(
            circle,
            rgba(
                246,
                211,
                111,
                .18
            ),
            transparent 65%
        );

    pointer-events:
        none;
}


/* =========================================================
   HERO INNER
========================================================= */

.hero-inner {

    position:
        relative;

    z-index:
        2;

    width:
        100%;

    max-width:
        850px;

    padding:
        65px 22px 70px;
}


/* =========================================================
   HERO LABEL
========================================================= */

.hero-label {

    margin-bottom:
        13px;

    color:
        var(--gold-light);

    font-family:
        Georgia,
        serif;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        6px;
}


/* =========================================================
   HERO SYMBOL
========================================================= */

.hero-symbol {

    margin-bottom:
        6px;

    color:
        var(--gold);

    font-size:
        20px;

    animation:
        templeGlow 3s ease-in-out infinite;
}


@keyframes templeGlow {

    0%,
    100% {

        opacity:
            .65;

        transform:
            scale(1);
    }

    50% {

        opacity:
            1;

        transform:
            scale(1.12);
    }
}


/* =========================================================
   HERO TITLE
========================================================= */

.annathanam-hero h1 {

    margin:
        0;

    color:
        #FFFFFF;

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    font-weight:
        800;

    line-height:
        1.25;

    text-shadow:
        0 8px 25px
        rgba(
            0,
            0,
            0,
            .24
        );
}


.annathanam-hero h1 span {

    display:
        block;

    margin-top:
        8px;

    color:
        rgba(
            255,
            255,
            255,
            .72
        );

    font-family:
        Georgia,
        serif;

    font-size:
        18px;

    font-weight:
        400;

    letter-spacing:
        1px;
}


/* =========================================================
   HERO LINE
========================================================= */

.hero-line {

    position:
        relative;

    width:
        72px;

    height:
        3px;

    margin:
        20px auto;

    border-radius:
        20px;

    background:

        linear-gradient(
            90deg,
            var(--orange),
            var(--gold-light),
            var(--orange)
        );
}


.hero-line::before,
.hero-line::after {

    content:
        "";

    display:
        inline-block;

    position:
        absolute;

    top:
        50%;

    width:
        6px;

    height:
        6px;

    border-radius:
        50%;

    background:
        var(--gold-light);

    transform:
        translateY(-50%);
}


.hero-line::before {

    left:
        -14px;
}


.hero-line::after {

    right:
        -14px;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.annathanam-hero p {

    max-width:
        700px;

    margin:
        auto;

    color:
        rgba(
            255,
            255,
            255,
            .74
        );

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        14px;

    line-height:
        1.9;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.annathanam-section {

    position:
        relative;

    padding:
        55px 4% 100px;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(
                229,
                167,
                42,
                .11
            ),
            transparent 30%
        ),

        linear-gradient(
            180deg,
            #FFF4E3,
            #F0DEC3
        );
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width:
        min(
            1450px,
            100%
        );

    margin:
        0 auto;
}


/* =========================================================
   BACK AREA
========================================================= */

.back-area {

    margin-bottom:
        45px;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-button {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        10px 18px;

    border:
        1px solid
        rgba(
            122,
            31,
            43,
            .20
        );

    border-radius:
        50px;

    background:
        rgba(
            255,
            255,
            255,
            .72
        );

    color:
        var(--maroon);

    text-decoration:
        none;

    font-size:
        12px;

    font-weight:
        800;

    box-shadow:
        0 8px 25px
        rgba(
            74,
            15,
            24,
            .06
        );

    transition:
        all .3s ease;
}


.back-button span {

    width:
        27px;

    height:
        27px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        var(--maroon);

    color:
        var(--gold);

    font-family:
        Arial,
        sans-serif;
}


.back-button:hover {

    background:
        var(--maroon);

    color:
        #FFFFFF;

    border-color:
        var(--maroon);

    transform:
        translateX(-4px);

    box-shadow:
        0 12px 30px
        rgba(
            74,
            15,
            24,
            .18
        );
}


.back-button:hover span {

    background:
        var(--gold);

    color:
        var(--maroon);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {

    max-width:
        850px;

    margin:
        0 auto 48px;

    text-align:
        center;
}


.section-label {

    margin-bottom:
        12px;

    color:
        var(--orange);

    font-family:
        Georgia,
        serif;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        5px;
}


.section-heading h2 {

    margin:
        0;

    color:
        var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(
            34px,
            4vw,
            50px
        );

    font-weight:
        800;

    line-height:
        1.35;
}


/* =========================================================
   HEADING DECORATION
========================================================= */

.heading-decoration {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    margin:
        17px auto;
}


.heading-decoration span {

    width:
        40px;

    height:
        2px;

    border-radius:
        20px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--gold)
        );
}


.heading-decoration span:last-child {

    background:

        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}


.heading-decoration i {

    color:
        var(--gold);

    font-size:
        12px;

    font-style:
        normal;
}


/* =========================================================
   SECTION DESCRIPTION
========================================================= */

.section-heading p {

    max-width:
        720px;

    margin:
        auto;

    color:
        var(--muted);

    font-size:
        14px;

    line-height:
        1.9;
}


/* =========================================================
   03 CARD GRID
========================================================= */

.annathanam-grid {

    width:
        min(
            1250px,
            100%
        );

    margin:
        0 auto;

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap:
        26px;

    align-items:
        stretch;
}


/* =========================================================
   CARD
========================================================= */

.annathanam-card {

    position:
        relative;

    min-width:
        0;

    min-height:
        525px;

    display:
        flex;

    flex-direction:
        column;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            122,
            31,
            43,
            .13
        );

    border-radius:
        22px;

    background:
        #FFFDF9;

    color:
        var(--text);

    text-decoration:
        none;

    box-shadow:
        var(--shadow);

    transform:
        translateY(0);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}


/* =========================================================
   CARD TOP ACCENT
========================================================= */

.card-accent {

    position:
        absolute;

    z-index:
        10;

    top:
        0;

    left:
        0;

    width:
        100%;

    height:
        5px;

    background:

        linear-gradient(
            90deg,
            #7A1F2B,
            #D96B27,
            #E5A72A
        );
}


.annathanam-card:nth-child(2)
.card-accent {

    background:

        linear-gradient(
            90deg,
            #D96B27,
            #E5A72A,
            #7A1F2B
        );
}


.annathanam-card:nth-child(3)
.card-accent {

    background:

        linear-gradient(
            90deg,
            #E5A72A,
            #D96B27,
            #7A1F2B
        );
}


/* =========================================================
   CARD HOVER
========================================================= */

.annathanam-card:hover {

    transform:
        translateY(-10px);

    border-color:
        rgba(
            229,
            167,
            42,
            .45
        );

    box-shadow:
        var(--shadow-hover);
}


/* =========================================================
   IMAGE
========================================================= */

.card-image {

    position:
        relative;

    height:
        245px;

    flex-shrink:
        0;

    overflow:
        hidden;

    background:

        linear-gradient(
            135deg,
            var(--maroon-deep),
            var(--maroon)
        );

    isolation:
        isolate;
}


.card-image img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .7s ease,
        filter .5s ease;
}


.annathanam-card:hover
.card-image img {

    transform:
        scale(1.08);

    filter:
        saturate(1.08)
        contrast(1.03);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image-overlay {

    position:
        absolute;

    inset:
        0;

    background:

        linear-gradient(
            to bottom,
            rgba(
                0,
                0,
                0,
                .02
            ),
            rgba(
                74,
                15,
                24,
                .48
            )
        );

    pointer-events:
        none;
}


/* =========================================================
   IMAGE SHINE
========================================================= */

.card-image::before {

    content:
        "";

    position:
        absolute;

    z-index:
        7;

    top:
        0;

    left:
        -130%;

    width:
        65%;

    height:
        100%;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(
                255,
                255,
                255,
                .20
            ),
            transparent
        );

    transform:
        skewX(-18deg);

    transition:
        left .8s ease;

    pointer-events:
        none;
}


.annathanam-card:hover
.card-image::before {

    left:
        140%;
}


/* =========================================================
   CARD NUMBER
========================================================= */

.card-number {

    position:
        absolute;

    z-index:
        8;

    top:
        17px;

    left:
        17px;

    width:
        43px;

    height:
        43px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .55
        );

    border-radius:
        50%;

    background:
        rgba(
            122,
            31,
            43,
            .92
        );

    color:
        #FFFFFF;

    font-family:
        Georgia,
        serif;

    font-size:
        11px;

    font-weight:
        800;

    box-shadow:
        0 7px 20px
        rgba(
            0,
            0,
            0,
            .20
        );

    transition:
        all .3s ease;
}


/* CARD 02 NUMBER */

.annathanam-card:nth-child(2)
.card-number {

    background:
        rgba(
            217,
            107,
            39,
            .94
        );
}


/* CARD 03 NUMBER */

.annathanam-card:nth-child(3)
.card-number {

    background:
        rgba(
            169,
            111,
            16,
            .94
        );
}


.annathanam-card:hover
.card-number {

    transform:
        scale(1.08);
}


/* =========================================================
   SERVICE BADGE
========================================================= */

.service-badge {

    position:
        absolute;

    z-index:
        8;

    top:
        17px;

    right:
        15px;

    padding:
        7px 12px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .45
        );

    border-radius:
        50px;

    background:
        rgba(
            74,
            15,
            24,
            .72
        );

    backdrop-filter:
        blur(8px);

    color:
        #FFFFFF;

    font-family:
        Georgia,
        serif;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.5px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.card-content {

    position:
        relative;

    z-index:
        3;

    flex:
        1;

    display:
        flex;

    flex-direction:
        column;

    padding:
        22px 23px 20px;
}


/* =========================================================
   LABEL
========================================================= */

.card-label {

    display:
        block;

    margin-bottom:
        9px;

    color:
        var(--orange);

    font-family:
        Georgia,
        serif;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        2.5px;
}


.annathanam-card:nth-child(3)
.card-label {

    color:
        var(--gold-dark);
}


/* =========================================================
   TITLE
========================================================= */

.card-content h3 {

    min-height:
        66px;

    margin:
        0 0 10px;

    color:
        var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        23px;

    font-weight:
        800;

    line-height:
        1.5;

    transition:
        color .3s ease;
}


.annathanam-card:hover
.card-content h3 {

    color:
        var(--maroon-dark);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.card-content p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        12.5px;

    line-height:
        1.85;
}


/* =========================================================
   VIEW MORE
   PREMIUM BUTTON
========================================================= */

.view-more {

    position:
        relative;

    width:
        100%;

    min-height:
        58px;

    margin-top:
        auto;

    padding:
        7px 7px 7px 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    flex-shrink:
        0;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            229,
            167,
            42,
            .48
        );

    border-radius:
        13px;

    background:
        linear-gradient(
            135deg,
            #651522 0%,
            #821D2D 48%,
            #9B2930 100%
        );

    color:
        #FFFFFF;

    font-size:
        11px;

    font-weight:
        800;

    line-height:
        1;

    box-shadow:
        0 10px 25px
        rgba(
            74,
            15,
            24,
            .18
        ),

        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            .12
        );

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.view-more::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    left:
        -125%;

    width:
        70%;

    height:
        100%;

    background:
        linear-gradient(
            105deg,
            transparent,
            rgba(
                255,
                255,
                255,
                .18
            ),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .7s ease;

    pointer-events:
        none;
}


/* =========================================================
   ARROW
========================================================= */

.arrow {

    position:
        relative;

    z-index:
        2;

    width:
        42px;

    height:
        42px;

    min-width:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

    margin-left:
        12px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .55
        );

    border-radius:
        10px;

    background:
        linear-gradient(
            145deg,
            #FFF4B7,
            #F5D36B,
            #DFA52C
        );

    color:
        #5E1721;

    font-family:
        Arial,
        sans-serif;

    font-size:
        18px;

    font-weight:
        800;

    line-height:
        1;

    box-shadow:
        0 7px 17px
        rgba(
            59,
            37,
            32,
            .24
        ),

        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            .85
        );

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.arrow::before {

    content:
        "";

    position:
        absolute;

    inset:
        4px;

    border:
        1px solid
        rgba(
            94,
            23,
            33,
            .18
        );

    border-radius:
        7px;

    pointer-events:
        none;
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.annathanam-card:hover
.view-more {

    transform:
        translateY(-2px);

    border-color:
        rgba(
            229,
            167,
            42,
            .85
        );

    box-shadow:
        0 16px 34px
        rgba(
            74,
            15,
            24,
            .24
        ),

        0 0 20px
        rgba(
            229,
            167,
            42,
            .10
        );
}


.annathanam-card:hover
.view-more::before {

    left:
        135%;
}


.annathanam-card:hover
.arrow {

    transform:
        translateX(4px);

    box-shadow:
        0 10px 22px
        rgba(
            59,
            37,
            32,
            .30
        ),

        0 0 15px
        rgba(
            246,
            211,
            111,
            .24
        );
}


/* =========================================================
   IMAGE ERROR
========================================================= */

.card-image.image-error {

    background:

        radial-gradient(
            circle at 50% 35%,
            rgba(
                229,
                167,
                42,
                .20
            ),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #4A0C15,
            #7A1F2B
        );
}


/* =========================================================
   CARD REVEAL
========================================================= */

.annathanam-card.reveal {

    opacity:
        0;

    transform:
        translateY(24px);
}


.annathanam-card.reveal.show {

    opacity:
        1;

    transform:
        translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .annathanam-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .annathanam-card {

        min-height:
            510px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .annathanam-hero {

        min-height:
            285px;
    }


    .hero-inner {

        padding:
            55px 18px 60px;
    }


    .hero-label {

        font-size:
            8px;

        letter-spacing:
            4px;
    }


    .annathanam-hero h1 {

        font-size:
            37px;
    }


    .annathanam-hero h1 span {

        font-size:
            15px;
    }


    .annathanam-hero p {

        font-size:
            13px;
    }


    .annathanam-section {

        padding:
            45px 18px 70px;
    }


    .back-area {

        margin-bottom:
            35px;
    }


    .section-heading {

        margin-bottom:
            35px;
    }


    .section-heading h2 {

        font-size:
            31px;
    }


    .section-heading p {

        font-size:
            13px;
    }


    .annathanam-grid {

        grid-template-columns:
            1fr;

        gap:
            20px;
    }


    .annathanam-card {

        min-height:
            475px;

        border-radius:
            20px;
    }


    .card-image {

        height:
            220px;
    }


    .card-content {

        padding:
            21px;
    }


    .card-content h3 {

        min-height:
            auto;

        font-size:
            22px;
    }


    .card-content p {

        font-size:
            12px;

        line-height:
            1.8;
    }


    .view-more {

        min-height:
            54px;

        padding:
            6px 6px 6px 14px;
    }


    .arrow {

        width:
            38px;

        height:
            38px;

        min-width:
            38px;

        margin-left:
            8px;

        font-size:
            16px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .annathanam-hero h1 {

        font-size:
            32px;
    }


    .annathanam-hero h1 span {

        font-size:
            14px;
    }


    .section-heading h2 {

        font-size:
            28px;
    }


    .card-image {

        height:
            210px;
    }


    .card-number {

        top:
            13px;

        left:
            13px;

        width:
            40px;

        height:
            40px;
    }


    .service-badge {

        top:
            13px;

        right:
            12px;

        padding:
            6px 9px;

        font-size:
            7px;
    }


    .card-content {

        padding:
            19px;
    }


    .card-content h3 {

        font-size:
            21px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }
}