/* ==========================================================
   Sri Bhramaramba Ammavari Shakti Peetham — Srisailam
   Design System & Stylesheet
   ========================================================== */

:root {
    --saffron: #e07a1f;
    --saffron-deep: #c25d10;
    --gold: #d4a017;
    --gold-light: #f4cf6b;
    --gold-soft: #f5e6b8;
    --maroon: #6b1e1e;
    --maroon-deep: #4a0f0f;
    --ivory: #fdf6e9;
    --ivory-warm: #fbeed1;
    --cream: #fff9ec;
    --ink: #2a1604;
    --muted: #6b5a48;
    --line: rgba(107, 30, 30, 0.15);
    --shadow-soft: 0 10px 40px rgba(74, 15, 15, 0.08);
    --shadow-mid: 0 20px 60px rgba(74, 15, 15, 0.15);
    --shadow-deep: 0 30px 80px rgba(74, 15, 15, 0.25);
    --radius: 14px;
    --radius-lg: 22px;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-deva: 'Tiro Devanagari Sanskrit', 'Cormorant Garamond', serif;
    --font-bn: 'Tiro Bangla', 'Noto Serif Bengali', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color .3s; }
a:hover { color: var(--saffron); }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--maroon-deep);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { font-size: 1.02rem; color: #3b2a18; }

.serif { font-family: var(--font-serif); }
.deva { font-family: var(--font-deva); color: var(--maroon); }
[lang="bn"], .bn-text { font-family: var(--font-bn); }

/* ===== Layout ===== */
.container { width: 92%; max-width: 1240px; margin: 0 auto; }
.container-wide { width: 95%; max-width: 1480px; margin: 0 auto; }

section { padding: 100px 0; position: relative; }

/* ===== Decorative Top Strip ===== */
.om-strip {
    background: linear-gradient(90deg, var(--maroon-deep), var(--maroon) 50%, var(--maroon-deep));
    color: var(--gold-light);
    text-align: center;
    padding: 8px 0;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}
.om-strip::before, .om-strip::after {
    content: "✦";
    margin: 0 18px;
    color: var(--gold);
    font-size: 0.7rem;
    vertical-align: middle;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 246, 233, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s, padding .3s;
}
.header.scrolled { box-shadow: 0 10px 30px rgba(74,15,15,0.08); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.logo-mark {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--saffron) 70%, var(--maroon) 100%);
    display: grid; place-items: center;
    color: #fff;
    font-family: var(--font-deva);
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(192, 80, 16, 0.4), inset 0 0 0 2px rgba(255,255,255,0.3);
    position: relative;
    flex-shrink: 0;
}
.logo-mark::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: .55;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .l1 {
    font-family: var(--font-display);
    color: var(--maroon-deep);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo-text .l2 {
    font-family: var(--font-serif);
    color: var(--saffron-deep);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 10px;
    position: relative;
    transition: all .3s;
    letter-spacing: .3px;
}
.nav a:hover, .nav a.active {
    color: var(--maroon-deep);
    background: rgba(212, 160, 23, 0.12);
}
.nav a.active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    border-radius: 2px;
}

.lang-switch {
    display: inline-flex;
    background: rgba(107, 30, 30, 0.07);
    border-radius: 999px;
    padding: 4px;
    margin-left: 12px;
    border: 1px solid var(--line);
}
.lang-switch button {
    border: none;
    background: transparent;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    border-radius: 999px;
    letter-spacing: .5px;
    transition: all .3s;
    font-family: var(--font-sans);
}
.lang-switch button.active {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
    color: var(--gold-light);
    box-shadow: 0 4px 10px rgba(74,15,15,0.3);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 26px; height: 2px;
    background: var(--maroon-deep);
    margin: 5px 0;
    transition: all .3s;
    border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: 80px 0;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    will-change: transform;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(74,15,15,0.35) 0%, rgba(74,15,15,0.85) 100%),
        linear-gradient(180deg, rgba(74,15,15,0.25), rgba(20,5,5,0.85));
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: 920px;
    padding: 0 5%;
}
.hero .pre-title {
    display: inline-block;
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding: 0 30px;
    position: relative;
}
.hero .pre-title::before, .hero .pre-title::after {
    content: ""; position: absolute; top: 50%;
    width: 30px; height: 1px;
    background: var(--gold);
}
.hero .pre-title::before { left: -10px; }
.hero .pre-title::after { right: -10px; }

.hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 18px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}
.hero .sanskrit {
    font-family: var(--font-deva);
    color: var(--gold-light);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin: 14px 0 28px;
    letter-spacing: 1px;
    opacity: .95;
}
.hero p.lead {
    color: rgba(255,255,255,0.92);
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(224, 122, 31, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(224, 122, 31, 0.55); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--gold-light);
    border: 1.5px solid var(--gold-light);
}
.btn-ghost:hover { background: var(--gold-light); color: var(--maroon-deep); }
.btn-dark { background: var(--maroon-deep); color: var(--gold-light); }
.btn-dark:hover { background: var(--maroon); color: var(--gold-light); transform: translateY(-3px); }

/* Hero scroll indicator */
.scroll-cue {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: var(--gold-light); font-size: 0.75rem;
    letter-spacing: 3px; text-transform: uppercase;
    z-index: 3; opacity: .8;
}
.scroll-cue::after {
    content: ""; display: block; margin: 10px auto 0;
    width: 1px; height: 36px;
    background: linear-gradient(var(--gold-light), transparent);
    animation: dropIn 2s infinite;
}
@keyframes dropIn { 0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}50.01%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom} }

/* ===== Section heading ===== */
.eyebrow {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--saffron-deep);
    margin-bottom: 12px;
    position: relative;
    padding-left: 50px;
}
.eyebrow::before {
    content: "";
    position: absolute; top: 50%; left: 0;
    width: 38px; height: 1px;
    background: var(--saffron);
}
.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--maroon-deep);
    margin-bottom: 18px;
    position: relative;
}
.section-title.center { text-align: center; }
.section-title .accent { color: var(--saffron-deep); font-style: italic; }
.section-sub {
    max-width: 760px;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.7;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider-orn {
    display: flex; align-items: center; justify-content: center;
    margin: 22px 0;
    color: var(--gold);
    font-size: .9rem;
    gap: 10px;
}
.divider-orn::before, .divider-orn::after {
    content: ""; width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== Bg patterns ===== */
.bg-cream { background: var(--cream); }
.bg-ivory { background: var(--ivory); }
.bg-warm  { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%); }
.bg-dark  {
    background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
    color: var(--ivory);
}
.bg-dark h2, .bg-dark h3, .bg-dark .section-title { color: var(--gold-light); }
.bg-dark .section-sub, .bg-dark p { color: rgba(255,255,255,0.85); }
.bg-dark .eyebrow { color: var(--gold-light); }
.bg-dark .eyebrow::before { background: var(--gold); }

.pattern-bg {
    position: relative;
}
.pattern-bg::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(212, 160, 23, 0.08) 0, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(224, 122, 31, 0.06) 0, transparent 30%);
    pointer-events: none;
}

/* ===== Intro split (Home) ===== */
.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 70px;
    align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split.reverse .split-text { order: 2; }
