/* ============================================
   Marcus Thim — Private Coaching
   Palette: Sun-on-stone
   ============================================ */

:root {
  /* Sun-on-stone palette */
  --black:       #16130f;     /* warm charcoal — main dark */
  --black-soft:  #1f1b15;     /* slightly lifted dark for inner blocks */
  --gold:        #c9a04a;     /* antique gold — accents, titles */
  --gold-soft:   #b08e3a;     /* aged gold for hover/secondary */
  --terracotta:  #b85c3c;     /* burnt terracotta — sparingly */
  --cream:       #f5ecd6;     /* sun cream — body text on dark, light bg */
  --cream-warm:  #f9f1dd;     /* slightly brighter cream */
  --stone:       #d9cfb8;     /* muted cream — secondary text */
  --dusk:        #2a3a4a;     /* dusk blue, reserved for thin rules if needed */

  /* Type */
  --serif:  "Cormorant Garamond", "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Layout */
  --container-w: 880px;
  --narrow-w:    640px;
}

/* ============ RESET / BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 17px;
}

a { color: inherit; text-decoration: none; }

/* ============ CONTAINER ============ */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow {
  max-width: var(--narrow-w);
}

/* ============ SHARED ELEMENTS ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.section-label--dark {
  color: var(--terracotta);
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 96px;
}

/* ============ HERO ============ */
.hero {
  background: var(--black);
  color: var(--cream);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

/* subtle radial glow — like sunlight on stone */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(201, 160, 74, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cream-warm);
  margin-bottom: 32px;
  max-width: 14ch;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-top: 80px;
  opacity: 0.7;
}

/* ============ INTRO (LIGHT) ============ */
.intro {
  background: var(--cream);
  padding: 130px 0;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.55;
  color: var(--black);
  letter-spacing: 0.005em;
}
.lede + .lede { margin-top: 36px; }

.intro-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
  margin: 72px 0 48px;
}

.sub-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
}

.lede--soft {
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 24px);
  color: #3a322a;
}

/* ============ FORMAT (LIGHT) ============ */
.format {
  background: var(--cream-warm);
  padding: 110px 0 100px;
  position: relative;
}
.format::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.55;
}

/* ============ PILLARS (DARK) ============ */
.pillars {
  background: var(--black);
  color: var(--cream);
  padding: 140px 0 150px;
}

.pillars .section-title {
  color: var(--cream-warm);
  max-width: 16ch;
}

.pillar {
  max-width: 720px;
}

.pillar-header {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 0 28px;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.pillar-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  align-self: center;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pillar-header:hover .pillar-mark {
  opacity: 1;
  transform: scale(1.15);
}

.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.pillar-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--cream-warm);
  margin: 0;
  transition: color 0.25s ease;
}
.pillar-header:hover .pillar-name { color: #fff7e0; }

.pillar-toggle {
  background: transparent;
  border: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  position: relative;
  cursor: pointer;
  outline-offset: 4px;
}
.pillar-toggle::before,
.pillar-toggle::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.25s ease;
  border-radius: 1px;
}
.pillar-toggle::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  margin-top: -0.5px;
}
.pillar-toggle::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  margin-left: -0.5px;
  transform-origin: center;
}
.pillar.is-open .pillar-toggle::after {
  transform: scaleY(0);
}

.pillar-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding-top 0.3s ease;
  opacity: 0;
  padding-top: 0;
}
.pillar-body-inner {
  overflow: hidden;
  min-height: 0;
}
.pillar.is-open .pillar-body {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 14px;
}

.pillar-sub {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 400;
}
.pillar-sub em { font-style: italic; }

.pillar-list {
  list-style: none;
  padding: 0;
}

.pillar-list li {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--stone);
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid rgba(201, 160, 74, 0.10);
}
.pillar-list li:last-child { border-bottom: none; }

.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 1px;
  background: var(--terracotta);
}

.pillar-divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(201, 160, 74, 0.25) 20%,
    rgba(201, 160, 74, 0.25) 80%,
    transparent 100%);
  margin: 88px 0;
  max-width: 720px;
}

/* ============ APPROACH (LIGHT) ============ */
.approach {
  background: var(--cream-warm);
  padding: 130px 0;
  position: relative;
}

/* tiny gold rule at top, like a thread */
.approach::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* ============ CONTACT (DARK) ============ */
.contact {
  background: var(--black);
  color: var(--cream);
  padding: 130px 0 90px;
  text-align: center;
}

.contact .eyebrow { color: var(--gold); }

.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream-warm);
  margin-bottom: 32px;
}

.contact-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--stone);
  margin-bottom: 56px;
}

.contact-details {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover {
  color: var(--cream-warm);
  border-color: var(--gold);
}

.contact-sep {
  color: var(--gold-soft);
  opacity: 0.5;
}

.credentials {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--stone);
  margin-top: 72px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.footer-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-soft);
  letter-spacing: 0.4em;
  margin-top: 56px;
  opacity: 0.7;
}

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .container { padding: 0 24px; }

  .hero { padding: 100px 0 90px; }
  .hero-rule { margin-top: 56px; }

  .intro, .approach { padding: 90px 0; }
  .pillars { padding: 100px 0 110px; }
  .contact { padding: 100px 0 70px; }

  .section-title { margin-bottom: 64px; }

  .pillar-header {
    grid-template-columns: auto 1fr auto;
    gap: 0 18px;
    align-items: center;
  }
  .pillar-num { font-size: 20px; }
  .pillar-body { padding-left: 0; }
  .pillar-body-inner > .pillar-list li { padding-left: 18px; }

  .pillar-divider { margin: 64px 0; }

  .contact-details {
    flex-direction: column;
    gap: 14px;
  }
  .contact-sep { display: none; }
}
