:root {
  --bg: #eef2ef;
  --bg-soft: #f7faf7;
  --surface: #ffffff;
  --ink: #2a322c;
  --ink-muted: #5c675f;
  --brand: #3d5a45;
  --brand-deep: #2f4636;
  --accent: #c9956c;
  --accent-soft: #f3e6d8;
  --line: #d5ddd6;
  --success: #3f7a52;
  --error: #a34a3a;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 12px 40px rgba(47, 70, 54, 0.08);
  --font: "Nunito", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #dfe8e1 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #f0e6da 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-deep);
}

h1,
h2,
h3,
.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-deep);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

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

.inline-error {
  background: #f8e8e4;
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(247, 250, 247, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  color: var(--brand-deep);
  text-decoration: none;
}

.brand-mark__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: var(--brand);
  color: #f5f0e8;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--brand-deep);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  background: var(--brand);
  color: #f7faf7;
  box-shadow: 0 8px 24px rgba(61, 90, 69, 0.25);
}

.btn--primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--brand-deep);
}

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

.btn--accent {
  background: var(--accent);
  color: #2a241c;
}

.btn--accent:hover {
  filter: brightness(0.96);
  color: #2a241c;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section__eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  max-width: 42rem;
}

/* Hero home — asymmetric brand-first */
.hero-home {
  padding: 3.5rem 0 2rem;
}

.hero-home__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-home__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  color: var(--brand-deep);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-home__statement {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--ink);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.hero-home__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-home__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-deep);
}

.hero-home__meta span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero-home__visual {
  position: relative;
  border-radius: calc(var(--radius) + 0.5rem);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  animation: rise-in 0.9s ease both;
}

.hero-home__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-home__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(247, 250, 247, 0.92);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--brand-deep);
}

/* Soft panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel--accent {
  background: linear-gradient(145deg, var(--accent-soft), #fff);
}

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

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

.benefit {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.benefit:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.benefit__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: var(--accent-soft);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Course cards — interactive containers */
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
}

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

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card__body p {
  flex: 1;
}

.course-card__meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Testimonials */
.quote {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.quote--soft {
  background: var(--accent-soft);
  border-color: transparent;
}

.quote__text {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.quote__attr {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.quote__attr span {
  display: block;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Pricing */
.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-tier--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff, #f3f7f4);
}

.price-tier__cost {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brand-deep);
}

.price-tier ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-muted);
}

.price-tier li {
  margin-bottom: 0.4rem;
}

/* Forms */
.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--brand-deep);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-status--success {
  background: #e4f2e8;
  color: var(--success);
}

.form-status--error {
  background: #f8e8e4;
  color: var(--error);
}

/* Blog */
.blog-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow);
}

.blog-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.blog-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article img.cover {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article h2 {
  margin-top: 2rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero--media {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .container {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
  padding-top: 4rem;
}

.page-hero--media .page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47, 70, 54, 0.15), rgba(47, 70, 54, 0.72));
}

.page-hero--media h1,
.page-hero--media p {
  color: #f7faf7;
}

.page-hero--media p {
  max-width: 36rem;
}

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: #dce5de;
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
}

.site-footer a {
  color: #f3e6d8;
}

.site-footer h3 {
  color: #f7faf7;
  font-size: 1.05rem;
}

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

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.footer-address {
  white-space: pre-line;
  color: #c5d0c8;
  font-size: 0.95rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  animation: slide-up 0.45s ease both;
}

.cookie-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  color: var(--brand-deep);
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  font-weight: 700;
  color: var(--brand-deep);
  cursor: pointer;
}

.faq details p {
  margin: 0.75rem 0 0;
}

/* Modules list */
.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.module__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin: 0;
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: rise-in 0.7s ease both;
}

.reveal-delay {
  animation: rise-in 0.7s ease 0.15s both;
}

.legal {
  max-width: 760px;
}

.legal h2 {
  margin-top: 2rem;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.instructor {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.case-study {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.trust-band {
  background: var(--brand);
  color: #e8f0ea;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-around;
  text-align: center;
}

.trust-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fff;
}

.cta-band {
  background: linear-gradient(135deg, var(--brand-deep), #4a6b52);
  color: #eef5f0;
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.4rem;
}

.cta-band p {
  color: #d5e2d8;
  margin: 0;
  max-width: 32rem;
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }

  .hero-home__visual,
  .hero-home__visual img {
    min-height: 280px;
  }
}
