:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 251, 245, 0.88);
  --surface-strong: #fffaf2;
  --surface-muted: rgba(255, 248, 240, 0.76);
  --text: #1f1d1b;
  --muted: #6b6258;
  --line: rgba(58, 48, 38, 0.12);
  --primary: #0f766e;
  --primary-strong: #0a5b56;
  --secondary: #d97706;
  --secondary-soft: rgba(217, 119, 6, 0.12);
  --accent: #1d4ed8;
  --success: #166534;
  --shadow: 0 20px 48px rgba(42, 32, 20, 0.08);
  --shadow-soft: 0 10px 24px rgba(42, 32, 20, 0.05);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --display-font: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --body-font: Inter, "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
  --display-xl: clamp(2.9rem, 5.6vw, 4.8rem);
  --display-lg: clamp(2.15rem, 3.8vw, 3.5rem);
  --display-md: clamp(1.72rem, 2.4vw, 2.4rem);
  --heading-sm: clamp(1.18rem, 1.35vw, 1.42rem);
  --body-lg: clamp(1.04rem, 1.35vw, 1.12rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 30%),
    radial-gradient(circle at right 20%, rgba(217, 119, 6, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f4ede2 100%);
  line-height: 1.6;
}

::selection {
  background: rgba(15, 118, 110, 0.18);
}

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

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

button,
.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 5.75rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.section-heading h1,
.hero-copy h1,
.page-hero-copy h1 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-heading p,
.hero-copy p,
.page-hero-copy p,
.lede {
  margin: 0;
  color: var(--muted);
  font-size: var(--body-lg);
  max-width: 62ch;
}

.section-heading h2,
.section-heading h1 {
  font-size: var(--display-lg);
}

.section-shell {
  padding: 2rem;
  border: 1px solid rgba(58, 48, 38, 0.08);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 243, 0.66));
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-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.9rem;
  font-weight: 800;
}

.brand-logo {
  width: 220px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy span {
  display: block;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-size: 1.02rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy {
  display: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  content: "";
  transition: 0.2s ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid rgba(58, 48, 38, 0.08);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.86);
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  position: relative;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(15, 118, 110, 0.06);
}

.site-nav a.active::after,
.site-nav a:hover::after {
  content: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

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

.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.22);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.2);
}

.button-secondary {
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.button-ghost {
  color: var(--primary-strong);
  background: rgba(15, 118, 110, 0.08);
}

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

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1,
.page-hero-copy h1 {
  font-size: var(--display-xl);
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-card,
.glass-card {
  padding: 1.6rem;
  border: 1px solid rgba(58, 48, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 251, 245, 0.96));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.glass-card,
.card,
.stat-card,
.quote-card,
.contact-card,
.faq-item,
.timeline-card,
.fact {
  backdrop-filter: none;
}

.hero-visual {
  display: grid;
  gap: 1.1rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  min-height: 390px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(145deg, #0c3432 0%, #0f766e 55%, #d97706 135%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 220px;
  height: 220px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  content: "";
  transform: rotate(24deg);
}

.hero-panel h2,
.hero-panel p {
  margin: 0 0 1rem;
}

.hero-panel-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.mini-stat {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-stat strong {
  display: block;
  font-size: 1.25rem;
}

.trust-grid,
.card-grid,
.stats-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.contact-split {
  grid-template-columns: 0.95fr 1.05fr;
}

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

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

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

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

.card,
.stat-card,
.quote-card,
.contact-card,
.faq-item,
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card h3,
.stat-card h3,
.quote-card h3,
.contact-card h3,
.timeline-card h3,
.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: var(--heading-sm);
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.card p,
.stat-card p,
.quote-card p,
.contact-card p,
.timeline-card p,
.faq-item p,
.card li {
  color: var(--muted);
  margin: 0;
}

.card,
.stat-card,
.quote-card,
.contact-card,
.timeline-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 249, 241, 0.82)),
    var(--surface-muted);
}

.card,
.stat-card,
.quote-card,
.contact-card,
.timeline-card,
.fact,
.faq-item {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.stat-card:hover,
.quote-card:hover,
.contact-card:hover,
.timeline-card:hover,
.fact:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 18px 38px rgba(42, 32, 20, 0.1);
}

.card ul {
  padding-left: 1rem;
  margin: 1rem 0 0;
}

.card-badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: #9a5804;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.course-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 100%;
}

.course-meta,
.facts-list,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.testimonial-slider {
  display: grid;
  gap: 1rem;
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.quote-card {
  min-height: 100%;
}

.hero-panel h2,
.cta-band h2,
.announcement h2 {
  font-size: var(--display-md);
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.quote-card footer {
  color: var(--muted);
  font-weight: 700;
}

.highlight-band {
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(217, 119, 6, 0.07));
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: var(--shadow-soft);
}

.announcement {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff4de, #fffaf1);
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: var(--shadow);
}

.cta-band {
  padding: 2.2rem;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(145deg, #0b3a39 0%, #0f766e 58%, #d97706 140%);
  box-shadow: var(--shadow);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero-copy .meta-list {
  margin-top: 1rem;
}

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

.fact {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.fact strong {
  display: block;
  margin-bottom: 0.3rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.form-card {
  min-height: 100%;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.8rem;
}

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

.form-feedback {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-feedback.is-success {
  color: var(--success);
}

.form-feedback.is-error {
  color: #b42318;
}

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

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

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fffdf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
  outline: none;
}

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

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  align-items: start;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.footer-grid a,
.footer-grid p {
  color: var(--muted);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav.is-open {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open + .header-actions {
    display: grid;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 20rem);
  }

  .hero-grid,
  .page-hero-grid,
  .split,
  .card-grid.three,
  .card-grid.two,
  .trust-grid,
  .stats-grid,
  .contact-grid,
  .footer-grid,
  .facts-bar,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .section-shell {
    padding: 1.35rem;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    font-size: clamp(2.9rem, 10vw, 3.6rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions .button,
  .stack-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
