/* ── Tiempos Headline ─────────────────────────────────────────
   Local font files copied from Second Chair source.
   Medium (500) is the primary weight for the H1 — direct and
   human, not the editorial bold of a B2B brand.
──────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'TiemposHeadline';
  src: url('../fonts/TestTiemposHeadline-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TiemposHeadline';
  src: url('../fonts/TestTiemposHeadline-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TiemposHeadline';
  src: url('../fonts/TestTiemposHeadline-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'TiemposHeadline';
  src: url('../fonts/TestTiemposHeadline-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TiemposHeadline';
  src: url('../fonts/TestTiemposHeadline-SemiboldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   FAIR CASE DESIGN TOKENS
   Color system locked: March 2026 (Massimo Vignelli)
   Dark context: Roman Navy bg, white type, Torch Amber accent.
   One amber element per section — the CTA button only on hero.
============================================================ */
:root {
  /* Brand palette */
  --fc-navy:          #0D1F3C;
  --fc-amber:         #C8821A;
  --fc-amber-dark:    #A86A10;
  --fc-white:         #FFFFFF;
  --fc-muted:         #A8B8CC;   /* secondary text on dark */
  --fc-body-gray:     #374151;   /* body copy on white */

  /* Derived semantic tokens */
  --fc-rule:          rgba(200, 130, 26, 0.36);   /* Torch Amber at 36% — nav/rail borders */
  --fc-rule-subtle:   rgba(200, 130, 26, 0.18);

  /* Typography */
  --font-brand: 'TiemposHeadline', Georgia, serif;
  --font-ui:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --outer-margin:  80px;
  --nav-height:    76px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
  background-color: var(--fc-navy);
  color: var(--fc-white);
  font-family: var(--font-ui);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--outer-margin);
}

/* ============================================================
   NAV
   Same framing language as Second Chair: amber rule top/bottom,
   left/right container rails. Subtle — signals quality without
   screaming. Logo left, CTA right.
============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fc-navy);
  height: var(--nav-height);
  border-top: 1px solid var(--fc-rule);
  border-bottom: 1px solid var(--fc-rule);
}

#nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  border-left: 1px solid var(--fc-rule);
  border-right: 1px solid var(--fc-rule);
}

.nav-logo-wrap {
  height: 100%;
  min-width: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
}

/* Full wordmark: 997×437 viewBox — at 45px height renders ~103px wide */
.nav-logo-wrap .logo-full {
  height: 45px;
  width: auto;
}

/* Mark only: 431×437 viewBox — square, shown on mobile */
.nav-logo-wrap .logo-mark {
  height: 45px;
  width: auto;
  display: none;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-left: 1px solid var(--fc-rule);
  flex-shrink: 0;
}


/* ============================================================
   HERO
   Full-bleed Roman Navy. Single centered column, max 720px.
   Vertically centered in remaining viewport height.
   Amber is used exactly once: the CTA button fill.
============================================================ */
#hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0;
}

#hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Pill badge ───────────────────────────────────────────── */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 48px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-pill-arrow { color: var(--fc-amber); }

/* ── H1 ───────────────────────────────────────────────────── */
/* Upright (not italic) — Fair Case speaks directly to the
   claimant. SC uses italic for B2B editorial authority.
   Fair Case uses upright for plain-spoken directness. */
.hero-headline {
  font-family: var(--font-brand);
  font-size: clamp(52px, 8.5vw, 88px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fc-white);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.25s both;
}

/* ── Sub-line ─────────────────────────────────────────────── */
.hero-sub {
  font-family: var(--font-ui);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(168, 184, 204, 0.90);   /* fc-muted at 90% */
  max-width: 520px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.4s both;
}

/* ── Coming soon badge ────────────────────────────────────── */
/* Replaces the CTA button until the quiz is live.
   Styled like the pill but dimmer — present but passive.
   Swap this out for .hero-cta-btn when getafaircase.com is ready. */
.hero-coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  cursor: default;
  animation: fadeUp 0.7s ease 0.55s both;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MOBILE
   Below 600px: center logo mark only, hide full wordmark,
   headline scales to clamp floor, nav CTA stays visible.
============================================================ */
@media (max-width: 600px) {
  :root {
    --outer-margin: 20px;
    --nav-height: 64px;
  }

  /* Center the nav, show mark only */
  #nav .container {
    justify-content: center;
    border-left: none;
    border-right: none;
    padding: 0;
  }

  .nav-logo-wrap {
    justify-content: center;
    border-right: none;
    padding: 0;
  }

  .nav-logo-wrap .logo-full { display: none !important; }
  .nav-logo-wrap .logo-mark { display: block !important; }

  /* Hero */
  #hero .container {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero-headline {
    font-size: clamp(42px, 12vw, 72px);
    letter-spacing: -0.015em;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .hero-pill { margin-bottom: 36px; }
}
