/*
Theme Name:  YH Baseline Theme
Theme URI:   https://yorkshirehindus.org.uk
Description:  YH Baseline Theme — built on Heritage v2.0 with bulk import, client-side Panchang, and fixed gallery hero transitions.
Author:      Yorkshire Hindus
Version:     1.0.4
Tags:        dark, premium, community, custom-logo, one-page
Text Domain: yh-baseline
Requires PHP: 7.4
*/

/* ============================================================
   DESIGN TOKENS — shared language with the Heritage Hub plugin
   ============================================================ */
:root {
  --yh-bg:          #1B0509;
  --yh-bg-alt:      #3D0F1A;
  --yh-bg-alt2:     #2A0A13;
  --yh-gold:        #D4AF37;
  --yh-gold-light:  #F1C40F;
  --yh-gold-pale:   #FFF7C2;
  --yh-saffron:     #FF9933;
  --yh-saffron-light: #FFB459;
  --yh-ivory:       #FAF9F6;
  --yh-sandstone:   #E8DCC4;
  --yh-muted:       #C9A79E;
  --yh-diya:        #FF7A45;
  --yh-glass-bg:    rgba(61, 15, 26, 0.55);
  --yh-glass-brd:   rgba(224, 148, 58, 0.24);
  --yh-font-head:   'Cinzel', serif;
  --yh-font-body:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --yh-font-dev:    'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
  --yh-radius:      18px;
  --yh-header-h:    76px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--yh-header-h) + 12px); }
body {
  margin: 0; background: var(--yh-bg); color: var(--yh-ivory);
  font-family: var(--yh-font-body); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
[lang="hi"] { font-family: var(--yh-font-dev); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--yh-font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
}
.screen-reader-text:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto; z-index: 100000;
  background: var(--yh-gold); color: #1a1206; padding: 10px 18px; border-radius: 8px; clip: auto;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--yh-bg); }
::-webkit-scrollbar-thumb { background: var(--yh-gold); border-radius: 5px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; border: 1px solid transparent; transition: all .25s ease;
}
.btn--gold { background: linear-gradient(135deg, var(--yh-gold), var(--yh-gold-light)); color: #1a1206; box-shadow: 0 10px 30px -10px rgba(212,175,55,.6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(212,175,55,.75); }
.btn--ghost { background: rgba(255,255,255,.06); border-color: var(--yh-glass-brd); color: var(--yh-ivory); }
.btn--ghost:hover { border-color: var(--yh-gold); color: var(--yh-gold-pale); }

/* ============================================================
   HEADER
   ============================================================ */
.yh-header {
  position: sticky; top: 0; z-index: 900; height: var(--yh-header-h);
  display: flex; align-items: center; background: rgba(27,5,9,0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yh-glass-brd); transition: background .3s ease;
}
.yh-header-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.yh-brand { display: flex; align-items: center; gap: 12px; }
.yh-brand__logo { height: var(--yh-logo-size, 44px); width: auto; max-width: 240px; object-fit: contain; border-radius: 8px; }
.yh-brand__mark {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(212,175,55,.25), transparent 70%); border: 1px solid var(--yh-glass-brd);
  font-family: var(--yh-font-head); font-size: 20px; color: var(--yh-gold);
}
.yh-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.yh-brand__name { font-family: var(--yh-font-head); font-weight: 700; font-size: 17px; color: var(--yh-ivory); }
.yh-brand__tagline { font-size: 10.5px; color: var(--yh-muted); letter-spacing: .04em; }

.yh-nav { display: flex; align-items: center; gap: 4px; }
.yh-nav a {
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--yh-sandstone);
  transition: all .2s ease; white-space: nowrap;
}
.yh-nav a:hover { background: rgba(212,175,55,.12); color: var(--yh-gold-pale); }

