/* ==========================================================================
   Kamea Practice — single stylesheet, mobile-first.
   Palette, type and spacing live in custom properties.
   ========================================================================== */

:root {
  /* Palette (from the Squarespace mockup) */
  --green-900: #1f3321;   /* headings on light backgrounds */
  --green-800: #2f4b32;   /* header, hero, cards, buttons */
  --green-700: #3a5a3d;   /* hover */
  --green-100: #d6e7cf;   /* pale green sections */
  --cream-100: #fcf4e8;   /* page background */
  --cream-200: #f3efdc;   /* form inputs */
  --text-dark: #26332a;
  --text-light: #f6f1e7;
  --focus: #d98e04;
  --success: #1f7a4d;
  --error: #b3261e;

  /* Typography */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --leading: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  --container: 76rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--leading);
  color: var(--text-dark);
  background: var(--cream-100);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
  color: var(--green-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 700; }

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

/* --- Utilities ------------------------------------------------------------ */
.container {
  width: min(100% - 2 * var(--space-4), var(--container));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--cream-100); color: var(--green-800);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 0; }
.lead { font-size: 1.125rem; }

/* Buttons — squared, uppercase, like the mockup */
.button {
  display: inline-block;
  padding: 1.1em 2.5em;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.button--dark { background: var(--green-800); color: var(--text-light); }
.button--dark:hover { background: var(--green-700); }
.button--light { background: var(--cream-100); color: var(--green-800); }
.button--light:hover { background: #fff; }
.button--block { display: block; width: 100%; }
.button:disabled { opacity: 0.6; cursor: default; }

/* Theme helpers */
.theme-dark { background: var(--green-800); color: var(--text-light); }
.theme-dark h1, .theme-dark h2, .theme-dark h3 { color: var(--text-light); }
.theme-pale { background: var(--green-100); }
.theme-cream { background: var(--cream-100); }

/* Section padding */
.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }

/* Two-column "heading left, text right" blocks */
.split { display: grid; gap: var(--space-4); }
.split > h2 { margin-bottom: 0; }
.split--media { align-items: center; }

/* Wavy dividers: sit at the bottom of a section; color = next section's bg */
.wave { display: block; line-height: 0; margin-top: var(--space-6); margin-bottom: -1px; position: relative; }
.wave--bleed { margin: 0; position: relative; }
.wave--bleed svg { height: clamp(5rem, 12vw, 11rem); }
.wave svg { display: block; width: 100%; height: clamp(2.5rem, 6vw, 5.5rem); }
.wave--cream { color: var(--cream-100); }
.wave--dark { color: var(--green-800); }
.wave--pale { color: var(--green-100); }
.section.has-wave { padding-bottom: 0; }

/* Photos */
.photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--green-100);
}
.photo--square { aspect-ratio: 1; border-radius: 0; }
.photo--landscape { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 16 / 9; border-radius: 0; }
.photo--portrait { aspect-ratio: 3 / 4; border-radius: 0; }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-800); color: var(--text-light);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  color: var(--text-light);
  text-decoration: none;
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius);
  cursor: pointer; color: var(--text-light);
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 1.25rem; height: 2px; background: currentColor; position: relative;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

.site-nav { flex-basis: 100%; }
.site-nav[hidden] { display: none; }
.site-nav ul { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-3); }
.site-nav a:not(.button) {
  display: inline-block;
  padding: var(--space-2) 0;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--text-light); }
.site-nav .button { margin-top: var(--space-2); }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: var(--space-4); padding-bottom: var(--space-5); }
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* Stroke stays 1.5px even though this layer is stretched to the section size */
.hero__bg--lines path { vector-effect: non-scaling-stroke; }
.hero__content { position: relative; max-width: 44rem; padding-block: var(--space-3) var(--space-4); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: var(--space-4); }
.hero .lead { font-size: 1.25rem; max-width: 46ch; margin-bottom: var(--space-5); }
.hero .button { width: 100%; max-width: 24rem; }

/* --- Pillars (Healing / Connection / Harmony) ----------------------------- */
.section--pillars { padding-top: 0; }
.section--pillars .container { margin-top: var(--space-3); }
.pillars { display: grid; gap: var(--space-5); margin-bottom: var(--space-7); }
.pillars--flush { margin-bottom: 0; }
.pillar { text-align: center; padding-inline: var(--space-3); }
.pillar h3 { color: var(--green-900); font-size: 2.25rem; margin-bottom: var(--space-3); }
.pillar__body { position: relative; padding-block: var(--space-3); }
/* Faded single-line icon behind the paragraph, same treatment as the hero lines */
.pillar__bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 11rem; height: 11rem;
  opacity: 0.16;
}
.pillar__bg--wide { width: 15rem; height: 9.25rem;
  pointer-events: none;
}
.pillar__bg path, .pillar__bg circle { vector-effect: non-scaling-stroke; }
.pillar p { position: relative; max-width: 30ch; margin-inline: auto; }

