/* layout.css — page shell, header, hero, sections, footer. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.i18n-pending [data-i18n] { visibility: hidden; }

body.page {
  font-family: var(--sans);
  background: var(--night);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ===== header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(6, 11, 36, 0.92), rgba(6, 11, 36, 0.75));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-faint);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold-light);
  margin-right: auto;
}

.brand__mark { width: 40px; height: 40px; }

.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand__name b { font-weight: 700; color: var(--gold); }

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav a:hover { color: var(--gold-light); background: rgba(240, 200, 80, 0.08); }
.nav a.is-active { color: var(--gold); }

.lang-select {
  background: rgba(0, 0, 0, 0.4);
  color: var(--dim);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 13px;
  font-family: var(--sans);
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: var(--night) url("/brand/hero-bg.jpg") center top / cover no-repeat;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 36, 0.45) 0%, rgba(6, 11, 36, 0) 22%),
    linear-gradient(180deg, rgba(6, 11, 36, 0) 45%, rgba(6, 11, 36, 0.82) 82%, var(--night) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  animation: hero-rise 900ms var(--ease-out) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--type-display);
  font-weight: 600;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 2px 24px rgba(10, 20, 56, 0.9), 0 0 60px rgba(90, 160, 255, 0.35);
}
.hero__title b {
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  font-style: italic;
  color: var(--dim);
  margin: 12px auto 6px;
}

.hero__sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

/* ===== sections ===== */
.section { padding-block: var(--section); }
.section--alt { background: var(--abyss); }

.section__head {
  text-align: center;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section__head h2 {
  font-family: var(--serif);
  font-size: var(--type-h2);
  font-weight: 600;
  color: var(--gold-light);
}

.section__head p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}

/* Pages without a hero start under the fixed header. */
main > .section:first-child { padding-top: calc(64px + 3rem); }

.page-title {
  font-family: var(--serif);
  font-size: var(--type-h2);
  font-weight: 600;
  color: var(--gold-light);
}

/* ===== footer ===== */
.site-footer {
  background: var(--abyss);
  border-top: 1px solid var(--border-faint);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }

/* ===== responsive ===== */
@media (max-width: 760px) {
  .site-header__inner { gap: 10px; }
  .nav { display: none; }
  .brand__name { font-size: 19px; }
  .site-footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__content { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
