
/* ==========================================
   TempleNadu — Main Stylesheet
   ========================================== */

:root {
    --forest-green: #174b35;
    --deep-green: #103b2b;
    --antique-gold: #b08d45;
    --light-gold: #e3c984;
    --white: #ffffff;
    --off-white: #f8f8f4;
    --text-dark: #26352d;
    --text-muted: #68736c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

body.loader-active {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}


/* ==========================================
   CINEMATIC LOADER
   ========================================== */

.scene {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: #000;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 900ms ease,
        visibility 900ms ease;
}

.scene .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.12);
    animation: templeReveal 3.2s ease forwards;
}

.scene .sun,
.scene .light,
.scene .glint {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scene .sun {
    background: radial-gradient(
        circle at 50% 48%,
        rgba(255, 207, 113, 0.18),
        transparent 48%
    );
    opacity: 0;
    animation: sunReveal 3.2s ease forwards;
}

.scene .light {
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(255, 224, 161, 0.12) 50%,
        transparent 72%
    );
    transform: translateX(-100%);
    animation: lightSweep 2.5s ease 0.5s forwards;
}

.scene .glint {
    background: radial-gradient(
        ellipse at center,
        transparent 25%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.scene .dark-opening {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
    animation: darknessFade 3.2s ease forwards;
    pointer-events: none;
}

.scene .petal {
    position: absolute;
    z-index: 3;
    width: 7px;
    height: 12px;
    border-radius: 100% 0 100% 0;
    background: rgba(225, 191, 115, 0.8);
    opacity: 0;
    pointer-events: none;
    animation: petalFloat 4s ease-in-out infinite;
}

.scene .p1 {
    left: 18%;
    top: 22%;
    animation-delay: 0.8s;
}

.scene .p2 {
    left: 75%;
    top: 30%;
    animation-delay: 1.4s;
}

.scene .p3 {
    left: 64%;
    top: 70%;
    animation-delay: 0.5s;
}

.scene .p4 {
    left: 30%;
    top: 76%;
    animation-delay: 1.8s;
}

.scene .p5 {
    left: 83%;
    top: 57%;
    animation-delay: 1.1s;
}

.scene .skip {
    position: absolute;
    z-index: 5;
    right: 28px;
    bottom: 26px;
    padding: 10px 18px;
    border: 1px solid rgba(227, 201, 132, 0.85);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    transition:
        color 200ms ease,
        background 200ms ease;
}

.scene .skip:hover,
.scene .skip:focus-visible {
    background: var(--light-gold);
    color: #111;
    outline: none;
}

.scene.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes templeReveal {
    0% {
        opacity: 0;
        transform: scale(1.12);
    }

    35% {
        opacity: 0.45;
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes darknessFade {
    0% {
        opacity: 1;
    }

    45% {
        opacity: 0.68;
    }

    100% {
        opacity: 0.12;
    }
}

@keyframes sunReveal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes lightSweep {
    to {
        transform: translateX(100%);
    }
}

@keyframes petalFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(0deg);
    }

    30% {
        opacity: 0.7;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translateY(-65px) rotate(120deg);
    }
}


/* ==========================================
   MAIN WEBSITE REVEAL
   ========================================== */

.website {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 900ms ease,
        visibility 900ms ease;
}

.website.is-visible {
    opacity: 1;
    visibility: visible;
}


/* ==========================================
   HEADER AND BRAND
   ========================================== */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    min-height: 88px;
    padding: 14px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid #ecece6;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

/* Fallback is hidden when the logo loads. */
.brand-fallback {
    display: none;
    align-items: center;
    gap: 10px;
}

.brand-symbol {
    color: var(--antique-gold);
    font-size: 2rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--forest-green);
}

.brand-name span,
.footer-brand span {
    color: var(--antique-gold);
}

.brand-tagline {
    margin-top: 4px;
    font-size: 0.67rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Visible name beside the actual logo. */
.brand-name-visible {
    display: inline-block;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--forest-green);
    transition: transform 200ms ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.8vw, 25px);
}

.nav-link {
    position: relative;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    transition: color 200ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--forest-green);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--antique-gold);
}


/* ==========================================
   HERO SLIDESHOW
   ========================================== */

