/* Live Your Dream, Barcelona meditation community
   Brand palette + type per master brief (black / cream / blush editorial) */

@import url('../fonts/fonts.css');

:root {
  --black: #111010;
  --white: #FAFAF8;
  --cream: #F5EFE6;
  --cream-deep: #EDE4D8;
  --blush: #F2DACE;
  --blush-deep: #E8C4B0;
  --blush-dark: #C9A090;
  --text-dark: #1C1A19;
  --text-mid: #4A3F38;
  --text-light: #8A7A72;
  --label-on-light: var(--text-mid); /* brief palette only; text-mid passes AA on cream */

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;

  --section-pad: clamp(90px, 14vh, 160px);
  --gutter: clamp(24px, 5vw, 64px);
  --measure: 34rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection { background: var(--blush-deep); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--blush-dark);
  outline-offset: 3px;
}

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 300; }

h1 em, h2 em, h3 em {
  font-style: italic;
  line-height: 1.12; /* descender clearance for italic y g j p q */
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--label-on-light);
  margin-bottom: 1.4rem;
}

.on-dark .eyebrow { color: var(--blush-deep); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--text-mid); }

.btn-blush {
  background: var(--blush);
  color: var(--black);
}
.btn-blush:hover { background: var(--blush-deep); }

.hero .btn-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.hero .btn-dark:hover { background: rgba(250, 250, 248, 0.1); }

.link-quiet {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--blush-dark);
  transition: border-color 0.3s ease;
}
.link-quiet:hover { border-color: currentColor; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--gutter);
  color: var(--white);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-solid {
  background: rgba(17, 16, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links .btn { padding: 0.7rem 1.6rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.6rem;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  margin: 8px 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav-toggle[aria-expanded="true"] .bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay a {
  font-family: var(--serif);
  font-size: 2rem;
  text-decoration: none;
}
.menu-overlay .btn { font-family: var(--sans); font-size: 0.8125rem; margin-top: 1rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 72px var(--gutter) 0;
}

.hero-halo {
  position: absolute;
  top: 50%; left: 50%;
  width: min(72vmin, 640px);
  height: min(72vmin, 640px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 196, 176, 0.22) 0%,
    rgba(232, 196, 176, 0.07) 45%,
    transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 60rem; }

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.hero h1 em { color: var(--blush); }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--cream);
  margin-top: 1.6rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero .btn-blush:hover { background: var(--blush-deep); }
.hero .link-quiet { color: var(--cream); border-color: var(--blush-dark); }

/* split-line reveal scaffolding (JS adds motion; static without it) */
.split-line { display: block; }

/* ---------- sections ---------- */

section { position: relative; }

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}

/* about: narrow manifesto */
.about .section-inner {
  max-width: 46rem;
  text-align: center;
}
.about h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 2.2rem;
}
.about p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-mid);
  max-width: var(--measure);
  margin: 0 auto 1.4rem;
}
.about-sundays-cta { display: inline-block; margin-top: 2.2rem; }
.about .kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-top: 2.4rem;
}

/* sundays: split layout */
.sundays { background: var(--cream-deep); }
.sundays .section-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.sundays h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.6rem;
}
.sundays-copy p { color: var(--text-mid); max-width: 30rem; margin-bottom: 1.3rem; }

.sundays-meta {
  margin-top: 2.4rem;
  border-top: 1px solid var(--blush-dark);
  padding-top: 1.6rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
}
.sundays-meta span { display: block; color: var(--text-mid); font-size: 1.05rem; font-family: var(--sans); margin-top: 0.3rem; }
.sundays-meta a { color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--blush-dark); font-weight: 500; }
.sundays-meta a:hover { border-color: var(--text-dark); }

.sundays-join-btn { display: inline-block; margin-top: 2rem; }

.sundays-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--blush-dark);
  border: 1px solid var(--blush-dark);
}
.sunday-card {
  padding: 2.2rem 1.9rem 2.4rem;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sunday-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}
.sunday-card p { font-size: 0.95rem; color: var(--text-mid); }
.sunday-card.c1 { background: var(--cream); }
.sunday-card.c2 { background: var(--blush); }
.sunday-card.c3 { background: var(--black); color: var(--white); }
.sunday-card.c3 p { color: var(--cream); opacity: 0.85; }
.sunday-card.c4 { background: var(--cream-deep); }

