:root {
  --bg: #fbfaf7;
  --bg-elevated: #ffffff;
  --ink: #1c2421;
  --ink-soft: #4a5651;
  --line: #e4e0d7;
  --accent: #1f5c4b;
  --accent-deep: #164437;
  --accent-soft: #e7f1ed;
  --sand: #c4a574;
  --sand-soft: #f3ebe0;
  --danger: #9b3b2e;
  --success: #1f5c4b;
  --shadow: 0 18px 40px rgba(28, 36, 33, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 92, 75, 0.08), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(196, 165, 116, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, 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;
}

.inline-error {
  background: #f8e8e5;
  color: var(--danger);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 224, 215, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

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

.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 70%),
    var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

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

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

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

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

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 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-secondary {
  background: var(--sand-soft);
  color: var(--ink);
  border-color: #e2d3bd;
}

.btn-secondary:hover {
  background: #ebe0cf;
  color: var(--ink);
}

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

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

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Hero variants */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
}

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

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

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 34, 29, 0.25) 0%, rgba(18, 34, 29, 0.72) 70%, rgba(18, 34, 29, 0.88) 100%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
  max-width: 38rem;
  animation: riseIn 0.9s ease both;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
}

.hero-home h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  margin-bottom: 0.7rem;
  color: #fff;
}

.hero-home .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

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

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

.page-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  padding: 3.5rem 0 1rem;
}

.page-hero-split img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
  animation: fadeLift 1s ease both;
}

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

.section-muted {
  background: linear-gradient(180deg, rgba(231, 241, 237, 0.55), rgba(251, 250, 247, 0));
}

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

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

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

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

.soft-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.feature {
  padding: 0.2rem 0.1rem 0.6rem;
}

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

.feature p {
  color: var(--ink-soft);
  margin: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

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

/* Course / blog media blocks */
.media-card {
  display: grid;
  gap: 0.9rem;
}

.media-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
}

.media-card h3 {
  font-size: 1.3rem;
  margin: 0;
}

.media-card h3 a {
  color: inherit;
  text-decoration: none;
}

.media-card h3 a:hover {
  color: var(--accent);
}

.media-card p {
  color: var(--ink-soft);
  margin: 0;
}

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

.course-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.module-list li {
  border-left: 3px solid var(--accent);
  padding: 0.55rem 0 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
}

.side-panel {
  position: sticky;
  top: 6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.2rem 0 0.8rem;
}

.instructor {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.2rem;
}

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

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

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), #fff 45%);
}

.price-tier h3 {
  margin-bottom: 0.2rem;
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
}

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

/* Reviews */
.quote {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.quote p {
  margin-bottom: 0.9rem;
}

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

.rating {
  color: var(--sand);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.case-study {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #d5e6df;
}

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.field {
  margin-bottom: 1rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  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(31, 92, 75, 0.25);
  border-color: var(--accent);
}

.field-error {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 0.8rem;
  min-height: 1.4em;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.address-block {
  white-space: pre-wrap;
  font-style: normal;
  color: var(--ink-soft);
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

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

/* Legal */
.legal {
  max-width: 48rem;
  padding-bottom: 4rem;
}

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

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

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

.legal th {
  background: var(--accent-soft);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #f4f1ea;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-text,
.footer-address,
.footer-contact {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

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

.footer-links a,
.footer-contact a,
.footer-legal a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #ddd6c8;
  padding-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  width: min(100%, 820px);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

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

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.3rem;
}

/* Journey timeline */
.journey {
  display: grid;
  gap: 1rem;
}

.journey-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}

.step-index {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

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

.split-copy img {
  border-radius: var(--radius);
  height: 340px;
  width: 100%;
  object-fit: cover;
}

.cta-band {
  margin: 1rem 0 3rem;
  padding: 2.4rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(120deg, rgba(31, 92, 75, 0.95), rgba(22, 68, 55, 0.92)),
    var(--accent);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  max-width: 16ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.cta-band .btn-secondary {
  background: #fff;
  border-color: #fff;
}

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

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 960px) {
  .grid-3,
  .pricing-grid,
  .stat-row,
  .footer-grid,
  .course-layout,
  .contact-grid,
  .page-hero-split,
  .split-copy {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }

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

  .site-nav {
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

  .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.6rem;
    justify-content: center;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-home-content {
    padding-top: 5.5rem;
  }

  .stat-row,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.2rem 0;
  }
}
