/* =========================================================
   AXD Advisory Services — Global Stylesheet
   Brand: Deep Slate #1C2B3A · Electric Teal #00C2B3
   Font: DM Sans (display/UI) · DM Mono (accents)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?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;1,9..40,300;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand */
  --slate:        #1C2B3A;
  --slate-90:     #253749;
  --slate-80:     #2e4358;
  --slate-60:     #4a6070;
  --slate-40:     #7a95a4;
  --slate-20:     #b8cad4;
  --slate-10:     #dce6eb;
  --slate-05:     #f0f4f6;
  --teal:         #00C2B3;
  --teal-dark:    #009e92;
  --teal-light:   #e0f7f5;
  --white:        #ffffff;
  --off-white:    #F2F5F7;

  /* Typography */
  --font-sans:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Layout */
  --max-w:       1200px;
  --max-w-prose: 720px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;

  /* Nav */
  --nav-h: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med:  280ms;
  --dur-slow: 450ms;
}

/* ── Base Typography ────────────────────────────────────── */
html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html { overflow-x: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--slate);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 500; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }

p { line-height: 1.7; color: var(--slate-60); }
p.lead { font-size: 1.125rem; color: var(--slate-60); line-height: 1.75; }

.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: var(--space-3);
}

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--max-w-prose);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.section--sm {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.section--dark {
  background: var(--slate);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section--dark p { color: var(--slate-20); }

.section--off { background: var(--off-white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(28, 43, 58, 0.98);
  transition: background var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease),
              backdrop-filter var(--dur-med) var(--ease);
}

.nav.scrolled {
  background: rgba(28, 43, 58, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav.nav--light {
  background: transparent;
}

.nav.nav--light.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28,43,58,0.08);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__logo-axd {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  white-space: nowrap;
}

/* Ensure nav links are always visible on scrolled dark nav */
.nav.scrolled .nav__links a {
  color: rgba(255,255,255,0.8);
}

.nav.scrolled .nav__links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav--light .nav__logo-axd { color: var(--slate); }
.nav--light .nav__logo-sub { color: var(--slate-40); }
.nav--light.scrolled .nav__logo-axd { color: var(--slate); }

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__links a.active { color: var(--teal); }

.nav--light.scrolled .nav__links a { color: var(--slate-60); }
.nav--light.scrolled .nav__links a:hover { color: var(--slate); background: var(--slate-05); }

/* Dropdown */
.nav__item { position: relative; }

.nav__dropdown {
  position: absolute;
  top: 100%;
  padding-top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--slate-10);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(28,43,58,0.14), 0 2px 8px rgba(28,43,58,0.06);
  min-width: 260px;
  padding: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--dur-med) var(--ease),
              transform var(--dur-med) var(--ease);
}

.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav__item.open .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--slate) !important;
  background: transparent !important;
  transition: background var(--dur-fast) var(--ease);
}

.nav__dropdown a:hover { background: var(--slate-05) !important; }

.nav__dropdown-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  display: block;
  line-height: 1.2;
}

.nav__dropdown-sub {
  font-size: 0.75rem;
  color: var(--slate-40);
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

.nav__dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.nav__dropdown-icon svg { color: var(--teal-dark); }

.nav__dropdown-divider {
  height: 1px;
  background: var(--slate-10);
  margin: var(--space-2) var(--space-3);
}

/* Nav CTA */
.nav__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--teal);
  color: var(--slate) !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  background: var(--teal) !important;
  filter: brightness(1.06);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur-med) var(--ease);
}

.nav--light .nav__hamburger span { background: var(--slate); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--slate);
  z-index: 999;
  flex-direction: column;
  padding: var(--nav-h) var(--space-6) var(--space-6);
  overflow-y: auto;
}

.nav__mobile.open { display: flex; }

.nav__mobile-links {
  list-style: none;
  margin-top: var(--space-6);
}

.nav__mobile-links li + li { border-top: 1px solid rgba(255,255,255,0.08); }

.nav__mobile-links a {
  display: block;
  padding: var(--space-4) 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--dur-fast);
}

.nav__mobile-links a:hover { color: var(--teal); }

.nav__mobile-cta {
  margin-top: var(--space-6);
  display: block;
  text-align: center;
  padding: 16px;
  background: var(--teal);
  color: var(--slate);
  font-weight: 700;
  border-radius: var(--radius-md);
  font-size: 1rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--teal);
  color: var(--slate);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}

.btn--outline-dark {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate-20);
}

.btn--outline-dark:hover {
  border-color: var(--slate);
  background: var(--slate-05);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--sm { padding: 9px 20px; font-size: 0.8125rem; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--slate-10);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--dur-med) var(--ease),
              transform var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(28,43,58,0.10);
  transform: translateY(-2px);
  border-color: var(--slate-20);
}

.card--dark {
  background: var(--slate-90);
  border-color: rgba(255,255,255,0.08);
}

.card--dark:hover { border-color: rgba(0,194,179,0.3); }

.card--teal-border { border-top: 3px solid var(--teal); }

/* ── Section headings ───────────────────────────────────── */
.section-head {
  margin-bottom: var(--space-7);
}

.section-head--centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-7);
}

.section-head h2 { margin-top: var(--space-2); }
.section-head p { margin-top: var(--space-3); }

/* ── Tags / Badges ──────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 99px;
}

.tag--teal { background: var(--teal-light); color: var(--teal-dark); }
.tag--slate { background: var(--slate-05); color: var(--slate-60); }
.tag--amber { background: #FFF3E0; color: #E65100; }

/* ── Dividers ───────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--slate-10);
  margin: var(--space-7) 0;
}

.divider--light {
  border-top-color: rgba(255,255,255,0.10);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--slate);
  color: var(--white);
  padding: var(--space-9) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-7);
}

.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer__brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: var(--space-4);
}

.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--slate-40);
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-40);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--slate-20);
  transition: color var(--dur-fast);
}

.footer__links a:hover { color: var(--teal); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--slate-40);
}

.footer__legal {
  display: flex;
  gap: var(--space-4);
}

.footer__legal a {
  font-size: 0.8125rem;
  color: var(--slate-40);
  transition: color var(--dur-fast);
}

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

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) forwards;
}

.anim-fade-up--1 { animation-delay: 0ms; }
.anim-fade-up--2 { animation-delay: 100ms; }
.anim-fade-up--3 { animation-delay: 200ms; }
.anim-fade-up--4 { animation-delay: 300ms; }
.anim-fade-up--5 { animation-delay: 400ms; }

/* Scroll-triggered reveal — progressive enhancement only */
.reveal {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}

body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── AXD Logo SVG Inline ────────────────────────────────── */
.logo-hex {
  display: block;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

@media (max-width: 768px) {
  :root { --space-9: 64px; --space-8: 48px; }
  .container { padding-left: var(--space-5); padding-right: var(--space-5); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav__links, .nav__cta-wrap { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --space-9: 48px; }
  .btn--lg { padding: 14px 28px; font-size: 0.9375rem; }
}
