:root {
  --bg: #f7f6f2;
  --bg-elevated: #ffffff;
  --ink: #14201c;
  --ink-soft: #4a5a53;
  --line: #d8ddd8;
  --accent: #0b3d36;
  --accent-hover: #0f5248;
  --accent-soft: #e4efeb;
  --sand: #ebe6dc;
  --warn: #8a3b2b;
  --ok: #1f6b4a;
  --radius: 2px;
  --max: 1120px;
  --header-h: 4.25rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Helvetica Neue", 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);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(11, 61, 54, 0.07), transparent 55%),
    linear-gradient(180deg, #faf9f6 0%, var(--bg) 40%, #f3f1eb 100%);
  min-height: 100vh;
}

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

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);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--accent); }

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

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

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

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #f4f7f5 !important;
  text-decoration: none !important;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 560;
  border: 1px solid transparent;
  background: var(--accent);
  color: #f4f7f5;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

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

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

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 28, 0.25) 0%, rgba(20, 32, 28, 0.55) 55%, rgba(20, 32, 28, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  color: #f4f7f5;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: #f4f7f5;
}

.hero-content h1 {
  max-width: 14ch;
  color: #f4f7f5;
  margin-bottom: 1rem;
}

.hero-content p {
  max-width: 38ch;
  color: rgba(244, 247, 245, 0.86);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.section {
  padding: 5.5rem 0;
}

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

.section-sand {
  background: var(--sand);
}

.section-accent {
  background: var(--accent);
  color: #f4f7f5;
}

.section-accent p,
.section-accent h2 {
  color: #f4f7f5;
}

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

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

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-row span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; gap: 1.25rem; }
}

.course-list {
  display: grid;
  gap: 0;
}

.course-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}

.course-row:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.course-row img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.course-row h3 {
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.course-row p {
  margin: 0;
  font-size: 0.98rem;
}

.course-meta {
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .course-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .course-row img {
    width: 100%;
    height: 180px;
  }
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.benefit-grid article h3 {
  margin-bottom: 0.5rem;
}

.benefit-grid article p {
  margin: 0;
}

@media (max-width: 800px) {
  .benefit-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.quote-block {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 450;
}

.quote-block cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.tier.featured {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tier h3 { margin-bottom: 0.35rem; }

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  margin: 1rem 0;
}

.tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.tier li { margin-bottom: 0.45rem; }

@media (max-width: 900px) {
  .tier-list { grid-template-columns: 1fr; }
}

.review-stack {
  display: grid;
  gap: 2rem;
}

.review-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-item .rating {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.review-item p {
  font-size: 1.05rem;
}

.review-item footer {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.case-study {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  margin-top: 2rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

.blog-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-item h2 {
  font-size: 1.45rem;
  color: var(--ink);
}

.blog-item time {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

@media (max-width: 700px) {
  .blog-item { grid-template-columns: 1fr; }
  .blog-item img { height: 200px; }
}

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

.prose {
  max-width: 42rem;
}

.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.modules {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.module {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.module h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.module p { margin: 0; font-size: 0.98rem; }

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

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

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

.faq summary {
  cursor: pointer;
  font-weight: 560;
  color: var(--ink);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font: inherit;
  color: var(--ink);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  display: none;
  color: var(--warn);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--warn);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  background: #e7f3ec;
  color: var(--ok);
}

.form-status.is-error {
  display: block;
  background: #f7ebe8;
  color: var(--warn);
}

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

.page-hero h1 { max-width: 16ch; }

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

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

.legal-table th {
  background: var(--sand);
  color: var(--ink);
  font-weight: 560;
}

.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  background: #121a17;
  color: rgba(244, 247, 245, 0.78);
}

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr;
  gap: 2rem;
}

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

.footer-tag,
.footer-contact p {
  color: rgba(244, 247, 245, 0.72);
  font-size: 0.92rem;
}

.footer-heading {
  color: #f4f7f5;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

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

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

.footer-links a,
.footer-contact a {
  color: rgba(244, 247, 245, 0.72);
  text-decoration: none;
}

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

.footer-copy {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(244, 247, 245, 0.5);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 420px;
  margin-left: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(20, 32, 28, 0.12);
  animation: riseIn 0.45s var(--ease) both;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.cookie-actions .btn {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f7ebe8;
  color: var(--warn);
  font-size: 0.92rem;
}

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

.error-page h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  margin-bottom: 0.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

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