/* ═══════════════════════════════════════════
   EPOCHÉ THERAPY STUDIO — Cedar & Living Ember
   matthewsorg.com
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --bg:            #181613;
  --surface:       #23201B;
  --warm-surface:  #2A2722;
  --text:          #CFC7B9;
  --text-muted:    #92897A;
  --light:         #E8E0D2;
  --stone:         #8A8478;
  --white:         #F0EDE8;
  --divider:       rgba(140, 130, 110, 0.14);
  --ember:         #E07A5F;
  --ember-glow:    rgba(224, 122, 95, 0.35);
  --ember-soft:    rgba(224, 122, 95, 0.08);
  --gilt:          #D4B26F;
  --gilt-soft:     rgba(212, 178, 111, 0.16);
  --moss:          #5F7054;
  --moss-deep:     #4A5A43;
  --ease-out:      cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout:    cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast:    all 0.3s var(--ease-out);
  --trans-med:     all 0.45s var(--ease-out);
  --trans-slow:    all 0.65s var(--ease-out);
  --space-md:      24px;
  --space-lg:      32px;
  --space-xl:      48px;
  --space-2xl:     64px;
  --space-3xl:     80px;
  --font-h: 'Marcellus', serif;
  --font-b: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-b); font-weight: 300;
  line-height: 1.8; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gilt); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ember); }
a[href*="kap"], a[href*="psychedelic"] { color: var(--moss); }
a[href*="kap"]:hover, a[href*="psychedelic"]:hover { color: var(--ember); }
::selection { background: var(--ember-glow); color: var(--white); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; transition: var(--trans-med);
}
.nav.scrolled {
  padding: 10px 24px;
  background: rgba(24, 22, 19, 0.96);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ember), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.nav.scrolled::after { opacity: 0.4; }
.nav-logo {
  font-family: var(--font-h); font-size: 17px; letter-spacing: 0.06em;
  color: var(--white); cursor: pointer; text-decoration: none;
}
.nav-logo:hover { color: var(--white); }
.nav-logo span { font-family: var(--font-b); font-weight: 300; color: var(--stone); margin-left: 6px; font-size: 11px; }
.nav-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-size: 10px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--stone); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--ember); transform: scaleX(0);
  transition: transform 0.3s ease; transform-origin: center;
}
.nav-links a:hover { color: var(--ember); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ember); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 10px !important; font-weight: 500 !important;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg) !important; background: var(--ember) !important;
  padding: 8px 16px; margin-left: 4px; display: inline-block;
  box-shadow: 0 0 16px var(--ember-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 0 24px var(--ember-glow); color: var(--bg) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle { display: none; background: none; border: none; color: var(--stone); font-size: 24px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(24,22,19,0.98); backdrop-filter: blur(24px); padding: 20px 24px; gap: 14px; border-bottom: 1px solid var(--divider); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links a::after { display: none; }
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center 70%;
  opacity: 0.22; filter: saturate(0.4) brightness(0.9);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(24,22,19,0.38) 30%, rgba(24,22,19,0.68) 80%);
  z-index: 1; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow { font-family: var(--font-b); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); margin-bottom: 20px; }
.hero h1 { font-family: var(--font-h); font-size: clamp(32px, 5vw, 52px); color: var(--white); font-weight: 400; line-height: 1.15; margin-bottom: 24px; text-shadow: 0 4px 30px rgba(24,22,19,0.65); }
.hero-sub { font-size: 17px; font-weight: 300; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-specialty { min-height: auto; padding: 140px 24px 60px; }

/* ── BUTTONS ── */
.btn-gilt {
  display: inline-block; padding: 14px 36px; background: var(--ember);
  font-family: var(--font-b); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg);
  box-shadow: 0 0 20px var(--ember-glow);
  transition: var(--trans-fast);
}
.btn-gilt:hover { transform: scale(1.04); box-shadow: 0 0 40px var(--ember-glow); color: var(--bg); }
.btn-sub { font-size: 12px; color: var(--text-muted); margin-top: 12px; opacity: 0.7; }
.btn-link { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); border-bottom: 1px solid var(--ember); padding-bottom: 2px; }
.btn-link:hover { color: var(--gilt); border-color: var(--gilt); }
.avail-pill {
  display: inline-block; padding: 8px 20px; border-radius: 20px;
  background: var(--ember-soft); border: 1px solid rgba(224,122,95,0.25);
  font-size: 11px; color: var(--ember); letter-spacing: 0.06em; margin-top: 40px;
  animation: gentle-pulse 4.5s ease-in-out infinite;
}
@keyframes gentle-pulse {
  50% { opacity: 0.85; }
}