/* --- Promise section ------------------------------------------------------ */
/* Shared wash behind the pillars and the promise: the glow starts among the
   pillars and fades out, so there is no hard edge between the two sections */
.wash {
  background:
    radial-gradient(ellipse 58% 40% at 8% 34%, rgba(214, 231, 207, 0.9), transparent 72%),
    radial-gradient(ellipse 40% 26% at 90% 92%, rgba(214, 231, 207, 0.7), transparent 72%),
    var(--cream-100);
}
.promise__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--green-800);
  margin-bottom: var(--space-4);
}
.promise__content { max-width: 46rem; }
.promise__cards { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.promise-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(47, 75, 50, 0.14);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.promise-card h3 { font-size: 1.25rem; color: var(--green-800); margin-bottom: var(--space-2); }
.promise-card p { margin: 0; font-size: 1rem; }
.promise__cta { margin-top: var(--space-5); }
.bullets { list-style: disc; padding-left: 1.25em; display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.bullets:last-child { margin-bottom: 0; }
h4 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-1);
  color: var(--text-dark);
}

/* --- Programs (services) -------------------------------------------------- */
.programs { display: grid; gap: var(--space-6); margin-top: var(--space-6); }
.program { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-4); }
.program h3 { margin-bottom: var(--space-1); }
.program__subtitle { font-weight: 600; margin-bottom: var(--space-2); }
.program__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: var(--space-3);
}
.program__format { margin-bottom: var(--space-2); opacity: 0.85; }
.program__body > h4:first-of-type { margin-top: var(--space-3); }

.workshop {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(31, 51, 33, 0.18);
}
.workshop h3 { margin-bottom: var(--space-2); }
.workshop h4 { margin-top: var(--space-4); }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
.form__field { display: grid; gap: var(--space-1); }
.form fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.form legend { padding: 0; margin-bottom: var(--space-2); font-weight: 600; }
.form label { font-weight: 600; }
.form label small { font-weight: 400; opacity: 0.8; }
.form input, .form textarea {
  font: inherit;
  padding: 0.7em 0.85em;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--cream-200);
  color: var(--text-dark);
  width: 100%;
}
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--error); }
.form textarea { resize: vertical; }
.form .button { justify-self: start; }
/* Honeypot: off-screen, not display:none (some bots skip display:none fields) */
.form__field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--error); }
.theme-dark .form__status.is-success { color: #b9e4c4; }
.theme-dark .form__status.is-error { color: #f4b4ae; }

/* Contact page */
.contact { padding-block: 0; }
.contact__grid { display: grid; }
.contact__copy { padding-block: var(--space-6); }
.contact__copy h1 { color: var(--green-900); }
.contact__copy .lead { margin-bottom: var(--space-6); }
.contact .photo--portrait { border-radius: 0; height: 100%; }

/* --- Booking dialog ------------------------------------------------------- */
.dialog {
  border: 0;
  padding: 0;
  width: min(100% - 2rem, 60rem);
  max-height: calc(100vh - 2rem);
  background: var(--green-800);
  color: var(--text-light);
}
.dialog::backdrop { background: rgba(31, 51, 33, 0.7); }
.dialog__inner { padding: var(--space-5) var(--space-4) var(--space-6); position: relative; }
.dialog__close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 2.5rem; height: 2.5rem;
  background: none; border: 0; color: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.dialog__eyebrow { margin: 0 0 var(--space-5); }
.dialog h2 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--text-light); margin-bottom: var(--space-3); }
.dialog .form input, .dialog .form textarea { background: #e2e0cd; border-color: transparent; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--green-100); padding-block: var(--space-6) var(--space-5); }
.site-footer__inner { display: grid; gap: var(--space-3); }
.site-footer__brand, .site-footer__email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  color: var(--green-900);
  margin: 0;
  text-decoration: none;
  white-space: nowrap;
}
.site-footer__email:hover { text-decoration: underline; }
.site-footer__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: 0.9375rem;
}
.site-footer__meta p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-links a { color: inherit; }

/* --- Larger screens ------------------------------------------------------- */
@media (min-width: 48em) {
  .split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-6); }
  .split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .promise__content { margin-inline: auto; text-align: center; }
  .promise__cards { grid-template-columns: repeat(2, 1fr); }
  .promise__cta { text-align: center; }
  .split--media.split--media-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .programs { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: auto auto; justify-content: space-between; align-items: end; }
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6); }
  .contact__copy { padding-block: var(--space-7); }
  .dialog__inner { padding: var(--space-6) var(--space-6) var(--space-7); }
}

@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .promise__cards { grid-template-columns: repeat(4, 1fr); }
  .brand { flex: 1 1 20rem; min-width: 0; }
  .site-nav { flex: 0 0 auto; }
  .site-nav[hidden] { display: block; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--space-5); padding-bottom: 0; }
  .site-nav .button { margin-top: 0; }
  .hero__content { padding-block: var(--space-4) var(--space-5); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
