/* ================= PREMIUM TEMPLE THEME ================= */
:root {
    --saffron: #e97810;
    --saffron-deep: #b64a0a;
    --gold: #d6a935;
    --gold-soft: #f5d77a;
    --maroon: #5f0b0b;
    --maroon-dark: #240707;
    --brown: #3d2417;
    --ivory: #fffaf0;
    --cream: #f8efe1;
    --beige: #ead9bd;
    --lotus: #d8758f;
    --text-dark: #2a1b13;
    --text-muted: #6f5b4b;
    --white-glass: rgba(255, 250, 240, 0.78);
    --gold-glass: rgba(214, 169, 53, 0.18);
    --shadow-soft: 0 18px 60px rgba(65, 27, 8, 0.12);
    --shadow-rich: 0 28px 80px rgba(52, 16, 5, 0.28);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 8px;
    --max-width: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 122px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: "Noto Sans Devanagari", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(245, 215, 122, 0.35), transparent 30rem),
        radial-gradient(circle at 88% 18%, rgba(216, 117, 143, 0.15), transparent 26rem),
        linear-gradient(180deg, #fff8e8 0%, #f5ead6 42%, #fffaf0 100%);
    color: var(--text-dark);
    line-height: 1.75;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(95, 11, 11, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 11, 11, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.hamburger:focus-visible,
.pill-lang:focus-visible {
    outline: 3px solid rgba(214, 169, 53, 0.85);
    outline-offset: 4px;
}

/* ================= HEADER ================= */
.pill-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 16px 18px 8px;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0.95), rgba(255, 248, 232, 0));
}

.pill-nav {
    max-width: var(--max-width);
    min-height: 76px;
    margin: auto;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(214, 169, 53, 0.28);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.82);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 20px 58px rgba(61, 36, 23, 0.14);
}

.pill-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.pill-logo img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    padding: 3px;
    background: linear-gradient(135deg, var(--gold), var(--saffron));
    box-shadow: 0 12px 28px rgba(95, 11, 11, 0.2);
}

.pill-title strong {
    display: block;
    color: var(--maroon);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.pill-title span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.25;
}

.pill-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.pill-menu a,
.mobile-menu a {
    position: relative;
    text-decoration: none;
    font-weight: 700;
    color: #4a2b1a;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pill-menu a {
    padding: 10px 13px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
}

.pill-menu a:hover {
    color: var(--maroon);
    background: rgba(214, 169, 53, 0.13);
}

.pill-menu a.active,
.mobile-menu a.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--maroon), #8c1616);
    box-shadow: 0 10px 24px rgba(95, 11, 11, 0.2);
}

.pill-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 185px;
}

.pill-btn,
.btn,
.view-all-btn,
.footer-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    isolation: isolate;
}

.pill-btn::after,
.btn::after,
.view-all-btn::after,
.footer-btn::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -65%;
    width: 50%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transition: left 0.55s ease;
    z-index: -1;
}

.pill-btn:hover::after,
.btn:hover::after,
.view-all-btn:hover::after,
.footer-btn:hover::after {
    left: 120%;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--maroon), var(--saffron-deep));
    box-shadow: 0 14px 30px rgba(95, 11, 11, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(95, 11, 11, 0.28);
}

.pill-lang {
    cursor: pointer;
    color: var(--maroon);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(214, 169, 53, 0.14);
    z-index: 10000;
}

.hamburger span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--maroon);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: min(430px, calc(100% - 28px));
    transform: translateX(-50%) translateY(-8px);
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(214, 169, 53, 0.28);
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-rich);
    opacity: 0;
}

.mobile-menu.show {
    display: flex;
    animation: mobileMenuIn 0.24s ease forwards;
}

.mobile-menu a {
    padding: 13px 18px;
    border-radius: 16px;
    text-align: center;
}

.mobile-menu a:hover {
    background: rgba(214, 169, 53, 0.14);
}

@keyframes mobileMenuIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ================= COMMON SECTION SYSTEM ================= */
section {
    width: min(var(--max-width), calc(100% - 36px));
    margin: 0 auto;
    padding: 92px 0;
}

