:root {
  --ink: #14201c;
  --ink-soft: #3d4a44;
  --muted: #6b766f;
  --paper: #f7f6f2;
  --paper-deep: #ebe8e1;
  --line: rgba(20, 32, 28, 0.12);
  --accent: #1a4d3e;
  --accent-hover: #0f352b;
  --accent-soft: #d8e6df;
  --highlight: #c4a35a;
  --danger: #8b3a2f;
  --ok: #1a4d3e;
  --max: 1120px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --radius: 2px;
  --shadow-soft: 0 18px 50px rgba(20, 32, 28, 0.08);
  --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.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 77, 62, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 163, 90, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #f3f1ec 40%, var(--paper) 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;
  transition: color 0.2s var(--ease);
}

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.01em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

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

ul,
ol {
  color: var(--ink-soft);
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.lede {
  font-size: 1.15rem;
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: #f7f6f2;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

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

.btn-ghost:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 246, 242, 0.86);
  border-bottom: 1px solid var(--line);
}

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

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

.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.92rem;
  font-weight: 450;
}

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

.site-nav .nav-cta {
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #f7f6f2;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #f7f6f2;
}

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

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

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

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

.footer-brand p,
.footer-contact p {
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

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

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

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

.footer-base {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero — full bleed, brand-forward */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f4f7f5;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 22s var(--ease) infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 28, 24, 0.88) 12%, rgba(14, 28, 24, 0.45) 55%, rgba(14, 28, 24, 0.25) 100%),
    linear-gradient(0deg, rgba(14, 28, 24, 0.55), transparent 45%);
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: #f4f7f5;
}

.hero-line {
  max-width: 28rem;
  font-size: 1.15rem;
  color: rgba(244, 247, 245, 0.86);
  margin-bottom: 1.75rem;
}

.hero .btn {
  animation: riseIn 1s 0.15s var(--ease) both;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

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

/* Trust / metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.metric {
  padding: 2rem 0;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}

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

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

.course-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.course-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  color: inherit;
}

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

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

.course-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

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

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

/* Benefits / split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92);
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.benefit-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
}

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

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--highlight);
}

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

.quote {
  max-width: 40rem;
  padding: 0;
  margin: 0;
  border: none;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1rem;
}

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

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

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

.quote-compact p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
}

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

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #f4f7f5;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-band h2 {
  color: #f4f7f5;
  max-width: 14ch;
}

.cta-band p {
  color: rgba(244, 247, 245, 0.82);
  max-width: 32rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

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

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

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

.price-tier.featured h3,
.price-tier.featured p,
.price-tier.featured li {
  color: #f4f7f5;
}

.price-tier.featured .price {
  color: #f4f7f5;
}

.price-tier h3 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

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

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

.price-tier.featured .price span {
  color: rgba(244, 247, 245, 0.7);
}

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

.price-tier li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.price-tier.featured li {
  border-color: rgba(244, 247, 245, 0.18);
}

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

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 77, 62, 0.15);
}

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

.field-error {
  display: none;
  color: var(--danger);
  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(--danger);
}

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

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

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

.contact-details p {
  margin-bottom: 0.75rem;
}

.address-block {
  white-space: pre-wrap;
  font-size: 0.95rem;
}

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

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: opacity 0.25s var(--ease);
}

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

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

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

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

.article {
  max-width: 42rem;
  margin: 0 auto;
}

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

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

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

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

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

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

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

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

.module-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

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

.module-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--highlight);
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

/* Legal */
.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.65rem;
}

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

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

.legal th {
  background: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* 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, 18vw, 9rem);
  line-height: 1;
  color: var(--accent-soft);
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  max-width: 420px;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.4rem;
  animation: riseIn 0.5s var(--ease) both;
}

.cookie-banner[hidden] {
  display: none !important;
}

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

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

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

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

.inline-error {
  display: none;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: #f3e4e1;
  color: var(--danger);
  font-size: 0.9rem;
}

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

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

.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(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

  .course-grid,
  .price-grid,
  .split,
  .form-layout,
  .quote-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .blog-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 246, 242, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

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

  .hero {
    min-height: 78vh;
  }
}
