:root {
  --bg: #f6f0e6;
  --bg-soft: #efe6d7;
  --surface: #fffaf3;
  --ink: #2a332c;
  --ink-soft: #5a635c;
  --brand: #3d5a45;
  --brand-deep: #2c4233;
  --accent: #b8794a;
  --accent-soft: #e8c9ad;
  --line: rgba(61, 90, 69, 0.16);
  --shadow: 0 18px 40px rgba(42, 51, 44, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

*,
*::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 at 12% 0%, rgba(184, 121, 74, 0.12), transparent 42%),
    radial-gradient(ellipse at 90% 8%, rgba(61, 90, 69, 0.1), transparent 38%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 38%, #f3ebdf 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

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

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

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

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

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

.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: 40;
  backdrop-filter: blur(12px);
  background: rgba(246, 240, 230, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #f3e6d4;
  font-size: 0.95rem;
}

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

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

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--brand-deep);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  background: var(--brand);
  color: #f7f1e7;
  box-shadow: 0 10px 24px rgba(61, 90, 69, 0.22);
}

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

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

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

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

.btn--accent:hover {
  background: #9e6439;
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(42, 51, 44, 0.18) 0%, rgba(42, 51, 44, 0.55) 55%, rgba(42, 51, 44, 0.78) 100%);
}

.hero__content {
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto 4.5rem;
  color: #f7f1e7;
  animation: riseIn 0.9s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 0.95;
  margin: 0 0 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f7f1e7;
}

.hero__lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(247, 241, 231, 0.9);
  margin-bottom: 1.4rem;
}

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

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

.section--soft {
  background: rgba(255, 250, 243, 0.55);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

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

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

.grid-3 {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

.course-card:hover {
  transform: translateY(-4px);
}

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

.course-card__body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.course-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.course-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.meta-row strong {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: block;
}

.quote-block {
  border-radius: var(--radius);
  background: var(--brand);
  color: #f4ecdf;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.quote-block p {
  color: rgba(244, 236, 223, 0.92);
  font-size: 1.15rem;
  font-family: var(--font-display);
  line-height: 1.45;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-soft);
}

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

.price-tier {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.price-tier--featured {
  background: linear-gradient(165deg, #3d5a45, #2c4233);
  color: #f7f1e7;
  border-color: transparent;
}

.price-tier--featured h3,
.price-tier--featured p,
.price-tier--featured li {
  color: rgba(247, 241, 231, 0.92);
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.price-tier--featured .amount {
  color: #fff;
}

.price-tier ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

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

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

.blog-card {
  display: grid;
  gap: 0.9rem;
}

.blog-card img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.blog-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.blog-card a {
  text-decoration: none;
}

.prose {
  max-width: 42rem;
}

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

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

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

.faq summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--brand-deep);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  background: var(--bg-soft);
  color: var(--brand-deep);
}

.page-hero {
  padding: 3.2rem 0 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 38rem;
  font-size: 1.08rem;
}

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

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 750;
  margin-bottom: 0.35rem;
  color: var(--brand-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  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 rgba(61, 90, 69, 0.35);
  border-color: var(--brand);
}

.field-error {
  min-height: 1.2em;
  color: #9b3a28;
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 0.85rem;
  font-weight: 700;
}

.form-status--ok {
  color: var(--brand);
}

.form-status--err {
  color: #9b3a28;
}

.address-block {
  white-space: pre-line;
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 2rem;
  background: var(--brand-deep);
  color: rgba(247, 241, 231, 0.88);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: #f3e6d4;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  color: #f7f1e7;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

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

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

.site-footer p,
.site-footer .address-block {
  color: rgba(247, 241, 231, 0.78);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 241, 231, 0.15);
  font-size: 0.9rem;
  color: rgba(247, 241, 231, 0.65);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  animation: riseIn 0.45s ease both;
}

.cookie-banner__inner {
  display: grid;
  gap: 0.9rem;
}

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

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.1rem;
  align-items: center;
}

.instructor img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft);
}

.case-study {
  border-left: 4px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .contact-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(246, 240, 230, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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