/* =====================================================================
   Pawapuri Tirth – main stylesheet
   Palette: kesariya maroon + saffron + gold on ivory (temple marble),
   with lotus-lake teal / lotus pink as small highlights.
   ===================================================================== */
:root {
    --maroon: #7a1f12;
    --maroon-dark: #561208;
    --saffron: #c25400;       /* button background (white text = 4.6:1) */
    --saffron-dark: #9e4300;
    --link: #a84300;          /* links on ivory (5.6:1) */
    --gold: #d9a441;
    --gold-light: #f3e3b3;
    --ivory: #fffaf0;
    --cream: #fbf1d9;
    --text: #3d3626;
    --muted: #665a40;
    --heading: #6a1c10;
    --teal: #1f6f6b;
    --lotus: #b8456b;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(86, 18, 8, .12);
    --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font: 400 1.6rem/1.75 var(--font-body);
    color: var(--text);
    background: url(../images/sidebg.gif) repeat 0 0 #c38b29;
}
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--maroon); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--teal); outline-offset: 2px;
}
p { margin-bottom: 1.6rem; }
ul, ol { margin: 0 0 2rem 2.2rem; }
li { margin-bottom: .6rem; }
strong { color: var(--heading); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.2;
    margin: 0 0 1.2rem;
}
h1 { font-size: 4.4rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.5rem; }
h4 { font-size: 2rem; }