/* ── INSURANCE STRIP ── */
.insurance-strip {
  background: var(--surface); padding: 14px 24px; text-align: center;
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em;
}
.insurance-strip strong { color: var(--light); font-weight: 400; }

/* ── SECTIONS ── */
.section { max-width: 900px; margin: 0 auto; padding: var(--space-3xl) var(--space-md); }
.section-eyebrow { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.section h2 { font-family: var(--font-h); font-size: clamp(28px, 3.8vw, 34px); color: var(--white); font-weight: 400; line-height: 1.3; margin-bottom: 18px; letter-spacing: -0.015em; }

/* ── PROSE ── */
.prose { max-width: 640px; margin: 0 auto; padding: 0 var(--space-md) var(--space-2xl); line-height: 1.8; }
.prose p { margin-bottom: 20px; letter-spacing: -0.005em; }
.prose strong { color: var(--light); font-weight: 500; }
.prose h3 { font-family: var(--font-h); font-size: 21px; color: var(--white); font-weight: 400; margin: 44px 0 14px; letter-spacing: -0.012em; }
.prose ul, .prose ol { margin: 16px 0 20px 20px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 2px solid var(--ember); padding-left: 20px; margin: 32px 0; font-style: italic; color: var(--text-muted); }
.prose em { color: var(--light); }

/* ── PHOTO BREAK ── */
.photo-break { width: 100%; max-width: 900px; margin: 60px auto; overflow: hidden; }
.photo-break img {
  width: 100%; height: 340px; object-fit: cover;
  filter: saturate(0.55) contrast(1.15) brightness(0.88);
  border-radius: 2px;
  box-shadow: inset 0 0 0 4px var(--surface), 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--trans-slow);
}
.photo-break:hover img {
  filter: saturate(0.75) contrast(1.12) brightness(0.94);
  transform: scale(1.025);
  box-shadow: inset 0 0 0 4px var(--surface), 0 8px 30px rgba(0,0,0,0.4);
}
.photo-break .caption { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); opacity: 0.5; text-align: center; margin-top: 12px; }

/* ── AI BLOCK ── */
.ai-block { max-width: 720px; margin: 0 auto; padding: 0 24px 20px; font-size: 11px; color: var(--stone); opacity: 0.15; line-height: 1.6; }
@media (max-width: 900px) { .ai-block { display: none; } }

/* ── SPECIALTIES GRID ── */
.specialties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; padding: var(--space-xl) var(--space-md) var(--space-3xl); max-width: 900px; margin: 0 auto; }
.specialty-card {
  padding: 24px; background: var(--surface); border-left: 3px solid transparent;
  transition: var(--trans-med); text-decoration: none; display: block;
}
.specialty-card:hover { border-left-color: var(--ember); transform: translateY(-6px); box-shadow: 0 20px 50px -12px rgba(0,0,0,0.45); }
.specialty-card.accent { border-left-color: var(--ember); }
.specialty-card h3 { font-family: var(--font-h); font-size: 18px; color: var(--white); margin-bottom: 10px; }
.specialty-card p { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.6; }