section h2,
.services-title,
.temple-right h1,
.temple-right h2 {
    color: var(--maroon);
    letter-spacing: 0;
    line-height: 1.15;
}

section h2 {
    margin-bottom: 34px;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 900;
}

section h2::after,
.services-title::after,
.footer-box h4::after {
    content: "";
    display: block;
    width: 76px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

p {
    color: var(--text-muted);
}

strong {
    color: var(--maroon);
}

/* ================= TEMPLE / HERO SECTION ================= */
.temple-section {
    width: 100%;
    max-width: none;
    margin-top: -8px;
    padding: 98px 18px 94px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 215, 122, 0.42), transparent 26rem),
        radial-gradient(circle at 84% 12%, rgba(216, 117, 143, 0.25), transparent 23rem),
        linear-gradient(135deg, #421006 0%, #8a220d 46%, #d16c12 100%);
}

.temple-section::before,
.temple-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.temple-section::before {
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
    opacity: 0.75;
}

.temple-section::after {
    left: 0;
    right: 0;
    bottom: -1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 250, 240, 0.98));
}

.temple-wrapper {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.temple-left {
    position: relative;
}

.temple-left::before {
    content: "";
    position: absolute;
    inset: -18px 18px 90px -18px;
    border: 1px solid rgba(245, 215, 122, 0.42);
    border-radius: 30px;
    transform: rotate(-2deg);
}

.temple-left img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 238, 173, 0.42);
    border-radius: 24px;
    box-shadow: var(--shadow-rich);
}

.temple-mantra {
    position: relative;
    margin: -38px 20px 0;
    padding: 22px;
    border: 1px solid rgba(245, 215, 122, 0.35);
    border-radius: 20px;
    text-align: center;
    background: rgba(55, 13, 6, 0.68);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 48px rgba(36, 7, 7, 0.24);
}

.temple-mantra h3 {
    margin-bottom: 10px;
    color: var(--gold-soft);
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    line-height: 1.35;
}

.temple-mantra p {
    color: #fff5d2;
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    font-weight: 700;
    line-height: 1.8;
}

.temple-right {
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid rgba(255, 238, 173, 0.28);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 30px 90px rgba(36, 7, 7, 0.2);
    backdrop-filter: blur(12px);
}

.temple-right h1,
.temple-right h2 {
    margin-bottom: 24px;
    color: #fff2bf;
    font-size: clamp(2.15rem, 5vw, 4.7rem);
    font-weight: 900;
    text-shadow: 0 12px 32px rgba(36, 7, 7, 0.28);
}

.temple-right p {
    margin-bottom: 16px;
    color: rgba(255, 250, 240, 0.92);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.9;
}

.hero-btn-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn,
.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 28px;
    border-radius: 999px;
    color: #3b1606;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.3;
    background: linear-gradient(135deg, #fff0a8 0%, var(--gold) 48%, #ef8f22 100%);
    box-shadow: 0 18px 36px rgba(214, 169, 53, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover,
.view-all-btn:hover {
    transform: translateY(-4px);
    filter: saturate(1.08);
    box-shadow: 0 22px 48px rgba(214, 169, 53, 0.38);
}

.navratri-btn {
    color: #fff;
    background: linear-gradient(135deg, #8d1515, #dd7115);
}

/* ================= ABOUT ================= */
#about {
    padding-top: 98px;
}

.about {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid rgba(214, 169, 53, 0.24);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 244, 219, 0.84)),
        radial-gradient(circle at top left, rgba(245, 215, 122, 0.26), transparent 24rem);
    box-shadow: var(--shadow-soft);
}

.about img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(214, 169, 53, 0.34);
    border-radius: 24px;
    box-shadow: 0 24px 62px rgba(61, 36, 23, 0.22);
}

.about p {
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about ul {
    display: grid;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.about li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
}

.about li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(214, 169, 53, 0.14);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
    font-weight: 800;
}

