/* ============================================================
   Marta Burton — Somatic Intelligence & Integration
   The site should feel like a deep breath.
   Spacious, warm, unhurried.
   ============================================================ */

:root {
  --bg:          #F5F0E8;  /* warm off-white / linen */
  --text:        #3D3530;  /* deep warm brown */
  --muted:       #7A6A5A;  /* warm taupe */
  --sage:        #8A9E8A;  /* dusty sage accent */
  --terracotta:  #C17A5A;  /* warm terracotta accent */
  --sand:        #C9B99A;  /* warm sand dividers */
  --maxw:        700px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Lock the page horizontally: no side-to-side scroll, no rubber-band slide. */
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Reinforce the horizontal lock on the body as well. */
  overflow-x: hidden;
  overscroll-behavior-x: none;
  /* Long words / links can never push the layout wider than the screen. */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Media and embeds always stay within their column. */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding: 2rem 0 4rem;
}

/* ---------- Navigation ---------- */

.site-header {
  padding: 2.25rem 1.5rem 1rem;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  padding: 0;
  margin: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'EB Garamond', serif;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--text);
  border-bottom-color: var(--sand);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

p {
  margin: 1.4rem 0;
}

strong { font-weight: 700; }

em { font-style: italic; }

a { color: var(--terracotta); }

/* Page title (HOME's brand block is separate; this is for inner pages) */
.page-title {
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  margin: 1rem 0 2.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Home brand block ---------- */

.brand {
  text-align: center;
  margin: 2.5rem 0 3rem;
}

.brand h1 {
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.brand .tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 1.45rem;
  margin-top: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
}

.brand .modalities {
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: 0.9rem;
  letter-spacing: 0.01em;
}

/* ---------- Invocation (Home opening lines) ---------- */

.invocation {
  font-style: italic;
  text-align: center;
  font-size: 2rem;
  line-height: 1.5;
  margin: 3rem auto;
  max-width: 90%;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Orientation line (plain-language clarity anchor) ---------- */

.orientation {
  text-align: center;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 36rem;
  margin: 0 auto;
}

/* ---------- Epigraph lines ---------- */

.epigraph {
  font-style: italic;
  color: var(--muted);
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.7;
  margin: 2.75rem auto;
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Stop. Listen. Feel. ---------- */

.commandments {
  text-align: center;
  margin: 3rem 0;
}

.commandments span {
  display: block;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  margin: 1rem 0;
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Threshold (Meet Marta section break) ---------- */

.threshold {
  text-align: center;
  font-style: italic;
  font-size: 1.55rem;
  margin: 3.5rem 0;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Content note ---------- */

.content-note {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 2rem auto;
  max-width: 80%;
}

/* ---------- Call to action ---------- */

.cta-wrap {
  text-align: center;
  margin: 3rem 0;
}

.cta {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-style: italic;
  color: var(--terracotta);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cta:hover {
  color: var(--text);
  border-bottom-color: var(--sand);
}

.cta-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.98rem;
  margin: 0.9rem 0 0;
}

/* ---------- Location / availability lines ---------- */

.availability {
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 2rem 0;
}

.home-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 38rem;
  margin: 1.5rem auto 0;
}

/* ---------- Dividers ---------- */

hr {
  border: none;
  border-top: 1px solid var(--sand);
  width: 70px;
  margin: 3.25rem auto;
}

/* ---------- Offerings ---------- */

.offering {
  margin: 2.5rem 0;
}

.offering h3 {
  font-size: 1.7rem;
  margin: 0 0 0.25rem;
}

.offering .meta {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1rem;
}

.subtitle {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Offering accordions (native <details>) ---------- */

.offering-accordion {
  border-top: 1px solid var(--sand);
  padding: 1.6rem 0;
}

.offering-accordion:last-of-type {
  border-bottom: 1px solid var(--sand);
}

.offering-accordion > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  outline: none;
}

.offering-accordion > summary::-webkit-details-marker { display: none; }
.offering-accordion > summary::marker { content: ""; }

.offering-accordion > summary:focus-visible {
  outline: 1px solid var(--sage);
  outline-offset: 4px;
}

.offering-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.offering-essence {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-top: 0.5rem;
}

.offering-format {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.5rem;
}

.offering-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.3;
  transition: transform 0.25s ease;
}

.offering-accordion[open] > summary .offering-chevron {
  transform: rotate(180deg);
}

.offering-body {
  padding-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .offering-chevron { transition: none; }
}

/* ---------- Certifications list ---------- */

.creds {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.creds li {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.1rem 0;
  line-height: 1.65;
}

.creds li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sage);
}

/* ---------- Portrait / image space ---------- */

.portrait {
  margin: 3rem 0;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #EFE7D9, #E4D8C4);
  border: 1px solid var(--sand);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
  padding: 2rem;
}

/* ---------- Testimonials ---------- */

.testimonial {
  margin: 3rem 0;
}

.testimonial h3 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

.testimonial .attribution {
  font-style: italic;
  color: var(--muted);
  margin-top: 1.25rem;
}

.testimonial .photo-space {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #EFE7D9, #E4D8C4);
  border: 1px solid var(--sand);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ---------- Form ---------- */

form {
  margin: 2.5rem 0;
}

.field {
  margin-bottom: 1.75rem;
}

label {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--sand);
  background: #FBF8F2;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--text);
  border-radius: 2px;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

button.cta {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

button.cta:hover {
  border-bottom-color: var(--sand);
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid var(--sand);
  margin-top: 2rem;
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  body { font-size: 1.12rem; }

  .nav-toggle { display: block; }

  .nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 0;
    margin-top: 1rem;
  }

  .nav.open ul { display: flex; }

  .nav ul li { padding: 0.6rem 0; }

  .nav { flex-direction: column; }

  .brand h1 { font-size: 2.3rem; letter-spacing: 0.06em; }
  .brand .tagline { font-size: 1.25rem; }
  .container { padding: 0 1.25rem; }

  .invocation { font-size: 1.6rem; }
  .orientation { font-size: 1.12rem; }
  .epigraph { font-size: 1.18rem; }
  .page-title { font-size: 1.9rem; }
  .commandments span { font-size: 1.45rem; }
}
