:root {
  --bg: #fff8f1;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffdf9;
  --ink: #112135;
  --muted: #5d6b7a;
  --line: rgba(17, 33, 53, 0.1);
  --accent: #ff6b2c;
  --accent-2: #ffb703;
  --deep: #0f2742;
  --mint: #cdeee5;
  --shadow: 0 24px 80px rgba(17, 33, 53, 0.12);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 183, 3, 0.2), transparent 28%),
    radial-gradient(circle at right 20%, rgba(255, 107, 44, 0.14), transparent 20%),
    linear-gradient(180deg, #fff8f1 0%, #f5fbff 60%, #eef7ff 100%);
}

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

img {
  max-width: 100%;
}

main {
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 241, 0.74);
  border-bottom: 1px solid rgba(17, 33, 53, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand strong,
.hero-copy h1,
.section-heading h2,
.page-hero h1,
.service-card h3,
.program-card h2,
.info-card h2,
.blog-card h2,
.cta-banner h2,
.glass-card h2,
.contact-panel h2 {
  font-family: "Space Grotesk", sans-serif;
}

.brand small {
  display: block;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ef3b2d);
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--muted);
  font-weight: 700;
}

.main-nav a,
.contact-actions a,
.hero-links a {
  min-width: 0;
}

.main-nav a:hover,
.text-link,
.hero-links a {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-small {
  min-height: 44px;
  padding: 0 1rem;
}

.button-accent {
  color: white;
  background: linear-gradient(135deg, var(--accent), #ef3b2d);
  box-shadow: 0 16px 32px rgba(239, 59, 45, 0.25);
}

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

.button-light {
  color: var(--deep);
  background: white;
}

.button-outline,
.button-outline-light {
  background: transparent;
}

.button-outline {
  border-color: rgba(17, 33, 53, 0.16);
}

.button-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--deep);
  background: rgba(255, 183, 3, 0.22);
}

.hero-section,
.page-hero {
  padding: 5rem 0 3rem;
}

.compact-hero {
  padding-bottom: 1rem;
}

.hero-grid,
.two-pane-layout,
.form-layout,
.training-highlight-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.96;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.contact-panel p,
.service-card p,
.program-card p,
.info-card p,
.blog-card p,
.testimonial-card p,
.stack-list p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.hero-links,
.contact-actions,
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-links {
  margin-top: 1rem;
  font-weight: 700;
}

.glass-card,
.service-card,
.metric-card,
.program-card,
.info-card,
.blog-card,
.testimonial-card,
.contact-panel,
.lead-form,
.mini-program-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.glass-card,
.service-card,
.program-card,
.info-card,
.blog-card,
.testimonial-card,
.contact-panel,
.lead-form,
.mini-program-list article {
  padding: 1.6rem;
}

.split-card,
.mini-program-list,
.stack-list {
  display: grid;
  gap: 1rem;
}

.metric-section,
.section-block {
  padding: 1.5rem 0 4rem;
}

.metric-grid,
.card-grid,
.testimonial-grid {
  display: grid;
  gap: 1.2rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 2.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.accent-band {
  position: relative;
}

.accent-band::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0;
  background: linear-gradient(135deg, rgba(205, 238, 229, 0.9), rgba(255, 232, 214, 0.8));
  z-index: -1;
}

.dark-panel {
  background: linear-gradient(135deg, #112135, #17385d);
  color: white;
}

.dark-panel .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.cta-banner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.cta-grid {
  align-items: stretch;
}

.service-card ul,
.site-footer ul,
.contact-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.lead-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 33, 53, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.95rem 1rem;
  font: inherit;
}

.lead-form.on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.lead-form.on-dark input,
.lead-form.on-dark select,
.lead-form.on-dark textarea {
  background: rgba(255, 255, 255, 0.96);
}

.site-footer {
  padding: 4rem 0 2rem;
  color: #dce8f7;
  background: #0b1829;
}

.footer-grid,
.footer-base {
  display: grid;
  gap: 1rem;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-base {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.flash-stack {
  padding-top: 1rem;
}

.flash {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  font-weight: 700;
}

.flash-success {
  color: #114127;
  background: #d9f6e4;
}

.flash-error {
  color: #7f1d1d;
  background: #fde2e2;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header {
    position: static;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    padding: 1rem 0;
    min-height: auto;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow-wrap: anywhere;
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 0.2rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 248, 241, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    padding: 0.8rem 1rem;
    font-weight: 800;
  }

  .header-inner > .button-small {
    display: none;
  }

  .hero-grid,
  .two-pane-layout,
  .form-layout,
  .training-highlight-grid,
  .metric-grid,
  .two-column,
  .three-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .page-hero {
    padding: 4rem 0 2.5rem;
  }

  .metric-section,
  .section-block {
    padding: 1rem 0 3rem;
  }

  .service-card,
  .program-card,
  .info-card,
  .blog-card,
  .testimonial-card,
  .contact-panel,
  .lead-form,
  .glass-card,
  .mini-program-list article {
    padding: 1.3rem;
  }
}

@media (max-width: 640px) {
  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.4rem;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .hero-grid,
  .two-pane-layout,
  .form-layout,
  .training-highlight-grid,
  .metric-grid,
  .card-grid,
  .testimonial-grid,
  .footer-grid {
    gap: 1rem;
  }

  .hero-actions,
  .hero-links,
  .contact-actions,
  .cta-grid {
    flex-direction: column;
  }

  .hero-links a,
  .contact-actions a {
    width: 100%;
  }

  .eyebrow,
  .tag {
    font-size: 0.74rem;
  }

  .button,
  .hero-actions .button,
  .cta-grid .button,
  .contact-actions .button {
    width: 100%;
  }

  .flash {
    padding: 0.9rem 1rem;
  }
}