.split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-mid);
    isolation: isolate;
}
.split-image::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(74,15,15,0.25));
    pointer-events: none;
}
.split-image img {
    width: 100%; height: 540px; object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.split-image:hover img { transform: scale(1.05); }
.split-image .badge {
    position: absolute; top: 24px; left: 24px;
    background: rgba(253, 246, 233, 0.95);
    color: var(--maroon-deep);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
}
.split-text h2 { margin-bottom: 22px; }
.split-text p { margin-bottom: 18px; color: #4a3622; font-size: 1.05rem; }
.split-text .quote {
    border-left: 3px solid var(--gold);
    padding: 6px 22px;
    margin: 28px 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--maroon);
    font-size: 1.18rem;
}

/* ===== Cards / Features ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    border: 1px solid var(--line);
    text-align: center;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute; left: 0; top: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-mid); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 78px; height: 78px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-soft), var(--ivory-warm));
    display: grid; place-items: center;
    color: var(--maroon);
    font-family: var(--font-deva);
    font-size: 2rem;
    border: 1px solid var(--line);
    position: relative;
}
.card-icon::before {
    content: "";
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: .55;
}
.card h3 { color: var(--maroon-deep); margin-bottom: 12px; font-size: 1.4rem; }
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

/* ===== Quick info bar ===== */
.quick-strip {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
    color: var(--ivory);
    padding: 36px 0;
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.quick-item h4 {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 6px;
}
.quick-item p {
    color: rgba(255,255,255,0.82);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Image grid (gallery) ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    grid-auto-flow: dense;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-soft);
    transition: transform .4s, box-shadow .4s;
}
.gallery-item.tall { aspect-ratio: 3/4; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.gallery-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(74,15,15,0.85));
    opacity: 0;
    transition: opacity .4s;
}
.gallery-item .caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 18px 22px;
    color: #fff;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all .4s;
}
.gallery-item .caption h4 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 4px; }
.gallery-item .caption p { color: rgba(255,255,255,0.9); font-size: 0.85rem; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .caption { transform: translateY(0); opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(20, 5, 5, 0.95);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 92vw; max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all .3s;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--gold); color: var(--maroon-deep);
}

