/* ==========================================================================
   Shuvatara — Modern Header & Hero Slider
   Scoped under `sh-` prefix so it never collides with the legacy theme CSS.
   Fonts (Playfair Display + Lato) are loaded once via a <link> in
   templates/index.html's <head> — not repeated here as a render-blocking
   @import.
   ========================================================================== */

:root {
  --sh-navy: #0b1420;
  --sh-navy-2: #101d2e;
  --sh-gold: #d4af6a;
  --sh-gold-light: #f1dfb5;
  --sh-header-h: 92px;
  --sh-header-h-scrolled: 74px;
  --sh-autoplay-duration: 6.5s;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body.sh-no-scroll { overflow: hidden; }

/* ---------------------------------- Header ---------------------------------- */
.sh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--sh-header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.6) 0%, rgba(6, 10, 18, 0.1) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .35s ease, height .35s ease, box-shadow .35s ease;
}
.sh-header.is-scrolled {
  height: var(--sh-header-h-scrolled);
  background: rgba(9, 15, 26, 0.88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.sh-header__inner {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sh-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.sh-header__logo img { height: 60px; width: auto; display: block; transition: height .35s ease; }
.sh-header.is-scrolled .sh-header__logo img { height: 48px; }

.sh-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sh-nav__list li a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  transition: color .25s ease;
}
.sh-nav__list li a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--sh-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.sh-nav__list li a:hover { color: var(--sh-gold-light); }
.sh-nav__list li a:hover::after { transform: scaleX(1); }

.sh-header__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.sh-btn--accent {
  background: linear-gradient(135deg, var(--sh-gold-light), var(--sh-gold));
  color: #241a05;
  box-shadow: 0 8px 20px rgba(212, 175, 106, .35);
}
.sh-btn--accent:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 175, 106, .45); color: #241a05; }
.sh-btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.sh-btn--ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.sh-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.sh-burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.sh-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-burger.is-active span:nth-child(2) { opacity: 0; }
.sh-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sh-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 7, 12, .55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 997;
}
.sh-nav-overlay.is-active { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
  .sh-burger { display: flex; }
  .sh-header__actions .sh-btn--accent { padding: 10px 18px; font-size: 13px; }
  .sh-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(360px, 86vw);
    height: 100dvh; height: 100vh;
    background: linear-gradient(180deg, var(--sh-navy-2), var(--sh-navy));
    box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
    z-index: 998;
    padding: 110px 32px 40px;
    transition: right .4s cubic-bezier(.22, .61, .36, 1);
    overflow-y: auto;
  }
  .sh-nav.is-open { right: 0; }
  .sh-nav__list { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
  .sh-nav__list li { width: 100%; }
  .sh-nav__list li a { display: block; width: 100%; padding: 14px 6px; font-size: 16px; }
  .sh-nav__list li a::after { left: 6px; right: 6px; }
}

@media (max-width: 420px) {
  .sh-header__logo img { height: 44px; }
  .sh-header.is-scrolled .sh-header__logo img { height: 38px; }
}

/* ---------------------------------- Hero ---------------------------------- */
.sh-hero {
  position: relative;
  width: 100%;
  height: 100vh; height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: var(--sh-navy);
}
.sh-hero__track { position: absolute; inset: 0; }

.sh-hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
  overflow: hidden;
}
.sh-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 1.2s ease, visibility 0s linear 0s;
}

.sh-hero__bg {
  position: absolute;
  inset: -20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
}
.sh-hero__slide.is-active .sh-hero__bg {
  animation: shKenBurns 9s ease-in-out forwards;
}

.sh-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 15, .58) 0%, rgba(4, 8, 15, .32) 45%, rgba(4, 8, 15, .78) 100%);
}

.sh-hero__content {
  position: relative; z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sh-header-h) 24px 0;
  opacity: 0;
  transform: translateY(24px);
}
.sh-hero__slide.is-active .sh-hero__content {
  animation: shFadeUp .9s ease .25s forwards;
}

.sh-hero__eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sh-gold-light);
  margin-bottom: 18px;
}
.sh-hero__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.sh-hero__subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .88);
  max-width: 600px;
  margin: 0 0 34px;
  line-height: 1.7;
}
.sh-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

@keyframes shFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes shKenBurns { from { transform: scale(1); } to { transform: scale(1.12); } }

.sh-hero__controls {
  position: absolute;
  left: 0; right: 0; bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.sh-hero__arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.sh-hero__arrow:hover { background: var(--sh-gold); color: #241a05; border-color: var(--sh-gold); transform: scale(1.06); }

.sh-hero__dots { display: flex; align-items: center; gap: 10px; }
.sh-hero__dot {
  position: relative;
  width: 34px; height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .35);
  border: none;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.sh-hero__dot::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--sh-progress, 0%);
  background: var(--sh-gold);
  transition: width var(--sh-autoplay-duration) linear;
}

.sh-hero__scroll {
  position: absolute;
  right: 36px; bottom: 42px;
  z-index: 4;
  width: 30px; height: 50px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.sh-hero__scroll span { width: 4px; height: 8px; background: #fff; border-radius: 3px; animation: shScrollDot 1.6s ease infinite; }
@keyframes shScrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 767px) {
  .sh-hero__scroll { display: none; }
  .sh-hero__controls { bottom: 20px; gap: 14px; }
  .sh-hero__arrow { width: 38px; height: 38px; font-size: 15px; }
  .sh-hero__content { padding-top: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-hero__slide.is-active .sh-hero__bg { animation: none; }
  .sh-hero__slide.is-active .sh-hero__content { animation: none; opacity: 1; transform: none; }
  .sh-hero__scroll span { animation: none; }
}
