/* ================================================================
   AMORA | Transparent Header + Animated, Image-Led Hero
   2026 redesign – public homepage only.
   Load AFTER css/styles.css. Existing modal, team and admin CSS untouched.
   ================================================================ */

/* Scroll anchors shouldn't hide below the floating header. */
html { scroll-padding-top: 112px; }

/* HEADER — transparent over the first hero frame, glass on scroll */
#mainHeader.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 950;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background .36s ease, border-color .36s ease,
              box-shadow .36s ease, -webkit-backdrop-filter .36s ease,
              backdrop-filter .36s ease;
}
#mainHeader.header.is-scrolled {
  background: rgba(12, 24, 62, .88);
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(7, 16, 48, .18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
#mainHeader .navbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  column-gap: clamp(12px, 2.4vw, 30px);
  min-height: 92px;
  max-width: 1480px;
  padding-top: 13px;
  padding-bottom: 13px;
}
#mainHeader .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  border-radius: 12px;
}
#mainHeader .logo img {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 7px 22px rgba(0,0,0,.15);
  object-fit: contain;
}
#mainHeader .logo h2 {
  color: #fff;
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.22;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
#mainHeader .logo h2 span { color: #ffe2a1; font-weight: 650; }

#mainHeader .nav-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  width: max-content;
  white-space: nowrap;
}
#mainHeader .nav-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  width: auto;
  min-width: 142px;
  min-height: 46px;
  padding: 11px 21px;
  margin: 0;
  border-radius: 999px;
  line-height: 1.1;
  font-family: var(--font-display), 'Sora', sans-serif;
  font-weight: 750;
  font-size: 13.5px;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease,
              background .25s ease, color .25s ease, border-color .25s ease;
}
#mainHeader .nav-actions > button i { flex: none; font-size: 13px; }
#mainHeader #headerEnrollBtn.amora-enroll-btn {
  background: linear-gradient(130deg, #ffe7a0, #ffc94a);
  border: 1px solid rgba(255, 230, 154, .8);
  color: #17205c;
  box-shadow: 0 8px 24px rgba(255, 201, 74, .22);
}
#mainHeader #headerEnrollBtn.amora-enroll-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(130deg, #fff3cd, #ffd56c);
  box-shadow: 0 13px 30px rgba(255, 201, 74, .32);
}
#mainHeader #headerLoginBtn.login-btn {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#mainHeader #headerLoginBtn.login-btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.95);
  color: #152352;
  border-color: #fff;
  box-shadow: 0 12px 25px rgba(0,0,0,.16);
}
#mainHeader .nav-actions > button:focus-visible,
#mainHeader .logo:focus-visible,
#mainHeader .mobile-menu-btn:focus-visible {
  outline: 3px solid #ffc94a;
  outline-offset: 4px;
}
#mainHeader .mobile-menu-btn {
  grid-column: 3;
  grid-row: 1;
  color: white;
  margin-left: 0;
}
#mainHeader .mobile-menu-btn span { background: #fff; }