/* ===== Festivals / Rituals timeline-ish ===== */
.festival-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 90px;
    padding-bottom: 90px;
    border-bottom: 1px solid var(--line);
}
.festival-row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.festival-row.alt { grid-template-columns: 1.6fr 1fr; }
.festival-row.alt .festival-img { order: 2; }
.festival-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-mid);
    position: relative;
}
.festival-img img { width: 100%; height: 420px; object-fit: cover; }
.festival-img .number {
    position: absolute; top: 22px; left: 22px;
    background: var(--maroon-deep);
    color: var(--gold-light);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 2px;
}
.festival-text h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    color: var(--maroon-deep);
    margin-bottom: 14px;
}
.festival-text .meta {
    display: inline-block;
    color: var(--saffron-deep);
    font-family: var(--font-serif);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.festival-text p { margin-bottom: 14px; color: #4a3622; }

/* ===== Visit / info table ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--saffron);
    box-shadow: var(--shadow-soft);
}
.info-card h4 {
    font-family: var(--font-display);
    color: var(--maroon-deep);
    margin-bottom: 14px;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.info-card .row {
    display: flex; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.info-card .row:last-child { border-bottom: none; }
.info-card .row span:first-child { color: var(--muted); }
.info-card .row span:last-child { color: var(--maroon); font-weight: 600; }

/* ===== Management / Profiles ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    margin-top: 40px;
}
.team-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all .4s;
    cursor: pointer;
    border: 1px solid var(--line);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-mid); }
.team-photo {
    background: linear-gradient(135deg, var(--gold-soft), var(--ivory-warm));
    padding: 36px 30px 24px;
    position: relative;
}
.team-photo::before {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 60px;
    background: #fff;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.team-photo img {
    width: 200px; height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(74,15,15,0.18);
    position: relative; z-index: 2;
}
.team-info { padding: 20px 24px 32px; }
.team-info h3 {
    font-size: 1.4rem; margin-bottom: 6px;
    color: var(--maroon-deep);
}
.team-info .role {
    color: var(--saffron-deep);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 50px;
}
.team-info .read-btn {
    display: inline-flex;
    align-items: center; gap: 8px;
    color: var(--maroon);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--maroon);
    transition: all .3s;
}
.team-card:hover .read-btn { background: var(--maroon-deep); color: var(--gold-light); border-color: var(--maroon-deep); }

/* Modal */
.modal {
    position: fixed; inset: 0;
    background: rgba(20, 5, 5, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--cream);
    border-radius: var(--radius-lg);
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-deep);
    animation: modalIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-close {
    position: absolute; top: 18px; right: 18px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--maroon-deep);
    color: var(--gold-light);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 5;
}
.modal-head {
    background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
    color: var(--ivory);
    padding: 40px 50px 30px;
    display: flex; gap: 26px; align-items: center;
}
.modal-head img {
    width: 130px; height: 130px;
    border-radius: 50%; object-fit: cover; object-position: center top;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}
.modal-head h3 { color: var(--gold-light); font-size: 1.7rem; margin-bottom: 6px; }
.modal-head .role { color: rgba(255,255,255,0.85); font-family: var(--font-serif); font-style: italic; font-size: 0.98rem; line-height: 1.4; }
.modal-body { padding: 36px 50px; }
.modal-body h4 {
    font-family: var(--font-display);
    color: var(--maroon-deep);
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.15rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { color: #3b2a18; margin-bottom: 12px; font-size: 0.97rem; line-height: 1.7; }
.modal-body ul { padding-left: 22px; margin-bottom: 14px; }
.modal-body ul li { color: #3b2a18; margin-bottom: 8px; line-height: 1.6; font-size: 0.96rem; }
.modal-body ul li strong { color: var(--maroon-deep); }
.modal-foot {
    background: var(--ivory-warm);
    padding: 20px 50px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--muted);
}
.modal-foot a { color: var(--maroon); font-weight: 600; }

/* ===== Contact form ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-form {
    background: #fff;
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}
.contact-form h3 { margin-bottom: 8px; color: var(--maroon-deep); }
.contact-form p { color: var(--muted); margin-bottom: 26px; font-family: var(--font-serif); font-size: 1.05rem; }
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--maroon); font-weight: 600; margin-bottom: 8px;
}
.form-row input, .form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--cream);
    transition: all .3s;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(224, 122, 31, 0.15);
    background: #fff;
}
.form-row textarea { min-height: 130px; resize: vertical; }

.contact-info-side h3 { margin-bottom: 14px; color: var(--maroon-deep); }
.contact-info-side > p { color: var(--muted); margin-bottom: 30px; font-family: var(--font-serif); font-size: 1.05rem; }
.contact-list { list-style: none; }
.contact-list li {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-list strong {
    display: block;
    color: var(--maroon-deep);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.contact-list a, .contact-list span {
    color: #3b2a18;
    font-size: 1rem;
    line-height: 1.5;
}
.contact-list a:hover { color: var(--saffron); }

.map-wrap {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-mid);
    height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Sub-page hero (smaller) ===== */
.subhero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: 120px 0 80px;
}
.subhero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}
.subhero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(74,15,15,0.65) 0%, rgba(20,5,5,0.85) 100%);
}
.subhero-inner { position: relative; z-index: 2; max-width: 800px; padding: 0 5%; }
.subhero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}
.subhero .breadcrumb {
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.subhero .breadcrumb a { color: var(--gold-light); }
.subhero .breadcrumb a:hover { color: #fff; }
.subhero p { color: rgba(255,255,255,0.9); font-family: var(--font-serif); font-size: 1.15rem; max-width: 660px; margin: 0 auto; line-height: 1.6; }

/* ===== Sanskrit verse callout ===== */
.verse-block {
    background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
    color: var(--ivory);
    padding: 70px 8%;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 60px auto;
    max-width: 980px;
    position: relative;
    overflow: hidden;
}
.verse-block::before, .verse-block::after {
    content: "❋"; position: absolute; color: var(--gold);
    font-size: 1.4rem; opacity: .55;
}
.verse-block::before { top: 18px; left: 26px; }
.verse-block::after { bottom: 18px; right: 26px; }
.verse-block .deva {
    font-family: var(--font-deva);
    color: var(--gold-light);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    line-height: 1.8;
    margin-bottom: 18px;
}
.verse-block .english {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(255,255,255,0.92);
    font-size: 1.08rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Two-column long content ===== */
.long-content {
    max-width: 880px;
    margin: 0 auto;
}
.long-content h3 { color: var(--maroon-deep); margin: 38px 0 14px; }
.long-content h3:first-child { margin-top: 0; }
.long-content p { margin-bottom: 18px; color: #3b2a18; font-size: 1.05rem; }
.long-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 8px 26px;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--maroon);
    font-size: 1.18rem;
    margin: 28px 0;
}
.long-content figure {
    margin: 36px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-mid);
}
.long-content figure img { width: 100%; height: auto; display: block; }
.long-content figcaption {
    background: var(--maroon-deep);
    color: var(--gold-light);
    padding: 12px 22px;
    font-size: 0.88rem;
    font-style: italic;
    font-family: var(--font-serif);
    text-align: center;
}

/* ===== CTA banner ===== */
.cta-banner {
    background: linear-gradient(rgba(74,15,15,0.78), rgba(20,5,5,0.88)), url('../Images/Srisailam.jpg') center/cover fixed;
    color: #fff;
    text-align: center;
    padding: 110px 0;
}
.cta-banner h2 { color: var(--gold-light); margin-bottom: 18px; }
.cta-banner p { color: rgba(255,255,255,0.9); font-family: var(--font-serif); font-size: 1.2rem; max-width: 660px; margin: 0 auto 30px; }

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, #2a0808 0%, #1a0404 100%);
    color: #d8c8a8;
    padding: 80px 0 0;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-brand .logo-mark { width: 60px; height: 60px; font-size: 1.7rem; margin-bottom: 18px; }
.footer-brand h4 { color: var(--gold-light); font-family: var(--font-display); margin-bottom: 12px; font-size: 1.25rem; }
.footer-brand p { color: rgba(216, 200, 168, 0.75); font-family: var(--font-serif); line-height: 1.7; font-size: 0.98rem; }
.footer h5 {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.footer h5::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: var(--gold);
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: rgba(216, 200, 168, 0.78);
    font-size: 0.94rem;
    transition: all .3s;
    display: inline-block;
}
.footer ul a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-contact a, .footer-contact span { color: rgba(216, 200, 168, 0.85); font-size: 0.95rem; line-height: 1.7; display: block; margin-bottom: 6px; }
.footer-contact a:hover { color: var(--gold-light); }

.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.3);
    color: var(--gold-light);
    display: grid; place-items: center;
    transition: all .3s;
    font-size: 0.95rem;
}
.socials a:hover { background: var(--gold); color: var(--maroon-deep); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(212, 160, 23, 0.18);
    padding: 24px 0;
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.footer-bottom p { color: rgba(216, 200, 168, 0.7); font-size: 0.88rem; margin: 0; }
.footer-bottom a { color: var(--gold-light); font-weight: 600; }
.footer-bottom a:hover { color: var(--gold); }

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .9s cubic-bezier(.2, .8, .2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
    .split.reverse .split-text { order: 0; }
    .split-image img { height: 420px; }
    .festival-row, .festival-row.alt { grid-template-columns: 1fr; gap: 30px; }
    .festival-row.alt .festival-img { order: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .modal-head { flex-direction: column; text-align: center; padding: 36px 30px 24px; }
    .modal-body { padding: 30px; }
    .modal-foot { padding: 20px 30px; }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .nav {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s;
        border-bottom: 1px solid var(--line);
    }
    .nav.open { max-height: 500px; padding: 20px; }
    .nav a { width: 100%; padding: 14px 18px; }
    .lang-switch { margin: 10px 0 0; }
    .menu-toggle { display: block; }
    .header-inner { gap: 10px; }
    .logo-text .l1 { font-size: 0.88rem; }
    .logo-text .l2 { font-size: 0.7rem; }
    .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
    .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
    .verse-block { padding: 50px 6%; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { min-height: 80vh; }
    .modal-head img { width: 110px; height: 110px; }
}

@media (max-width: 480px) {
    .container, .container-wide { width: 92%; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .hero .pre-title { font-size: 0.95rem; letter-spacing: 4px; padding: 0 22px; }
    .hero .pre-title::before, .hero .pre-title::after { width: 18px; }
    .modal-body { padding: 24px 22px; }
    .modal-head { padding: 30px 22px 22px; }
    .modal-foot { padding: 18px 22px; }
    .contact-form { padding: 28px 24px; }
}

/* Hide elements per language */
[data-lang-content] { display: none; }
[data-lang-content].active { display: revert; }
.inline[data-lang-content].active { display: inline; }
