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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100dvh;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  -webkit-tap-highlight-color: transparent;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Brand colors from CI/CD */
  --color-navy:   #153c6d;
  --color-navy-2: #173b6c;
  --color-teal:   #1ab4c8;  /* accent extracted from logo */
  --color-teal-light: #e6f8fb;

  /* Page */
  --color-bg:     #ffffff;
  --color-text:   #1a1a2e;
  --color-text-muted: #5a6a7e;
  --color-border: #e2e8f0;
  --color-alt-bg: #f7f9fc;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 72rem;
  --header-h: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(21,60,109,.08), 0 1px 2px rgba(21,60,109,.04);
  --shadow-md: 0 4px 16px rgba(21,60,109,.10), 0 2px 6px rgba(21,60,109,.06);
  --shadow-lg: 0 12px 40px rgba(21,60,109,.14);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --transition: 200ms var(--ease);

  /* Breakpoints reference */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

/* ============================================================
   Layout Helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  height: 48px;
  width: auto;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-navy);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

/* Open state */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    border-top: 1px solid var(--color-border);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: 1.25rem;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #0f2e56;
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-nav {
  background: var(--color-navy);
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.btn-nav:hover {
  background: #0f2e56;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--color-navy);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 60%, var(--color-teal-light) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-md);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hero-brand-logo {
  width: 48px;
  height: auto;
}

.hero-kicker {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

.hero-text h1 {
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  aspect-ratio: 1;
}

.hero-logo-overlay {
  position: absolute;
  z-index: 2;
  width: 75%;
  max-width: 325px;
  opacity: 1;
  pointer-events: none;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-brand {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    max-width: 280px;
    margin-inline: auto;
  }
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section--compact {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

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

.section--dark {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  color: #fff;
}

.section-header {
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: var(--space-md);
}

.section-header--light h2 {
  color: #fff;
}

.section-header--light p {
  color: rgba(255,255,255,.75);
}

/* ============================================================
   Labels
   ============================================================ */
.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: var(--color-teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.label--light {
  color: var(--color-teal);
  background: rgba(26,180,200,.15);
}

/* ============================================================
   Locations
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 66rem;
  margin-inline: auto;
}

.location-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  text-align: left;
  height: 100%;
}

.location-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.location-icon svg {
  width: 100%;
  height: 100%;
}

.location-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.location-text .location-badge {
  margin-top: auto;
}

.location-card h3 {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.location-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.location-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal);
  background: var(--color-teal-light);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Stats
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Cards
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-teal);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-teal);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Partners
   ============================================================ */
.partners-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 48rem;
  margin-inline: auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 3px solid var(--color-teal);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: var(--space-xs);
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}

.team-bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 40ch;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.team-linkedin svg {
  width: 22px;
  height: 22px;
}

.team-linkedin:hover {
  color: #0a66c2;
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.contact-inner .section-header {
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-alt-bg);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-lg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-navy);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   Scroll to Top
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-navy);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 300ms var(--ease), visibility 300ms var(--ease),
              transform 300ms var(--ease), background 200ms var(--ease);
  z-index: 90;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-teal);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 600px) {
  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}
