/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #FAF7F2;
  --cream-alt:   #F2EAE0;
  --beige:       #E8DDD0;
  --brown-dark:  #2C1A0E;
  --brown-mid:   #6B4226;
  --brown-light: #8B6B47;
  --terra:       #C4622D;
  --terra-dark:  #A84F22;
  --terra-light: #E8856A;
  --sage:        #7A8C6E;
  --white:       #FFFFFF;
  --text:        #2C1A0E;
  --text-muted:  #6B5040;
  --border:      #D9CABА;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;

  --container:   1160px;
  --section-v:   80px;
  --transition:  0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--terra); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terra-dark); }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; color: var(--brown-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

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

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,98,45,0.28);
}
.btn-outline {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-mid);
}
.btn-outline:hover {
  background: var(--brown-dark);
  color: var(--white);
}
.btn-large { padding: 18px 44px; font-size: 1.05rem; }
.btn-small { padding: 8px 20px; font-size: 0.875rem; }

/* ── SECTION LAYOUT ── */
.section { padding: var(--section-v) 0; }
.section-alt { background: var(--cream-alt); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--brown-dark);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 44px;
  max-width: 600px;
}
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.text-left { text-align: left; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--terra); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.main-nav a:hover { color: var(--brown-dark); }
.main-nav .nav-cta {
  background: var(--terra);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
}
.main-nav .nav-cta:hover {
  background: var(--terra-dark);
  color: var(--white);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-open .main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--beige);
  padding: 20px 24px 28px;
  z-index: 99;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.nav-open .main-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige);
  width: 100%;
  font-size: 1rem;
}
.nav-open .main-nav a:last-child { border-bottom: none; }
.nav-open .main-nav .nav-cta {
  background: none;
  color: var(--terra);
  padding: 12px 0;
  border-radius: 0;
}

/* ── HERO ── */
.hero {
  padding: 70px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 22px;
  line-height: 1.15;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--brown-light);
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44,26,14,0.12);
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image:hover img { transform: scale(1.03); }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(44,26,14,0.1);
  transform: translateY(-3px);
}
.card-icon {
  color: var(--terra);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── LEARN GRID ── */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.learn-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44,26,14,0.11);
}
.learn-image img { width: 100%; object-fit: cover; }
.learn-list { display: flex; flex-direction: column; gap: 32px; }
.learn-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.learn-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
  min-width: 36px;
  opacity: 0.7;
}
.learn-item h3 { margin-bottom: 6px; }
.learn-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ── GALLERY ── */
.gallery { margin-bottom: 16px; }
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44,26,14,0.12);
}
.gallery-main img { width: 100%; object-fit: cover; }
.gallery-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ── STEPS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--beige);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--terra);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--text-muted); font-size: 0.95rem; }

/* ── MATERIALS ── */
.materials-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.materials-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44,26,14,0.11);
}
.materials-image img { width: 100%; object-fit: cover; }
.materials-text .section-title { margin-bottom: 18px; }
.materials-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.materials-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.materials-list li::before {
  content: '—';
  color: var(--terra);
  font-weight: 700;
}
.materials-note {
  font-size: 0.875rem;
  color: var(--brown-light);
  font-style: italic;
  margin-top: 12px;
}

/* ── AUTHOR ── */
.author-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.author-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}
.author-desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 14px;
}
.author-desc:last-of-type { font-size: 0.83rem; color: var(--brown-light); }
.author-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 260px;
  text-align: center;
}
.author-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--beige);
  box-shadow: 0 12px 40px rgba(44,26,14,0.15);
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.author-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brown-mid);
  line-height: 1.5;
}

/* ── LEAD FORM ── */
.section-form { background: var(--brown-dark); }
.section-form .section-title { color: var(--white); }
.section-form .section-subtitle { color: rgba(255,255,255,0.65); }
.lead-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.form-group input {
  background: rgba(255,255,255,0.09);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 13px 16px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus {
  border-color: var(--terra-light);
  background: rgba(255,255,255,0.13);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--terra);
  cursor: pointer;
}
.form-check label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}
.form-check label a { color: var(--terra-light); }
.form-check label a:hover { color: var(--white); }
.lead-form .btn-primary { align-self: flex-start; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: 0 4px 16px rgba(44,26,14,0.08); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--brown-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--terra);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  min-width: 20px;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA SECTION ── */
.section-cta { background: linear-gradient(135deg, var(--beige), var(--cream-alt)); }
.section-cta h2 { margin-bottom: 14px; }
.section-cta p { color: var(--text-muted); margin-bottom: 28px; }

/* ── FOOTER ── */
.site-footer { background: #1E1009; color: rgba(255,255,255,0.65); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 24px;
}
.footer-brand .logo { color: var(--white); display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-legal p { font-size: 0.83rem; line-height: 1.9; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.footer-bottom p { font-size: 0.8rem; text-align: center; color: rgba(255,255,255,0.3); }

/* ── SUCCESS PAGE ── */
.success-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--sage), #5A7A4E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 28px;
  box-shadow: 0 8px 30px rgba(90,122,78,0.3);
}
.success-page h1 { margin-bottom: 20px; }
.success-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 14px;
}
.success-subtext {
  font-size: 0.9rem;
  color: var(--brown-light);
  margin-bottom: 36px;
}

/* ── LEGAL PAGES ── */
.legal-page { padding: 60px 0 80px; }
.legal-container { max-width: 760px; }
.legal-container h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.legal-date { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 40px; }
.legal-container h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 10px;
}
.legal-container p, .legal-container li {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.legal-container ul {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-back { margin-top: 40px !important; }
.legal-back a { font-weight: 600; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--brown-dark);
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  font-size: 0.875rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.cookie-banner.hidden { transform: translateY(100%); pointer-events: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--terra-light); }
.cookie-banner .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.cookie-banner .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text > * { animation: fadeInUp 0.6s ease both; }
.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.25s; }
.hero-text > *:nth-child(4) { animation-delay: 0.35s; }
.hero-image { animation: fadeInUp 0.7s ease 0.2s both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --section-v: 60px; }
  .main-nav { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-text .btn { display: block; width: fit-content; margin: 0 auto; }
  .learn-grid { grid-template-columns: 1fr; gap: 40px; }
  .materials-inner { grid-template-columns: 1fr; gap: 40px; }
  .materials-image { max-width: 500px; }
  .author-inner { grid-template-columns: 1fr; gap: 36px; }
  .author-badge { margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
}

@media (max-width: 600px) {
  :root { --section-v: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form .btn-primary { width: 100%; }
  .step { gap: 16px; }
  .learn-item { gap: 14px; }
  .cookie-banner { flex-direction: column; gap: 12px; text-align: center; }
}
