@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ============ Design tokens ============ */
:root {
  --cream: #f5efe6;
  --cream-deep: #ede2d0;
  --paper: #faf6ef;
  --terracotta: #c4704a;
  --terracotta-dark: #a85a38;
  --clay-brown: #3d2314;
  --clay-brown-soft: #5a3826;
  --sage: #8a9a7e;
  --sage-deep: #6c7d5f;
  --ink: #2c1e14;
  --line: rgba(61, 35, 20, 0.14);

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 18px;

  --shadow-soft: 0 20px 45px -25px rgba(61, 35, 20, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(61, 35, 20, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--clay-brown);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--terracotta);
  color: var(--paper);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease, background-color 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clay-brown);
  border-color: var(--clay-brown);
}

.btn-outline:hover {
  background: var(--clay-brown);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(245, 239, 230, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -18px rgba(61, 35, 20, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--clay-brown);
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--clay-brown-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-actions .btn {
  padding: 11px 24px;
  font-size: 13.5px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--clay-brown);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 84vw);
  background: var(--paper);
  z-index: 600;
  box-shadow: -20px 0 50px -30px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
  padding: 90px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 18px;
  font-family: var(--font-display);
  color: var(--clay-brown);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 30, 20, 0.35);
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f2e8 0%, var(--cream) 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--sage-deep);
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  max-width: 480px;
  color: var(--clay-brown-soft);
}

.hero-cta-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-size: 13.5px;
  color: var(--clay-brown-soft);
  max-width: 180px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.hero-media-tag {
  position: absolute;
  bottom: -26px;
  left: -26px;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  max-width: 220px;
}

.hero-media-tag .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--terracotta);
  display: block;
}

.hero-media-tag .lbl {
  font-size: 13px;
  color: var(--clay-brown-soft);
  margin-top: 4px;
  display: block;
}

/* organic divider */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ Section basics ============ */
section {
  position: relative;
  padding: 108px 0;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--clay-brown-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ What you will make ============ */
.result-section {
  background: var(--clay-brown);
  color: var(--cream);
}

.result-section .section-label { color: #e2a17b; }
.result-section h2 { color: var(--cream); }
.result-section .section-head p { color: rgba(245,239,230,0.72); }

.result-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.result-media img {
  width: 100%;
  border-radius: 24px;
  height: 480px;
  object-fit: cover;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
}

.outcome-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.outcome-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(245,239,230,0.14);
}

.outcome-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.outcome-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: #e2a17b;
  min-width: 34px;
}

.outcome-item p {
  color: rgba(245,239,230,0.85);
  font-size: 16.5px;
}

/* ============ Who is this for ============ */
.for-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.for-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 32px;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.for-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.for-card .mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
}

.for-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.for-card p {
  color: var(--clay-brown-soft);
  font-size: 15px;
}

/* ============ Format ============ */
.format-section {
  background: var(--cream-deep);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.format-card {
  background: var(--paper);
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.format-card .icon {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.format-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.format-card p {
  font-size: 14.5px;
  color: var(--clay-brown-soft);
}

/* ============ Curriculum / learn steps ============ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.step-row:first-child { padding-top: 0; }
.step-row:last-child { border-bottom: none; }

.step-index {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--terracotta);
  opacity: 0.85;
}

.step-body h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step-body p {
  color: var(--clay-brown-soft);
  font-size: 15.5px;
  max-width: 620px;
}

/* ============ Materials ============ */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.materials-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.materials-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--clay-brown-soft);
}

.materials-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 8px;
  flex-shrink: 0;
}

.materials-list strong {
  color: var(--clay-brown);
  font-weight: 600;
}

.materials-note {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--cream-deep);
  border-radius: 14px;
  font-size: 14.5px;
  color: var(--clay-brown-soft);
  border-left: 3px solid var(--terracotta);
}

/* ============ Author ============ */
.author-section {
  background: var(--clay-brown);
  color: var(--cream);
}

.author-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.author-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 24px;
}

.author-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2a17b;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.author-content h2 {
  color: var(--cream);
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 20px;
}

.author-content p {
  color: rgba(245,239,230,0.8);
  font-size: 16px;
  margin-bottom: 18px;
}