/* ── TWO-COL ── */
.two-col { max-width: 900px; margin: 0 auto; padding: 0 var(--space-md) var(--space-xl); display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.two-col .col-img { flex: 1 1 280px; overflow: hidden; }
.two-col .col-text { flex: 1 1 360px; }
.portrait-img { width: 100%; max-width: 320px; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; filter: saturate(0.8) brightness(0.95); }

/* ── CREDENTIALS ── */
.credentials { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 40px 24px 60px; }
.cred-card { padding: 12px 20px; border: 1px solid var(--divider); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); transition: border-color 0.3s, color 0.3s; }
.cred-card:hover { border-color: rgba(224,122,95,0.3); color: var(--ember); }

/* ── CTA BLOCK ── */
.cta-block { text-align: center; padding: var(--space-2xl) var(--space-md) var(--space-3xl); max-width: 600px; margin: 0 auto; }
.cta-process { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); margin-bottom: 20px; }
.cta-block h2 { font-family: var(--font-h); font-size: 28px; color: var(--white); font-weight: 400; margin-bottom: 16px; line-height: 1.3; }
.cta-block .cta-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

/* ── CONTACT ── */
.contact-box { background: var(--surface); padding: 32px; margin-bottom: 24px; border: 1px solid var(--divider); }
.contact-box h3 { font-family: var(--font-h); font-size: 20px; color: var(--white); margin-bottom: 20px; }
.contact-row { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.contact-row .label { color: var(--ember); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 12px; }
.contact-hours { margin-top: 20px; font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* ── FAQ ── */
.faq-item { margin-bottom: 32px; }
.faq-item h4 { font-family: var(--font-b); font-size: 16px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: var(--text); }

/* ── FOOTER ── */
.footer { padding: 40px 24px; text-align: center; border-top: 1px solid var(--divider); }
.footer-name { font-family: var(--font-h); font-size: 14px; color: var(--stone); letter-spacing: 0.06em; margin-bottom: 8px; }
.footer-sub { font-size: 12px; color: var(--stone); opacity: 0.5; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }
.fade-in:nth-child(7) { transition-delay: 0.48s; }

/* Grain overlay */
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-content a.btn-gilt { margin-bottom: 16px; }
  .btn-sub { margin-top: 8px; }
  .prose h3 { font-size: 20px; }
  .section h2 { font-size: 26px; }
  .two-col { gap: 32px; }
  .photo-break img { height: 220px; }
  .cta-block h2 { font-size: 24px; }
}

/* ═══ ACCORDION (FAQ) ═══ */
.accordion-item { border-bottom: 1px solid var(--divider); }
.accordion-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; text-align: left; color: var(--white);
  font-family: var(--font-b); font-size: 16px; font-weight: 500;
  transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--ember); }
.accordion-trigger::after {
  content: '+'; font-size: 20px; color: var(--ember);
  transition: transform 0.3s; flex-shrink: 0; margin-left: 16px;
}
.accordion-trigger.open::after { content: '−'; }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 0;
}
.accordion-body.open { max-height: 600px; padding: 0 0 20px; }
.accordion-body p {
  font-size: 15px; color: var(--text); line-height: 1.7; margin: 0;
}
.accordion-body a { color: var(--gilt); }
.accordion-body a:hover { color: var(--ember); }

/* ═══ FINAL POLISH ═══ */
.accordion-body { transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
@media (max-width: 640px) {
  .accordion-trigger { font-size: 15px; padding: 20px 0; }
}
.specialty-card h3 { color: var(--gilt); }
.btn-link { color: var(--gilt); border-color: var(--gilt); }
.btn-link:hover { color: var(--ember); border-color: var(--ember); }

/* ═══ STICKY MOBILE CTA ═══ */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  padding: 12px 16px;
  background: rgba(24, 22, 19, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--divider);
  text-align: center;
}
.mobile-cta a {
  display: inline-block; padding: 12px 32px;
  background: var(--ember); color: var(--bg);
  font-family: var(--font-b); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 0 16px var(--ember-glow);
}
@media (max-width: 900px) {
  .mobile-cta { display: block; }
  /* Add padding to body bottom so content isn't hidden behind sticky CTA */
  body { padding-bottom: 60px; }
}

