/* ==========================================================================
   Imovisse — coming-soon page
   1. Design tokens   2. Base   3. Layout   4. Top bar
   5. Hero            6. Motion & data-saver
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --teal-500:  #13B3A6;   /* primary action, accents */
  --teal-600:  #0E9488;   /* hover/pressed */
  --teal-100:  #D6F3EF;
  --pine-900:  #0F2E2C;   /* brand ink, dark surfaces, overlay tint */
  --pine-700:  #1C4A46;
  --coral-500: #FB7857;   /* warm accent — used once (badge dot) */
  --ink-onDark:#EAF1F0;   /* text on dark */
  --bg-dark:   #0B1918;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--ink-onDark);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }

/* Single focus style for every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 767px) {
  .container { padding-inline: 16px; }
}

/* 4. Top bar ----------------------------------------------------------------- */
.hero__nav { position: relative; z-index: 2; }

.nav {
  display: flex;
  align-items: center;
  padding-block: 20px;
}

.nav__logo { display: inline-flex; border-radius: 4px; }
.nav__logo img { height: 32px; width: auto; }

@media (max-width: 767px) {
  .nav__logo img { height: 28px; }
}

/* 5. Hero --------------------------------------------------------------------
   The poster doubles as the .hero background so reduced-motion, mobile, and
   any video load failure all fall back to it — never a blank dark box. */
.hero {
  position: relative;
  min-height: 100vh;      /* fallback for older browsers */
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--pine-900) url('/assets/imovisse-hero-poster.jpg') center/cover no-repeat;
  color: var(--ink-onDark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Brand-tinted overlay guarantees white text stays readable over any frame.
   Two layers: a horizontal scrim (strongest on the left, where the copy sits)
   over a vertical one — keeps the right side lighter so the footage reads. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 46, 44, .75) 0%, rgba(15, 46, 44, .55) 45%, rgba(15, 46, 44, .28) 78%, rgba(15, 46, 44, .28) 100%),
    linear-gradient(180deg, rgba(15, 46, 44, .30) 0%, rgba(15, 46, 44, .45) 55%, rgba(15, 46, 44, .70) 100%);
}

.hero__content {
  position: relative;
  margin-block: auto;     /* vertical centering inside the flex column */
  padding-block: 48px;
  max-width: 680px;
}

/* "Em breve" pill badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .45rem 1rem;
  border: 1px solid rgba(214, 243, 239, .35);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-100);
  background: rgba(15, 46, 44, .45);
}
/* Coral accent — the single allowed use */
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral-500);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__subhead {
  margin: 0 0 2rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: #CFE0DE;
  max-width: 60ch;
}

.hero__trust {
  margin: 0;
  font-size: .875rem;
  color: rgba(234, 241, 240, .72);
}

/* Mobile: center the hero content (left-aligned on desktop) */
@media (max-width: 767px) {
  .hero__content {
    margin-inline: auto;
    text-align: center;
  }
  .hero__subhead { margin-inline: auto; }
}

/* 6. Motion & data-saver ------------------------------------------------------ */

/* Reduced motion → hide the video (poster shows via .hero background) */
@media (prefers-reduced-motion: reduce) {
  .hero__bg { display: none; }
}

/* Data saver: below 768px, don't play video — poster saves mobile bandwidth */
@media (max-width: 767px) {
  .hero__bg { display: none; }
}