.author-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: #e2a17b;
  margin-top: 24px;
}

/* ============ Process strip ============ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.process-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 420px;
}

.process-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.process-card:hover img {
  transform: scale(1.05);
}

.process-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(44,30,20,0.75), transparent);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--clay-brown);
}

.faq-question .plus {
  font-size: 22px;
  color: var(--terracotta);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 28px 26px;
  font-size: 15.5px;
  color: var(--clay-brown-soft);
}

/* ============ Lead form ============ */
.form-section {
  background: var(--cream-deep);
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.form-copy .section-label { margin-bottom: 16px; }

.form-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 18px;
}

.form-copy p {
  color: var(--clay-brown-soft);
  font-size: 16px;
  margin-bottom: 16px;
}

.form-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: var(--clay-brown-soft);
}

.form-points li::before {
  content: '✓';
  color: var(--sage-deep);
  font-weight: 700;
}

.lead-form {
  background: var(--paper);
  border-radius: 26px;
  padding: 44px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--clay-brown-soft);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--paper);
}

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

.field-error {
  color: var(--terracotta-dark);
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--terracotta-dark);
}

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

.form-consent {
  font-size: 12.5px;
  color: var(--clay-brown-soft);
  margin-top: 16px;
  line-height: 1.6;
}

.form-consent a {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--clay-brown);
  color: rgba(245,239,230,0.75);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245,239,230,0.12);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-logo span { color: #e2a17b; }

.footer-top p {
  font-size: 14px;
  max-width: 320px;
  color: rgba(245,239,230,0.6);
}

.footer-col h4 {
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a,
.footer-col span {
  font-size: 14.5px;
  color: rgba(245,239,230,0.68);
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: #e2a17b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(245,239,230,0.5);
}

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--clay-brown);
  color: var(--cream);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.5);
  z-index: 800;
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 13.5px;
  color: rgba(245,239,230,0.85);
  flex: 1;
  min-width: 220px;
}

.cookie-banner a {
  text-decoration: underline;
  color: #e2a17b;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  padding: 11px 22px;
  font-size: 13px;
}

.btn-cookie-accept {
  background: var(--terracotta);
  color: var(--paper);
}

.btn-cookie-accept:hover {
  background: var(--terracotta-dark);
}

/* ============ Simple / legal pages ============ */
.page-hero {
  padding: 150px 0 60px;
  background: var(--cream-deep);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 46px);
}

.page-hero p {
  margin-top: 14px;
  color: var(--clay-brown-soft);
  font-size: 15px;
}

.legal-content {
  padding: 70px 0 110px;
}

.legal-content .container {
  max-width: 820px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 42px;
  margin-bottom: 14px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--clay-brown-soft);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--clay-brown);
}

/* ============ Success page ============ */
.success-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  background: linear-gradient(180deg, #f8f2e8 0%, var(--cream) 60%);
}

.success-card {
  max-width: 560px;
  text-align: center;
  background: var(--paper);
  border-radius: 28px;
  padding: 64px 48px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.success-mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 28px;
  font-family: var(--font-display);
}

.success-card h1 {
  font-size: 32px;
  margin-bottom: 18px;
}

.success-card p {
  color: var(--clay-brown-soft);
  font-size: 16px;
  margin-bottom: 10px;
}

.success-card .btn {
  margin-top: 28px;
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid,
  .result-grid,
  .materials-grid,
  .author-grid,
  .form-wrap {
    grid-template-columns: 1fr;
  }

  .hero-media { order: -1; }
  .hero-media img { height: 360px; }
  .hero-media-tag { left: 16px; bottom: -20px; }

  .result-media img,
  .materials-media img,
  .author-media img { height: 320px; }

  .for-grid { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { height: 320px; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .header-actions .btn-outline { display: none; }
  .hamburger { display: flex; }

  section { padding: 76px 0; }
  .hero { padding: 130px 0 80px; }

  .step-row { grid-template-columns: 56px 1fr; gap: 18px; }
  .step-index { font-size: 30px; }

  .lead-form { padding: 30px 24px; }

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

@media (max-width: 480px) {
  .format-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
}
