/* =========================================================
   CENTUM — HERO SECTION
   ========================================================= */

:root {
  --navy:      #061c2d;
  --navy-2:    #09283d;
  --ink:       #102d43;
  --gold:      #d9ab5c;
  --cream:     #f4f7f8;
  --white:     #ffffff;
  --line:      rgba(255, 255, 255, .28);

  --font-head: "Lora", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 96px;
  --header-h-scrolled: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* 80% width container used across header + sections */
.container-custom {
  width: 85%;
  max-width: 1760px;
  margin-inline: auto;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--white);
  transition: height .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}

.site-header.scrolled {
  height: var(--header-h-scrolled);
  background: rgba(6, 28, 45, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.header-inner { width: 85%; }

.logo-img { height: 60px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: .82;
  padding-bottom: 6px;
  transition: opacity .3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right .35s var(--ease);
}

.nav-link:hover { opacity: 1; }

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after { right: 0; }

.header-actions { gap: 22px; }

.search-toggle {
  background: none;
  border: 0;
  color: var(--white);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  opacity: .9;
  transition: opacity .3s, transform .3s;
}
.search-toggle svg { width: 18px; height: 18px; }
.search-toggle:hover { opacity: 1; transform: scale(1.06); }

.header-cta {
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.header-cta:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-image {
  animation: heroZoom 14s ease-out forwards;
  z-index: 1;
  transition: opacity 1.1s var(--ease);
}

.hero-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.hero-video.is-visible { opacity: 1; }
.hero-image.is-hidden { opacity: 0; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(3, 21, 34, .88) 0%, rgba(3, 21, 34, .55) 42%, rgba(3, 21, 34, .12) 100%),
    linear-gradient(0deg, rgba(3, 21, 34, .45), transparent 45%);
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

/* central play button */
.hero-play {
  position: absolute;
  left: 61%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 99;
  background: none;
  border: 0;
  color: var(--white);
}

.play-ring {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease), background .4s, color .4s;
}
.play-ring svg { width: 70px; height: 70px; margin-left: 3px; }

.hero-play:hover .play-ring {
  transform: scale(1.08);
  background: var(--white);
  color: var(--ink);
}

/* left copy block */
.hero-content {
  position: relative;
  z-index: 4;
  padding-top: var(--header-h);
}

.hero-text { max-width: 650px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .85;
  margin: 0 0 26px;
  text-transform: uppercase;
}

.hero-title {
  font: 500 clamp(46px, 6vw, 84px)/1.04 var(--font-head);
  letter-spacing: -.01em;
  margin: 0;
}

.accent { color: var(--gold); font-style: italic; }

.hero-copy {
  font-family: var(--font-body);
  max-width: 460px;
  line-height: 1.7;
  font-size: 16px;
  margin: 30px 0;
  opacity: .92;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.btn-cta {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
  border-radius: 999px;
  padding: 15px 24px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .25);
}

.story-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: none;
  color: var(--white);
}

.play-icon-sm {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .35s, color .35s;
}
.play-icon-sm svg { width: 25px; height: 25px; margin-left: 2px; }
.story-btn:hover .play-icon-sm { background: var(--white); color: var(--ink); }
.story-btn span:last-child { font-size: 13px; font-weight: 500; }

/* section progress rail */
.section-nav {
  position: absolute;
  right: 6.5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: var(--white);
}

.section-nav-count {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: .04em;
  opacity: .85;
}
.section-nav-count [data-nav-current] { 
  font-weight: 700; 
  font-size: 25px; 
}

.section-nav-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 4px 0;
}
.section-nav-track::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, .3);
  transform: translateX(-50%);
}

.dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  transition: background .3s, transform .3s, border-color .3s;
}
.dot:hover { border-color: var(--white); }
.dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.35);
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  right: 6.5%;
  bottom: 44px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .02em;
  opacity: .8;
}
.scroll-arrow {
  font-size: 18px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.section-stub { height: 1px; }

/* ---------------- VIDEO MODAL ---------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(2, 15, 24, .95);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.video-modal.open { opacity: 1; visibility: visible; }

.video-wrapper {
  width: min(920px, 88vw);
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrapper video { width: 100%; height: 100%; }

.modal-close {
  position: absolute;
  top: 30px;
  right: 4%;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
}

/* ---------------- SEARCH OVERLAY ---------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(6, 28, 45, .97);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.search-overlay.open { opacity: 1; visibility: visible; }

.search-box {
  width: 80%;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 18px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .45s var(--ease) .05s, opacity .45s var(--ease) .05s;
}
.search-overlay.open .search-box { transform: translateY(0); opacity: 1; }

.search-box svg { width: 22px; height: 22px; flex-shrink: 0; opacity: .8; }

.search-box input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--white);
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
}
.search-box input::placeholder { color: rgba(255, 255, 255, .45); }

.search-hint {
  font-size: 12px;
  opacity: .6;
}
.search-hint kbd {
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-body);
}

/* ---------------- ACCESSIBILITY / MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none; transform: none; }
  .scroll-arrow { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .header-inner, .container-custom { width: 88%; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .section-nav { right: 4%; }
  .hero-scroll { right: 4%; }
}

@media (max-width: 640px) {
  .header-inner, .container-custom { width: 89%; }
  .hero-title { font-size: 42px; }
  .hero-copy { font-size: 13px; }
  .hero-play { display: none; }
  .section-nav { display: none; }
  .hero-scroll { bottom: 24px; }
}