.sr-only, .hp-field {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--maroon); color: #fff; padding: 8px 14px; z-index: 2000; }
.skip-link:focus { left: 8px; color: #fff; }

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--ivory);
    box-shadow: 0 0 12px 2px rgba(86, 18, 8, .45);
}
.container { width: 100%; padding: 0 3%; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Top strip ---------- */
.top-strip { background: var(--maroon-dark); color: #f6e3c2; font-size: 1.3rem; line-height: 1.5; }
.top-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.top-strip a { color: #ffe1a8; margin-left: 1.6rem; }
.top-strip a:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 999;
    background: rgba(255, 250, 240, .97);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 6px rgba(86, 18, 8, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--maroon); flex-shrink: 0; }
.brand:hover { text-decoration: none; color: var(--maroon); }
.brand-icon { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 2.9rem/1 var(--font-head); color: var(--maroon); }
.brand-tag { font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav > ul { display: flex; align-items: center; list-style: none; margin: 0; }
.main-nav li { list-style: none; margin: 0; position: relative; }
.main-nav > ul > li > a {
    display: flex; align-items: center; gap: 4px;
    padding: 2.4rem 1rem; font-size: 1.45rem; font-weight: 600; color: var(--maroon);
    border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--saffron-dark); border-bottom-color: var(--saffron); text-decoration: none; }
.main-nav .has-sub > a::after {
    content: ""; width: 6px; height: 6px; margin-left: 3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.main-nav .sub {
    position: absolute; left: 0; top: 100%; min-width: 210px; margin: 0; padding: 8px 0;
    background: #fff; border-top: 3px solid var(--saffron); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow); list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.main-nav .has-sub:hover > .sub,
.main-nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: 7px 18px; font-size: 1.45rem; color: var(--text); }
.main-nav .sub a:hover { background: var(--cream); color: var(--maroon); text-decoration: none; }
.main-nav .sub-label { padding: 8px 18px 2px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-top: 1px solid var(--gold-light); margin-top: 4px; }
.main-nav .sub-toggle { display: none; }
.main-nav .nav-donate > a {
    background: var(--saffron); color: #fff; border-radius: 20px; padding: .7rem 1.6rem; margin-left: .8rem; border: 0;
}
.main-nav .nav-donate > a:hover, .main-nav .nav-donate.active > a { background: var(--saffron-dark); color: #fff; }
.nav-toggle { display: none; }

.bell { width: 15px; height: 15px; transform-origin: 50% 10%; animation: ring 4s 1s ease-in-out 3; }
@keyframes ring {
    0%, 20%, 100% { transform: rotate(0); }
    2% { transform: rotate(25deg); } 5% { transform: rotate(-22deg); } 8% { transform: rotate(16deg); }
    11% { transform: rotate(-10deg); } 14% { transform: rotate(5deg); } 17% { transform: rotate(-2deg); }
}

/* ---------- Hero / banner ---------- */
.hero { position: relative; overflow: hidden; background: var(--maroon-dark); }
.hero-slides { position: relative; aspect-ratio: 5 / 2; }
.hero-slides img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slides img.is-active { opacity: 1; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(60, 12, 4, .78) 0%, rgba(60, 12, 4, .45) 45%, rgba(60, 12, 4, 0) 75%);
}
.hero-text { position: absolute; z-index: 2; left: 5%; top: 50%; transform: translateY(-50%); max-width: 560px; color: #fff; }
.hero-kicker { font-size: 1.3rem; letter-spacing: .2em; text-transform: uppercase; color: #ffd98a; margin-bottom: .8rem; }
.hero-text h1 { color: #fff; font-size: 5rem; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.hero-text p { font-size: 1.7rem; color: #fff6e3; margin-bottom: 2rem; }
.hero-controls { position: absolute; z-index: 3; right: 3%; bottom: 16px; display: flex; gap: 8px; align-items: center; }
.hero-dot, .hero-pause {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.hero-dot.is-active { background: #ffd98a; border-color: #ffd98a; }
.hero-pause { width: auto; height: auto; border-radius: 12px; padding: 1px 10px; color: #fff; font-size: 1.2rem; margin-left: 6px; }

.page-banner { position: relative; background: var(--maroon-dark); }
.page-banner img { width: 100%; aspect-ratio: 5 / 1.4; object-fit: cover; opacity: .55; }
.page-banner .banner-title { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 4%; }
.page-banner h1 { color: #fff; margin: 0; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.page-banner p { color: #ffe7b8; margin: .4rem 0 0; font-size: 1.5rem; letter-spacing: .08em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 1.35rem; padding: 1.2rem 0; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 .7rem; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 1rem 2.4rem; border-radius: 30px; font-weight: 700; font-size: 1.5rem;
    background: var(--saffron); color: #fff; border: 2px solid var(--saffron); cursor: pointer; line-height: 1.4;
}
.btn:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--maroon); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--cream); padding: 5rem 0; border-top: 1px solid var(--gold-light); border-bottom: 1px solid var(--gold-light); }
.section-alt + .section { padding-top: 5rem; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.lead { font-size: 1.85rem; line-height: 1.7; color: var(--muted); }

.title { text-align: center; margin-bottom: 3.2rem; }
.title h1, .title h2 { margin-bottom: .4rem; }
.title p { font-size: 1.35rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 600; }
.title::after {
    content: ""; display: block; width: 220px; height: 26px; margin: 1rem auto 0;
    background: url(../images/title-l.png) no-repeat left center, url(../images/title-icon.png) no-repeat center, url(../images/title-r.png) no-repeat right center;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.4rem; list-style: none; margin: 0; }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
    position: relative; background: #fff; border: 1px solid var(--gold-light); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; margin: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(86, 18, 8, .18); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.6rem 1.8rem 2rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 2.4rem; margin-bottom: .6rem; }
.card-body p { font-size: 1.5rem; line-height: 1.6; margin-bottom: 1.2rem; flex: 1; }
.card-tag { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); font-weight: 700; margin-bottom: .4rem; }
.card-link { font-weight: 700; font-size: 1.4rem; }
.card-link::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.card-link:hover { text-decoration: none; }

/* ---------- Feature strip (Nirvan Mahotsav) ---------- */
.feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--maroon); color: #fbe9cf;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.feature-body { padding: 3.6rem 4rem; }
.feature-body h2 { color: #fff; }
.feature-body .card-tag { color: #ffd98a; }
.feature-body p { color: #fbe9cf; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.info-box { background: #fff; border: 1px solid var(--gold-light); border-left: 4px solid var(--saffron); border-radius: var(--radius); padding: 2rem 2.2rem; }
.info-box h3 { font-size: 2.2rem; margin-bottom: .6rem; }
.info-box p:last-child, .info-box ul:last-child { margin-bottom: 0; }
.info-box.teal { border-left-color: var(--teal); }
.info-box.lotus { border-left-color: var(--lotus); }

.notice {
    background: #fff4dc; border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.4rem 1.8rem; margin-bottom: 2.4rem; font-size: 1.5rem;
}
.notice p:last-child { margin: 0; }

/* ---------- Article pages ---------- */
.article { padding: 1rem 0 5rem; }
.article h2 { margin-top: 3rem; }
.article h3 { margin-top: 2.4rem; }
.figure { float: right; width: 46%; margin: .6rem 0 2rem 3rem; }
.figure.left { float: left; margin: .6rem 3rem 2rem 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; }
.figure figcaption { font-size: 1.3rem; color: var(--muted); text-align: center; margin-top: .6rem; font-style: italic; }
.pullquote {
    border-left: 4px solid var(--gold); padding: .6rem 0 .6rem 2rem; margin: 2rem 0; font: italic 600 2.2rem/1.45 var(--font-head); color: var(--maroon);
}
.source-list { font-size: 1.4rem; }
.diagram { display: block; margin: 1rem auto 3rem; width: auto; }
.sml-txt { font-size: 1.4rem; font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; margin-bottom: 3rem; }
table { width: 100%; border-collapse: collapse; font-size: 1.45rem; line-height: 1.55; background: #fff; }
th, td { border: 1px solid var(--gold-light); padding: 8px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--maroon); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) td { background: #fdf6e4; }

/* ---------- Gallery & lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.6rem; list-style: none; margin: 0 0 4rem; }
.gallery-grid li { margin: 0; }
.gallery-grid a { display: block; background: #fff; border: 1px solid var(--gold-light); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); }
.gallery-grid a:hover { text-decoration: none; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid span { display: block; padding: .8rem 1rem; font-size: 1.35rem; font-weight: 600; text-align: center; }

.lightbox {
    position: fixed; inset: 0; z-index: 3000; background: rgba(20, 6, 2, .92);
    display: none; align-items: center; justify-content: center; flex-direction: column; padding: 4rem 6rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 80vh; border: 4px solid #fff; border-radius: 4px; }
.lightbox-caption { color: #fbe9cf; margin-top: 1rem; font-size: 1.5rem; text-align: center; }
.lightbox button {
    position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; font-size: 2.6rem; line-height: 48px;
}
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Forms ---------- */
.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }
.form-row { margin-bottom: 1.6rem; }
.form-row label { display: block; font-weight: 600; font-size: 1.45rem; margin-bottom: .4rem; color: var(--heading); }
.form-row input, .form-row textarea {
    width: 100%; font: 400 1.6rem/1.5 var(--font-body); color: var(--text);
    background: #fff; border: 1px solid #d8c68c; border-radius: 6px; padding: 1rem 1.2rem;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--saffron); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.required { color: #b3261e; }
.form-note { font-size: 1.35rem; color: var(--muted); }
.alert { padding: 1.6rem 2rem; border-radius: var(--radius); margin-bottom: 2rem; }
.alert-success { background: #e7f5ea; border: 1px solid #7bb68a; color: #1d4d2a; }
.alert-error { background: #fdecea; border: 1px solid #e3928a; color: #7a1d14; }
.alert ul { margin-bottom: 0; }

.address-box { background: var(--cream); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 2.4rem; }
.address-box h2 { font-size: 2.6rem; }
.address-box h3 { font: 600 1.6rem/1.5 var(--font-body); color: var(--heading); }
.icon-line { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.icon-line svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; fill: var(--saffron); }

.map-frame { width: 100%; min-height: 340px; border: 4px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.footer { background: var(--maroon); color: #f3dcc0; margin-top: 2rem; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer h2 { color: #ffd98a; font-size: 2.3rem; }
.footer p { font-size: 1.45rem; }
.footer a { color: #ffe1a8; }
.footer a:hover { color: #fff; }
.foot-links { list-style: none; margin: 0; columns: 2; font-size: 1.45rem; }
.foot-links li { margin-bottom: .5rem; }
.footer-bottom { background: var(--maroon-dark); font-size: 1.3rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.footer-bottom p { margin: 0; font-size: 1.3rem; }

.back-to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
    background: var(--saffron); color: #fff; text-align: center; line-height: 44px; font-size: 2rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--saffron-dark); color: #fff; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

thead th strong { color: inherit; }
.hero-dots { display: flex; gap: 8px; }
.card-body .card-tag { flex: none; margin-bottom: .4rem; }
