/* ============================================================
   THOMAS McKEE — REDESIGN 2026
   Aesthetic: Premium Editorial / Warm Light
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,400;1,9..144,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:           #faf8f5;
  --bg-alt:       #f2ede6;
  --bg-card:      #ffffff;
  --bg-dark:      #0f1117;
  --bg-dark-2:    #191c25;

  /* Text */
  --text:         #1a1a2e;
  --text-2:       #3d3d55;
  --text-muted:   #7a7a96;
  --text-inv:     #f5f3ef;

  /* Brand */
  --navy:         #0f2d5c;
  --navy-2:       #1a4a8a;
  --gold:         #c8892a;
  --gold-2:       #e8a53a;
  --gold-light:   rgba(200, 137, 42, .12);

  /* Borders */
  --border:       rgba(26,26,46,.10);
  --border-2:     rgba(26,26,46,.17);
  --border-dark:  rgba(255,255,255,.10);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(15,45,92,.07);
  --shadow-md:    0 8px 32px rgba(15,45,92,.10);
  --shadow-lg:    0 24px 64px rgba(15,45,92,.14);
  --shadow-xl:    0 40px 100px rgba(15,45,92,.18);

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, picture, video { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────────── */
.f-display { font-family: 'Fraunces', Georgia, serif; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

/* ── Scroll Progress ────────────────────────────────────────── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 32px;
  transition: all .3s ease;
}
.header.scrolled {
  background: rgba(250,248,245,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.logo img {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.logo-text {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.2px;
  line-height: 1.2;
}
.logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  display: block;
  letter-spacing: .2px;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.nav > a:hover { color: var(--navy); background: var(--gold-light); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.dropdown-toggle:hover { color: var(--navy); background: var(--gold-light); }
.dropdown-chevron {
  font-size: 9px;
  transition: transform .2s;
  color: var(--text-muted);
}
.dropdown:hover .dropdown-chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.dropdown-menu a:hover {
  background: var(--gold-light);
  color: var(--navy);
}

/* Nav CTA */
.nav-cta { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,45,92,.30);
}
.btn-primary:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15,45,92,.36);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200,137,42,.30);
}
.btn-gold:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,137,42,.36);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--text-inv);
  border: 2px solid rgba(255,255,255,.40);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.60);
  transform: translateY(-2px);
}
.btn-lg { padding: 17px 36px; font-size: 16px; border-radius: 10px; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
}
.mobile-menu-btn:hover { background: var(--gold-light); border-color: var(--gold); }

.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(15,17,23,.55);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: all .2s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(90vw, 380px);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1001;
  padding: 88px 24px 32px;
  overflow-y: auto;
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: background .2s;
}
.mobile-menu-close:hover { background: var(--bg-alt); }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav > a {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: all .15s;
}
.mobile-nav > a:hover { background: var(--gold-light); color: var(--navy); }

.mobile-dropdown { border-radius: var(--r-sm); overflow: hidden; }
.mobile-dropdown-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: none; border: none;
  font-size: 16px; font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.mobile-dropdown-toggle:hover { background: var(--gold-light); }
.mobile-dropdown-toggle::after { content: '▾'; font-size: 12px; transition: transform .2s; }
.mobile-dropdown.open .mobile-dropdown-toggle::after { transform: rotate(180deg); }
.mobile-dropdown-menu { max-height: 0; overflow: hidden; transition: max-height .25s; padding-left: 12px; }
.mobile-dropdown.open .mobile-dropdown-menu { max-height: 400px; }
.mobile-dropdown-menu a { display: block; padding: 10px 16px; font-size: 14px; color: var(--text-muted); }
.mobile-dropdown-menu a:hover { color: var(--navy); }

.mobile-menu-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.mobile-menu-cta .btn { width: 100%; justify-content: center; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 100px 32px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}
.eyebrow-dark {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(200,137,42,.85);
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}

.section h2 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.1;
}
.section h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}
.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Section dividers */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 0 32px;
}

/* ── Dark section variant ──────────────────────────────────── */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-inv);
}
.section-dark h2,
.section-dark h3 { color: var(--text-inv); }
.section-dark .section-desc { color: rgba(245,243,239,.60); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* ── Chip / badge ───────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}
.chip-navy {
  background: rgba(15,45,92,.08);
  border: 1px solid rgba(15,45,92,.15);
  color: var(--navy);
}
.chip-gold {
  background: var(--gold-light);
  border: 1px solid rgba(200,137,42,.22);
  color: var(--gold);
}
.chip-green {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.20);
  color: #15803d;
}
.chip-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulse-dot 2s ease infinite;
}

/* ── Reveal animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Floating CTA ───────────────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(15,45,92,.35);
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}
.floating-cta:hover {
  background: var(--navy-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(15,45,92,.40);
}

/* ── Scroll indicator ───────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  animation: bounce-y 2.5s ease infinite;
}
.scroll-indicator span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(26,26,46,.25);
  border-radius: 11px;
  position: relative;
}
.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--navy);
  border-radius: 2px;
  animation: scroll-dot 2s ease infinite;
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  50%       { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
@keyframes bounce-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}
@keyframes scroll-dot {
  0%, 100% { opacity: 1; top: 6px; }
  50%       { opacity: .3; top: 16px; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  padding: 80px 32px 40px;
  color: var(--text-inv);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--text-inv); }
.footer-brand .logo-sub { color: rgba(245,243,239,.50); }
.footer-brand p { color: rgba(245,243,239,.55); font-size: 14px; line-height: 1.8; }

.footer-links h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245,243,239,.45);
  margin-bottom: 18px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(245,243,239,.65);
  font-size: 14px;
  font-weight: 400;
  transition: color .15s;
}
.footer-links a:hover { color: var(--text-inv); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(245,243,239,.40); font-size: 13px; }
.footer-bottom a { color: rgba(245,243,239,.40); font-size: 13px; margin-left: 20px; transition: color .15s; }
.footer-bottom a:hover { color: rgba(245,243,239,.70); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 72px 20px; }
  .footer { padding: 64px 20px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin: 0 10px; }
  .header { padding: 0 20px; }
  .scroll-indicator { display: none; }
  .floating-cta { bottom: 20px; right: 20px; padding: 12px 20px; }
}
