/* ===========================
   HMG — Global Styles
   =========================== */

:root {
  --teal: #4ABCCC;
  --teal-dark: #35a0ae;
  --teal-light: #e8f7fa;
  --dark: #111827;
  --mid: #374151;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg: #ffffff;
  --bg-soft: #F9FAFB;
  --radius: 6px;
  --max-w: 1100px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

p { color: var(--mid); max-width: 65ch; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ===========================
   Layout
   =========================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

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

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

.section--dark p { color: rgba(255,255,255,0.72); }
.section--dark h2 { color: white; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

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

/* ===========================
   Navigation
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.nav__logo span {
  color: var(--teal);
}

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

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--dark);
}

.nav__cta {
  background: var(--teal);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}

.nav__cta:hover {
  background: var(--teal-dark) !important;
  color: white !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--teal-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 188, 204, 0.35);
}

.btn-outline {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn-outline:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
}

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

.btn-dark:hover {
  background: var(--mid);
  color: white;
  transform: translateY(-1px);
}

/* ===========================
   Cards
   =========================== */

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
}

/* ===========================
   Pillar Cards
   =========================== */

.pillar {
  padding: 2rem;
  border-radius: 10px;
  border-left: 3px solid var(--teal);
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.pillar__number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.92rem;
}

/* ===========================
   Hero
   =========================== */

.hero {
  padding: 10rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74, 188, 204, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ===========================
   Divider
   =========================== */

.divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1.25rem 0 1.5rem;
}

/* ===========================
   Stats
   =========================== */

.stats {
  display: flex;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
}

.stat p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: none;
}

/* ===========================
   Quote / Callout
   =========================== */

.callout {
  border-left: 4px solid var(--teal);
  padding: 1.5rem 2rem;
  background: var(--teal-light);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.callout p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark);
  max-width: none;
}

/* ===========================
   Forms
   =========================== */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 188, 204, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: -0.02em;
}

.footer__logo span { color: var(--teal); }

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}

.footer__col h4 {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer__col ul {
  list-style: none;
}

.footer__col ul li {
  margin-bottom: 0.6rem;
}

.footer__col ul a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__col ul a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

/* ===========================
   Page Hero (inner pages)
   =========================== */

.page-hero {
  padding: 9rem 0 5rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 55ch;
}

/* ===========================
   Tag / Badge
   =========================== */

.tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* ===========================
   Success / Error States
   =========================== */

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

/* ===========================
   Animations
   =========================== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .stats {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .hero { padding: 8rem 0 5rem; }
  .page-hero { padding: 7rem 0 3.5rem; }

  .nav__links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