.social-links a {
    color: var(--maroon);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--saffron-deep);
}

.social-sep {
    color: rgba(95, 11, 11, 0.35);
}

/* ================= SERVICES ================= */
.services-section {
    width: min(var(--max-width), calc(100% - 36px));
    padding: 92px clamp(18px, 4vw, 42px);
    border: 1px solid rgba(214, 169, 53, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 15% 12%, rgba(245, 215, 122, 0.28), transparent 22rem),
        linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(245, 234, 214, 0.9));
    box-shadow: var(--shadow-soft);
}

.services-title {
    margin-bottom: 8px;
    text-align: left;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 900;
}

.services-title::after {
    margin-left: 0;
}

.services-subtitle {
    margin-bottom: 36px;
    color: var(--text-muted);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-box {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    border: 1px solid rgba(214, 169, 53, 0.24);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(61, 36, 23, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.services-collapsible .service-box {
    display: none;
}

.services-collapsible .service-box:nth-child(-n+4),
.services-collapsible.show-all .service-box {
    display: block;
}

.service-box:hover {
    transform: translateY(-8px);
    border-color: rgba(214, 169, 53, 0.55);
    box-shadow: 0 28px 62px rgba(61, 36, 23, 0.18);
}

.service-box img {
    width: 100%;
    height: 238px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-box:hover img {
    transform: scale(1.06);
}

.service-name {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--maroon);
    text-align: center;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.35;
    background: linear-gradient(180deg, #fff5cb, #f4cd63);
}

.service-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.service-actions a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    background: rgba(36, 7, 7, 0.66);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(36, 7, 7, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-actions a:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--maroon);
}

.services-cta {
    margin-top: 38px;
    text-align: center;
}

.view-all-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

/* ================= GALLERY ================= */
#gallery {
    padding-bottom: 106px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(214, 169, 53, 0.28);
    border-radius: 22px;
    cursor: zoom-in;
    box-shadow: 0 18px 44px rgba(61, 36, 23, 0.14);
    transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.gallery img:nth-child(even) {
    transform: translateY(24px);
}

.gallery img:hover {
    transform: translateY(-6px) scale(1.025);
    filter: saturate(1.07) contrast(1.02);
    box-shadow: 0 28px 70px rgba(95, 11, 11, 0.2);
}

.gallery img:nth-child(even):hover {
    transform: translateY(14px) scale(1.025);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 7, 4, 0.84);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(100%, 980px);
    max-height: 86vh;
    border-radius: 24px;
    border: 1px solid rgba(245, 215, 122, 0.42);
    box-shadow: var(--shadow-rich);
}

.lightbox button {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(245, 215, 122, 0.42);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    background: rgba(95, 11, 11, 0.72);
}

/* ================= FLOATING ACTIONS ================= */
.floating-call,
.floating-whatsapp,
#goTopBtn {
    position: fixed;
    z-index: 9999;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 18px 38px rgba(36, 7, 7, 0.24);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.floating-call {
    bottom: 22px;
    left: 22px;
    background: linear-gradient(135deg, var(--saffron), var(--maroon));
}

.floating-whatsapp {
    right: 22px;
    bottom: 22px;
    background: linear-gradient(135deg, #33d375, #0f8f69);
}

.floating-call:hover,
.floating-whatsapp:hover,
#goTopBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(36, 7, 7, 0.3);
}

.tooltip {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    background: rgba(36, 7, 7, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-call:hover .tooltip,
.floating-whatsapp:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#goTopBtn {
    right: 28px;
    bottom: 94px;
    display: none;
    border: 0;
    cursor: pointer;
    color: #3b1606;
    background: linear-gradient(135deg, #fff0a8, var(--gold));
}

#goTopBtn.show {
    display: flex;
}

/* ================= FOOTER ================= */
.footer {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    padding: 78px 20px 26px;
    color: #ffeec7;
    background:
        radial-gradient(circle at 12% 0%, rgba(214, 169, 53, 0.34), transparent 22rem),
        linear-gradient(135deg, #210505 0%, #5f0b0b 52%, #8b260d 100%);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 24px);
}

.footer-container,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 0.8fr;
    gap: 26px;
    text-align: left;
}

.footer-box {
    padding: 22px;
    border: 1px solid rgba(245, 215, 122, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
}

.footer-box h4 {
    margin-bottom: 16px;
    color: #fff3c4;
    font-size: 1.08rem;
}

.footer-box h4::after {
    width: 44px;
    margin: 10px 0 0;
}

.footer-box p,
.footer-box li {
    color: rgba(255, 238, 199, 0.86);
    font-size: 0.94rem;
    line-height: 1.8;
}

.footer-box ul {
    padding: 0;
    list-style: none;
}

.footer-box li {
    margin-bottom: 8px;
}

.footer-box a {
    color: #fff2bf;
    text-decoration: none;
    font-weight: 700;
}

.footer-box a:hover {
    color: #fff;
}

.footer-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #3b1606 !important;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg, #fff0a8, var(--gold));
}

.footer-btn.whatsapp {
    color: #fff !important;
    background: linear-gradient(135deg, #2ccf74, #128c7e);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 34px auto 0;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 238, 199, 0.84);
    font-size: 0.9rem;
}

.footer-lang a {
    color: #fff2bf;
    text-decoration: none;
}

.lang-toggle-text {
    cursor: pointer;
    user-select: none;
}

/* ================= REVEALS ================= */
.reveal-ready {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

#templeSlideshow {
    transition: opacity 0.8s ease-in-out;
}

.guruji-slideshow-img {
    transition: opacity 0.8s ease-in-out, transform 0.45s ease, box-shadow 0.45s ease;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
    .pill-menu a {
        padding: 9px 9px;
        font-size: 13px;
    }

    .pill-actions {
        min-width: auto;
    }

    .services-grid,
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 104px;
    }

    .pill-header {
        padding: 10px 12px 6px;
    }

    .pill-nav {
        min-height: auto;
        flex-wrap: wrap;
        border-radius: 26px;
    }

    .pill-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pill-logo img {
        width: 48px;
        height: 48px;
    }

    .desktop-menu,
    .pill-menu {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .pill-actions {
        width: 100%;
        justify-content: space-between;
        order: 4;
    }

    .pill-btn {
        min-height: 40px;
        padding: 9px 16px;
    }

    .temple-section {
        padding-top: 62px;
    }

    .temple-wrapper,
    .about {
        grid-template-columns: 1fr;
    }

    .temple-right {
        order: -1;
    }

    .temple-mantra {
        margin-left: 10px;
        margin-right: 10px;
    }

    .social-links,
    .hero-btn-group {
        justify-content: center;
    }

    .about {
        text-align: left;
    }
}

@media (max-width: 640px) {
    body {
        line-height: 1.68;
    }

    section,
    .services-section {
        width: min(100% - 24px, var(--max-width));
        padding-top: 66px;
        padding-bottom: 66px;
    }

    section h2 {
        margin-bottom: 24px;
    }

    .pill-title strong {
        font-size: 13px;
    }

    .pill-title span {
        font-size: 11px;
    }

    .pill-actions {
        gap: 8px;
    }

    .pill-lang {
        font-size: 12px;
    }

    .temple-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .temple-right {
        padding: 22px;
        border-radius: 22px;
    }

    .temple-right h1,
    .temple-right h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .view-all-btn {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .services-grid,
    .gallery,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .service-box {
        min-height: auto;
    }

    .gallery img,
    .gallery img:nth-child(even),
    .gallery img:hover,
    .gallery img:nth-child(even):hover {
        transform: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .floating-call,
    .floating-whatsapp,
    #goTopBtn {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }

    .floating-call {
        left: 16px;
        bottom: 16px;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
    }

    #goTopBtn {
        right: 18px;
        bottom: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================= FINAL CREATIVE DIRECTION ================= */
:root {
    --temple-teal: #0f9b8e;
    --tilak-red: #bd1d18;
    --sandalwood: #d9b06d;
    --fire-orange: #f17a18;
    --sacred-shadow: 0 32px 90px rgba(80, 31, 7, 0.18);
}

::selection {
    color: #fffaf0;
    background: var(--maroon);
}

body {
    background:
        radial-gradient(circle at 9% 6%, rgba(241, 122, 24, 0.2), transparent 28rem),
        radial-gradient(circle at 88% 9%, rgba(15, 155, 142, 0.12), transparent 24rem),
        linear-gradient(180deg, #fffaf1 0%, #f6ead8 43%, #fff9ef 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55), transparent 22rem),
        conic-gradient(from 45deg at 50% 28%, transparent 0 23%, rgba(214, 169, 53, 0.05) 25%, transparent 27% 100%);
    opacity: 0.72;
}

.pill-nav {
    box-shadow:
        0 20px 58px rgba(61, 36, 23, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.pill-logo img,
.about img,
.temple-left img,
.gallery img {
    filter: saturate(1.03) contrast(1.01);
}

.pill-logo img {
    box-shadow:
        0 12px 28px rgba(95, 11, 11, 0.18),
        0 0 0 6px rgba(214, 169, 53, 0.12);
}

.pill-menu a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.pill-menu a:hover::after,
.pill-menu a.active::after {
    transform: scaleX(1);
}

.pill-menu a.active::after {
    background: rgba(255, 242, 191, 0.78);
}

.temple-section {
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 215, 122, 0.45), transparent 25rem),
        radial-gradient(circle at 84% 10%, rgba(15, 155, 142, 0.2), transparent 22rem),
        linear-gradient(132deg, #321006 0%, #68130b 36%, #d96210 100%);
}

.temple-section::before {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 33%),
        radial-gradient(circle at 20% 42%, rgba(255, 226, 138, 0.12) 0 2px, transparent 3px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.042) 0 1px, transparent 1px 22px);
    background-size: auto, 44px 44px, auto;
}

.temple-left::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -22px;
    top: -24px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 240, 168, 0.52), transparent 61%),
        conic-gradient(from 0deg, transparent, rgba(255, 240, 168, 0.38), transparent);
    filter: blur(0.5px);
    opacity: 0.78;
}

.temple-left img {
    transform: translateZ(0);
}

.temple-mantra {
    box-shadow:
        0 20px 48px rgba(36, 7, 7, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.temple-mantra::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.temple-right {
    box-shadow:
        0 30px 90px rgba(36, 7, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.temple-right h1,
.temple-right h2 {
    max-width: 13ch;
}

.temple-right p {
    max-width: 68ch;
}

#about,
.services-section,
#gallery {
    position: relative;
}

#about::before,
.services-section::before,
#gallery::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 24px;
    width: min(220px, 50vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(214, 169, 53, 0.72), transparent);
}

.about {
    box-shadow: var(--sacred-shadow);
}

.about img {
    position: relative;
    box-shadow:
        0 24px 62px rgba(61, 36, 23, 0.2),
        0 0 0 10px rgba(255, 250, 240, 0.68),
        0 0 0 11px rgba(214, 169, 53, 0.22);
}

.about > div {
    padding: clamp(4px, 1vw, 12px);
}

.about p:first-of-type::first-letter {
    color: var(--maroon);
    font-weight: 900;
}

.services-section {
    box-shadow: var(--sacred-shadow);
}

.service-box {
    will-change: transform;
}

.service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(36, 7, 7, 0.08), transparent 44%),
        radial-gradient(circle at 50% 0%, rgba(255, 240, 168, 0.22), transparent 42%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-box:hover::before {
    opacity: 1;
}

.service-actions,
.service-name {
    z-index: 2;
}

.service-name {
    position: relative;
    letter-spacing: 0;
}

.service-name::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 46px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--tilak-red);
    opacity: 0.72;
}

.btn:active,
.view-all-btn:active,
.pill-btn:active,
.footer-btn:active,
.service-actions a:active,
.floating-call:active,
.floating-whatsapp:active,
#goTopBtn:active {
    transform: translateY(0) scale(0.98);
}

.gallery {
    perspective: 1400px;
}

.gallery img {
    background: var(--ivory);
    padding: 5px;
}

.gallery img:hover {
    border-color: rgba(15, 155, 142, 0.22);
}

.footer-box {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-box:hover {
    border-color: rgba(245, 215, 122, 0.32);
    background: rgba(255, 255, 255, 0.075);
}

.floating-call,
.floating-whatsapp {
    animation: devotionalPulse 3.2s ease-in-out infinite;
}

@keyframes devotionalPulse {
    0%,
    100% {
        box-shadow: 0 18px 38px rgba(36, 7, 7, 0.22);
    }
    50% {
        box-shadow: 0 18px 44px rgba(214, 169, 53, 0.32);
    }
}

@media (min-width: 901px) {
    .temple-wrapper {
        min-height: 680px;
    }

    .about {
        grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    }
}

@media (max-width: 900px) {
    .temple-right h1,
    .temple-right h2,
    .temple-right p {
        max-width: none;
    }

    .temple-left::after {
        right: 0;
        top: -18px;
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 640px) {
    .pill-nav {
        box-shadow: 0 16px 44px rgba(61, 36, 23, 0.16);
    }

    .temple-section {
        padding-top: 48px;
    }

    .temple-mantra {
        padding: 18px 14px;
    }

    .about,
    .services-section {
        border-radius: 22px;
    }

    .about img {
        box-shadow:
            0 18px 44px rgba(61, 36, 23, 0.18),
            0 0 0 7px rgba(255, 250, 240, 0.72),
            0 0 0 8px rgba(214, 169, 53, 0.2);
    }

    .service-actions a {
        width: 44px;
        height: 44px;
    }

    .footer-box {
        padding: 20px 18px;
    }
}

/* ================= FINAL QA POLISH ================= */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.pill-header,
.temple-section,
.about,
.services-section,
.gallery,
.footer {
    transform: translateZ(0);
}

.pill-nav {
    position: relative;
}

.pill-nav::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 46%);
    opacity: 0.58;
}

.pill-logo,
.pill-menu,
.pill-actions,
.hamburger {
    position: relative;
    z-index: 1;
}

.temple-right,
.about,
.services-section,
.footer-box {
    overflow-wrap: anywhere;
}

.temple-left img,
.about img,
.gallery img,
.service-box img {
    backface-visibility: hidden;
}

.about img,
.guruji-slideshow-img {
    object-position: center top;
}

.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 16%, rgba(15, 155, 142, 0.08), transparent 18rem),
        radial-gradient(circle at 90% 82%, rgba(189, 29, 24, 0.06), transparent 18rem);
}

.about > img,
.about > div {
    position: relative;
    z-index: 1;
}

.btn,
.view-all-btn,
.pill-btn,
.footer-btn,
.service-actions a {
    min-width: 44px;
    min-height: 44px;
}

.service-box:focus-within {
    border-color: rgba(214, 169, 53, 0.68);
    box-shadow: 0 28px 62px rgba(61, 36, 23, 0.2);
}

.lightbox button {
    font-family: Arial, sans-serif;
}

@media (min-width: 1180px) {
    .temple-section {
        padding-top: 112px;
        padding-bottom: 112px;
    }

    .footer {
        padding-top: 92px;
    }
}

@media (max-width: 480px) {
    .pill-header {
        padding-inline: 8px;
    }

    .pill-nav {
        gap: 8px;
        padding: 10px;
    }

    .pill-logo {
        gap: 9px;
    }

    .pill-logo img {
        width: 44px;
        height: 44px;
    }

    .pill-btn {
        padding-inline: 14px;
    }

    .temple-right,
    .about,
    .services-section {
        box-shadow: 0 20px 54px rgba(80, 31, 7, 0.14);
    }

    .temple-mantra p {
        font-size: 0.96rem;
    }

    .footer {
        padding-inline: 14px;
    }
}
