/* ===== VMG Aero Design Tokens ===== */
:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ===== LIGHT MODE (default) ===== */
:root,
[data-theme='light'] {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-surface-2: #f2f1ed;
  --color-surface-offset: #eae8e3;
  --color-divider: #d8d5cf;
  --color-border: #ccc9c2;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6963;
  --color-text-faint: #a3a09a;
  --color-text-inverse: #f8f7f4;
  --color-primary: #0f3d5f;
  --color-primary-hover: #0a2d47;
  --color-primary-active: #071e30;
  --color-accent: #c4923a;
  --color-accent-hover: #a67a2f;
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* ===== DARK MODE ===== */
[data-theme='dark'] {
  --color-bg: #121212;
  --color-surface: #1a1a1a;
  --color-surface-2: #222222;
  --color-surface-offset: #1e1e1e;
  --color-divider: #2e2e2e;
  --color-border: #3a3a3a;
  --color-text: #e8e6e1;
  --color-text-muted: #9a9790;
  --color-text-faint: #5e5c58;
  --color-text-inverse: #1a1a1a;
  --color-primary: #6ba3cc;
  --color-primary-hover: #4d8ab8;
  --color-primary-active: #3a7aab;
  --color-accent: #d4a84e;
  --color-accent-hover: #c49a3e;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #121212;
    --color-surface: #1a1a1a;
    --color-surface-2: #222222;
    --color-surface-offset: #1e1e1e;
    --color-divider: #2e2e2e;
    --color-border: #3a3a3a;
    --color-text: #e8e6e1;
    --color-text-muted: #9a9790;
    --color-text-faint: #5e5c58;
    --color-text-inverse: #1a1a1a;
    --color-primary: #6ba3cc;
    --color-primary-hover: #4d8ab8;
    --color-primary-active: #3a7aab;
    --color-accent: #d4a84e;
    --color-accent-hover: #c49a3e;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ===== GLOBAL STYLES ===== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  line-height: 1;
}

.header__logo-text span {
  color: var(--color-accent);
}

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

.nav__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-block: var(--space-1);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-text);
}

.nav__link--active::after {
  width: 100%;
}

.theme-toggle {
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  color: var(--color-text);
  padding: var(--space-2);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-20) var(--space-8);
    gap: var(--space-6);
    transition: right 0.35s var(--ease-out);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

  .nav--open {
    right: 0;
  }

  .nav__link {
    font-size: var(--text-base);
  }

  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0 0 0 / 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
    z-index: 99;
  }

  .nav-overlay--visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== HERO — SPLIT LAYOUT ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-12) var(--space-8);
  overflow: hidden;
  min-height: 50vh;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

.hero-panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hero-panel:hover .hero-panel__bg img {
  transform: scale(1.03);
}

.hero-panel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-panel--advisory .hero-panel__overlay {
  background: linear-gradient(to top, oklch(0.15 0.02 240 / 0.92) 0%, oklch(0.15 0.02 240 / 0.5) 50%, oklch(0.15 0.02 240 / 0.2) 100%);
}

.hero-panel--training .hero-panel__overlay {
  background: linear-gradient(to top, oklch(0.12 0.01 60 / 0.9) 0%, oklch(0.12 0.01 60 / 0.5) 50%, oklch(0.12 0.01 60 / 0.15) 100%);
}

.hero-panel__content {
  position: relative;
  z-index: 2;
}

.hero-panel__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: var(--space-3);
}

.hero-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero-panel__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 44ch;
  opacity: 0.85;
  margin-bottom: var(--space-6);
}

.hero-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: gap 0.3s var(--ease-out);
}

.hero-panel:hover .hero-panel__cta {
  gap: var(--space-3);
}

.hero-panel__cta svg {
  transition: transform 0.3s var(--ease-out);
}

.hero-panel:hover .hero-panel__cta svg {
  transform: translateX(4px);
}

/* ===== SECTION LAYOUTS ===== */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.section--alt {
  background: var(--color-surface-2);
}

.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section__desc {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CREDENTIALS STRIP ===== */
.credentials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  padding: var(--space-10) 0;
}

.credential {
  text-align: center;
}

.credential__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.credential__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== ABOUT / BIO LAYOUT ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 768px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.bio-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bio-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.bio-content__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.bio-content__title {
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.bio-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  margin-top: var(--space-10);
}

.timeline__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  margin-bottom: var(--space-8);
}

.timeline__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .timeline__item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.timeline__period {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: var(--space-1);
}

.timeline__role {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline__org {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== TRAINING PAGE ===== */
.rating-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.rating-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.rating-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.rating-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.rating-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-method__icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-method__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.contact-method__value {
  color: var(--color-text);
  font-size: var(--text-base);
}

.contact-method__value a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-method__value a:hover {
  text-decoration: underline;
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  padding: var(--space-20) 0 var(--space-12);
  background: var(--color-surface-2);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.page-hero__desc {
  color: var(--color-text-muted);
  max-width: 55ch;
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface-2);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.footer__brand span {
  color: var(--color-accent);
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 32ch;
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-text);
}

.footer__copy {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ===== AFFILIATIONS / BOARDS ===== */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.affiliation-tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0;
  text-align: center;
}

[data-theme='dark'] .cta-banner {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  color: inherit;
}

.cta-banner__text {
  color: inherit;
  opacity: 0.85;
  margin-bottom: var(--space-8);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-banner__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}

.cta-banner__link:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ===== EDUCATION BADGES ===== */
.education-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.education-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-md);
}

.education-badge__icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.education-badge__text {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.education-badge__sub {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===== LANGUAGES ===== */
.languages {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.language {
  text-align: center;
}

.language__name {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.language__level {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
