/* ==========================================================================
   Inner pages — banner, sticky header, forms, donate, gallery, temples, contact.
   Uses the tokens from sections.css.
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; height: 83px; overflow: hidden; }
.nav-link.is-current span { color: #e44400; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.page-hero { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--dark); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .35) 0%, rgba(20, 12, 8, .55) 55%, rgba(20, 12, 8, .85) 100%); }
.page-hero .in { position: relative; z-index: 1; max-width: 1100px; padding: 0 40px; animation: heroIn 1s cubic-bezier(.22, .61, .36, 1) both; }
.page-hero .eyebrow { color: var(--sand); }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { filter: brightness(3) saturate(.4); }
.page-hero h1 { margin: 10px 0 14px; font: 700 64px/80px var(--f-head); color: #fff; text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.page-hero p { margin: 0 auto; max-width: 760px; font: 400 19px/30px var(--f-body); color: rgba(255, 255, 255, .85); }
.crumbs { display: inline-flex; gap: 10px; margin-top: 26px; padding: 8px 18px; border-radius: 30px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font: 500 15px var(--f-body); color: rgba(255, 255, 255, .8); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--sand); }
.page-hero.contain > img { object-fit: contain; padding-top: 60px; background: radial-gradient(ellipse at 50% 70%, #6b3a1c, #231b18 75%); animation: none; }

/* forms */
.form-card { padding: 44px 48px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(107, 37, 0, .06); }
.form-card h3 { margin: 0 0 6px; font: 700 34px/46px var(--f-head); color: var(--deep); }
.form-card > p { margin: 0 0 26px; font: 400 16px/24px var(--f-body); color: var(--brown); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.fgrid .full { grid-column: 1 / -1; }
.field label, .flabel { display: block; margin-bottom: 8px; font: 600 14px var(--f-body); color: var(--brown); letter-spacing: .02em; }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); font: 400 16px var(--f-body); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 120px; padding: 14px 18px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(180, 109, 71, .12); }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.form-actions .plaque { border: 0; cursor: pointer; }
.form-note { font: 400 14px/21px var(--f-body); color: var(--muted); }
.form-ok { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: rgba(52, 199, 89, .1); color: #1f7a3a; font: 500 15px/22px var(--f-body); }
.form-ok.show { display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.45fr 1fr; }
.stack > * + * { margin-top: 28px; }

/* donate form */
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick button { height: 48px; padding: 0 20px; border: 1px solid var(--line-2) !important; border-radius: 12px; background: var(--card) !important; font: 600 16px var(--f-body) !important; color: var(--brown) !important; transition: all .2s; }
.pick button:hover { border-color: var(--copper) !important; }
.pick button.is-on { background: linear-gradient(90deg, #6b2500, #e44400) !important; border-color: transparent !important; color: #fff !important; }
.pick-amt button { min-width: 96px; font-size: 18px !important; }
.don-step + .don-step { margin-top: 30px; }
.don-summary { position: sticky; top: 110px; padding: 36px; border-radius: 20px; background: var(--dark); color: #fff; }
.don-summary h3 { margin: 0 0 18px; font: 700 30px/40px var(--f-head); color: #fff; }
.don-summary dl { display: grid; grid-template-columns: 1fr auto; margin: 0 0 24px; }
.don-summary dt, .don-summary dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--dark-line); font: 400 16px var(--f-body); }
.don-summary dt { color: rgba(255, 255, 255, .6); }
.don-summary dd { text-align: right; font-weight: 600; color: var(--sand); }
.don-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.don-total span { font: 500 16px var(--f-body); color: rgba(255, 255, 255, .7); }
.don-total b { font: 700 48px/1 var(--f-label); color: #fff; }
.pay-btns { display: grid; gap: 12px; }
.pay-btns a, .pay-btns button { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--dark-line) !important; background: var(--dark-2) !important; font: 600 16px var(--f-body) !important; color: #fff !important; text-decoration: none; transition: border-color .2s; }
.pay-btns a:first-child { background: linear-gradient(90deg, #6b2500, #e44400) !important; border-color: transparent !important; }
.pay-btns a:hover, .pay-btns button:hover { border-color: var(--copper) !important; }
.don-summary .form-note { margin-top: 16px; color: rgba(255, 255, 255, .5); }

/* gallery grid + lightbox */
.ggrid { columns: 4; column-gap: 20px; }
.ggrid button { display: block; width: 100%; margin: 0 0 20px; padding: 0; border: 0 !important; border-radius: 16px; overflow: hidden; position: relative; break-inside: avoid; cursor: zoom-in; background: var(--dark) !important; }
.ggrid img { display: block; width: 100%; transition: transform .6s ease, filter .4s; }
.ggrid button:hover img { transform: scale(1.05); filter: brightness(1.05); }
.ggrid button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(to top, rgba(20, 12, 8, .85), transparent); font: 600 16px var(--f-body); color: #fff; text-align: left; opacity: 0; transition: opacity .3s; }
.ggrid button:hover span { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(14, 11, 10, .94); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 86vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { margin-top: 14px; font: 500 17px 'Manrope', 'Noto Sans Devanagari', sans-serif; color: #f4e6db; }
.lightbox button { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(244, 230, 219, .35); background: rgba(255, 255, 255, .06); color: #fff; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; margin-top: -27px; }
.lightbox .lb-next { right: 24px; top: 50%; margin-top: -27px; }
.albums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.albums a { display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; transition: border-color .2s, translate .3s; }
.albums a:hover { border-color: var(--copper); translate: 0 -4px; }
.albums b { font: 700 20px/28px var(--f-label); color: var(--ink); }
.albums span { font: 500 14px var(--f-body); color: var(--copper); }

/* temple details */
.tlist { display: grid; gap: 40px; }
.tcard { display: grid; grid-template-columns: 560px 1fr; gap: 56px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.tcard:nth-child(even) { grid-template-columns: 1fr 560px; }
.tcard:nth-child(even) .ph { order: 2; }
.tcard .ph { height: 380px; border-radius: 18px; overflow: hidden; }
.tcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tcard:hover .ph img { transform: scale(1.04); }
.tcard .in { padding: 10px 20px; }
.tcard h3 { margin: 6px 0 4px; font: 700 36px/48px var(--f-head); color: var(--deep); }
.tcard .loc { font: 500 16px var(--f-body); color: var(--copper); }
.tcard .body { margin: 16px 0; }
.tfacts { display: flex; flex-wrap: wrap; gap: 8px; }

/* contact */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.ccard { padding: 28px; background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; }
.ccard .icon-dot { margin-bottom: 14px; }
.ccard b { display: block; font: 700 22px/30px var(--f-label); color: var(--ink); }
.ccard p, .ccard a { font: 400 16px/25px var(--f-body); color: var(--brown); text-decoration: none; }
.ccard a:hover { color: var(--orange); }
.map-wrap { padding: 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 24px; }
.map { display: block; width: 100%; height: 560px; border: 0; border-radius: 16px; }
.page-cta { padding: 90px 0; text-align: center; background: linear-gradient(90deg, #6b2500, #e44400); color: #fff; }
.page-cta h2 { margin: 0 0 10px; font: 700 44px/58px var(--f-head); }
.page-cta p { margin: 0 0 28px; font: 400 18px/28px var(--f-body); color: rgba(255, 255, 255, .85); }
.page-cta .btn-row { justify-content: center; }

/* pricing cards (pandit services, sponsorship) */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.price { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: translate .3s ease, box-shadow .3s ease, border-color .3s; }
.price:hover { translate: 0 -6px; box-shadow: 0 22px 50px rgba(107, 37, 0, .10); border-color: var(--line-2); }
.price h3 { margin: 0 0 6px; font: 700 23px/31px var(--f-label); color: var(--ink); }
.price p { flex: 1; margin: 0 0 18px; font: 400 15px/23px var(--f-body); color: var(--brown); }
.pr-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid #efe6df; font: 400 15px var(--f-body); color: var(--muted); }
.pr-row b { font: 700 26px/1 var(--f-label); color: var(--deep); }
.price .plaque { margin-top: 20px; align-self: center; }
.price.featured { background: var(--dark); border-color: var(--copper); }
.price.featured h3 { color: #fff; }
.price.featured p, .price.featured .pr-row { color: rgba(255, 255, 255, .65); border-color: var(--dark-line); }
.price.featured .pr-row b { color: var(--sand); }

/* membership tiers */
.tier-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px 30px; background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; transition: translate .3s ease, box-shadow .3s ease; }
.tier:hover { translate: 0 -6px; box-shadow: 0 22px 50px rgba(107, 37, 0, .10); }
.tier h3 { margin: 0 0 14px; font: 700 28px/36px var(--f-head); color: var(--deep); }
.tier > b { font: 700 46px/1 var(--f-label); color: var(--ink); }
.tier .per { margin-top: 6px; font: 500 14px var(--f-body); color: var(--muted); }
.tier p { flex: 1; margin: 18px 0 22px; font: 400 15px/23px var(--f-body); color: var(--brown); }
.tier.featured { background: linear-gradient(160deg, #6b2500, #e44400); border-color: transparent; scale: 1.04; box-shadow: 0 26px 60px rgba(228, 68, 0, .25); }
.tier.featured h3, .tier.featured > b { color: #fff; }
.tier.featured .per, .tier.featured p { color: rgba(255, 255, 255, .85); }
.tier .badge { position: absolute; top: -14px; padding: 6px 16px; border-radius: 30px; background: #fff; font: 700 13px var(--f-body); color: var(--deep); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }

/* header menu: one baseline for both sides (Figma had the right half 3px higher), 17px type */
#page .nav-link { font-size: 17px !important; line-height: 24px !important; height: 24px !important; font-family: 'Manrope', 'Noto Sans Devanagari', sans-serif !important; align-items: center !important; }
#n918-2169 { top: 28px !important; height: 24px !important; }
#n918-2121, #n918-2141, #n918-2142, #n918-2178, #nav-chalisa, #nav-stuti { top: 28px !important; }

/* menu items that open a submenu: small chevron that turns when open */
#page .nav-link .nav-caret { display: inline-flex; margin-left: 6px; color: #b46d47; transition: rotate .25s ease, color .2s; }
#page .nav-link.dd-open .nav-caret { rotate: 180deg; color: #e44400; }
#page .nav-link.dd-open > span { color: #e44400; }

/* header dropdown menu */
.dd { --arrow: 40px; position: fixed; z-index: 150; width: 360px; padding: 0 0 10px; border-radius: 20px; background: #fff; border: 1px solid rgba(180, 109, 71, .22);
  box-shadow: 0 30px 70px rgba(35, 27, 24, .20), 0 4px 14px rgba(35, 27, 24, .06); font-family: 'Manrope', 'Noto Sans Devanagari', sans-serif;
  opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity .22s ease, translate .22s ease, visibility .22s; }
.dd.measure { visibility: hidden; opacity: 0; display: block; }
.dd.open { opacity: 1; visibility: visible; translate: 0 0; }
.dd::before { content: ''; position: absolute; top: -7px; left: calc(var(--arrow) - 7px); width: 14px; height: 14px; rotate: 45deg; background: #fdf3e7; border-left: 1px solid rgba(180, 109, 71, .22); border-top: 1px solid rgba(180, 109, 71, .22); }
.dd-head { position: relative; padding: 16px 20px 14px; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #fdf3e7, #fff); border-bottom: 1px solid #f3e6da; }
.dd-head::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: linear-gradient(90deg, #6b2500, #e44400 50%, transparent); border-radius: 2px; }
.dd-head span { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 'Manrope', 'Noto Sans Devanagari', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #b46d47; }
.dd-head span::before { content: ''; width: 14px; height: 15px; background: url('assets/875b94b1ea.svg') center / contain no-repeat; }
.dd-list { padding: 8px 10px 0; }
.dd-item { display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #1c110c; transition: background .2s ease; }
.dd.open .dd-item { animation: ddIn .35s cubic-bezier(.22, .61, .36, 1) both; animation-delay: calc(var(--i) * 45ms + 60ms); }
@keyframes ddIn { from { opacity: 0; translate: -8px 0; } to { opacity: 1; translate: 0 0; } }
.dd-ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fbf0e3; color: #a3562c; transition: background .25s ease, color .25s ease, scale .25s ease; }
.dd-tx b { display: block; font-size: 16px; font-weight: 700; line-height: 22px; color: #1c110c; transition: color .2s; }
.dd-tx small { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: #8a6a5a; }
.dd-go { color: #e44400; font-size: 16px; opacity: 0; translate: -6px 0; transition: opacity .2s ease, translate .2s ease; }
.dd-item:hover { background: #fdf6ee; }
.dd-item:hover .dd-ic { background: linear-gradient(135deg, #6b2500, #e44400); color: #fff; scale: 1.05; }
.dd-item:hover .dd-tx b { color: #c63c00; }
.dd-item:hover .dd-go { opacity: 1; translate: 0 0; }
.dd-item.is-current { background: #fdf3e7; }
.dd-item.is-current .dd-ic { background: linear-gradient(135deg, #6b2500, #e44400); color: #fff; }
.dd-item.is-current .dd-tx b { color: #c63c00; }
.dd-cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 20px 4px; height: 48px; border-radius: 12px; background: linear-gradient(90deg, #6b2500, #e44400); color: #fff; font: 700 15px 'Manrope', 'Noto Sans Devanagari', sans-serif; text-decoration: none; box-shadow: 0 10px 24px rgba(228, 68, 0, .25); transition: filter .2s, translate .2s; }
.dd-cta:hover { filter: brightness(1.08); translate: 0 -1px; }
