:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1c2422;
  --muted: #5a6864;
  --line: #d9e0dd;
  --accent: #1a5c52;
  --accent-deep: #0f3d36;
  --accent-soft: #e4efec;
  --warm: #c4a574;
  --danger: #9b3a2f;
  --ok: #2a6b4f;
  --shadow: 0 12px 40px rgba(28, 36, 34, 0.06);
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "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:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(26, 92, 82, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(196, 165, 116, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.sr-only {
  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: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(28, 36, 34, 0.04);
}

.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;
}

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

.logo:hover { color: var(--ink); }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px 7px 11px;
  border-right: 2px solid #d7ebe7;
  border-bottom: 2px solid #d7ebe7;
  transform: rotate(45deg);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .site-nav.is-open {
    max-height: 420px;
    opacity: 1;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
    border: none !important;
  }
}

/* Buttons */
.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: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  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-deep);
  color: #fff;
}

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

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

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

/* Hero — brand-first editorial */
.hero {
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

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

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

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: 1.75rem;
  animation: rise 0.8s ease 0.12s both;
}

.hero-actions {
  animation: rise 0.8s ease 0.22s both;
}

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

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

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

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

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

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

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

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

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

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

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

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

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

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

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

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

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

.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.course-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: inherit;
}

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

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

.course-card h3 {
  margin-bottom: 0.4rem;
}

.course-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.course-meta {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.75rem;
}

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

/* Benefits — list not cards */
.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.benefit-list h3 {
  margin-bottom: 0.35rem;
}

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

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

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

.quote {
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

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

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

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

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(232, 240, 239, 0.78); max-width: 36rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--accent-deep);
}
.cta-band .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* Page hero compact */
.page-hero {
  padding: 3.5rem 0 2rem;
}

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

.page-hero .lead {
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.1rem;
}

.prose {
  max-width: 42rem;
}

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

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

.prose li { margin-bottom: 0.4rem; }

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

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

.prose th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

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

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

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

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

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

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

.price-tier ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  flex: 1;
}

.price-tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

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

.form-panel,
.contact-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group .hint {
  font-weight: 400;
  color: var(--muted);
}

.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: inherit;
  background: var(--bg);
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(26, 92, 82, 0.35);
  border-color: var(--accent);
}

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

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

.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(--danger);
}

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

.form-status.is-success {
  display: block;
  background: #e8f3ec;
  color: var(--ok);
  border: 1px solid #b7d4c2;
}

.form-status.is-error {
  display: block;
  background: #f8eae8;
  color: var(--danger);
  border: 1px solid #e2b8b2;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f8eae8;
  color: var(--danger);
  border: 1px solid #e2b8b2;
  display: none;
}

.inline-error.is-visible { display: block; }

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

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

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

.blog-item:hover { opacity: 0.85; color: inherit; }

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

.blog-item time {
  font-size: 0.82rem;
  color: var(--muted);
}

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

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

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

/* FAQ */
.faq-list {
  max-width: 42rem;
}

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

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

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

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

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

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 2rem 0;
}

.instructor img {
  width: 160px;
  height: 160px;
  object-fit: cover;
}

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

/* Case study */
.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  margin: 2rem 0;
}

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

.rating-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--warm);
  letter-spacing: 0.1em;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(28, 36, 34, 0.08);
  padding: 1.25rem 0;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

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

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: #15201e;
  color: #c5d0cd;
  padding: 3.5rem 0 2rem;
}

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

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

.footer-tag {
  color: #8fa09b;
  max-width: 28rem;
  font-size: 0.95rem;
}

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

.footer-heading {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

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

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

.footer-col a {
  color: #a8b8b4;
  text-decoration: none;
}

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

.footer-address {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #a8b8b4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #7a8c87;
}

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

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

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

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

/* Split media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
