/* ==========================================================================
   mahalila — Version 2 "Atemlinie"
   Deep indigo-ink, burnt ochre, warm skin-pink on pink-ivory paper.
   Fraunces (display) + Work Sans (body). Breath-line as signature motif.
   ========================================================================== */

:root {
  --ink: #1C1A2B;
  --ink-soft: #2C2840;
  --paper: #F7EEE3;
  --paper-deep: #EFE1D1;
  --ochre: #C2622C;
  --ochre-deep: #9C4A1E;
  --skin: #E2A283;
  --skin-soft: #F0CBB6;
  --text: #221F2E;
  --text-soft: #5C5570;
  --line: rgba(28, 26, 43, 0.15);
  --shadow: 0 24px 50px rgba(28, 20, 14, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

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, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 480; }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

em, .italic { font-style: italic; font-weight: 460; }

p { margin: 0 0 1.15em; color: var(--text); max-width: 60ch; }
p.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: 1.45rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

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

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

/* ---------- breath-line signature ---------- */
.breathline {
  width: 100%;
  height: auto;
  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;
  transform-origin: center;
}
@keyframes breathe {
  0%, 100% { stroke-dashoffset: 0; opacity: .55; transform: scaleY(1); }
  50% { stroke-dashoffset: 16; opacity: 1; transform: scaleY(1.18); }
}
.breathline.small { max-width: 120px; margin: 0 0 28px; }
.breathline.hero-line {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  max-width: 100%;
  opacity: .8;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ochre-deep); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ochre { background: var(--ochre); color: #fff; }
.btn-ochre:hover { background: var(--ochre-deep); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-ghost-light { background: transparent; border-color: rgba(247,238,227,.6); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 238, 227, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.brand span { color: var(--ochre); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--ochre);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 22px;
  border-radius: 2px;
}
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { background: var(--ochre-deep); }

.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-bottom: 110px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,43,.30) 0%, rgba(28,26,43,.55) 55%, rgba(28,26,43,.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
  width: 100%;
}
.hero .eyebrow { color: var(--skin); }
.hero .eyebrow::before { background: var(--skin); }
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero p.lede { color: var(--skin-soft); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.page-hero { min-height: 56vh; padding-bottom: 70px; align-items: center; }
.page-hero h1 { max-width: 100%; }

@media (max-width: 760px) {
  .hero { min-height: 80vh; padding-bottom: 70px; }
}

/* ---------- sections ---------- */
section { padding: 110px 0; }
.section-deep { background: var(--ink); color: var(--paper); }
.section-deep h2, .section-deep h3 { color: var(--paper); }
.section-deep p { color: #C9C2D6; }
.section-skin { background: var(--skin-soft); }
.section-paper-deep { background: var(--paper-deep); }

.section-head { max-width: 640px; margin: 0 auto 64px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- asymmetric grids ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse > *:first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 0; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }

.offer-tile {
  background: var(--paper);
  padding: 48px 38px;
  border-right: 1px solid var(--line);
  transition: background .3s ease;
}
.grid-3 .offer-tile:last-child { border-right: none; }
.offer-tile:hover { background: var(--paper-deep); }
.offer-tile .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ochre);
  display: block;
  margin-bottom: 18px;
}
.offer-tile a.more { color: var(--ochre-deep); font-weight: 700; font-size: .88rem; }

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

/* pull-quote */
.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--ink);
  line-height: 1.3;
  max-width: 18ch;
}
.section-deep .pull { color: var(--paper); }
.pull cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-top: 24px;
}

/* testimonial strip */
.testi-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.testi-cell { background: var(--paper); padding: 36px 30px; }
.testi-cell p { font-size: .95rem; color: var(--text-soft); }
.testi-cell strong { display:block; margin-top: 14px; font-size:.82rem; color: var(--ochre-deep); font-family: var(--font-body);}
@media (max-width: 880px) { .testi-strip { grid-template-columns: 1fr; } }

/* price list, minimal */
.price-list .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 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.3rem; color: var(--ochre-deep); white-space: nowrap; }

/* subnav anchor pills */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 60px; }
.subnav a {
  padding: 10px 22px;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  transition: all .2s ease;
}
.subnav a:hover { background: var(--ink); color: var(--paper); }
.anchor-target { scroll-margin-top: 96px; }

/* card */
.card { background: var(--paper); padding: 40px 34px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }

/* 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); border-radius: 2px;
}
.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; }

/* footer */
.site-footer { background: var(--ink); color: #BDB6CC; padding: 90px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 60px; }
.footer-grid h4 { color: var(--paper); font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid p, .footer-grid a { color: #BDB6CC; font-size: .92rem; }
.footer-grid a:hover { color: var(--skin); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(247,238,227,.12); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: #8C84A3; }
.footer-bottom a:hover { color: var(--paper); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* mobile nav */
@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: 76px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 34px 36px; gap: 24px;
    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(--ink);
    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; }
}

/* ---------- 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: var(--shadow-soft, 0 24px 50px rgba(28,20,14,.2));
  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: var(--shadow);
  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; }
.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; }
