/* ==========================================================================
   mahalila — Version 4 "Erdung" (Grounding)
   Palette derived from the source material itself: clay/terracotta, moss,
   warm gold, raw cream — the colors already living in Sandra's own photos
   (sunflowers, fur throws, candlelight, butterflies on green).
   Lora (warm, slightly calligraphic serif) + Karla (humanist, grounded body).
   Real JS-driven parallax bands; hero rebuilt as an overlapping paper card.
   ========================================================================== */

:root {
  --clay: #B5572A;
  --clay-deep: #8B3F1C;
  --moss: #3E4A34;
  --moss-deep: #2A3324;
  --gold: #D9A441;
  --cream: #F6EFE2;
  --cream-deep: #ECE0C9;
  --ink: #2B2218;
  --ink-soft: #6B5D4A;
  --line: rgba(43, 34, 24, 0.14);
  --shadow: 0 26px 54px rgba(43, 34, 24, 0.18);

  --font-display: "Lora", serif;
  --font-body: "Karla", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  color: var(--moss-deep);
  line-height: 1.12;
  margin: 0 0 0.45em;
}
h1 { font-style: normal; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.15em; max-width: 62ch; }
p.lede { font-family: var(--font-display); font-style: italic; font-size: 1.28rem; color: var(--moss-deep); max-width: 40ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; font-weight: 700;
  color: var(--clay); margin-bottom: 1em;
}
.eyebrow::before { content:""; width: 22px; height: 1px; background: var(--clay); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- hand-drawn breath motif (used sparingly as signature) ---------- */
.breathline { color: var(--clay); overflow: visible; }
.breathline path { fill:none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 6 10; animation: breathe 5.5s ease-in-out infinite; }
@keyframes breathe { 0%,100%{ stroke-dashoffset:0; opacity:.55;} 50%{ stroke-dashoffset:16; opacity:1;} }
.breathline.small { width: 50px; margin-bottom: 24px; }

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; gap:12px; padding:15px 30px; border-radius:3px; font-weight:700; font-size:.92rem; border:1px solid transparent; cursor:pointer; transition: all .25s ease; }
.btn-clay { background: var(--clay); color:#fff; }
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-moss { background: var(--moss-deep); color: var(--cream); }
.btn-moss:hover { background: var(--moss); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-line { background: transparent; border-color: var(--moss-deep); color: var(--moss-deep); }
.btn-line:hover { background: var(--moss-deep); color: var(--cream); }
.btn-line-light { background: transparent; border-color: rgba(246,239,226,.7); color: var(--cream); }
.btn-line-light:hover { background: var(--cream); color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top:0; z-index:100; background: rgba(246,239,226,.97); border-bottom: 1px solid var(--line); }
.nav { display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width: var(--container); margin:0 auto; }
.brand { font-family: var(--font-display); font-style: italic; font-size: 1.55rem; color: var(--moss-deep); }
.brand span { color: var(--clay); font-style: normal; }
.nav-links { display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; font-size:.9rem; font-weight:700; }
.nav-links a { position:relative; padding:6px 0; color: var(--ink); transition: color .2s ease; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--clay); transition: width .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--moss-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-links a.cta { background: var(--moss-deep); color: var(--cream); padding:10px 20px; border-radius:3px; }
.nav-links a.cta::after { display:none; }
.nav-links a.cta:hover { background: var(--clay-deep); }
.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   HERO — image with overlapping "paper card" label, not text-on-dark-photo
   ========================================================= */
.hero {
  position: relative;
  padding-top: 28px;
}
.hero-frame {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  margin: 0 24px;
  border-radius: 4px;
}
.hero-frame .pimg {
  position: absolute;
  top: -12%; left: 0; right: 0;
  height: 124%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-frame::after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(43,34,24,0) 40%, rgba(43,34,24,.45) 100%);
}
.hero-card {
  position: relative;
  z-index: 3;
  max-width: 620px;
  margin: -110px 0 0 56px;
  background: var(--cream);
  padding: 44px 44px 40px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--clay);
}
.hero-card h1 { color: var(--moss-deep); margin-bottom: .3em; }
.hero-card .lede { margin-bottom: 26px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
@media (max-width: 760px) {
  .hero-frame { margin: 0; border-radius: 0; height: 60vh; }
  .hero-card { margin: -70px 16px 0; padding: 30px 26px; max-width: none; }
}

/* simpler banner hero for inner pages: smaller frame, card overlaps less aggressively */
.page-hero .hero-frame { height: 48vh; min-height: 360px; }
.page-hero .hero-card { margin-top: -86px; }

/* =========================================================
   TRUE PARALLAX BAND — image layer moves slower than scroll
   ========================================================= */
.pband {
  position: relative;
  height: 56vh;
  min-height: 360px;
  overflow: hidden;
  margin: 0;
}
.pband .pimg {
  position: absolute;
  top: -18%; left: 0; right: 0;
  height: 136%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.pband .pband-overlay {
  position: absolute; inset:0;
  background: linear-gradient(180deg, rgba(43,34,24,.05) 0%, rgba(43,34,24,.5) 100%);
  display:flex; align-items:flex-end;
}
.pband .pband-text {
  position: relative; z-index: 2;
  padding: 0 48px 48px;
  color: var(--cream);
  max-width: 560px;
}
.pband .pband-text .eyebrow { color: var(--gold); }
.pband .pband-text .eyebrow::before { background: var(--gold); }
.pband .pband-text h2 { color: #fff; }
.pband.short { height: 38vh; min-height: 280px; }
@media (max-width: 700px) {
  .pband .pimg { background-attachment: scroll; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-moss { background: var(--moss-deep); color: var(--cream); }
.section-moss h2, .section-moss h3 { color: var(--cream); }
.section-moss p { color: #CFC9B8; }
.section-deep-cream { background: var(--cream-deep); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align:center; }
.section-head.left { text-align:left; margin: 0 0 50px; }

/* ---------- grids ---------- */
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items:center; }
@media (max-width: 880px) { .grid-3 { grid-template-columns:1fr; } .grid-2 { grid-template-columns:1fr; gap:32px; } }

.card { background: var(--cream); padding: 38px 32px; box-shadow: var(--shadow); border-top: 3px solid var(--clay); }
.card h3 { margin-bottom:.4em; font-style: normal; }
.card a.more { color: var(--clay-deep); font-weight:700; font-size:.9rem; }

.img-frame { overflow:hidden; border-radius: 3px; }
.img-frame img { transition: transform .6s ease; }
.img-frame:hover img { transform: scale(1.04); }

.quote-block { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.9rem); color: var(--moss-deep); text-align:center; max-width: 760px; margin:0 auto; line-height:1.45; }
.quote-block cite { display:block; font-style:normal; font-family: var(--font-body); font-size:.84rem; letter-spacing:.08em; text-transform:uppercase; color: var(--clay); margin-top:18px; }

.testimonial { background: var(--cream); border-radius: 3px; padding: 28px; border:1px solid var(--line); }
.testimonial p { font-size: .96rem; color: var(--ink-soft); }
.testimonial strong { display:block; margin-top:10px; color: var(--moss-deep); font-size:.86rem; font-family: var(--font-body); }

.price-row { display:flex; justify-content:space-between; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); }
.price-row:last-child { border-bottom:none; }
.price-row .amount { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--clay-deep); white-space:nowrap; }

.subnav { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom: 56px; }
.subnav a { padding:9px 20px; border:1px solid var(--line); border-radius:999px; font-size:.85rem; font-weight:700; color: var(--ink-soft); transition: all .2s ease; }
.subnav a:hover { border-color: var(--clay); color: var(--clay); }
.anchor-target { scroll-margin-top: 100px; }

/* ---------- footer ---------- */
.site-footer { background: var(--moss-deep); color:#CFC9B8; padding: 70px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:40px; margin-bottom:50px; }
.footer-grid h4 { color:#fff; font-family: var(--font-body); font-size:1rem; letter-spacing:.04em; text-transform:uppercase; margin-bottom:16px; }
.footer-grid p, .footer-grid a { color:#CFC9B8; font-size:.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer-bottom { border-top:1px solid rgba(246,239,226,.12); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; color:#9C9580; }
.footer-bottom a:hover { color:#fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns:1fr; } }

/* ---------- form ---------- */
.form-field { margin-bottom:20px; }
.form-field label { display:block; font-size:.82rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color: var(--moss-deep); margin-bottom:8px; }
.form-field input, .form-field textarea { width:100%; padding:14px 16px; border:1px solid var(--line); border-radius:3px; background:#fff; font-family: var(--font-body); font-size:1rem; color: var(--ink); }
.form-field input:focus, .form-field textarea:focus { outline:2px solid var(--clay); outline-offset:1px; }
.form-note { font-size:.85rem; color: var(--ink-soft); margin-top:14px; }
.form-status { font-size:.9rem; margin-top:14px; font-weight:700; }
.form-status.success { color: var(--moss-deep); }
.form-status.error { color: var(--clay-deep); }

/* ---------- mobile nav ---------- */
@media (max-width: 920px) {
  .nav-links { position:fixed; inset:72px 0 0 0; background: var(--cream); flex-direction:column; align-items:flex-start; padding:30px 32px; gap:22px; transform: translateX(100%); transition: transform .3s ease; overflow-y:auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display:block; background:none; border:none; cursor:pointer; width:34px; height:26px; position:relative; }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after { content:""; position:absolute; left:0; right:0; height:2px; background: var(--moss-deep); transition: transform .25s ease, opacity .25s ease; }
  .nav-toggle::before { top:4px; } .nav-toggle span { top:12px; } .nav-toggle::after { top:20px; }
  .nav-toggle.open::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open::after { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle.open span { opacity:0; }
}

.reveal { opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity:1; transform: translateY(0); }

.legal { max-width: 760px; }
.legal h2 { margin-top: 1.6em; font-size: 1.5rem; font-style: normal; }
.legal h3 { margin-top: 1.2em; font-size: 1.1rem; color: var(--clay-deep); font-style: normal; font-family: var(--font-body); font-weight: 700; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--clay-deep); font-weight: 700; }

/* ---------- workshop modal (controlled by js/workshop-config.js) ---------- */
body.modal-open { overflow: hidden; }
.workshop-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(43, 34, 24, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .3s ease;
}
.workshop-modal-overlay.open { opacity: 1; }
.workshop-modal {
  background: var(--cream); max-width: 560px; width: 100%;
  border-top: 4px solid var(--clay);
  box-shadow: var(--shadow);
  position: relative; transform: translateY(16px); transition: transform .3s ease;
  max-height: 90vh; overflow-y: auto; border-radius: 4px;
}
.workshop-modal-overlay.open .workshop-modal { transform: translateY(0); }
.workshop-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--moss-deep);
}
.workshop-modal-img { height: 220px; background-size: cover; background-position: center; }
.workshop-modal-body { padding: 32px 32px 36px; }
.workshop-modal-body h3 { margin-bottom: .3em; font-style: normal; }
.workshop-modal-price { font-weight: 700; color: var(--clay-deep); font-size: .92rem; }
.workshop-modal-cta {
  display: inline-flex; margin-top: 14px; background: var(--clay); color: #fff;
  padding: 13px 26px; border-radius: 3px; font-weight: 700; font-size: .9rem;
  transition: background .2s ease;
}
.workshop-modal-cta:hover { background: var(--clay-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathline path { animation: none; }
  .pimg { transform: none !important; }
  * { transition: none !important; animation: none !important; }
}

.skip-link { position:absolute; left:-999px; top:0; background: var(--moss-deep); color: var(--cream); padding:10px 18px; z-index:1000; }
.skip-link:focus { left:10px; top:10px; }

/* ---------- workshop modal (dynamic, only shown when a workshop is active) ---------- */
.workshop-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(43, 34, 24, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s ease;
}
.workshop-modal-overlay.open { opacity: 1; }
.workshop-modal {
  background: var(--cream);
  max-width: 480px;
  width: 100%;
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transform: translateY(16px);
  transition: transform .3s ease;
  max-height: 86vh;
  overflow-y: auto;
  border-top: 4px solid var(--clay);
}
.workshop-modal-overlay.open .workshop-modal { transform: translateY(0); }
.workshop-modal-img { height: 200px; background-size: cover; background-position: center; }
.workshop-modal-body { padding: 30px 32px 32px; }
.workshop-modal-body h3 { margin: 0 0 .4em; font-style: normal; }
.workshop-modal-price { font-weight: 700; color: var(--clay-deep); font-size: .92rem; margin-bottom: 20px !important; }
.workshop-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(43,34,24,0.08); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--moss-deep);
}
.workshop-modal-close:hover { background: rgba(43,34,24,0.16); }
body.modal-open { overflow: hidden; }