.hero {
    position: relative;
    height: min(72vh, 720px);
    min-height: 520px;
    overflow: hidden;
    background: var(--deep-green);
    color: #fff;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 26, 17, 0.78) 0%,
        rgba(5, 26, 17, 0.48) 52%,
        rgba(5, 26, 17, 0.12) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1160px, 92%);
    height: 100%;
    margin-inline: auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-eyebrow,
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--light-gold);
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    font-weight: 500;
    line-height: 1.13;
}

.hero-description {
    max-width: 590px;
    margin-top: 22px;
    color: #f4f4ed;
    font-size: 1.08rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 14px 25px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    transition:
        transform 200ms ease,
        background 200ms ease,
        color 200ms ease;
}

.primary-button {
    background: var(--antique-gold);
    color: #fff;
}

.primary-button:hover {
    background: #967434;
    transform: translateY(-2px);
}

.hero-indicators {
    position: absolute;
    z-index: 3;
    right: 5%;
    bottom: 28px;
    display: flex;
    gap: 11px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-dot.active {
    background: var(--light-gold);
    border-color: var(--light-gold);
}


/* ==========================================
   INTRODUCTION AND VISITOR CARD
   ========================================== */

.introduction {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.8fr);
    align-items: center;
    gap: 55px;
    width: min(1160px, 90%);
    margin-inline: auto;
    padding: 85px 0;
}

.intro-content .section-eyebrow,
.explore-content .section-eyebrow {
    color: var(--antique-gold);
}

.intro-content h2,
.explore-content h2 {
    margin-top: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--forest-green);
}

.intro-description {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.visitor-card {
    padding: 32px 22px;
    text-align: center;
    background: var(--off-white);
    border: 1px solid #e8e3d5;
    border-radius: 8px;
}

.visitor-icon {
    color: var(--antique-gold);
    font-size: 2.4rem;
}

.visitor-label {
    margin-top: 8px;
    color: var(--forest-green);
    font-weight: 700;
}

.visitor-number {
    margin-top: 12px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--forest-green);
    overflow-wrap: anywhere;
}

.visitor-caption {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
}


/* ==========================================
   EXPLORE SECTION
   ========================================== */

.explore-section {
    padding: 70px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    background: var(--off-white);
}

.explore-content {
    max-width: 760px;
}

.explore-content > p:not(.section-eyebrow) {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1rem;
}

.secondary-button {
    flex-shrink: 0;
    margin-top: 0;
    border-color: var(--forest-green);
    color: var(--forest-green);
    background: transparent;
}

.secondary-button:hover {
    color: #fff;
    background: var(--forest-green);
    transform: translateY(-2px);
}


/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    padding: 45px 5% 28px;
    text-align: center;
    color: #fff;
    background: var(--deep-green);
}

