:root {
  --bg: #f3f4f2;
  --bg-deep: #e7ebe7;
  --surface: #ffffff;
  --ink: #1a1f1c;
  --muted: #5c6560;
  --accent: #2d5a4a;
  --accent-hover: #234839;
  --accent-soft: #e4efe9;
  --line: #d5dbd6;
  --warn: #8a4b2f;
  --error: #8b2e2e;
  --ok: #1f6b4a;
  --shadow: 0 18px 40px rgba(26, 31, 28, 0.08);
  --radius: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::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 500px at 10% -10%, rgba(45, 90, 74, 0.08), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(168, 196, 184, 0.22), transparent 55%),
    linear-gradient(180deg, #f7f8f6 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 244, 242, 0.86);
  border-bottom: 1px solid rgba(213, 219, 214, 0.8);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #4a7a68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  content: "";
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

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

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

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

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

.btn-ms {
  background: #0f1110;
  color: #fff;
  border-color: #0f1110;
  white-space: nowrap;
}

.btn-ms:hover {
  background: #242826;
  color: #fff;
}

.btn-ms-footer {
  margin-top: 0.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero variants */
.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f5f7f5;
}

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slow-pan 28s ease-in-out infinite alternate;
}

.hero-home-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 24, 20, 0.35) 0%, rgba(16, 24, 20, 0.72) 55%, rgba(16, 24, 20, 0.9) 100%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 4rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  max-width: 38rem;
  animation: rise-in 0.9s ease both;
}

.brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: #c9d8cf;
  margin-bottom: 0.85rem;
  font-weight: 650;
}

.hero-lead {
  font-size: 1.12rem;
  color: #e4ebe6;
  max-width: 32rem;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

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

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid rgba(213, 219, 214, 0.7);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Proof strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.proof-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  animation: rise-in 0.8s ease both;
}

.proof-item:nth-child(2) { animation-delay: 0.08s; }
.proof-item:nth-child(3) { animation-delay: 0.16s; }

.proof-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.25rem;
}

.proof-label {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Feature rows */
.feature-stack {
  display: grid;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
}

.feature-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-media img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-copy h3 {
  font-size: 1.65rem;
}

.feature-copy p {
  color: var(--muted);
}

/* Course cards / listings */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.course-card,
.blog-card,
.price-tier,
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-tier {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.8rem;
}

.price-amount span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-tier ul {
  flex: 1;
  color: var(--muted);
  padding-left: 1.1em;
}

.price-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.review-card {
  padding: 1.5rem;
}

.review-card.wide {
  grid-column: 1 / -1;
}

.stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.review-attr {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.form-panel,
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.field {
  margin-bottom: 1rem;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(45, 90, 74, 0.35);
  border-color: var(--accent);
}

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

.form-status {
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  display: none;
}

.form-status.ok {
  display: block;
  background: var(--accent-soft);
  color: var(--ok);
}

.form-status.err {
  display: block;
  background: #f8eaea;
  color: var(--error);
}

.inline-error {
  background: #f8eaea;
  color: var(--error);
  border: 1px solid #efcfcf;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
}

/* Legal */
.legal-content {
  max-width: 72ch;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

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

.legal-content th {
  background: var(--accent-soft);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #171c19;
  color: #d5ddd7;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 1.5rem;
}

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

.footer-tag {
  color: #aeb8b2;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

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

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a,
.footer-contact a {
  color: #c5cec8;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-address {
  font-style: normal;
  color: #aeb8b2;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: #97a39c;
  font-size: 0.9rem;
}

.disclaimer-line a {
  color: #d7e4dc;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise-in 0.45s ease both;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

/* Misc */
.module-list {
  list-style: none;
  padding: 0;
}

.module-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 0.65rem;
}

.module-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.65rem;
}

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

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

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

.split-cta {
  background: linear-gradient(135deg, var(--accent), #3f7260);
  color: #fff;
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.split-cta p {
  color: #dce8e1;
  max-width: 48ch;
}

.split-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.split-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.prose {
  max-width: 68ch;
}

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

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin: 1.5rem 0;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.wrap-404 {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

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

@keyframes slow-pan {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 960px) {
  .proof-strip,
  .card-grid,
  .price-grid,
  .footer-grid,
  .contact-layout,
  .feature-row,
  .feature-row.reverse,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .price-tier.featured {
    transform: none;
  }

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

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    background: rgba(243, 244, 242, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
