:root {
  --bg: #f3efe6;
  --bg-deep: #e8e1d4;
  --surface: #fffaf3;
  --ink: #2f2a24;
  --ink-soft: #5c5349;
  --line: #d9d0c1;
  --sage: #4f6f52;
  --sage-deep: #3d5740;
  --sage-soft: #d7e3d4;
  --clay: #c17b4a;
  --clay-soft: #f0dcc8;
  --mist: #f7f4ed;
  --shadow: 0 18px 40px rgba(47, 42, 36, 0.08);
  --radius: 1.35rem;
  --radius-sm: 0.85rem;
  --font-display: "Outfit", "Nunito", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

*,
*::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(79, 111, 82, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(193, 123, 74, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--mist) 48%, 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: 0.08em;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
  color: var(--ink);
}

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

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

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

#main {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid rgba(217, 208, 193, 0.7);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 70% 25%, var(--clay) 0 28%, transparent 29%),
    linear-gradient(145deg, var(--sage) 0%, var(--sage-deep) 100%);
  box-shadow: 0 8px 18px rgba(79, 111, 82, 0.25);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

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

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

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

.nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(79, 111, 82, 0.22);
}

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

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}

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

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

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.4rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

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

  .nav-cta {
    text-align: center;
  }
}

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

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

.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 111, 82, 0.25);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--sage-deep);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
  border: 1px solid transparent;
}

.btn-clay {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 14px 28px rgba(193, 123, 74, 0.28);
}

.btn-clay:hover {
  background: #a8683b;
  color: #fff;
}

/* Surfaces */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.soft-card {
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

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

.section {
  margin: 3.5rem 0;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

/* Home hero — editorial split, not dual-CTA default */
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  margin-top: 0.5rem;
}

.home-hero-copy {
  padding: 0.5rem 0 1rem;
}

.home-hero-copy .brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.home-hero-copy h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 28rem;
}

.hero-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--sage);
  background: rgba(215, 227, 212, 0.45);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 28rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 0.4rem);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  animation: rise-in 0.9s ease both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 250, 243, 0.92);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(217, 208, 193, 0.8);
}

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

.trust-item {
  text-align: center;
  padding: 1.2rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.7);
  border: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--sage-deep);
  margin-bottom: 0.2rem;
}

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

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

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

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

.course-card,
.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(47, 42, 36, 0.12);
}

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

.course-card .body,
.blog-card .body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.course-card h3,
.blog-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.benefit {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.benefit h3 {
  font-size: 1.15rem;
}

.quote-rail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.quote {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fffaf3, #eef4ec);
  border: 1px solid var(--line);
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.45;
}

.quote cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.cta-band {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background:
    linear-gradient(135deg, rgba(79, 111, 82, 0.95), rgba(61, 87, 64, 0.92)),
    var(--sage);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  animation: soft-glow 4s ease-in-out infinite alternate;
}

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

.cta-band p {
  opacity: 0.9;
  margin-top: 0.45rem;
  max-width: 34rem;
}

/* Page heroes */
.page-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.page-hero.with-media {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.page-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-hero.stack {
  max-width: 42rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

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

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
  background: rgba(255, 250, 243, 0.7);
}

.prose th {
  background: var(--sage-soft);
  color: var(--ink);
}

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

.pricing-card.featured {
  border-color: var(--sage);
  box-shadow: 0 20px 40px rgba(79, 111, 82, 0.16);
  transform: translateY(-6px);
  background: linear-gradient(180deg, #fffaf3, #eef4ec);
}

.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sage-deep);
}

.price span {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

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

.review-list {
  display: grid;
  gap: 1rem;
}

.review {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.review.short {
  max-width: 36rem;
}

.stars {
  color: var(--clay);
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.case-study {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fffaf3, #e8efe6);
  border: 1px solid var(--line);
}

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

.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.module-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-weight: 800;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--surface);
  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.95rem 1.1rem;
  margin-bottom: 0.7rem;
}

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

.faq p {
  margin: 0.7rem 0 0;
}

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

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

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.field-error {
  color: #9b3d2e;
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c45c48;
}

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

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

.form-status.is-error {
  display: block;
  background: #f7ddd6;
  color: #8a3426;
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fffaf3, #e8efe6);
  border: 1px solid var(--line);
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #f7ddd6;
  color: #8a3426;
  display: none;
}

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

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

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

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

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

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

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

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

.footer-tag,
.footer-contact {
  color: #cfc7ba;
  font-size: 0.95rem;
}

.footer-heading {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

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

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

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

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

.footer-base {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(217, 208, 193, 0.2);
  color: #b7aea0;
  font-size: 0.9rem;
}

.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

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

@keyframes soft-glow {
  from {
    box-shadow: 0 16px 36px rgba(79, 111, 82, 0.2);
  }
  to {
    box-shadow: 0 22px 48px rgba(79, 111, 82, 0.34);
  }
}

.fade-up {
  animation: rise-in 0.7s ease both;
}

@media (max-width: 960px) {
  .home-hero,
  .page-hero.with-media,
  .quote-rail,
  .form-layout,
  .pricing-grid,
  .course-grid,
  .blog-grid,
  .card-grid,
  .benefit-list,
  .footer-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

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

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

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