/* ==========================================================================
   mahalila — Version 3 "Atemraum"
   Structurally distinct: fullscreen overlay nav, type-led hero (no photo),
   broken editorial rhythm (full-bleed bands + narrow poem columns),
   horizontal-scroll testimonial gallery, minimal closing footer.
   ========================================================================== */

:root {
  --ink: #1C1A2B;
  --paper: #F7EEE3;
  --paper-deep: #EFE1D1;
  --ochre: #C2622C;
  --ochre-deep: #9C4A1E;
  --skin: #E2A283;
  --text: #221F2E;
  --text-soft: #5C5570;
  --line: rgba(28, 26, 43, 0.15);

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -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: 480;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
em { font-style: italic; }
p { margin: 0 0 1.2em; }

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

/* ---------- breath motif ---------- */
.breathline { color: var(--ochre); 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:.5; } 50% { stroke-dashoffset:16; opacity:1; } }

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; gap:12px; padding:16px 32px; font-weight:600; font-size:.92rem; cursor:pointer; border:1px solid transparent; transition:all .25s ease; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ochre-deep); transform: translateY(-2px); }
.btn-ochre { background: var(--ochre); color:#fff; }
.btn-ochre:hover { background: var(--ochre-deep); transform: translateY(-2px); }
.btn-line { background:transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line-light { background:transparent; border-color: rgba(247,238,227,.5); color: var(--paper); }
.btn-line-light:hover { background: var(--paper); color: var(--ink); }

/* =========================================================
   TOP BAR — no horizontal nav links; wordmark + menu trigger
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 40px; mix-blend-mode: normal;
}
.topbar .brand {
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink);
}
.menu-trigger {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.menu-trigger .bars { display: flex; flex-direction: column; gap: 4px; }
.menu-trigger .bars span { width: 22px; height: 1.5px; background: var(--ink); display:block; transition: transform .2s ease; }

/* =========================================================
   FULLSCREEN OVERLAY NAV
   ========================================================= */
.overlay-nav {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px 40px 50px;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.7,0,.2,1);
}
.overlay-nav.open { transform: translateY(0); }
.overlay-top { display:flex; justify-content: space-between; align-items: center; }
.overlay-top .brand { color: var(--paper); }
.overlay-close { background:none; border:none; color: var(--paper); font-size: .82rem; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; font-family: var(--font-body); font-weight:600; display:flex; align-items:center; gap:10px; }
.overlay-links { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 6px; }
.overlay-links li { border-bottom: 1px solid rgba(247,238,227,.12); }
.overlay-links a {
  display:block; padding: 18px 0;
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(2.2rem, 6vw, 4.2rem); color: var(--paper);
  transition: color .2s ease, padding-left .25s ease;
}
.overlay-links a:hover, .overlay-links a.active { color: var(--ochre); padding-left: 18px; }
.overlay-bottom { display:flex; justify-content: space-between; flex-wrap:wrap; gap: 20px; font-size:.88rem; color:#BDB6CC; }
.overlay-bottom a:hover { color: var(--paper); }
body.nav-open { overflow: hidden; }

/* =========================================================
   TYPE-LED HERO — no photo, asymmetric oversize headline
   ========================================================= */
.hero-type {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero-type .breathline { position:absolute; left:0; right:0; top:50%; width:140%; transform: translateY(-50%) translateX(-8%); opacity:.5; }
.hero-lines { position: relative; z-index: 2; }
.hero-lines .line { display:block; font-family: var(--font-display); font-weight: 460; line-height: .98; font-size: clamp(2.6rem, 8vw, 7.5rem); }
.hero-lines .line.l1 { text-align: left; color: var(--ink); }
.hero-lines .line.l2 { text-align: center; color: var(--ochre); font-style: italic; }
.hero-lines .line.l3 { text-align: right; color: var(--ink); }
.hero-foot { position: relative; z-index:2; display:flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; margin-top: 56px; }
.hero-foot p { max-width: 32ch; color: var(--text-soft); margin:0; }

/* simple text-only banner for inner pages (different from photo-hero pattern) */
.banner {
  padding: 170px 40px 70px;
}
.banner .eyebrow { color: var(--ochre); }
.banner h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 18ch; }

/* =========================================================
   BROKEN RHYTHM: full-bleed image bands + narrow poem columns
   ========================================================= */
.band {
  width: 100%;
  height: 64vh;
  background-size: cover;
  background-position: center;
}
.band.short { height: 42vh; }

.poem {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
}
.poem.left { margin: 0; text-align: left; padding-left: 12vw; }
.poem.left.right-align { margin-left: auto; text-align: right; padding-left: 40px; padding-right: 12vw; }
.poem h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .5em; }
.poem p { color: var(--text-soft); font-size: 1.05rem; }
.poem .pull { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--ink); line-height: 1.35; }

.wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.tight-section { padding: 90px 0; }

