/* ============================================================
   SVTNC — SHARED BRAND TOKENS
   One source of truth for both skins:
     .skin-portal   → navy institutional (transactional pages)
     .skin-showcase → premium gold editorial (SKM large-booking pages)
   Both skins share the SAME shell (header/footer) so navigation
   feels seamless when a devotee moves from portal → SKM.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Open+Sans:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  /* --- Brand DNA (shared by both skins) --- */
  --navy: #1d3f73;
  --navy-dark: #143867;
  --navy-2: #264f8b;
  --gold: #c9963b;          /* unified gold — reconciles #d4af37 / #d9aa3a / #C9963B */
  --gold-dark: #b8872f;

  --ink: #212a3c;
  --muted: #5e6780;
  --line: #e2e7f1;
  --bg: #f5f7fb;
  --white: #fff;
  --danger: #b51432;

  /* --- Fonts --- */
  --font-portal-head: "Marcellus", serif;
  --font-portal-body: "Open Sans", sans-serif;
  --font-showcase-head: "Playfair Display", serif;
  --font-showcase-body: "Lato", sans-serif;

  /* --- Shell (header/footer) tokens: identical across skins --- */
  --shell-h: 66px;
  --shell-max: 1240px;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(8, 28, 66, 0.06);
  --shadow-md: 0 10px 26px rgba(8, 28, 66, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ============================================================
   SHARED SHELL — header + footer (same on every page)
   Rendered by /js/shell.js into #site-header / #site-footer.
   ============================================================ */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.shell-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 22px;
  min-height: var(--shell-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.shell-logo {
  font-family: var(--font-portal-head);
  font-size: 1.42rem;
  color: var(--navy);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.shell-logo-with-mark {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.shell-logo-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}
.shell-logo-with-mark span {
  display: flex;
  flex-direction: column;
}
.shell-logo small {
  font-family: var(--font-portal-body);
  font-size: 0.6rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #6b7690;
  margin-top: 4px;
  font-weight: 600;
}
.shell-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.shell-nav a {
  color: #33425f;
  font-family: var(--font-portal-body);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 11px;
  border: 1px solid rgba(226, 231, 241, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.shell-nav a:hover { background: #eef3ff; border-color: #cfdaf0; color: var(--navy); }
.shell-nav a.active { background: #eef3ff; border-color: #cfdaf0; color: var(--navy); }
.shell-nav a.is-external::after {
  content: "↗";
  font-size: .72em;
  margin-left: 3px;
  opacity: .6;
}
.shell-cta {
  background: linear-gradient(180deg, #dcb44a, var(--gold-dark));
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.shell-cta:hover { background: linear-gradient(180deg, #d3aa3f, #a97b26) !important; }

.shell-burger {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.2rem;
  border-radius: 6px;
  padding: 6px 11px;
  cursor: pointer;
}

#authBtn {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.btn-signin {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-showcase-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  min-height: 38px;
  padding: 0 18px;
  text-transform: uppercase;
}
.btn-signin:hover {
  background: var(--gold-dark);
}
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.user-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid #eadfc8;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--gold-dark);
  font-weight: 800;
}
.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.user-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--gold-dark);
  font-size: 16px;
  text-transform: uppercase;
}
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 260px;
  background: #fff;
  border: 1px solid #eadfc8;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(26, 45, 84, 0.18);
  padding: 8px;
  z-index: 2000;
}
.user-dropdown.show {
  display: block;
}
.user-profile {
  border-bottom: 1px solid #efe6d4;
  margin-bottom: 8px;
  padding: 8px 8px 10px;
}
.user-profile-name {
  color: #1f2f4c;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-profile-email {
  color: #667089;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown-link,
.user-dropdown-btn {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #27375a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px;
  text-align: left;
  text-transform: uppercase;
}
.user-dropdown-link:hover,
.user-dropdown-btn:hover {
  background: #fbf3e2;
  color: var(--gold-dark);
}

/* Temple-header variant: for Sponsor / QR-adjacent pages that need the
   legacy temple banner image above the shared nav. */
.shell-temple-banner {
  background: var(--navy) center/cover no-repeat;
  min-height: 120px;
}

/* ------------------------------------------------------------
   SHOWCASE NAVBAR — premium variant matching /skm/.
   Fixed + transparent over the hero, turns white on scroll.
   The shell renders <header class="shell-header shell-header--showcase">
   on pages that use the showcase skin.
   ------------------------------------------------------------ */
.shell-header--showcase {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  padding: 14px 0;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.shell-header--showcase .shell-inner {
  max-width: min(1500px, 94vw);
}
.shell-header--showcase.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 30px rgba(0,0,0,.08);
  padding: 6px 0;
}
.skin-showcase.no-hero {
  padding-top: var(--shell-h);
}
.skin-showcase.no-hero .shell-header--showcase {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 30px rgba(0,0,0,.08);
  padding: 6px 0;
}
.shell-header--showcase .shell-logo {
  font-family: var(--font-showcase-head);
  color: #fff;
  letter-spacing: 1px;
  transition: color .4s ease;
}
.shell-header--showcase .shell-logo small { color: rgba(255,255,255,.75); }
.shell-header--showcase.scrolled .shell-logo { color: var(--gold); }
.shell-header--showcase.scrolled .shell-logo small { color: #6b7690; }
.skin-showcase.no-hero .shell-header--showcase .shell-logo { color: var(--gold); }
.skin-showcase.no-hero .shell-header--showcase .shell-logo small { color: #6b7690; }

.shell-header--showcase .shell-nav a {
  font-family: var(--font-showcase-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  padding: 7px 9px;
  position: relative;
}
.shell-header--showcase .shell-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .3s ease;
}
.shell-header--showcase .shell-nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.shell-header--showcase .shell-nav a:hover::after,
.shell-header--showcase .shell-nav a.active::after { width: 100%; }
.shell-header--showcase.scrolled .shell-nav a { color: #2c2c2c; }
.shell-header--showcase.scrolled .shell-nav a {
  background: rgba(255,255,255,.82);
  border-color: #eadfc8;
}
.shell-header--showcase.scrolled .shell-nav a:hover { color: var(--gold); background: #fbf3e2; }
.skin-showcase.no-hero .shell-header--showcase .shell-nav a {
  color: #2c2c2c;
  background: rgba(255,255,255,.82);
  border-color: #eadfc8;
}
.skin-showcase.no-hero .shell-header--showcase .shell-nav a:hover {
  color: var(--gold);
  background: #fbf3e2;
}
.shell-header--showcase .shell-nav a.is-external::after { content: ''; }

.shell-header--showcase .shell-cta {
  background: var(--gold) !important;
  border-radius: 4px;
  padding: 9px 22px !important;
  letter-spacing: 1.5px;
}
.shell-header--showcase .shell-cta::after { display: none; }
.shell-header--showcase .shell-cta:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }

.shell-header--showcase .shell-burger {
  background: transparent;
  border: none;
  color: #fff;
}
.shell-header--showcase.scrolled .shell-burger { color: #2c2c2c; }

@media (max-width: 960px) {
  .shell-header--showcase .shell-inner {
    max-width: var(--shell-max);
  }
  .shell-header--showcase .shell-nav {
    background: rgba(20,15,5,.97);
    border-bottom: none;
  }
  .shell-header--showcase .shell-nav a,
  .shell-header--showcase.scrolled .shell-nav a { color: #fff; text-align: center; }
}

/* Fade-in on scroll (showcase) */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Footer */
.shell-footer {
  background: #0e1625;
  color: #c3cee8;
  border-top: 4px solid #243d6d;
  font-family: var(--font-portal-body);
}
.shell-footer-inner {
  max-width: min(1500px, 94vw);
  margin: 0 auto;
  padding: 40px 22px 30px;
  display: grid;
  grid-template-columns: 170px 1.25fr 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
.shell-footer h4 {
  color: #fff;
  font-family: var(--font-portal-head);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.shell-footer-logo-block {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
}
.shell-footer-logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
}
.shell-footer a, .shell-footer p {
  color: #c3cee8;
  font-size: .92rem;
  line-height: 1.75;
}
.shell-footer p { margin: 0 0 4px; }
.shell-footer a:hover { color: #fff7d5; }
.shell-footer-bottom {
  text-align: center;
  color: #8f9dbd;
  font-size: .85rem;
  padding: 16px;
  border-top: 1px solid #2a3650;
}

@media (max-width: 960px) {
  .shell-burger { display: block; }
  .shell-nav {
    display: none;
    position: absolute;
    top: var(--shell-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px;
    gap: 4px;
  }
  .shell-nav.open { display: flex; }
  .shell-footer-inner {
    grid-template-columns: 130px repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
  .shell-footer-logo { width: 106px; height: 106px; }
}
@media (max-width: 560px) {
  .shell-footer-inner { grid-template-columns: 1fr; }
  .shell-logo-mark { width: 38px; height: 38px; }
  .shell-logo { font-size: 1.12rem; }
  .shell-logo small { font-size: 0.5rem; letter-spacing: 1px; }
  .shell-footer-logo-block { justify-content: flex-start; }
  .shell-footer-logo { width: 70px; height: 70px; }
}

/* ============================================================
   SKIN: PORTAL (navy institutional) — transactional pages
   ============================================================ */
.skin-portal {
  font-family: var(--font-portal-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.skin-portal .wrap { max-width: var(--shell-max); margin: 0 auto; padding: 0 22px; }

.skin-portal .hero {
  background: linear-gradient(180deg, #1b3f70 0%, #0f2f5a 100%);
  color: #eaf1ff;
  padding: 76px 0;
  text-align: center;
}
.skin-portal .hero .kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.skin-portal .hero h1 {
  font-family: var(--font-portal-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 16px;
}
.skin-portal .hero p { max-width: 640px; margin: 0 auto 26px; opacity: .92; }

.skin-portal .btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s;
}
.skin-portal .btn-primary { background: var(--gold); color: #23303f; border-color: var(--gold); }
.skin-portal .btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color:#fff; }
.skin-portal .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.skin-portal .btn-outline:hover { background: #fff; color: var(--navy); }

.skin-portal .section { padding: 60px 0; }
.skin-portal .sec-head { text-align: center; margin-bottom: 34px; }
.skin-portal .sec-head h2 { font-family: var(--font-portal-head); font-size: 2rem; color: var(--ink); }
.skin-portal .sec-head p { color: var(--muted); margin-top: 6px; }

.skin-portal .portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.skin-portal .portal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s, box-shadow .18s;
}
.skin-portal .portal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.skin-portal .portal-card h3 { font-family: var(--font-portal-head); font-size: 1.2rem; color: var(--navy); }
.skin-portal .portal-card p { color: var(--muted); font-size: .94rem; }
.skin-portal .portal-card a {
  margin-top: auto;
  align-self: flex-start;
  background: var(--navy-dark);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
}
.skin-portal .portal-card a:hover { background: var(--navy); }
/* the SKM cards nudge toward gold to hint at the premium destination */
.skin-portal .portal-card.is-skm { border-top: 3px solid var(--gold); }
.skin-portal .portal-card.is-skm a { background: var(--gold-dark); }
.skin-portal .portal-card.is-skm a:hover { background: #a97b26; }

/* ============================================================
   SKIN: SHOWCASE (premium gold editorial) — SKM large bookings
   ============================================================ */
.skin-showcase {
  font-family: var(--font-showcase-body);
  color: #2c2c2c;
  background: #fff;
  line-height: 1.7;
}
.skin-showcase h1, .skin-showcase h2, .skin-showcase h3 {
  font-family: var(--font-showcase-head);
  font-weight: 600;
  line-height: 1.25;
}
.skin-showcase .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skin-showcase .label {
  font-family: var(--font-showcase-body);
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.skin-showcase .divider { width: 60px; height: 2px; background: var(--gold); margin: 0 auto 34px; }

.skin-showcase .sk-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(20,15,5,.5), rgba(20,15,5,.55)),
              #2c2317 center/cover no-repeat;
}
.skin-showcase .sk-hero .container { position: relative; z-index: 2; width: 100%; }
.skin-showcase .sk-hero .label { color: #f0d089; }
.skin-showcase .sk-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: #fff; margin-bottom: 18px; }
.skin-showcase .sk-hero p { max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; opacity: .94; }

.skin-showcase .sk-cta {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid var(--gold);
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  transition: all .25s;
}
.skin-showcase .sk-cta:hover { background: var(--gold); color: #2c2317; }
.skin-showcase .sk-cta.solid { background: var(--gold); color: #2c2317; }
.skin-showcase .sk-cta.solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

.skin-showcase .sk-section { padding: 96px 0; }
.skin-showcase .sk-section.alt { background: #faf7f1; }
.skin-showcase .sk-section h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 8px; }

.skin-showcase .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
  margin-top: 20px;
}
.skin-showcase .feature {
  text-align: center;
  padding: 34px 24px;
  border: 1px solid #efe6d4;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.skin-showcase .feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(120,90,30,.12); }
.skin-showcase .feature .ic { font-size: 2rem; color: var(--gold); margin-bottom: 14px; }
.skin-showcase .feature h3 { font-size: 1.35rem; margin-bottom: 10px; }
.skin-showcase .feature p { color: #6b6155; font-size: .96rem; }

.skin-showcase .stat-band {
  background: #2c2317;
  color: #f3e9d6;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  text-align: center;
  padding: 54px 24px;
}
.skin-showcase .stat b { display: block; font-family: var(--font-showcase-head); font-size: 2.6rem; color: var(--gold); }
.skin-showcase .stat span { letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; opacity: .85; }

.skin-showcase .booking-band {
  text-align: center;
  padding: 90px 24px;
  background: linear-gradient(135deg, #b8872f 0%, #c9963b 100%);
  color: #fff;
}
.skin-showcase .booking-band h2 { color: #fff; font-size: clamp(2rem,4vw,2.8rem); }
.skin-showcase .booking-band p { max-width: 560px; margin: 12px auto 28px; opacity: .95; }
.skin-showcase .booking-band .sk-cta { border-color: #fff; }
.skin-showcase .booking-band .sk-cta:hover { background: #fff; color: var(--gold-dark); }

@media (max-width: 640px) {
  .skin-showcase .sk-section { padding: 64px 0; }
}