.yh-hamburger {
  display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--yh-glass-brd); border-radius: 10px; cursor: pointer;
}
.yh-hamburger span { width: 18px; height: 2px; background: var(--yh-gold); transition: all .25s ease; }
.yh-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.yh-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.yh-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .yh-nav {
    position: fixed; top: var(--yh-header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(27,5,9,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--yh-glass-brd);
    padding: 10px 20px 20px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .yh-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .yh-nav a { padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .yh-hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.yh-hero {
  position: relative; padding: 110px 24px 90px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #5c1a2a 0%, var(--yh-bg) 65%);
}
.yh-hero { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.yh-hero > * { position: relative; z-index: 2; }
.yh-hero__shloka { font-family: var(--yh-font-dev); color: var(--yh-gold-light); font-size: 15px; margin-bottom: 18px; letter-spacing: .04em; }
.yh-hero h1 {
  font-size: clamp(38px, 7vw, 68px); margin: 0 0 18px;
  background: linear-gradient(135deg, var(--yh-ivory) 10%, var(--yh-gold-pale) 45%, var(--yh-gold) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--yh-gold-pale);
}
.yh-hero p { max-width: 560px; margin: 0 auto 34px; color: var(--yh-sandstone); font-size: 16.5px; }
.yh-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Hero motion layer (background, z-index:1) ──── */
.yh-hero__space { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.yh-hero__om-wrap, .yh-hero__fireflies, .yh-hero__orbs, .yh-hero__stars { position: absolute; inset: 0; }

.yh-orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; animation: yhOrbFloat 14s ease-in-out infinite; }
.yh-orb--1 { width: 320px; height: 320px; left: 8%; top: 10%; background: radial-gradient(circle, var(--yh-gold) 0%, transparent 70%); animation-duration: 16s; }
.yh-orb--2 { width: 260px; height: 260px; right: 10%; top: 30%; background: radial-gradient(circle, #00d9ff 0%, transparent 70%); animation-duration: 20s; animation-delay: -4s; }
.yh-orb--3 { width: 220px; height: 220px; left: 42%; bottom: -6%; background: radial-gradient(circle, var(--yh-diya) 0%, transparent 70%); animation-duration: 18s; animation-delay: -9s; }
@keyframes yhOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(24px, -28px) scale(1.08); }
  66%      { transform: translate(-20px, 18px) scale(.94); }
}

/* ── The Om centerpiece — cross-fades saffron <-> neon blue, dissolves on scroll ── */
.yh-hero__om-wrap { display: flex; align-items: center; justify-content: center; }

/* Radiant burst rays behind the Om, inspired by the reference art */
.yh-hero__rays {
  position: absolute; top: 50%; left: 50%; width: 900px; height: 900px; max-width: 150vw; max-height: 150vw;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, currentColor 0deg 3deg, transparent 3deg 18deg);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, black 0%, black 26%, transparent 62%);
          mask-image: radial-gradient(circle, black 0%, black 26%, transparent 62%);
}
.yh-hero__rays--gold { color: #ff9933; animation: yhRaysSpin 70s linear infinite, yhRaysGold 10s ease-in-out infinite; }
.yh-hero__rays--blue { color: #00d9ff; animation: yhRaysSpin 90s linear infinite reverse, yhRaysBlue 10s ease-in-out infinite; }
@keyframes yhRaysSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes yhRaysGold { 0%, 100% { opacity: .38; } 50% { opacity: 0; } }
@keyframes yhRaysBlue { 0%, 100% { opacity: 0; }   50% { opacity: .38; } }

/* Rippling reflection pool beneath the glyph */
.yh-hero__ripples { position: absolute; left: 50%; top: 76%; width: 320px; height: 70px; transform: translate(-50%, -50%); }
.yh-ripple {
  position: absolute; inset: 0; border: 1.5px solid rgba(255, 247, 194, .4); border-radius: 50%;
  animation: yhRipple 4.2s ease-out infinite;
}
.yh-ripple:nth-child(2) { animation-delay: 1.4s; }
.yh-ripple:nth-child(3) { animation-delay: 2.8s; }
@keyframes yhRipple {
  0%   { transform: scale(.15); opacity: .6; }
  100% { transform: scale(2.8); opacity: 0; }
}

.yh-hero__om {
  font-size: min(48vw, 460px); line-height: 1; font-weight: 400;
  color: #ff9933;
  animation: yhOmColor 10s ease-in-out infinite, yhOmBreathe 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px currentColor) drop-shadow(0 0 90px currentColor);
  opacity: var(--om-opacity, .55);
  transform: scale(var(--om-scale, 1)) rotate(var(--om-rotate, 0deg));
  transition: opacity .2s linear, transform .2s linear;
  will-change: opacity, transform;
}
@keyframes yhOmColor {
  0%, 100% { color: #ff9933; }
  50%      { color: #00d9ff; }
}
@keyframes yhOmBreathe {
  0%, 100% { filter: drop-shadow(0 0 40px currentColor) drop-shadow(0 0 90px currentColor); }
  50%      { filter: drop-shadow(0 0 60px currentColor) drop-shadow(0 0 130px currentColor); }
}

/* ── Fireflies the Om dissolves into on scroll ──── */
.yh-firefly {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #ff9933 60%, transparent 100%);
  box-shadow: 0 0 10px 2px rgba(255, 200, 100, .8);
  animation: yhFireflyDrift 2.6s ease-out forwards;
}
.yh-firefly--blue { background: radial-gradient(circle, #dff9ff 0%, #00d9ff 60%, transparent 100%); box-shadow: 0 0 10px 2px rgba(80, 220, 255, .8); }
@keyframes yhFireflyDrift {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--fx, 40px), var(--fy, -120px)) scale(1.3); }
}

.yh-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--yh-gold-pale); animation: yhTwinkle 3.5s ease-in-out infinite; }
@keyframes yhTwinkle { 0%, 100% { opacity: .15; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }

.yh-hero .yh-rise { opacity: 0; transform: translateY(20px); animation: yhRise .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes yhRise { to { opacity: 1; transform: translateY(0); } }

.yh-sparkle {
  position: fixed; pointer-events: none; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, var(--yh-gold-pale) 0%, var(--yh-gold) 100%);
  z-index: 400; opacity: .9;
}

/* ============================================================
   INTERACTIVE DIYA FRAME
   ============================================================ */
.yh-hero__diyas { margin-top: 56px; width: 100%; display: flex; justify-content: center; }
.yh-diya-frame {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px 28px; border-radius: 20px;
  background: color-mix(in oklch, var(--yh-ivory) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--yh-gold) 25%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
.yh-diya-frame__label {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--yh-gold); font-weight: 700;
}
.yh-diya-row { display: flex; gap: 16px; }
.yh-diya-frame__count {
  font-size: 12.5px; font-family: var(--yh-font-dev); text-align: center;
  color: color-mix(in oklch, var(--yh-ivory) 70%, transparent);
}
.yh-diya {
  position: relative; background: none; border: none; padding: 0; width: 34px; height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer;
}
.yh-diya__body {
  display: block; width: 30px; height: 16px; border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, var(--yh-diya), color-mix(in oklch, var(--yh-diya) 55%, black));
  transition: background .3s ease, box-shadow .3s ease, transform .2s ease;
}
.yh-diya__flame {
  position: absolute; bottom: 13px; left: 50%; width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateX(-50%) scale(0); transform-origin: center bottom;
  background: radial-gradient(circle, #fff7c2 0%, #ffb347 55%, transparent 80%);
  opacity: 0; transition: opacity .3s ease, transform .3s ease; filter: drop-shadow(0 0 10px #ffb347);
}
.yh-diya:hover .yh-diya__body { transform: translateY(-2px); }
.yh-diya.is-lit .yh-diya__body {
  background: linear-gradient(180deg, var(--yh-gold-light), var(--yh-diya));
  box-shadow: 0 0 16px rgba(255,153,51,.55);
}
.yh-diya.is-lit .yh-diya__flame { opacity: 1; transform: translateX(-50%) scale(1); animation: yhFlameFlicker 1.6s ease-in-out infinite; }
@keyframes yhFlameFlicker {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  50%      { transform: translateX(-50%) scale(1.12) rotate(3deg); }
}

@media (max-width: 560px) {
  .yh-diya-frame { gap: 10px; padding: 18px 20px; }
  .yh-diya-row { gap: 12px; }
  .yh-diya { width: 28px; height: 40px; }
  .yh-diya__body { width: 24px; height: 13px; }
  .yh-diya__flame { bottom: 10px; }
}

/* ============================================================
   GALLERY (native WP Gallery block)
   ============================================================ */
.yh-gallery :is(.wp-block-gallery, .blocks-gallery-grid) { gap: 16px; }
.yh-gallery figure, .yh-gallery .blocks-gallery-item { margin: 0; border-radius: var(--yh-radius-sm, 14px); overflow: hidden; }
.yh-gallery img { border-radius: 14px; transition: transform .35s ease; }
.yh-gallery figure:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .yh-orb, .yh-hero__om, .yh-star, .yh-diya__flame, .yh-hero__rays, .yh-ripple { animation: none !important; }
  .yh-hero__rays--gold { opacity: .3; }
  .yh-hero__rays--blue { opacity: 0; }
  .yh-hero .yh-rise { opacity: 1; transform: none; animation: none; }
  .yh-firefly { display: none; }
}

/* ============================================================
   GENERIC PAGE / SINGLE CONTENT
   ============================================================ */
.yh-page {
  max-width: 820px; margin: 0 auto; padding: 80px 24px 100px;
}
.yh-page__eyebrow { font-family: var(--yh-font-head); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--yh-gold); }
.yh-page h1 { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 26px; }
.yh-page .entry-content, .yh-content-body { font-size: 16px; color: var(--yh-sandstone); }
.yh-page .entry-content h2, .yh-content-body h2 { font-size: 26px; color: var(--yh-ivory); margin-top: 1.4em; }
.yh-page .entry-content h3, .yh-content-body h3 { font-size: 20px; color: var(--yh-ivory); margin-top: 1.2em; }
.yh-page .entry-content a, .yh-content-body a { color: var(--yh-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.yh-page .entry-content img { border-radius: var(--yh-radius); margin: 20px 0; }
.yh-post-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--yh-muted); font-size: 13px; margin-bottom: 20px; }
.yh-post-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   SINGLE DEITY / SACRED TEXT PAGES
   ============================================================ */
.yh-single-back {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--yh-muted); margin-bottom: 26px; transition: color .2s ease;
}
.yh-single-back:hover { color: var(--yh-gold-pale); }
.yh-single-deity__hero { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; }
.yh-single-deity__portrait {
  width: 180px; height: 180px; border-radius: 24px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, color-mix(in oklch, var(--yhh-accent, var(--yh-gold)) 30%, transparent), transparent 72%);
  border: 2px solid color-mix(in oklch, var(--yhh-accent, var(--yh-gold)) 50%, transparent);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.yh-single-deity__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yh-single-deity__glyph { font-size: 84px; line-height: 1; filter: drop-shadow(0 0 20px var(--yhh-accent, var(--yh-gold))); }
.yh-single-deity__hero h1 { margin: 4px 0 10px; }
@media (max-width: 560px) {
  .yh-single-deity__hero { flex-direction: column; text-align: center; gap: 18px; }
  .yh-single-deity__portrait { width: 140px; height: 140px; }
  .yh-single-deity__glyph { font-size: 64px; }
}
.yh-single-text__dev { font-family: var(--yh-font-dev); color: var(--yh-gold-light); font-size: 24px; margin: 14px 0 6px; }
.yh-single-text__deity { font-size: 14px; color: var(--yh-muted); margin: 0 0 16px; }
.yh-single-deity .yhh-verse-text, .yh-single-text .yhh-verse-text { font-size: 18px; }

.yh-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.yh-album-grid__item {
  display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1;
  border: 1px solid var(--yh-glass-brd); background: rgba(255,255,255,.03);
}
.yh-album-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.yh-album-grid__item:hover img { transform: scale(1.06); }

/* ============================================================
   BLOG TEASER (front page)
   ============================================================ */
.yh-blog-teaser { padding: 70px 24px; background: linear-gradient(180deg, var(--yh-bg-alt2), var(--yh-bg)); }
.yh-blog-grid { max-width: 1180px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.yh-blog-card {
  padding: 24px; border-radius: var(--yh-radius); background: var(--yh-glass-bg); border: 1px solid var(--yh-glass-brd);
  transition: transform .25s ease, border-color .25s ease;
}
.yh-blog-card:hover { transform: translateY(-4px); border-color: var(--yh-gold); }
.yh-blog-card .yh-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--yh-gold); font-weight: 700; }
.yh-blog-card h3 { font-size: 18px; margin: 8px 0; }
.yh-blog-card p { font-size: 13.5px; color: var(--yh-muted); margin: 0; }
.yh-blog-card__date { font-size: 12px; color: var(--yh-muted); margin-top: 12px; display: block; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.yh-cta-band {
  text-align: center; padding: 80px 24px; background: radial-gradient(80% 140% at 50% 100%, rgba(212,175,55,.12), transparent 60%);
}
.yh-cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.yh-cta-band p { color: var(--yh-muted); max-width: 460px; margin: 0 auto 28px; }

/* ============================================================
   PLUGIN-INACTIVE NOTICE (front-end, graceful degrade)
   ============================================================ */
.yh-plugin-notice {
  max-width: 620px; margin: 40px auto; padding: 26px 28px; border-radius: var(--yh-radius);
  background: rgba(255,122,69,0.08); border: 1px solid rgba(255,122,69,0.35); color: var(--yh-sandstone); text-align: center; font-size: 14.5px;
}
.yh-plugin-notice strong { color: var(--yh-gold-pale); }

/* ============================================================
   FOOTER
   ============================================================ */
.yh-footer { background: #12040a; border-top: 1px solid var(--yh-glass-brd); padding: 64px 24px 0; }
.yh-footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.yh-footer-brand p { color: var(--yh-muted); font-size: 13.5px; margin-top: 14px; }
.yh-footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--yh-gold); margin-bottom: 14px; }
.yh-footer-col li { margin-bottom: 9px; }
.yh-footer-col a { font-size: 13.5px; color: var(--yh-sandstone); transition: color .2s ease; }
.yh-footer-col a:hover { color: var(--yh-gold-pale); }
.yh-footer-social { display: flex; gap: 10px; margin-top: 14px; }
.yh-footer-social a {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--yh-glass-brd); font-size: 14px;
}
.yh-footer-social a:hover { background: var(--yh-gold); color: #1a1206; }
.yh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px; max-width: 1180px; margin: 0 auto; color: var(--yh-muted); font-size: 12.5px;
}
.yh-footer-om { font-family: var(--yh-font-head); color: var(--yh-gold); font-size: 16px; }
@media (max-width: 820px) { .yh-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .yh-footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   404
   ============================================================ */
.yh-404 { text-align: center; padding: 140px 24px; }
.yh-404 .yh-404__glyph { font-family: var(--yh-font-head); font-size: 64px; color: var(--yh-gold); margin-bottom: 10px; }
.yh-404 h1 { font-size: 32px; }
.yh-404 p { color: var(--yh-muted); margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ═══════════════════════════════════════════════════
   YH BASELINE AMENDMENTS
═══════════════════════════════════════════════════ */

/* Tithi timing rows in client-side Panchang */
.yhh-pc-fact--tithi-timing {
  border-color: rgba(255,153,51,.35) !important;
  background: rgba(255,153,51,.07) !important;
}
.yhh-pc-fact--tithi-timing .yhh-pc-fact__label { color: var(--yh-saffron, #FF9933); }

/* Staggered reveal for Panchang cells */
.yhpc-cell { opacity:0; transform:translateY(8px); transition:opacity .4s ease, transform .4s ease; }
.yhpc-cell.loaded { opacity:1; transform:none; }

/* ═══════════════════════════════════════════════════
   GALLERY ANIMATION AMENDMENT
═══════════════════════════════════════════════════ */

/* ── Hub reveal fix ─────────────────────────────────
   When the Hub's IntersectionObserver (or our JS
   fallback) adds .is-visible, force full visibility.
   !important beats the Hub's own specificity.        */
.yhh-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Heritage Hub gallery card hover ────────────────
   Card has overflow:hidden — translateY lift only;
   scale the .cover child for the zoom effect.        */
.yhh-gallery-card {
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s ease,
              border-color .35s ease !important;
}
.yhh-gallery-card:hover {
  transform: translateY(-7px) !important;
  border-color: rgba(255,215,0,.45) !important;
  box-shadow: 0 26px 58px rgba(0,0,0,.6),
              0 0 0 1px rgba(255,215,0,.28) !important;
}
.yhh-gallery-card__cover {
  overflow: hidden;
  transition: transform .5s ease;
  transform-origin: center center;
}
.yhh-gallery-card:hover .yhh-gallery-card__cover {
  transform: scale(1.09);
}
/* If the Hub uses background-image on cover, zoom a
   pseudo-element overlay instead                     */
.yhh-gallery-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
  transform-origin: center center;
  z-index: 0;
}

/* ── Single album photo grid (.yh-album-grid__item) ──*/
.yh-album-grid__item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  display: block;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s ease,
              border-color .35s ease;
  opacity: 0;
  animation: yhAlbumIn .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.yh-album-grid__item:nth-child(1)  { animation-delay: .00s }
.yh-album-grid__item:nth-child(2)  { animation-delay: .05s }
.yh-album-grid__item:nth-child(3)  { animation-delay: .10s }
.yh-album-grid__item:nth-child(4)  { animation-delay: .15s }
.yh-album-grid__item:nth-child(5)  { animation-delay: .20s }
.yh-album-grid__item:nth-child(6)  { animation-delay: .25s }
.yh-album-grid__item:nth-child(7)  { animation-delay: .30s }
.yh-album-grid__item:nth-child(8)  { animation-delay: .35s }
.yh-album-grid__item:nth-child(9)  { animation-delay: .40s }
.yh-album-grid__item:nth-child(10) { animation-delay: .45s }
.yh-album-grid__item:nth-child(n+11) { animation-delay: .48s }
.yh-album-grid__item:hover {
  transform: translateY(-5px);
  border-color: rgba(255,215,0,.35);
  box-shadow: 0 20px 52px rgba(0,0,0,.5),
              0 0 0 1px rgba(255,215,0,.22);
}
.yh-album-grid__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.yh-album-grid__item:hover img { transform: scale(1.09); }

/* ── Native WP gallery block ── */
.yh-gallery figure,
.yh-gallery .blocks-gallery-item {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.yh-gallery figure:hover,
.yh-gallery .blocks-gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,215,0,.2);
}

/* ── Front-page gallery section tint ── */
.yhh-gallery-preview, .yhh-section--gallery {
  background: linear-gradient(180deg,
    var(--bg, #0d0d1a) 0%, rgba(92,26,42,.15) 50%, var(--bg, #0d0d1a) 100%);
}

/* ── Entrance keyframe ── */
@keyframes yhAlbumIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
