:root {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --ink: #1a1a18;
  --muted: #5c5c56;
  --line: #e3e1db;
  --accent: #2c5f4f;
  --accent-hover: #234c40;
  --accent-soft: #e7f0ec;
  --warn: #8a4b2e;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(26, 26, 24, 0.06);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Sora", "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);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(44, 95, 79, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(26, 26, 24, 0.04), transparent 50%);
  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);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

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

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  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.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

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

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .site-nav.is-open { display: flex; }
}

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

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

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

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

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

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

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

/* Hero variants */
.hero-editorial {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-editorial .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  min-height: min(72vh, 640px);
}

.hero-brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  animation: rise 0.8s ease both;
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 34ch;
  color: var(--muted);
  animation: rise 0.8s ease 0.12s both;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  animation: fade-in 1s ease 0.2s both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  filter: saturate(0.85) contrast(1.05);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(248, 247, 245, 0.35));
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero-editorial .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual { min-height: 280px; }
  .hero-visual img { min-height: 280px; }
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 52ch;
  font-size: 1.1rem;
}

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

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

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

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

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

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

.proof-bar {
  border-block: 1px solid var(--line);
  padding: 1.75rem 0;
  background: rgba(255, 255, 255, 0.55);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 500;
}

.proof-grid span {
  font-size: 0.85rem;
  color: var(--muted);
}

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

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

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

.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(-3px);
  color: inherit;
}

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

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

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

.course-card p {
  font-size: 0.95rem;
  flex: 1;
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Benefits list */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.benefit-list li {
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.benefit-list h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 1.75rem;
}

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

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

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

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

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

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

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

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

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

.price-amount span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
}

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

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

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

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

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.blog-item:hover h3 { color: var(--accent); }

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-item h3 {
  color: var(--ink);
  margin-bottom: 0.4rem;
}

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

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.article .lead {
  font-size: 1.2rem;
  color: var(--ink);
}

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

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

/* Forms */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  max-width: 560px;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  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);
  outline-offset: 1px;
}

.field-error {
  display: none;
  color: var(--warn);
  font-size: 0.82rem;
  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.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

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

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-details p {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.contact-details .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
  margin-top: 1.25rem;
}

/* Legal */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

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

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

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

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

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

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin-top: 0.75rem;
}

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 3.5rem 0;
  margin-top: 2rem;
}

.cta-band h2,
.cta-band p { color: #fff; }

.cta-band p { opacity: 0.88; max-width: 42ch; }

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

.cta-band .btn-primary:hover {
  background: var(--bg);
  color: var(--accent-hover);
}

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

.cta-band .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

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

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.footer-tag {
  max-width: 36ch;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 2rem;
}

.footer-cols h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

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

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

.footer-cols a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-cols p {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  z-index: 200;
  display: none;
}

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

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

.cookie-banner .btn-row { margin-top: 0; }

.cookie-banner a { color: var(--accent); }

.inline-error {
  background: #f6ebe6;
  color: var(--warn);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* Modules / instructor */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mod;
}

.module-list li {
  counter-increment: mod;
  padding: 1.15rem 0 1.15rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem;
}

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

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

.case-study {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.case-study h3 { margin-bottom: 0.5rem; }

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 1;
  color: var(--accent);
  margin: 0;
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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