/* ============================================
   ACE GTM ADVISORS — Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Navy palette — Brand Primary */
  --navy-darkest: #061A3A;
  --navy-deep: #0A2248;
  --navy: #0F2A52;
  --navy-mid: #1F2E4D;
  --navy-light: #2A3D60;
  --navy-surface: #1F2E4D;

  /* Gold palette — Brand Primary */
  --gold: #C9A552;
  --gold-light: #D6B76A;
  --gold-lighter: #E6D3A3;
  --gold-dark: #A88A3D;
  --gold-muted: rgba(201, 165, 82, 0.15);

  /* Neutrals — Brand Secondary */
  --white: #FFFFFF;
  --off-white: #E8E8E8;
  --champagne: #E6D3A3;
  --gray-100: #E8E8E8;
  --gray-200: #C9CDD4;
  --gray-300: #9CA3AF;
  --gray-400: #6B7280;
  --gray-500: #4B5563;
  --charcoal: #222222;

  /* Typography — Montserrat (headings) + Inter (body) */
  --font-heading: 'Montserrat', 'Avenir Next', 'Proxima Nova', -apple-system, sans-serif;
  --font-body: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --header-height: 220px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px rgba(201, 165, 82, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-darkest);
  color: var(--gray-200);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--gray-200);
}

.text-gold {
  color: var(--gold);
}

.text-white {
  color: var(--white);
}

.text-muted {
  color: var(--gray-300);
}

.text-small {
  font-size: 0.875rem;
}

.text-large {
  font-size: 1.125rem;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
}

.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: var(--space-lg);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-darkest);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-darkest);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-muted);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 0.875rem 0;
}

.btn-ghost:hover {
  color: var(--gold-light);
}

.btn-ghost::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-2px);
}

.card-highlight {
  border-color: var(--gold);
  position: relative;
}

.card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Dividers */
.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-3xl) 0;
}

.divider-gold {
  border-top-color: rgba(201, 168, 76, 0.2);
}

/* Tags / Labels */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* Stats */
.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Blockquote */
blockquote {
  border-left: 2px solid var(--gold);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--gray-100);
  font-size: 1.125rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(6, 26, 58, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(6, 26, 58, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text span {
  color: var(--gold);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-main a {
  color: var(--gray-200);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--gold);
}

.btn.btn-primary.nav-cta {
  margin-left: var(--space-lg);
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  color: #000;
}

/* Dropdown menus */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger svg {
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--navy-darkest);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  margin-top: var(--space-sm);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--gray-200);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-darkest);
  padding: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-lg);
  z-index: 999;
}

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

.mobile-nav a {
  color: var(--gray-200);
  font-size: 1.125rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--gold);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  color: var(--gray-300);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* --- Page Hero --- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
}

.page-hero .tag {
  margin-bottom: var(--space-lg);
}

.page-hero h1 {
  margin-bottom: var(--space-lg);
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.125rem;
  color: var(--gray-200);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --header-height: 160px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .nav-main {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }

  .card {
    padding: var(--space-xl);
  }

  .stat-value {
    font-size: 2rem;
  }

  /* Mobile header */
  .site-header {
    height: var(--header-height);
  }

  .mobile-nav {
    top: var(--header-height);
  }

  /* Page hero mobile */
  .page-hero {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .page-hero p {
    font-size: 1rem;
  }

  /* Footer mobile */
  .site-footer {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .footer-brand p {
    max-width: 100%;
  }

  blockquote {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
