/* Bihar Mandir Yatra v5 — Phase 1: Divine Design System + Header + Hero */
:root{
  --v4-maroon:#86172c;
  --v4-maroon-2:#5b1020;
  --v4-saffron:#d77b22;
  --v4-gold:#d7a84d;
  --v4-cream:#fbf5e9;
  --v4-paper:#fffdf8;
  --v4-ink:#2a211c;
  --v4-muted:#76665c;
  --v4-line:#eadcc7;
  --v4-soft:#f5e8d5;
  --v5-kumkum:#a52038;
  --v5-deep:#4e0b18;
  --v5-ivory:#fffaf0;
  --v5-sand:#f1dfc3;
  --v5-shadow:0 18px 54px rgba(69,37,18,.14);
  --v5-serif:"Noto Serif Devanagari","Nirmala UI","Kohinoor Devanagari",Georgia,"Times New Roman",serif;
  --v5-sans:"Noto Sans Devanagari","Nirmala UI","Kohinoor Devanagari",Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
html{scroll-padding-top:82px}
body.bmy-v5p1{background:var(--v4-cream);font-family:var(--v5-sans);color:var(--v4-ink)}
body.bmy-v5p1 :is(h1,h2,h3,.brand-copy strong){font-family:var(--v5-serif)}

/* Single contextual announcement bar */
.v5-announcement{height:30px;background:linear-gradient(90deg,var(--v5-deep),#781127 52%,var(--v5-deep));color:#fff8e7;position:relative;z-index:125}
.v5-announcement a{height:30px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-size:10px;font-weight:800;letter-spacing:.15px;text-align:center}
.v5-announcement .v5-ann-dot{width:5px;height:5px;border-radius:50%;background:#efc66a;box-shadow:0 0 0 3px rgba(239,198,106,.12)}
.v5-announcement b{color:#f2ce79;font-size:13px}

/* Header */
body.bmy-v5p1:not(.bmy-special) .header.v5-header{position:sticky;top:0;z-index:120;background:rgba(255,253,248,.94);backdrop-filter:blur(18px) saturate(1.1);box-shadow:0 1px 0 rgba(80,42,22,.09),0 10px 34px rgba(59,30,17,.04)}
body.bmy-v5p1:not(.bmy-special) .v5-nav{height:66px;gap:12px}
body.bmy-v5p1:not(.bmy-special) .brand{gap:9px}
body.bmy-v5p1:not(.bmy-special) .brand-icon{width:40px;height:40px;flex:0 0 40px;background:linear-gradient(145deg,#ed9c2f,#bc4825);box-shadow:0 7px 18px rgba(152,68,30,.18)}
body.bmy-v5p1:not(.bmy-special) .brand-icon::after{height:3px;bottom:-4px;background:var(--v5-kumkum)}
body.bmy-v5p1:not(.bmy-special) .brand-copy strong{font-size:18px;line-height:1;color:var(--v5-kumkum);letter-spacing:-.2px}
body.bmy-v5p1:not(.bmy-special) .brand-copy small{font-size:7.5px;color:#876b5a;letter-spacing:.35px;margin-top:4px}
body.bmy-v5p1:not(.bmy-special) .desktop-nav{display:none}
body.bmy-v5p1:not(.bmy-special) .actions{margin-left:auto;display:flex;align-items:center;gap:7px}
body.bmy-v5p1:not(.bmy-special) .actions .lang-switch,body.bmy-v5p1:not(.bmy-special) .actions .book-btn{display:none}
body.bmy-v5p1:not(.bmy-special) .actions>[data-v4-saved-open]{display:none!important}
body.bmy-v5p1:not(.bmy-special) .icon-btn,
body.bmy-v5p1:not(.bmy-special) .menu-btn{width:40px;height:40px;border:1px solid rgba(125,85,57,.16);border-radius:12px;background:#fff;color:var(--v5-kumkum);box-shadow:0 3px 12px rgba(70,38,22,.04)}
body.bmy-v5p1:not(.bmy-special) .icon-btn svg{width:20px;height:20px;stroke-width:1.8}
body.bmy-v5p1:not(.bmy-special) .menu-btn{font-size:0;position:relative}
body.bmy-v5p1:not(.bmy-special) .menu-btn::before,
body.bmy-v5p1:not(.bmy-special) .menu-btn::after{content:"";position:absolute;left:11px;right:11px;height:2px;background:currentColor;border-radius:2px;transition:.2s}
body.bmy-v5p1:not(.bmy-special) .menu-btn::before{top:14px;box-shadow:0 6px 0 currentColor}
body.bmy-v5p1:not(.bmy-special) .menu-btn::after{top:26px}
body.bmy-v5p1:not(.bmy-special) .mobile-nav{top:74px;border-radius:20px;border:1px solid rgba(126,83,52,.14);background:rgba(255,253,249,.98);box-shadow:0 26px 70px rgba(60,31,18,.2);padding:14px}
body.bmy-v5p1:not(.bmy-special) .mobile-nav>a{border-radius:12px;background:#fffaf2;border-color:#eee0ca;padding:12px;font-size:12px}

/* Hero: mobile first */
body.bmy-v5p1:not(.bmy-special) .hero.v5-hero{position:relative;min-height:0;padding:0;overflow:hidden;background:linear-gradient(180deg,#fff8ed,#fbf2e5);isolation:isolate}
.v5-hero-media{position:absolute;inset:0 0 auto;height:340px;overflow:hidden;z-index:0;background:#d9b277}
.v5-hero-media img{width:100%;height:100%;object-fit:cover;object-position:67% center;filter:saturate(1.12) contrast(1.04) brightness(1.01);transform:scale(1.015)}
.v5-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(58,17,18,.02) 0%,rgba(71,28,18,.04) 48%,rgba(255,248,237,.38) 72%,#fff8ed 100%)}
.v5-hero-media::before{content:"";position:absolute;z-index:2;left:-15%;top:-30%;width:62%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(255,210,116,.30),rgba(255,210,116,0) 68%);pointer-events:none}
body.bmy-v5p1:not(.bmy-special) .hero-content.v5-hero-content{position:relative;z-index:4;min-height:0;padding:285px 0 34px;display:block}
.v5-hero-copy{position:relative;background:rgba(255,250,240,.96);border:1px solid rgba(215,168,77,.27);border-radius:24px;padding:22px 18px 20px;box-shadow:var(--v5-shadow);backdrop-filter:blur(15px)}
.v5-sacred-tag{display:inline-flex;align-items:center;gap:7px;margin-bottom:11px;padding:6px 9px 5px;border:1px solid rgba(164,104,44,.15);background:#fff6e7;border-radius:999px;color:#845331;font-size:9px;font-weight:900;letter-spacing:.45px;text-transform:uppercase}
.v5-sacred-tag .om{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:linear-gradient(145deg,#efaa43,#d16a27);color:#fff;font-size:13px}
body.bmy-v5p1:not(.bmy-special) .v5-hero-copy h1{margin:0;color:var(--v5-kumkum);font-size:clamp(43px,12vw,58px);line-height:.96;letter-spacing:-1.25px;font-weight:800}
body.bmy-v5p1:not(.bmy-special) .v5-hero-copy h1 span{display:block;color:var(--v5-deep)}
.v5-hero-lead{margin:13px 0 0!important;max-width:590px;color:#5d4a40!important;font-size:14px!important;line-height:1.55!important;font-weight:600}
.v5-hero-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:18px}
.v5-hero-actions a{min-height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:900;transition:transform .18s,box-shadow .18s}
.v5-hero-actions a:hover{transform:translateY(-1px)}
.v5-hero-actions .primary{background:linear-gradient(135deg,var(--v5-kumkum),#771326);color:#fff;box-shadow:0 10px 24px rgba(134,23,44,.20)}
.v5-hero-actions .secondary{background:#fff;border:1px solid #e3c891;color:var(--v5-kumkum)}
.v5-hero-actions svg{width:18px;height:18px;stroke-width:1.8}
body.bmy-v5p1:not(.bmy-special) .hero-search{margin-top:16px;max-width:none;grid-template-columns:38px 1fr auto;border-radius:14px;padding:4px;border:1px solid #ead9bd;background:#fff;box-shadow:0 10px 26px rgba(72,39,22,.08)}
body.bmy-v5p1:not(.bmy-special) .hero-search input{height:48px;font-size:13px;padding:0 2px}
body.bmy-v5p1:not(.bmy-special) .hero-search>button{height:44px;border-radius:10px;padding:0 13px;background:var(--v5-kumkum);font-size:11px}
body.bmy-v5p1:not(.bmy-special) .popular{margin-top:11px;gap:6px}
body.bmy-v5p1:not(.bmy-special) .popular b{font-size:9px;color:#81695c}
body.bmy-v5p1:not(.bmy-special) .popular button{font-size:9px;padding:6px 8px;background:#fffaf1;border-color:#eadcc7}
.v5-hero-trust{display:flex;gap:12px;flex-wrap:wrap;margin-top:13px;padding-top:12px;border-top:1px solid #eadcc7;color:#7b665a}
.v5-hero-trust span{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:750}
.v5-hero-trust i{width:7px;height:7px;border-radius:50%;background:var(--v4-gold);box-shadow:0 0 0 3px rgba(215,168,77,.12)}

/* Keep the rest of Phase 1 on the existing v4.1 architecture. */
body.bmy-v5p1:not(.bmy-special) .quick-wrap{border-top:1px solid rgba(216,185,134,.28)}

@media (min-width:720px){
  body.bmy-v5p1:not(.bmy-special) .brand-copy strong{font-size:20px}
  body.bmy-v5p1:not(.bmy-special) .brand-copy small{font-size:8px}
  .v5-hero-media{height:430px}
  body.bmy-v5p1:not(.bmy-special) .hero-content.v5-hero-content{padding-top:360px;padding-bottom:42px}
  .v5-hero-copy{max-width:680px;padding:28px 28px 24px}
  body.bmy-v5p1:not(.bmy-special) .v5-hero-copy h1{font-size:64px}
  .v5-hero-actions{grid-template-columns:1fr 1fr;max-width:500px}
  body.bmy-v5p1:not(.bmy-special) .hero-search{max-width:700px}
}

@media (min-width:980px){
  .v5-announcement{height:32px}.v5-announcement a{height:32px;font-size:10.5px}
  body.bmy-v5p1:not(.bmy-special) .v5-nav{height:72px}
  body.bmy-v5p1:not(.bmy-special) .desktop-nav{display:flex;margin-left:auto;align-items:center;gap:24px}
  body.bmy-v5p1:not(.bmy-special) .desktop-nav a{position:relative;padding:27px 0 24px;color:#4f3d34;font-size:11px;font-weight:800;white-space:nowrap}
  body.bmy-v5p1:not(.bmy-special) .desktop-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:17px;height:2px;background:var(--v5-kumkum);transition:.2s}
  body.bmy-v5p1:not(.bmy-special) .desktop-nav a:hover::after,body.bmy-v5p1:not(.bmy-special) .desktop-nav a.active::after{right:0}
  body.bmy-v5p1:not(.bmy-special) .actions .lang-switch{display:flex;border:1px solid #eadbc7;background:#fff9ee;padding:2px;border-radius:999px}
  body.bmy-v5p1:not(.bmy-special) .actions .lang{min-width:29px;padding:6px 7px;border-radius:999px;font-size:9px}
  body.bmy-v5p1:not(.bmy-special) .actions .book-btn{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px;border-radius:10px;background:linear-gradient(135deg,var(--v5-kumkum),#741124);color:#fff;font-size:10px;font-weight:900;box-shadow:0 8px 20px rgba(134,23,44,.15)}
  body.bmy-v5p1:not(.bmy-special) .actions .book-btn svg{width:17px;height:17px}
  body.bmy-v5p1:not(.bmy-special) .menu-btn{display:none}
  body.bmy-v5p1:not(.bmy-special) .mobile-nav{display:none!important}

  body.bmy-v5p1:not(.bmy-special) .hero.v5-hero{min-height:620px;background:#fff8ed}
  .v5-hero-media{inset:0 0 0 auto;width:61%;height:100%;z-index:0}
  .v5-hero-media img{object-position:60% center;transform:scale(1.018)}
  .v5-hero-media::after{background:linear-gradient(90deg,#fff8ed 0%,rgba(255,248,237,.92) 9%,rgba(255,248,237,.40) 34%,rgba(255,248,237,.05) 62%,rgba(59,20,17,.03) 100%),linear-gradient(180deg,rgba(87,28,20,.04),rgba(71,25,19,.12))}
  .v5-hero-media::before{left:-12%;top:-5%;width:55%;background:radial-gradient(circle,rgba(255,215,133,.34),rgba(255,215,133,0) 70%)}
  body.bmy-v5p1:not(.bmy-special) .hero-content.v5-hero-content{min-height:620px;padding:54px 0;display:flex;align-items:center}
  .v5-hero-copy{width:min(49%,620px);max-width:none;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
  .v5-sacred-tag{margin-bottom:15px;background:rgba(255,249,238,.82);backdrop-filter:blur(8px)}
  body.bmy-v5p1:not(.bmy-special) .v5-hero-copy h1{font-size:clamp(70px,5.5vw,88px);line-height:.94;letter-spacing:-2px;text-shadow:0 2px 14px rgba(255,255,255,.28)}
  .v5-hero-lead{font-size:16px!important;max-width:550px;margin-top:17px!important}
  .v5-hero-actions{display:flex;max-width:none;gap:10px;margin-top:22px}
  .v5-hero-actions a{min-height:50px;padding:0 20px;min-width:170px}
  body.bmy-v5p1:not(.bmy-special) .hero-search{max-width:660px;margin-top:20px;background:rgba(255,255,255,.95);box-shadow:0 20px 50px rgba(75,39,19,.13)}
  body.bmy-v5p1:not(.bmy-special) .hero-search input{font-size:14px}
  .v5-hero-trust{max-width:600px}
}

@media (min-width:1280px){
  body.bmy-v5p1:not(.bmy-special) .desktop-nav{gap:28px}
  body.bmy-v5p1:not(.bmy-special) .hero-content.v5-hero-content{min-height:650px}
  body.bmy-v5p1:not(.bmy-special) .hero.v5-hero{min-height:650px}
}

@media (prefers-reduced-motion:no-preference){
  .v5-hero-copy{animation:v5rise .55s ease both}.v5-hero-media img{animation:v5zoom 9s ease-out both}
  @keyframes v5rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  @keyframes v5zoom{from{transform:scale(1.04)}to{transform:scale(1.015)}}
}
/* Critical override against the legacy fixed-height hero */
body.bmy-v5p1:not(.bmy-special) .hero.v5-hero{height:auto!important}
body.bmy-v5p1:not(.bmy-special) .hero-content.v5-hero-content{height:auto!important;align-items:stretch}
@media (min-width:980px){body.bmy-v5p1:not(.bmy-special) .hero-content.v5-hero-content{align-items:center}}