.footer-brand {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand span {
    color: var(--light-gold);
}

.footer-tagline {
    margin-top: 7px;
    color: #e0e8e1;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 24px;
}

.footer-links a {
    font-size: 0.88rem;
    color: #e0e8e1;
}

.footer-links a:hover {
    color: var(--light-gold);
}

.copyright {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    color: #cbd6ce;
}


/* ==========================================
   TABLET AND MOBILE
   ========================================== */

@media (max-width: 1050px) {
    .site-header {
        gap: 16px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-name-visible {
        font-size: 1.3rem;
    }

    .main-nav {
        gap: 13px;
    }

    .nav-link {
        font-size: 0.81rem;
    }
}

@media (max-width: 820px) {
    .site-header {
        min-height: 78px;
        padding: 12px 4%;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 4px;
        font-size: 0.95rem;
    }

    .nav-link.active::after {
        width: 30px;
        right: auto;
    }

    .hero {
        min-height: 490px;
        height: 68vh;
    }

    .introduction {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 60px 0;
    }

    .visitor-card {
        max-width: 450px;
        width: 100%;
        margin-inline: auto;
    }

    .explore-section {
        align-items: flex-start;
        flex-direction: column;
        padding: 55px 5%;
    }

    .secondary-button {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name,
    .brand-name-visible {
        font-size: 1.15rem;
    }

    .brand-tagline {
        font-size: 0.58rem;
    }

    .brand-symbol {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .introduction {
        padding: 48px 0;
    }

    .skip {
        right: 16px;
        bottom: 16px;
    }
}


/* ==========================================
   REDUCED MOTION ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =========================================
   TEMPLENADU - ABOUT US PAGE
   ========================================= */

.about-page {
    width: 100%;
    background: #ffffff;
    color: #333333;
}

.about-hero {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.about-hero-image {
    display: block;
    width: 100%;
    height: clamp(220px, 34vw, 480px);
    object-fit: cover;
    object-position: center;
}

.about-section {
    width: 100%;
    padding: 48px 24px;
    background: #ffffff;
}

.about-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.about-container h1,
.about-container h2 {
    margin: 0 0 22px;
    color: inherit;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.about-container h1 {
    font-size: clamp(28px, 3vw, 38px);
}

.about-container h2 {
    font-size: clamp(24px, 2.5vw, 30px);
}

.about-container p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.9;
}

.about-container p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .about-hero-image {
        height: 220px;
    }

    .about-section {
        padding: 32px 20px;
    }

    .about-container p {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* ==========================================
   TEMPLENADU - CONTACT US PAGE
   ========================================== */

.contact-page {
    width: 100%;
    background: #ffffff;
    color: var(--text-dark);
}

.contact-section {
    width: 100%;
    padding: 64px 24px 76px;
    background: #ffffff;
}

.contact-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-container h1 {
    margin: 0 0 14px;
    color: var(--forest-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.3;
}

.contact-intro {
    margin: 0 0 30px;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.contact-container p {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.9;
}

.contact-container .contact-closing {
    margin-top: 28px;
    color: var(--forest-green);
    font-weight: 700;
}

.contact-email {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #e8e8df;
}

.contact-email h2 {
    margin: 0 0 12px;
    color: var(--forest-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
}

.contact-email a {
    display: inline-block;
    color: var(--forest-green);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--antique-gold);
    text-underline-offset: 5px;
    overflow-wrap: anywhere;
}

.contact-email a:hover {
    color: var(--antique-gold);
}

@media (max-width: 600px) {
    .contact-section {
        padding: 40px 20px 52px;
    }

    .contact-container p {
        font-size: 0.96rem;
        line-height: 1.8;
    }
}

/* =========================================
   HOMEPAGE UPDATES TICKER
   Exclusive to the homepage
   ========================================= */

.home-updates {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    overflow: hidden;
    background: #174b35;
    color: #ffffff;
    border-bottom: 1px solid #b08d45;
}

.home-updates-label {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #b08d45;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.home-updates-track {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.home-updates-message {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 30px;
    padding-left: 30px;
    white-space: nowrap;
    animation: templenaduTickerScroll 32s linear infinite;
}

.home-updates-message span {
    font-size: 14px;
    line-height: 1.5;
}

.home-updates-message span[aria-hidden="true"] {
    color: #e3c984;
}

.home-updates:hover .home-updates-message {
    animation-play-state: paused;
}

@keyframes templenaduTickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 600px) {
    .home-updates {
        min-height: 42px;
    }

    .home-updates-label {
        padding: 0 12px;
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .home-updates-message {
        gap: 18px;
        padding-left: 20px;
        animation-duration: 26s;
    }

    .home-updates-message span {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-updates-track {
        overflow-x: auto;
    }

    .home-updates-message {
        animation: none;
    }

    .home-updates-message[aria-hidden="true"] {
        display: none;
    }
}

/* =========================================
   TEMPLENADU LIBRARY PAGE
   ========================================= */

.library-page {
    background: #ffffff;
    color: #26352d;
    width: 100%;
}

/* LIBRARY HERO SECTION */

.library-hero {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #34251b;
    isolation: isolate;
}

.library-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.library-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(20, 23, 17, 0.78) 0%,
        rgba(20, 23, 17, 0.52) 55%,
        rgba(20, 23, 17, 0.20) 100%
    );
}

.library-hero-content {
    position: relative;
    z-index: 1;
    width: min(1000px, 90%);
    margin: 0 auto;
    padding: 70px 0;
    text-align: center;
    color: #ffffff;
}

.library-eyebrow {
    margin: 0 0 18px;
    color: #e4c27a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.8;
}

.library-hero-content h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.15;
}

.library-hero-content > p:last-child {
    max-width: 720px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.9;
}


/* UNDER CONSTRUCTION SECTION */

.library-coming-soon {
    width: 100%;
    padding: 75px 20px 85px;
    background: #ffffff;
    text-align: center;
}

.library-coming-soon-content {
    width: min(780px, 100%);
    margin: 0 auto;
}

.library-status {
    display: inline-block;
    margin-bottom: 24px;
    padding: 9px 18px;
    border: 1px solid #d9c28e;
    border-radius: 3px;
    background: #fbf7ed;
    color: #755a24;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.library-coming-soon-content h2 {
    margin: 0 0 24px;
    color: #174b35;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500;
    line-height: 1.35;
}

.library-coming-soon-content p {
    margin: 0 auto 18px;
    color: #626b65;
    font-size: 1rem;
    line-height: 1.9;
}

.library-coming-soon-content .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    text-decoration: none;
}


/* MOBILE RESPONSIVENESS */

@media (max-width: 768px) {
    .library-hero {
        min-height: 360px;
    }

    .library-hero-image {
        object-position: center center;
    }

    .library-hero-content {
        width: 90%;
        padding: 60px 0;
    }

    .library-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .library-coming-soon {
        padding: 55px 20px 65px;
    }
}

@media (max-width: 480px) {
    .library-hero {
        min-height: 320px;
    }

    .library-hero-content h1 {
        font-size: 2.25rem;
    }

    .library-coming-soon-content h2 {
        font-size: 1.8rem;
    }

    .library-coming-soon-content p {
        font-size: 0.95rem;
    }
}

/* =========================================
   TEMPLES PAGE
   ========================================= */

.temples-page {
    width: 100%;
}

/* Hero section */

.temples-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    overflow: hidden;
    isolation: isolate;
    background: #173c2d;
}

.temples-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.temples-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(12, 31, 23, 0.82) 0%,
        rgba(12, 31, 23, 0.58) 48%,
        rgba(12, 31, 23, 0.15) 100%
    );
}

.temples-hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px;
    color: #ffffff;
}

.temples-eyebrow {
    margin: 0 0 20px;

    color: #e6c77e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.8;
}

.temples-hero-content h1 {
    max-width: 800px;
    margin: 0 0 22px;

    color: #ffffff;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
}

.temples-hero-content > p:last-child {
    max-width: 650px;
    margin: 0;

    color: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    line-height: 1.9;
}


/* Under-construction section */

.temples-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 85px 24px 95px;
    background: #fbfaf6;
    text-align: center;
}

