/* =====================================================
   PREMIUM TEMPLE HEADER
===================================================== */

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {

    position: relative;

    z-index: 1000;

    width: 100%;

    background:
        rgba(255, 251, 245, 0.98);

    border-bottom:
        1px solid
        rgba(112, 25, 18, 0.08);

    box-shadow:
        0 5px 22px
        rgba(65, 20, 10, 0.07);
}


/* Elegant top line */

.site-header::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent 5%,
            #c48a17 30%,
            #edc45b 50%,
            #c48a17 70%,
            transparent 95%
        );
}


/* =====================================================
   INNER
===================================================== */

.header-inner {

    width: 90%;

    max-width: 1280px;

    min-height: 100px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;
}


/* =====================================================
   BRAND
===================================================== */

.header-brand {

    display: flex;

    align-items: center;

    gap: 15px;

    flex-shrink: 0;

    text-decoration: none;

    color: inherit;
}


.header-logo-wrap {

    position: relative;

    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #f5e7c5
        );

    border:
        1px solid
        rgba(194, 139, 25, 0.55);

    box-shadow:
        0 0 0 4px
        rgba(207, 153, 30, 0.06),

        0 7px 18px
        rgba(70, 20, 10, 0.10);
}


.header-logo-wrap::before {

    content: "";

    position: absolute;

    inset: -4px;

    border-radius: 50%;

    border:
        1px solid
        rgba(194, 139, 25, 0.22);
}


.header-logo {

    width: 58px;
    height: 58px;

    object-fit: cover;

    border-radius: 50%;

    border:
        2px solid #d2a02a;
}


/* =====================================================
   BRAND TEXT
===================================================== */

.header-brand-text {

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.header-tamil-name {

    color: #751b17;

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: 18px;

    line-height: 1.25;

    font-weight: 800;
}


.header-sub-name {

    color: #751b17;

    font-family:
        "Noto Sans Tamil",
        "Latha",
        sans-serif;

    font-size: 15px;

    line-height: 1.3;

    font-weight: 800;
}


.header-english-name {

    margin-top: 4px;

    color: #b87810;

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    line-height: 1.4;

    font-weight: 700;

    letter-spacing: 0.25px;
}


/* =====================================================
   NAVIGATION
===================================================== */

.main-navigation {

    display: flex;

    align-items: center;

    gap: 27px;

    margin: 0;

    padding: 0;
}


/* =====================================================
   NAVIGATION LINKS
===================================================== */

.main-navigation .nav-link {

    position: relative;

    display: inline-flex;

    align-items: center;

    height: 45px;

    padding: 0;

    margin: 0;

    color: #352523;

    background: transparent;

    border: none;

    border-radius: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}


/* Gold line */

.main-navigation .nav-link::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: 1px;

    width: 0;

    height: 2px;

    transform:
        translateX(-50%);

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #c88e18,
            #e3b63f
        );

    transition:
        width 0.28s ease;
}


/* Hover */

.main-navigation .nav-link:hover {

    color: #791b16;
}


.main-navigation .nav-link:hover::after {

    width: 24px;
}


/* Active */

.main-navigation .nav-link.active {

    color: #791b16;
}


.main-navigation .nav-link.active::after {

    width: 28px;
}


/* =====================================================
   CONTACT BUTTON
===================================================== */

.header-contact-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    height: 45px;

    min-width: 112px;

    margin-left: 5px;

    padding: 0 18px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #761a16,
            #941f19
        );

    border-radius: 6px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 7px 17px
        rgba(110, 25, 18, 0.17);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.header-contact-btn span {

    color: #f3cc55;

    font-size: 16px;

    transition:
        transform 0.25s ease;
}


.header-contact-btn:hover {

    color: #ffffff;

    transform:
        translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #8a201a,
            #a42720
        );

    box-shadow:
        0 10px 23px
        rgba(110, 25, 18, 0.23);
}


.header-contact-btn:hover span {

    transform:
        translateX(3px);
}


/* =====================================================
   MOBILE BUTTON
===================================================== */

.mobile-menu-btn {

    display: none;

    position: relative;

    width: 43px;
    height: 43px;

    padding: 0;

    border:
        1px solid
        rgba(117,27,23,0.15);

    border-radius: 7px;

    background:
        rgba(117,27,23,0.035);

    cursor: pointer;
}


.mobile-menu-btn span {

    position: absolute;

    left: 10px;

    width: 22px;

    height: 2px;

    border-radius: 5px;

    background: #751b17;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.mobile-menu-btn span:nth-child(1) {
    top: 13px;
}


.mobile-menu-btn span:nth-child(2) {
    top: 20px;
}


.mobile-menu-btn span:nth-child(3) {
    top: 27px;
}


/* =====================================================
   MOBILE ACTIVE
===================================================== */

.mobile-menu-btn.menu-active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}


.mobile-menu-btn.menu-active span:nth-child(2) {

    opacity: 0;
}


.mobile-menu-btn.menu-active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .header-inner {

        width: 92%;

        gap: 20px;
    }


    .main-navigation {

        gap: 18px;
    }


    .main-navigation .nav-link {

        font-size: 11px;
    }


    .header-contact-btn {

        min-width: 95px;

        padding: 0 13px;
    }

}


/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 900px) {

    .header-inner {

        min-height: 88px;
    }


    .header-logo-wrap {

        width: 62px;
        height: 62px;
    }


    .header-logo {

        width: 51px;
        height: 51px;
    }


    .header-tamil-name {

        font-size: 15px;
    }


    .header-sub-name {

        font-size: 13px;
    }


    .header-english-name {

        font-size: 8px;
    }


    .main-navigation {

        gap: 13px;
    }


    .main-navigation .nav-link {

        font-size: 10px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 760px) {

    .header-inner {

        width: 90%;

        min-height: 76px;
    }


    .header-brand {

        gap: 10px;
    }


    .header-logo-wrap {

        width: 54px;
        height: 54px;
    }


    .header-logo {

        width: 45px;
        height: 45px;
    }


    .header-tamil-name {

        font-size: 14px;
    }


    .header-sub-name {

        font-size: 12px;
    }


    .header-english-name {

        font-size: 7px;
    }


    .mobile-menu-btn {

        display: block;

        flex-shrink: 0;
    }


    .main-navigation {

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px 5%;

        background:
            rgba(255,251,245,0.99);

        border-top:
            1px solid
            rgba(117,27,23,0.08);

        box-shadow:
            0 15px 30px
            rgba(50,15,10,0.12);
    }


    .main-navigation.mobile-open {

        display: flex;
    }


    .main-navigation .nav-link {

        width: 100%;

        height: 46px;

        justify-content: flex-start;

        padding: 0 5px;

        font-size: 12px;
    }


    .main-navigation .nav-link::after {

        left: 0;

        bottom: 5px;

        transform: none;
    }


    .main-navigation .nav-link.active::after {

        width: 25px;
    }


    .header-contact-btn {

        width: 100%;

        height: 44px;

        margin: 8px 0 3px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .header-inner {

        width: 92%;

        min-height: 70px;
    }


    .header-logo-wrap {

        width: 49px;
        height: 49px;
    }


    .header-logo {

        width: 41px;
        height: 41px;
    }


    .header-brand {

        gap: 8px;
    }


    .header-tamil-name {

        font-size: 12px;
    }


    .header-sub-name {

        font-size: 10px;
    }


    .header-english-name {

        font-size: 6.5px;

        margin-top: 2px;
    }


    .mobile-menu-btn {

        width: 40px;
        height: 40px;
    }

}