/* ============================================================
   Invictus Global Advisors — WordPress Theme Styles
   Converted from React + Tailwind to vanilla CSS
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --background: 220 20% 7%;
  --foreground: 40 20% 92%;
  --card: 220 18% 10%;
  --card-foreground: 40 20% 92%;
  --primary: 40 65% 55%;
  --primary-foreground: 220 20% 7%;
  --secondary: 220 15% 15%;
  --secondary-foreground: 40 20% 92%;
  --muted: 220 15% 13%;
  --muted-foreground: 220 10% 55%;
  --accent: 40 65% 55%;
  --accent-foreground: 220 20% 7%;
  --border: 220 15% 18%;
  --ring: 40 65% 55%;
  --radius: 0.5rem;
  --gold: 40 65% 55%;
  --gold-light: 40 70% 70%;
  --gold-dark: 40 60% 40%;
  --navy: 220 25% 12%;
  --navy-light: 220 20% 18%;
  --navy-deep: 220 30% 5%;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility Classes --- */
.font-display { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Inter', sans-serif; }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.bg-background { background-color: hsl(var(--background)); }

.text-balance { text-wrap: balance; }

.hidden-mobile { display: none; }
@media (min-width: 768px) {
  .hidden-mobile { display: inline; }
}

/* --- Gold Gradient Text --- */
.gold-gradient-text {
  background-image: linear-gradient(135deg, hsl(40 70% 70%), hsl(40 65% 55%), hsl(40 60% 40%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gold Line --- */
.gold-line {
  height: 1px;
  width: 4rem;
  background: linear-gradient(90deg, hsl(var(--primary)), transparent);
  margin-left: auto;
  margin-right: auto;
}

/* --- Glass Card --- */
.glass-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  backdrop-filter: blur(4px);
  background: linear-gradient(135deg, hsl(220 18% 10% / 0.8), hsl(220 25% 12% / 0.6));
  transition: border-color 0.5s ease;
}

.glass-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

/* --- Stat Number --- */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.25rem;
  background-image: linear-gradient(135deg, hsl(40 70% 70%), hsl(40 65% 55%), hsl(40 60% 40%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hover Gold --- */
.hover-gold {
  transition: color 0.3s ease;
}
.hover-gold:hover {
  color: hsl(var(--primary));
}

/* --- Section Padding --- */
.section-padding {
  padding: 5rem 1.5rem;
}

/* --- Container --- */
.container-lg {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.container-md {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
}

.navbar.scrolled {
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.navbar-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: hsl(var(--foreground));
}

.navbar-brand-sub {
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: hsl(var(--primary));
}

/* Mobile Toggle */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.mobile-menu.open {
  display: block;
  max-height: 400px;
  opacity: 1;
}

.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: hsl(var(--primary));
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.hero-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-founders {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto 3rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot-wrap {
  width: 1.25rem;
  height: 2rem;
  border: 1px solid hsl(var(--muted-foreground) / 0.3);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.375rem;
}

.scroll-dot {
  width: 0.25rem;
  height: 0.5rem;
  background: hsl(var(--primary) / 0.6);
  border-radius: 9999px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ============================================================
   THESIS SECTION
   ============================================================ */
.thesis-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.thesis-desc {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card-padding {
  padding: 2rem;
}

.text-center { text-align: center; }

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.section-alt {
  background: hsl(var(--secondary) / 0.3);
}

.problem-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.glass-card:hover .problem-icon {
  background: hsl(var(--primary) / 0.2);
}

.problem-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  stroke: hsl(var(--primary));
}

.card-title {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ============================================================
   WHY NOW SECTION
   ============================================================ */
.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-detail {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 2px solid hsl(var(--primary) / 0.3);
  transition: border-color 0.5s ease;
}

.glass-card:hover .team-photo {
  border-color: hsl(var(--primary) / 0.6);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ============================================================
   TRACK RECORD SECTION
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.metric-item {
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.case-study-title {
  font-size: 1.125rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.case-study-tag {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.3);
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ============================================================
   LOCATIONS SECTION
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.location-card {
  text-align: center;
  position: relative;
}

.location-pin {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  transition: background 0.3s ease;
}

.location-card:hover .location-pin {
  background: hsl(var(--primary) / 0.2);
}

.location-pin svg {
  width: 1.5rem;
  height: 1.5rem;
}

.location-city {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.location-country {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.location-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

@media (min-width: 768px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   FOOTER / CONTACT SECTION
   ============================================================ */
.contact-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-cta:hover {
  background: hsl(var(--gold-light));
}

.contact-desc {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.footer-bottom {
  max-width: 72rem;
  margin: 5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   ANIMATIONS — Scroll Reveal
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Scale-in variant */
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Navbar slide-in */
.navbar {
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Hero fade-in */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.3s; }
.hero-content > *:nth-child(2) { animation-delay: 0.7s; }
.hero-content > *:nth-child(3) { animation-delay: 1.1s; }
.hero-content > *:nth-child(4) { animation-delay: 1.4s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  opacity: 0;
  animation: heroFadeUp 0.6s ease-out 2s forwards;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (min-width: 768px) {
  .navbar-inner {
    padding: 0 3rem;
    height: 5rem;
  }

  .navbar-brand-name {
    font-size: 1rem;
  }

  .navbar-brand-sub {
    font-size: 0.625rem;
  }

  .nav-links {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .section-padding {
    padding: 7rem 3rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-tagline {
    font-size: 2.25rem;
  }

  .hero-founders {
    font-size: 1rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .thesis-subtitle {
    font-size: 1.25rem;
  }

  .stat-number {
    font-size: 3rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .team-photo {
    width: 10rem;
    height: 10rem;
  }

  .footer-bottom {
    flex-direction: row;
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 8rem 5rem;
  }

  .hero-title {
    font-size: 6rem;
  }

  .stat-number {
    font-size: 3.75rem;
  }
}

/* ============================================================
   WORDPRESS ADMIN BAR FIX
   ============================================================ */
body.admin-bar .navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}