/* offer list — editorial rows instead of cards */
.offer-rows { border-top: 1px solid var(--line); }
.offer-row {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 30px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.offer-row:hover { padding-left: 14px; }
.offer-row .tag { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); }
.offer-row h3 { font-size: 1.7rem; }
.offer-row p { margin: 6px 0 0; color: var(--text-soft); max-width: 50ch; }
.offer-row .go { font-weight: 700; font-size: .85rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 700px) {
  .offer-row { grid-template-columns: 1fr; gap: 8px; }
}

/* horizontal scroll testimonial gallery */
.h-scroll {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.h-scroll::-webkit-scrollbar { height: 4px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--ochre); }
.h-card {
  flex: 0 0 86vw; max-width: 520px; scroll-snap-align: start;
  padding: 64px 48px; border-right: 1px solid var(--line);
  display:flex; flex-direction: column; justify-content: center;
}
.h-card p { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--ink); }
.h-card strong { display:block; margin-top: 18px; font-family: var(--font-body); font-style:normal; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; color: var(--ochre-deep); }

/* price rows, minimal */
.price-list .row { display:flex; justify-content:space-between; align-items:baseline; padding:18px 0; border-bottom:1px solid var(--line); }
.price-list .row:last-child { border-bottom:none; }
.price-list .amount { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ochre-deep); white-space:nowrap; }

.subnav { display:flex; gap:8px; flex-wrap:wrap; }
.subnav a { padding: 10px 22px; border:1px solid var(--ink); font-size:.8rem; font-weight:700; }
.subnav a:hover { background: var(--ink); color: var(--paper); }
.anchor-target { scroll-margin-top: 110px; }

.card { background: var(--paper-deep); padding: 40px 36px; }

/* form */
.form-field { margin-bottom: 22px; }
.form-field label { display:block; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--ink); margin-bottom:8px; }
.form-field input, .form-field textarea {
  width:100%; padding:15px 16px; border:1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size:1rem; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline:2px solid var(--ochre); outline-offset:1px; }
.form-note { font-size:.85rem; color: var(--text-soft); margin-top:16px; }
.form-status { font-size:.9rem; margin-top:16px; font-weight:700; }
.form-status.success { color: var(--ochre-deep); }
.form-status.error { color:#B23B3B; }

/* =========================================================
   CLOSING FOOTER — one huge line, then a thin legal bar
   ========================================================= */
.closing {
  background: var(--ink); color: var(--paper);
  padding: 130px 40px 90px;
  text-align: center;
}
.closing h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); font-style: italic; max-width: 16ch; margin: 0 auto 36px; }
.legal-bar {
  background: var(--ink); color: #8C84A3;
  border-top: 1px solid rgba(247,238,227,.12);
  padding: 26px 40px; font-size: .82rem;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.legal-bar a:hover { color: var(--paper); }

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

.legal-page .legal { max-width: 740px; }
.legal-page .legal h2 { margin-top: 1.6em; font-size: 1.4rem; }
.legal-page .legal h3 { margin-top: 1.2em; font-size: 1.05rem; color: var(--ochre-deep); font-weight: 700; }
.legal-page .legal p, .legal-page .legal li { color: var(--text-soft); }
.legal-page .legal a { color: var(--ochre-deep); font-weight: 700; }

@media (max-width: 700px) {
  .poem.left, .poem.left.right-align { padding-left: 40px; padding-right: 40px; text-align:left; margin:0; }
  .hero-lines .line.l2, .hero-lines .line.l3 { text-align: left; }
}

/* ---------- 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(28, 26, 43, 0.78);
  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(--paper); max-width: 560px; width: 100%;
  border-top: 4px solid var(--ochre);
  box-shadow: 0 24px 50px rgba(28,20,14,.22);
  position: relative; transform: translateY(16px); transition: transform .3s ease;
  max-height: 90vh; overflow-y: auto;
}
.workshop-modal-overlay.open .workshop-modal { transform: translateY(0); }
.workshop-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.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; }
.workshop-modal-price { font-weight: 700; color: var(--ochre-deep); font-size: .92rem; }
.workshop-modal-cta {
  display: inline-flex; margin-top: 14px; background: var(--ochre); color: #fff;
  padding: 13px 26px; border-radius: 2px; font-weight: 700; font-size: .9rem;
  transition: background .2s ease;
}
.workshop-modal-cta:hover { background: var(--ochre-deep); }

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

.skip-link { position:absolute; left:-999px; top:0; background: var(--ink); color: var(--paper); 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(28, 26, 43, 0.62);
  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(--paper);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 50px rgba(28,20,14,0.25);
  overflow: hidden;
  position: relative;
  transform: translateY(16px);
  transition: transform .3s ease;
  max-height: 86vh;
  overflow-y: auto;
}
.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: italic; }
.workshop-modal-price { font-weight: 700; color: var(--ochre-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(28,26,43,0.08); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.workshop-modal-close:hover { background: rgba(28,26,43,0.16); }
body.modal-open { overflow: hidden; }
