:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --bg-tint: #e8f1ef;
  --ink: #1b2422;
  --muted: #5b6763;
  --line: #d7e0dd;
  --accent: #2f6f6a;
  --accent-deep: #214f4b;
  --accent-soft: #d9ebe8;
  --warn: #9a4a3a;
  --ok: #2a6b45;
  --shadow: 0 18px 40px rgba(33, 79, 75, 0.08);
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 90% -10%, rgba(47, 111, 106, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fbfa 0%, var(--bg) 28%, var(--bg) 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.inline-error {
  background: #f8e8e4;
  color: var(--warn);
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(215, 224, 221, 0.8);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -5px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

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

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

.btn-light {
  background: #fff;
  color: var(--accent-deep);
}

/* Hero */
.hero-home {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f7faf9;
  overflow: hidden;
}

.hero-home-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 32, 30, 0.18) 0%, rgba(18, 32, 30, 0.55) 48%, rgba(18, 32, 30, 0.78) 100%);
  z-index: 1;
}

.hero-home-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4.5rem;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  margin: 0 0 0.35em;
  letter-spacing: -0.03em;
}

.hero-home h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 0.55em;
}

.hero-home p {
  color: rgba(247, 250, 249, 0.9);
  font-size: 1.08rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 16ch;
}

.page-hero p {
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.08rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section-head p {
  color: var(--muted);
}

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

.trust-band {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

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

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.feature-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.4rem;
}

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

.price-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

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

.media-tile-body {
  padding: 1.25rem 1.3rem 1.45rem;
}

.media-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.media-tile p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.meta {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.quote-stack {
  display: grid;
  gap: 1.2rem;
}

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.quote p {
  margin-bottom: 0.9rem;
  font-size: 1.02rem;
}

.quote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  margin: 1rem 0 4.5rem;
  border-radius: calc(var(--radius) + 6px);
  padding: 2.6rem;
  background:
    linear-gradient(135deg, rgba(47, 111, 106, 0.12), rgba(232, 241, 239, 0.9)),
    var(--bg-tint);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  animation: fade-up 0.8s var(--ease) both;
}

.cta-band h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.price-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--accent-deep);
}

.price-card ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.price-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card,
.form-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.6rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(47, 111, 106, 0.25);
  border-color: var(--accent);
}

.field-error {
  color: var(--warn);
  font-size: 0.88rem;
  min-height: 1.1em;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 0.8rem;
  font-weight: 600;
}

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

.form-status.is-error {
  color: var(--warn);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

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

.module-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 2rem;
}

.module {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1rem;
}

.module h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.module p {
  margin: 0;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.case-study {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.7rem;
  margin-top: 1.4rem;
}

.site-footer {
  margin-top: 2rem;
  background: #14221f;
  color: rgba(247, 250, 249, 0.86);
  padding: 3.2rem 0 1.6rem;
}

.site-footer a {
  color: rgba(247, 250, 249, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.2fr;
  gap: 1.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-tag,
.footer-contact p {
  color: rgba(247, 250, 249, 0.72);
  font-size: 0.95rem;
}

.footer-label {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: rgba(247, 250, 249, 0.62);
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  animation: fade-up 0.45s var(--ease) both;
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
  margin: 1.5rem 0;
}

.instructor img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.reveal {
  animation: fade-up 0.8s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 920px) {
  .trust-grid,
  .course-grid,
  .blog-grid,
  .price-grid,
  .review-grid,
  .split,
  .form-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

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

  .nav-cta {
    text-align: center;
  }

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

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-home-content {
    padding-top: 6rem;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .footer-bottom {
    flex-direction: column;
  }
}
