:root {
  --bg: #eef3ec;
  --bg-deep: #e2eadc;
  --surface: #fafcf8;
  --ink: #2a3328;
  --muted: #5c6758;
  --line: #cfd9c8;
  --sage: #4a6b4e;
  --sage-deep: #355239;
  --honey: #c17a3a;
  --honey-soft: #f3e4d4;
  --leaf: #7a9a6e;
  --shadow: 0 12px 28px rgba(42, 51, 40, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Nunito", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(122, 154, 110, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(193, 122, 58, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

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

.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: 1rem;
  top: -3rem;
  background: var(--sage);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

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

.inline-error {
  background: #f8e0d8;
  color: #7a2e1f;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(238, 243, 236, 0.88);
  border-bottom: 1px solid rgba(207, 217, 200, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 30% 30%, #f3e4d4, transparent 45%),
    linear-gradient(145deg, var(--sage), var(--leaf));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

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

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

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

.nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--sage-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

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

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

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

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

.btn-secondary {
  background: var(--honey);
  color: #fff;
}

.btn-secondary:hover {
  background: #a8652c;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

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

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

/* Hero compositions */
.hero-home {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7faf5;
}

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

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

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 51, 40, 0.25) 0%, rgba(42, 51, 40, 0.72) 70%, rgba(42, 51, 40, 0.88) 100%);
  z-index: 1;
}

.hero-home-copy {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
  animation: rise-in 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.35em;
  line-height: 1.05;
}

.hero-lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  opacity: 0.95;
  max-width: 34rem;
}

.hero-page {
  padding: 3.5rem 0 2rem;
}

.hero-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-page .lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40rem;
}

.page-hero-band {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7faf5;
  margin-bottom: 2rem;
}

.page-hero-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 51, 40, 0.2), rgba(42, 51, 40, 0.78));
}

.page-hero-band .shell {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

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

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-intro {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: -2.5rem auto 0;
  position: relative;
  z-index: 3;
}

.trust-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: rise-in 0.8s ease both;
}

.trust-item:nth-child(2) { animation-delay: 0.1s; }
.trust-item:nth-child(3) { animation-delay: 0.2s; }

.trust-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--sage-deep);
  margin: 0;
}

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

.course-grid,
.blog-grid,
.pricing-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.review-grid {
  grid-template-columns: repeat(2, 1fr);
}

.media-tile {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.media-tile:hover {
  transform: translateY(-4px);
}

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

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

.media-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.media-tile p {
  color: var(--muted);
  flex: 1;
}

.media-tile .tile-meta {
  font-size: 0.88rem;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  background: rgba(250, 252, 248, 0.7);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
}

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

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

.quote-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote-block p {
  font-size: 1.05rem;
}

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

.quote-block .stars {
  color: var(--honey);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(74, 107, 78, 0.95), rgba(53, 82, 57, 0.92)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #f7faf5;
  border-radius: calc(var(--radius) + 6px);
  padding: 2.5rem;
  margin: 1rem 0 2rem;
  animation: soft-pulse 6s ease-in-out infinite;
}

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

.cta-band p {
  opacity: 0.92;
  max-width: 36rem;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--sage);
  background: linear-gradient(180deg, #f7faf5, var(--surface));
  transform: translateY(-6px);
}

.pricing-card h3 {
  margin-bottom: 0.25rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sage-deep);
  margin: 0.5rem 0 1rem;
}

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

.pricing-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.pricing-card li {
  margin-bottom: 0.45rem;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

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

.legal-content h3 {
  margin-top: 1.4rem;
  font-size: 1.1rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.legal-content th {
  background: var(--bg-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(74, 107, 78, 0.35);
  border-color: var(--sage);
}

.field-error {
  color: #8a3b2a;
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  background: #e3f0df;
  color: var(--sage-deep);
}

.form-status.is-error {
  background: #f8e0d8;
  color: #7a2e1f;
}

.contact-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  height: fit-content;
}

.modules {
  display: grid;
  gap: 0.85rem;
}

.module {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}

.module h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

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

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

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

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

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.case-study {
  background: linear-gradient(135deg, var(--honey-soft), var(--surface));
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.blog-article {
  max-width: 720px;
}

.blog-article .meta {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.blog-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.blog-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 0.2em;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #2f3a2d;
  color: #dce5d7;
  padding: 3rem 0 1.5rem;
}

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

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-address {
  color: #b7c4b1;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

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

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

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

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

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(207, 217, 200, 0.2);
  font-size: 0.9rem;
  color: #9aab93;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 1rem;
  animation: rise-in 0.45s ease both;
}

.cookie-banner-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--muted);
}

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

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

.prose-wide {
  max-width: 48rem;
}

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

@keyframes gentle-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(53, 82, 57, 0.18); }
  50% { box-shadow: 0 14px 36px rgba(53, 82, 57, 0.28); }
}

@media (max-width: 900px) {
  .course-grid,
  .blog-grid,
  .pricing-grid,
  .footer-grid,
  .trust-strip,
  .contact-layout,
  .split-two,
  .benefit-list {
    grid-template-columns: 1fr;
  }

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

  .pricing-card.featured {
    transform: none;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 252, 248, 0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }

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

  .instructor {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

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