/* ═══════════════════════════════════════════════════════════
   MITOS — SHARED STYLES
   Variables · Reset · Typography · Nav · Footer · Buttons
═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Colors */
  --midnight:       #080D11;
  --slate:          #1E232B;
  --stone:          #E5E7EB;
  --parchment:      #F7F5F0;
  --thread:         #D4A017;
  --thread-dim:     rgba(212, 160, 23, 0.15);
  --thread-subtle:  rgba(212, 160, 23, 0.08);
  --white:          #ffffff;

  /* Typography */
  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-h:          72px;
  --page-gutter:    48px;
  --section-pad:    120px;
  --max-width:      1200px;

  /* Borders */
  --border-subtle:  rgba(229, 231, 235, 0.07);
  --border-gold:    rgba(212, 160, 23, 0.15);
}

/* ─── CONTAINER ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--midnight);
  color: var(--stone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
.t-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--thread);
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--thread);
  flex-shrink: 0;
}

.t-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.01em;
}

.t-headline em {
  font-style: italic;
  color: var(--thread);
}

.t-body {
  font-size: 16px;
  font-weight: 300;
  color: rgba(229, 231, 235, 0.6);
  line-height: 1.7;
}

/* ─── NAVIGATION ────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.site-nav.scrolled {
  background: rgba(8, 13, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-gold);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
}

.nav-logo-wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.65);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

/* CTA button in nav */
.nav-links .nav-cta {
  margin-left: 12px;
  padding: 10px 22px;
  background: var(--thread);
  color: var(--midnight);
  font-weight: 600;
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links .nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  color: var(--stone);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary {
  padding: 14px 32px;
  background: var(--thread);
  color: var(--midnight);
}

.btn-dark {
  padding: 14px 36px;
  background: var(--midnight);
  color: var(--white);
}

.btn-outline {
  padding: 13px 31px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.25);
}

.btn-outline:hover {
  border-color: rgba(229, 231, 235, 0.6);
}

.btn-ghost {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(229, 231, 235, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-transform: none;
}

.btn-ghost:hover {
  color: var(--white);
  opacity: 1;
  transform: none;
}

.btn-ghost svg {
  transition: transform 0.2s ease;
}

.btn-ghost:hover svg {
  transform: translateX(3px);
}

/* ─── SECTION BASE ──────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section > .container {
  /* sections use .container for horizontal constraint */
}

.section--light {
  background: var(--parchment);
  color: var(--midnight);
}

.section--light .t-eyebrow {
  color: rgba(8, 13, 17, 0.45);
}

.section--light .t-eyebrow::before {
  background: rgba(8, 13, 17, 0.3);
}

.section--light .t-headline {
  color: var(--midnight);
}

.section--light .t-headline em {
  color: #8B6914;
}

.section--light .t-body {
  color: rgba(8, 13, 17, 0.55);
}

.section--border-top {
  border-top: 1px solid var(--border-subtle);
}

/* ─── CARD BASE ─────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1px;
  background: rgba(229, 231, 235, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.06);
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--midnight);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--thread);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card:hover {
  background: var(--slate);
}

.card:hover::after {
  transform: scaleX(1);
}

.card-number {
  position: absolute;
  top: 44px; right: 36px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: rgba(212, 160, 23, 0.25);
  letter-spacing: 0.06em;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--thread);
  opacity: 0.85;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.card-text {
  font-size: 14px;
  color: rgba(229, 231, 235, 0.5);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── CTA BAND ──────────────────────────────────────────── */
.cta-band {
  background: var(--thread);
  padding: 100px 0;
  text-align: center;
}

.cta-band__headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  color: var(--midnight);
  margin-bottom: 20px;
  line-height: 1.05;
}

.cta-band__sub {
  font-size: 16px;
  color: rgba(8, 13, 17, 0.55);
  margin-bottom: 44px;
  font-weight: 300;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--midnight);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(229, 231, 235, 0.4);
  line-height: 1.65;
  font-weight: 300;
  margin-top: 20px;
  max-width: 260px;
}

.footer-col__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.35);
  margin-bottom: 20px;
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col__links a {
  font-size: 14px;
  color: rgba(229, 231, 235, 0.5);
  font-weight: 300;
  transition: color 0.2s ease;
}

.footer-col__links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(229, 231, 235, 0.06);
}

.footer-legal {
  font-size: 12px;
  color: rgba(229, 231, 235, 0.25);
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(212, 160, 23, 0.45);
  letter-spacing: 0.02em;
}

/* ─── ENTRANCE ANIMATIONS ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 960px) {
  :root {
    --page-gutter: 24px;
    --section-pad: 80px;
  }

  /* Nav: collapse links */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8, 13, 17, 0.97);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border-gold);
    /* override container constraint for full-width dropdown */
    max-width: none;
    margin: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px var(--page-gutter);
  }

  .nav-links .nav-cta {
    margin: 12px var(--page-gutter) 0;
    display: block;
    text-align: center;
    border-radius: 2px;
  }

  .nav-toggle {
    display: block;
  }

  /* Grids → single column */
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