.temples-coming-soon-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.temples-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-bottom: 25px;
    padding: 10px 17px;

    border: 1px solid #e8dcc2;
    border-radius: 30px;
    background: #f5efe2;

    color: #785c29;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.temples-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;

    border-radius: 50%;
    background: #b08d45;
}

.temples-coming-soon-content h2 {
    margin: 0 0 22px;

    color: #174b35;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.3;
}

.temples-coming-soon-content p {
    max-width: 700px;
    margin: 0 auto 18px;

    color: #5c625d;
    font-size: 16px;
    line-height: 1.9;
}

.temples-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 18px;
    padding: 14px 28px;

    border: 1px solid #174b35;
    border-radius: 4px;
    background: #174b35;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.temples-contact-button:hover {
    border-color: #b08d45;
    background: #103a29;
}


/* Responsive layout */

@media (max-width: 768px) {

    .temples-hero {
        min-height: 420px;
    }

    .temples-hero-image {
        object-position: 62% center;
    }

    .temples-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(12, 31, 23, 0.82),
            rgba(12, 31, 23, 0.42)
        );
    }

    .temples-hero-content {
        padding: 70px 25px;
    }

    .temples-eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    .temples-hero-content h1 {
        font-size: clamp(32px, 7vw, 44px);
    }

    .temples-hero-content > p:last-child {
        font-size: 15px;
        line-height: 1.8;
    }

    .temples-coming-soon {
        padding: 65px 22px 75px;
    }

    .temples-coming-soon-content p {
        font-size: 15px;
    }

}

@media (max-width: 480px) {

    .temples-hero {
        min-height: 390px;
    }

    .temples-hero-content {
        padding: 60px 20px;
    }

    .temples-eyebrow {
        letter-spacing: 1.5px;
    }

    .temples-coming-soon {
        padding: 55px 18px 65px;
    }

    .temples-status {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

}
/* TempleNadu visitor counter */
.visitor-card .visitor-number {
    color: #174b35;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.visitor-card .visitor-number.counterapi {
    min-height: 1.3em;
}