/* parallax banner */
.banner {
  position: relative;
  height: clamp(320px, 60vh, 560px);
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream-deep), var(--blush));
}
.banner img {
  position: absolute;
  top: -12%; left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
}
.banner-caption {
  background: var(--cream);
  text-align: center;
  padding: 1.2rem var(--gutter) 0;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.photo-credit {
  background: var(--cream);
  text-align: center;
  padding: 0.3rem var(--gutter) 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.photo-credit a {
  text-transform: none;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid var(--blush-dark);
}
.photo-credit a:hover { color: var(--text-mid); }

/* breathe interlude */
.breathe {
  position: relative;
  min-height: 100dvh;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad) 0;
}
.breathe-circle {
  position: absolute;
  width: 12vmin;
  height: 12vmin;
  border-radius: 50%;
  background: var(--blush);
}
.breathe-line {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.3;
  color: var(--text-dark);
  text-align: center;
  padding: 0 var(--gutter);
}
@media (prefers-reduced-motion: reduce) {
  .breathe { height: auto; padding: var(--section-pad) 0; }
  .breathe-circle { position: relative; margin-right: 1.5rem; flex: none; }
}

/* event: black showpiece */
.event {
  background: var(--black);
  color: var(--white);
}
.event .section-inner {
  max-width: 62rem;
  padding-top: clamp(70px, 9vh, 110px);
  padding-bottom: clamp(70px, 9vh, 110px);
}
.event h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.1;
  padding-bottom: 0.3rem; /* italic descender reserve (Ayurveda) */
}
.event h2 em { color: var(--blush); }
.event .standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--blush-deep);
  margin-top: 0.8rem;
}
.event-intro {
  color: var(--cream);
  opacity: 0.9;
  max-width: var(--measure);
  margin-top: 2.2rem;
}

.event-figure {
  margin: 2.4rem 0 0;
  overflow: hidden;
}
.event-figure img {
  width: 100%;
  height: clamp(240px, 36vh, 400px);
  object-fit: cover;
  transform-origin: center;
}
.event-figure figcaption {
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.6;
  padding-top: 0.9rem;
}

.arc { margin-top: 2.8rem; }
.arc-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(250, 250, 248, 0.16);
}
.arc-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--blush-dark);
  line-height: 1;
}
.arc-row h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.arc-row p { color: var(--cream); opacity: 0.8; max-width: 36rem; font-size: 1rem; }

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250, 250, 248, 0.16);
  border: 1px solid rgba(250, 250, 248, 0.16);
  margin-top: 2.8rem;
}
.fact {
  background: var(--black);
  padding: 1.6rem 1.5rem;
  text-align: center;
}
.fact .fact-value {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--blush);
}
.fact .fact-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-top: 0.7rem;
}

.event-details {
  margin-top: 1.8rem;
  color: var(--cream);
  opacity: 0.85;
  font-size: 1rem;
  max-width: 40rem;
}
.event-details a { color: var(--blush-deep); text-decoration: none; border-bottom: 1px solid var(--blush-dark); }
.event-details a:hover { border-color: var(--blush-deep); }

.event-cta { margin-top: 2.2rem; }

/* join: blush form section */
.join { background: var(--blush); }
.join .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.join h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}
.join p { color: var(--text-mid); max-width: 28rem; }

.join-form { display: grid; gap: 1.4rem; }
.join-form[hidden] { display: none; }
.join-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.join-form input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--blush-dark);
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-dark);
}
.join-form input::placeholder { color: var(--text-light); }
.join-form input:focus-visible { outline: 2px solid var(--text-dark); outline-offset: 1px; }
.join-form .btn { justify-self: start; margin-top: 0.4rem; }

.form-note {
  font-size: 0.9rem;
  color: var(--text-mid);
  min-height: 1.4rem;
}
.form-note.is-error { color: var(--text-dark); font-weight: 400; }

.form-success {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--blush-dark);
  padding: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
}
.form-success-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.2;
  color: var(--text-dark);
  padding-bottom: 0.25rem; /* descender reserve: comma + names with y g j p q */
}
.form-success-title .form-success-name { font-style: italic; }
.form-success-body {
  color: var(--text-mid);
  margin-top: 0.9rem;
}
.form-success-demo {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1.6rem;
}

/* connect */
.connect .section-inner { text-align: center; max-width: 50rem; }
.connect p { color: var(--text-mid); margin-bottom: 1.2rem; }
.connect-handle { display: flex; align-items: center; justify-content: center; gap: 0.5em; }
.connect-icon { width: 1.05em; height: 1.05em; flex: none; }
.connect-handle-secondary {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--text-mid);
}
.connect-handle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  line-height: 1.2;
  padding-bottom: 0.35rem; /* descender reserve: y, p, g in handle */
  text-decoration: none;
  border-bottom: 1px solid var(--blush-dark);
  transition: border-color 0.3s ease;
}
.connect-handle:hover { border-color: var(--text-dark); }

/* footer */
footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 4.5rem var(--gutter) 3.5rem;
}
footer .logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}
footer .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--blush-deep);
  margin-top: 0.6rem;
}
footer .fineprint {
  font-size: 0.8rem;
  color: rgba(250, 250, 248, 0.55);
  margin-top: 2.2rem;
  line-height: 1.9;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .sundays .section-inner,
  .join .section-inner {
    grid-template-columns: 1fr;
  }
  .event-facts { grid-template-columns: 1fr; }
  .fact { padding: 1.7rem 1.5rem; }
  .arc-row { grid-template-columns: 3rem 1fr; gap: 1rem; }
}

@media (max-width: 560px) {
  .sundays-grid { grid-template-columns: 1fr; }
  .sunday-card { min-height: 0; }
  .hero-ctas { gap: 1.4rem; }
  .btn { white-space: normal; text-align: center; max-width: 22rem; line-height: 1.4; }
  .btn-break { display: block; }
}