/* HERO — cinematic image crossfade, readable navy wash, soft motion */
#home.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: clamp(155px, 12vw, 190px) 0 112px;
  background: radial-gradient(circle at 78% 30%, #334d98, transparent 52%),
              linear-gradient(135deg,#0d1843 0%,#17336f 58%,#15204d 100%);
  color: #fff;
}
#home .amora-hero-scene {
  position: absolute;
  inset: -24px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#home .amora-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: blur(16px) saturate(1.25);
  transform: scale(1.08);
  transition: opacity 1.65s ease, transform 11s ease-out;
  will-change: opacity;
}
#home .amora-hero-photo.is-active {
  opacity: .75;
  transform: scale(1.16);
}
#home .amora-hero-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,17,48,.55) 0%, rgba(10,25,60,.54) 40%, rgba(8,17,47,.84) 100%),
    linear-gradient(110deg, rgba(10,16,46,.66), rgba(18,43,90,.4) 55%, rgba(15,19,58,.7));
}
#home .amora-hero-glow {
  position: absolute;
  inset: 0;
  opacity: .7;
  background:
    radial-gradient(ellipse at 15% 35%, rgba(255,201,74,.19), transparent 38%),
    radial-gradient(ellipse at 86% 60%, rgba(72,135,255,.3), transparent 43%);
  animation: amoraGlowDrift 12s ease-in-out infinite alternate;
}
#home .hero-aurora {
  z-index: 1;
  opacity: .25;
  mix-blend-mode: screen;
}
#home .floating-shape {
  z-index: 2;
  border-color: rgba(255,255,255,.12);
}
#home > .container {
  position: relative;
  z-index: 3;
}
#home .hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}
#home .hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 58px) clamp(22px, 5vw, 72px);
  text-align: center;
  background: linear-gradient(145deg, rgba(17,30,72,.44), rgba(9,22,58,.29));
  border: 1px solid rgba(255,255,255,.19);
  border-radius: clamp(26px, 3vw, 42px);
  box-shadow: 0 32px 85px rgba(5,13,37,.20), inset 0 1px rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  animation: amoraHeroEnter .9s cubic-bezier(.22,1,.36,1) both;
}
#home .hero-eyebrow {
  order: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font: 700 11px/1.4 var(--font-body);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #fff4d5;
}
#home .hero-eyebrow i {
  color: #ffc94a;
  font-size: 10px;
}
#home .hero-logo {
  margin: 0 0 18px;
}
#home .hero-logo img {
  width: clamp(90px, 8vw, 116px);
  height: clamp(90px, 8vw, 116px);
  padding: 6px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.22), 0 0 0 8px rgba(255,255,255,.09);
  animation: amoraLogoFloat 5s ease-in-out infinite;
}
#home .hero-text h1 {
  margin: 0 0 18px;
  max-width: 860px;
  color: #fff;
  font-size: clamp(2.6rem, 5.8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(4,9,30,.2);
}
#home .hero-text h1 .highlight {
  color: #ffdc7c;
  background: linear-gradient(110deg, #ffeaae, #ffc94a 62%, #fff4d2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: normal;
}
#home .hero-text h1 .highlight::after { display: none; }
#home .tagline {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 19px;
  padding: 8px 17px;
  color: #fff1cb;
  background: rgba(255,201,74,.09);
  border: 1px solid rgba(255,201,74,.25);
  border-radius: 999px;
  font-size: 13px;
}
#home .tagline i { color: #ffdc83; opacity: .9; }
#home .hero-text > p {
  max-width: 610px;
  margin: 0 0 30px;
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.75;
  color: rgba(244,247,255,.87);
}
#home .hero-buttons {
  justify-content: center;
  gap: 13px;
  width: 100%;
}
#home .hero-buttons a {
  min-height: 52px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform .25s ease, box-shadow .25s ease,
              color .25s ease, background .25s ease, border-color .25s ease;
}
#home .hero-buttons .btn-primary {
  background: #ffc94a;
  color: #14204c;
  box-shadow: 0 11px 30px rgba(255,201,74,.26);
}
#home .hero-buttons .btn-primary:hover {
  background: #ffe2a0;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(255,201,74,.36);
}
#home .hero-buttons .btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.09);
}
#home .hero-buttons .btn-secondary:hover {
  background: rgba(255,255,255,.95);
  color: #17205c;
  border-color: white;
  transform: translateY(-4px);
}
#home .hero-buttons a:focus-visible {
  outline: 3px solid #ffc94a;
  outline-offset: 4px;
}
#home .hero-scroll-hint {
  position: relative;
  z-index: 3;
  justify-content: center;
  margin: 32px auto 0;
  color: rgba(255,255,255,.8);
  font-size: 11px;
  letter-spacing: .16em;
}
#home .hero-scroll-hint i { color: #ffc94a; }

/* Accessible motion, sized for tablets and phones */
@keyframes amoraHeroEnter {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes amoraLogoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes amoraGlowDrift {
  to { transform: translateX(-5%) scale(1.06); opacity: .85; }
}
@media (max-width: 960px) {
  #mainHeader .navbar { min-height: 80px; }
  #mainHeader .nav-actions > button { min-width: 128px; padding: 10px 16px; }
  #home.hero { min-height: 690px; padding-top: 143px; }
}
@media (max-width: 700px) {
  #mainHeader .navbar {
    grid-template-columns: minmax(0,1fr) auto;
    row-gap: 11px;
    min-height: 0;
    padding: 13px 20px 14px;
  }
  #mainHeader .logo img { width: 39px; height: 39px; border-radius: 12px; }
  #mainHeader .logo h2 { font-size: clamp(13px,3.7vw,17px); }
  #mainHeader .nav-actions {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    width: 100%;
  }
  #mainHeader .nav-actions > button {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 12px;
    font-size: 12.5px;
  }
  #mainHeader .mobile-menu-btn { grid-column: 2; grid-row: 1; }
  #home.hero {
    min-height: auto;
    padding: 182px 0 95px;
  }
  #home .hero-text {
    padding: 32px 23px 36px;
    border-radius: 28px;
  }
  #home .hero-text h1 { font-size: clamp(2.35rem, 9vw, 3.8rem); }
  #home .hero-text > p { font-size: 15px; }
}
@media (max-width: 420px) {
  #mainHeader .navbar { padding-left: 15px; padding-right: 15px; }
  #mainHeader .logo { gap: 8px; }
  #mainHeader .logo h2 { font-size: 13px; }
  #mainHeader .nav-actions > button { font-size: 12px; gap: 7px; }
  #home.hero { padding-top: 180px; }
  #home .hero-eyebrow { font-size: 9px; letter-spacing: .10em; }
  #home .hero-text { padding: 28px 17px 30px; }
  #home .hero-text h1 { font-size: clamp(2.05rem,10vw,2.8rem); }
  #home .tagline { font-size: 11.5px; padding: 8px 11px; }
  #home .hero-buttons { flex-direction: column; }
  #home .hero-buttons a { width: 100%; }
  #home .hero-scroll-hint { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #mainHeader.header, #mainHeader .nav-actions > button,
  #home .amora-hero-photo, #home .amora-hero-glow,
  #home .hero-text, #home .hero-logo img,
  #home .hero-buttons a {
    animation: none !important;
    transition: none !important;
  }
}
