/* ═══════════════════════════════════════════════════════════════
   ELEVANA — Design System
   Fonts: Instrument Serif (headings) + Inter (body)
   Grid: 9-column system
   Mobile-first, conversion-optimized
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy: #0D1B2A;
  --navy-mid: #13263C;
  --teal: #2A6B7C;
  --teal-light: #3A8FA3;
  --teal-dim: rgba(42,107,124,0.08);
  --gold: #B8965A;
  --gold-light: #D4AE78;
  --gold-dim: rgba(184,150,90,0.08);
  --porcelain: #F7F7F5;
  --steel: #8A9BAD;
  --white: #FFFFFF;
  --border: rgba(13,27,42,0.08);
  --border-t: rgba(42,107,124,0.2);
  --text-p: #0D1B2A;
  --text-s: #5A6470;
  --text-m: #8A9BAD;

  --font-heading: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1200px;
  --section-pad: clamp(64px, 10vw, 120px);
  --grid-gap: 24px;
}

/* ── Base ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-p);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text-p);
}

h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--text-p);
}

h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--text-p);
}

h4 {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-p);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--teal);
}

p {
  color: var(--text-s);
  max-width: 640px;
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

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

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

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

.section--navy {
  background: var(--navy);
  color: var(--porcelain);
}

.section--navy p {
  color: var(--steel);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--porcelain);
}

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

/* 9-Column Grid */
.grid-9 {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: var(--grid-gap);
}

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

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

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Border spacing around the floating frame, aligned to content padding */
  padding: 18px 24px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(13, 27, 42, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 150, 90, 0.28);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--steel);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav__links a:hover {
  color: var(--porcelain);
}

.nav__cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: var(--porcelain);
  padding: 12px 24px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--white);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--porcelain);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

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

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

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-s);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Arrow in buttons */
.btn .arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-t);
  box-shadow: 0 4px 20px rgba(13,27,42,0.04);
}

.card__number {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-p);
  margin-bottom: 12px;
}

.card__text {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.8;
}

/* ── Hero (Full-Bleed with Overlay) ───────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(13,27,42,0.72) 0%, rgba(13,27,42,0.80) 55%, rgba(13,27,42,0.92) 100%),
    url('../images/hero-leadership.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* For subpage heroes that pass an inline image, keep relative root path */
.hero--sub {
  min-height: 60vh;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  color: var(--porcelain);
  margin-bottom: 28px;
}

.hero h1 em {
  color: var(--gold-light);
}

.hero p {
  font-size: 17px;
  color: rgba(247,247,245,0.82);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero .label {
  margin-bottom: 20px;
  display: block;
  color: var(--gold);
}

/* ── Ecosystem / Six Divisions ────────────────────────────── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.division-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.division-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,27,42,0.10);
  border-color: var(--border-t);
}

.division-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.division-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.division-card:hover .division-card__media img {
  transform: scale(1.04);
}

.division-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0) 55%, rgba(13,27,42,0.28) 100%);
}

.division-card__body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.division-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-p);
  margin-bottom: 10px;
  line-height: 1.2;
}

.division-card__sub {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.division-card__link {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid var(--border-t);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.division-card__link:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.division-card__link .arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.division-card__link .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ── Testimonial ───────────────────────────────────────────── */
.testimonial {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  margin: 40px 0;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  color: var(--text-p);
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial__author {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-m);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 64px 0 40px;
  color: var(--steel);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  margin-bottom: 20px;
  line-height: 0;
}

.footer__brand img {
  height: auto;
  max-width: 180px;
  display: block;
}

.footer__desc {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.8;
  max-width: 280px;
}

.footer__heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--porcelain);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--steel);
  transition: color 0.2s;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-m);
}

/* ── Form ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-m);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--porcelain);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-p);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-m);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Newsletter ────────────────────────────────────────────── */
.newsletter {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.newsletter input {
  flex: 1;
  background: var(--porcelain);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-p);
  outline: none;
}

.newsletter input:focus {
  border-color: var(--teal);
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
  opacity: 0.5;
}

/* ── Pill ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dim);
  border: 1px solid var(--border-t);
  border-radius: 24px;
  padding: 6px 16px;
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
}

.pill span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
}

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

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--text-p);
  line-height: 1;
  margin-bottom: 8px;
}

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

.stat__label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-m);
}

/* ── Article Card ──────────────────────────────────────────── */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: var(--border-t);
  transform: translateY(-2px);
}

.article-card__image {
  width: 100%;
  height: 200px;
  background: var(--navy);
  object-fit: cover;
}

.article-card__body {
  padding: 28px;
}

.article-card__category {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-p);
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card__excerpt {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-card__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Spacer Utilities ──────────────────────────────────────── */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 48px; }
.mt-xl { margin-top: 64px; }
.mb-s { margin-bottom: 16px; }
.mb-m { margin-bottom: 32px; }
.mb-l { margin-bottom: 48px; }
.mb-xl { margin-bottom: 64px; }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .grid-9 {
    grid-template-columns: repeat(6, 1fr);
  }

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

  .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1050;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links li {
    list-style: none;
  }

  .nav__links a {
    font-size: 20px;
    color: var(--porcelain);
  }

  /* Keep the CTA styled as a button inside the mobile menu */
  .nav__links .nav__cta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--navy) !important;
    background: var(--gold);
  }

  .nav__toggle {
    display: flex;
    z-index: 1100; /* above the open overlay so it can be tapped to close */
    position: relative;
  }

  /* Hamburger -> X animation when menu is open */
  .nav__toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav {
    padding: 12px 16px;
  }

  .nav__inner {
    padding: 12px 20px;
    position: relative;
    z-index: 1100; /* keep logo + toggle above the overlay */
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

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

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

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

  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .newsletter {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 24px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 11px;
    width: 100%;
    justify-content: center;
  }

  .division-card__link {
    width: auto;
  }
}
