/* ============================================================
   LEGSTRETCH START — styles.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --cream:        #FAF8F4;
  --cream-dark:   #F0EDE7;
  --sage:         #5C8A61;
  --sage-light:   #EAF0EB;
  --sage-dark:    #3F6344;
  --terracotta:   #C4614A;
  --terracotta-light: #F9EDE9;
  --charcoal:     #2A2A2A;
  --text:         #3A3A3A;
  --text-muted:   #717171;
  --border:       #E2DDD8;
  --white:        #FFFFFF;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow:       0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.12);

  --font-sans:    'Montserrat', sans-serif;
  --font-serif:   'Lora', serif;

  --container:    1120px;
  --section-v:    80px;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

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

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text); line-height: 1.7; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(92,138,97,.35);
}
.btn-primary:hover {
  background: var(--sage-dark);
  box-shadow: 0 4px 20px rgba(92,138,97,.45);
}

.btn-ghost {
  background: transparent;
  color: var(--sage);
  border: 2px solid var(--sage);
}
.btn-ghost:hover { background: var(--sage-light); }

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.logo-text em { color: var(--sage); font-style: normal; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--sage); background: var(--sage-light); }
.nav-cta {
  background: var(--sage) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--sage-dark) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  transition: transform .25s, opacity .25s;
  border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: var(--section-v) 0;
}
.section-light { background: var(--cream-dark); }
.section-sage   { background: var(--sage-light); }
.section-trust  { background: var(--charcoal); }
.section-form   { background: var(--terracotta-light); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-sub {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-content h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.fact-icon {
  color: var(--sage);
  font-style: normal;
  font-weight: 700;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Cards ─────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; font-size: 1rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Program ───────────────────────────────────────────────── */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.program-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}
.program-image img { width: 100%; }

.program-list { display: flex; flex-direction: column; gap: 0; }

.program-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.program-item:last-child { border-bottom: none; }

.program-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage);
  font-family: var(--font-serif);
  opacity: 0.5;
  flex-shrink: 0;
  width: 36px;
  line-height: 1;
  margin-top: 2px;
}
.program-item h3 { margin-bottom: 6px; font-size: 1rem; }
.program-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Steps ─────────────────────────────────────────────────── */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.step {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1rem; }
.step p  { font-size: 0.9rem; color: var(--text-muted); }

.step-arrow {
  font-size: 1.5rem;
  color: var(--sage);
  opacity: 0.4;
  flex-shrink: 0;
}

.group-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 400px;
}
.group-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ── Results ───────────────────────────────────────────────── */
.results-grid { max-width: 900px; margin: 0 auto; }

.result-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.result-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}
.result-image img { width: 100%; height: 100%; object-fit: cover; }

.result-items { display: flex; flex-direction: column; gap: 24px; }

.result-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.result-dot {
  width: 10px;
  height: 10px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.result-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.result-item p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

.results-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 40px;
  font-style: italic;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.open { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color .15s, background .15s;
}
.faq-question:hover { background: var(--sage-light); }
.faq-item.open .faq-question { color: var(--sage); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s;
  margin-top: -4px;
}
.faq-item.open .faq-chevron { transform: rotate(-135deg); margin-top: 4px; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}
.faq-answer p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Trust ─────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.trust-item { text-align: center; padding: 20px 16px; }

.trust-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.trust-item h3 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1rem;
}
.trust-item p { font-size: 0.875rem; color: rgba(255,255,255,.6); }

/* ── Form ──────────────────────────────────────────────────── */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}

.form-text h2 { margin-bottom: 16px; }
.form-text p  { color: var(--text-muted); margin-bottom: 24px; }

.form-promises {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.form-promises li::before {
  content: '✓';
  color: var(--sage);
  font-weight: 700;
}

.lead-form { display: flex; flex-direction: column; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-field input[type="text"],
.form-field input[type="email"] {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-field input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(92,138,97,.15);
}
.form-field input.error {
  border-color: var(--terracotta);
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--sage);
}
.form-check label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.form-check label a { color: var(--sage); text-decoration: underline; }

.field-error {
  font-size: 0.8rem;
  color: var(--terracotta);
  min-height: 16px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #1E1E1E;
  color: rgba(255,255,255,.7);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo { color: rgba(255,255,255,.9) !important; }
.footer-brand p { font-size: 0.875rem; margin-top: 8px; color: rgba(255,255,255,.4); }

.footer-links,
.footer-legal { display: flex; flex-direction: column; gap: 8px; }

.footer-links h4,
.footer-legal h4 {
  color: rgba(255,255,255,.9);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
  font-weight: 600;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.85); }

.footer-legal p { font-size: 0.8rem; color: rgba(255,255,255,.4); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.3); }

/* ── Cookie Banner ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--charcoal);
  color: rgba(255,255,255,.85);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateX(-50%) translateY(30px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.cookie-text p { font-size: 0.85rem; margin: 0; }
.cookie-text a { color: var(--sage); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Legal Pages ───────────────────────────────────────────── */
.legal-page {
  min-height: 100vh;
  background: var(--cream);
}
.legal-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0;
}
.legal-hero h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); }
.legal-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.legal-hero .breadcrumb a { color: rgba(255,255,255,.5); }
.legal-hero .breadcrumb a:hover { color: rgba(255,255,255,.8); }
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}
.legal-content h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  color: var(--charcoal);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text);
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-content ul li {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
}
.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Success Page ──────────────────────────────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 28px;
}
.success-page h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.success-page p  { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.success-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap .15s;
}
.success-page .back-link:hover { gap: 10px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-v: 56px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }

  .program-grid { grid-template-columns: 1fr; }
  .program-image { position: static; max-width: 400px; }

  .steps-grid {
    flex-direction: column;
  }
  .step-arrow { transform: rotate(90deg); }

  .result-card { grid-template-columns: 1fr; }
  .result-image { max-width: 300px; }

  .form-wrap { grid-template-columns: 1fr; gap: 36px; padding: 32px 24px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(250,248,244,.98);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--cream-dark); }
  .site-nav a:last-child { border: none; margin-top: 8px; }
  .nav-cta { justify-content: center; margin: 0 !important; padding: 12px !important; }

  .burger { display: flex; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 16px;
  }
  .cookie-actions { justify-content: flex-end; }
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