/* ═══ MOSS THEME — KAP & Psychedelic pages ═══ */
.moss-page .hero-eyebrow { color: var(--moss); }
.moss-page blockquote { border-left-color: var(--moss); }
.moss-page .cta-process { color: var(--moss); }
.moss-page .btn-gilt {
  background: var(--moss);
  box-shadow: 0 0 20px rgba(95, 112, 84, 0.35);
}
.moss-page .btn-gilt:hover {
  box-shadow: 0 0 30px rgba(95, 112, 84, 0.45);
}
.moss-page .avail-pill {
  background: rgba(95, 112, 84, 0.1);
  border-color: rgba(95, 112, 84, 0.25);
  color: var(--moss);
}
.moss-page .accordion-trigger::after { color: var(--moss); }
.moss-page .accordion-trigger:hover { color: var(--moss); }
.moss-page .section-eyebrow { color: var(--moss); }
.moss-page .btn-link { color: var(--moss); border-color: var(--moss); }
.moss-page .contact-row .label { color: var(--moss); }
.moss-page .mobile-cta a {
  background: var(--moss);
  box-shadow: 0 0 16px rgba(95, 112, 84, 0.35);
}
/* Moss photo hover */
.moss-page .photo-break:hover img { filter: saturate(0.7) brightness(0.88); }

/* ═══ FAQ PAGE SECTIONS ═══ */
.faq-section-heading {
  font-family: var(--font-h);
  font-size: 18px;
  color: var(--ember);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
}
.faq-section-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.moss-page .faq-section-heading { color: var(--moss); border-top-color: rgba(95, 112, 84, 0.2); }

/* ═══ GILT RESTORATION — warm gold as complement to ember ═══ */

/* Blockquote attribution text (the "— Author" line) */
blockquote span { color: var(--gilt) !important; }

/* Credential cards default state */
.cred-card { color: var(--gilt); border-color: rgba(212, 178, 111, 0.2); }
.cred-card:hover { border-color: var(--ember); color: var(--ember); }

/* Process step numbers in CTA */
.cta-process { color: var(--gilt); }

/* Nav logo LMHC text */
.nav-logo span { color: var(--gilt); }

/* Insurance strip carrier names */
.insurance-strip strong { color: var(--gilt); }

/* Contact box labels */
.contact-row .label { color: var(--gilt); }

/* Photo captions */
.photo-break .caption { color: var(--gilt); opacity: 0.5; }

/* Prose strong (bold text in body copy) */
.prose strong { color: var(--gilt); }

/* h3 headings — subtle gilt instead of white */
.prose h3 { color: var(--gilt); }

/* About page section eyebrow "Who I Am" etc */
.section h2 { color: var(--gilt); }

/* Accordion body links stay gilt */
.accordion-body a { color: var(--gilt); }
.accordion-body a:hover { color: var(--ember); }

/* Override for moss pages — keep moss for their specific elements */
.moss-page .cta-process { color: var(--moss); }
.moss-page .contact-row .label { color: var(--moss); }
.moss-page .prose h3 { color: var(--moss); }
.moss-page .cred-card { color: var(--moss); border-color: rgba(95, 112, 84, 0.2); }

/* ═══ MOSS HOVER — KAP & Psychedelic specialty cards ═══ */
.specialty-card.moss-hover:hover { border-left-color: var(--moss); }
.specialty-card.moss-hover:hover h3 { color: var(--moss); }
.specialty-card.moss-hover:hover { box-shadow: 0 20px 50px -12px rgba(95, 112, 84, 0.35); }

/* ═══ UNIFIED IMAGE TREATMENT ═══ */
.portrait-img {
  filter: saturate(0.75) contrast(1.12) brightness(0.94);
  box-shadow: inset 0 0 0 4px var(--surface), 0 8px 30px rgba(0,0,0,0.35);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.col-img:hover .portrait-img {
  transform: scale(1.02);
}
.hero-bg {
  filter: saturate(0.4) contrast(1.1) brightness(0.85);
}

/* ═══ FOCUS VISIBLE — accessibility + polish ═══ */
a:focus-visible,
button:focus-visible,
.btn-gilt:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 4px;
}
