/*
Theme Name: My Soul Counseling
Theme URI: https://mysoulcounseling.com
Author: My Soul Counseling
Description: Bespoke lightweight Gutenberg theme for the My Soul Counseling redesign — the "Violet Flame" design system (deep violet, amethyst, lavender and gold on warm ivory). Pages render from native Custom HTML blocks with per-page scoped CSS.
Version: 1.0.0
Text Domain: mysoulcounseling-new
*/

/* ============================================================
   Design tokens — "Violet Flame" palette
   ============================================================ */
:root {
  --ms-ivory: #fbf9f6;
  --ms-cream: #f2ecf7;
  --ms-cream-soft: #f7f2fb;
  --ms-white: #ffffff;
  --ms-ink: #241b33;
  --ms-muted: #6c6478;
  --ms-violet: #4a2d82;
  --ms-violet-deep: #331e5e;
  --ms-amethyst: #7d5cc6;
  --ms-lavender: #c3b0e6;
  --ms-rose: #b98fb0;
  --ms-gold: #c6a052;
  --ms-line: #e6ddef;
  --ms-font-heading: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --ms-font-body: "Mulish", "Jost", "Helvetica Neue", Arial, sans-serif;
  --ms-wrap: 1180px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ms-ivory);
  color: var(--ms-ink);
  font-family: var(--ms-font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ms-violet); text-decoration: none; }
a:hover { color: var(--ms-amethyst); }
h1, h2, h3, h4 {
  font-family: var(--ms-font-heading);
  font-weight: 400;
  color: var(--ms-ink);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}

.ms-wrap { width: min(var(--ms-wrap), calc(100% - 48px)); margin: 0 auto; }

.screen-reader-text, .ms-skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.ms-skip-link:focus {
  left: 18px; top: 18px; z-index: 9999; width: auto; height: auto;
  padding: 10px 14px; background: var(--ms-violet); color: #fff; border-radius: 6px;
}

/* ============================================================
   Header
   ============================================================ */
.ms-site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 246, .88);
  border-bottom: 1px solid var(--ms-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ms-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px;
}
.ms-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ms-brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--ms-amethyst), var(--ms-violet-deep));
  color: #fff; font-family: var(--ms-font-heading); font-size: 20px; line-height: 1;
  box-shadow: 0 6px 18px rgba(74, 45, 130, .32);
}
.ms-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.ms-brand-name {
  font-family: var(--ms-font-heading); font-size: 21px; color: var(--ms-ink);
  letter-spacing: .01em; font-weight: 500;
}
.ms-brand-tag {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ms-gold); font-weight: 700; margin-top: 3px;
}

.ms-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.ms-nav a {
  color: var(--ms-ink); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  position: relative; padding: 6px 0; transition: color .15s ease;
}
.ms-nav a:hover, .ms-nav .current-menu-item > a { color: var(--ms-violet); }
.ms-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ms-gold); transition: width .22s ease;
}
.ms-nav a:hover::after, .ms-nav .current-menu-item > a::after { width: 100%; }

.ms-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  background: var(--ms-violet); color: #fff !important;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--ms-violet);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ms-header-cta:hover {
  background: var(--ms-violet-deep); transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(74, 45, 130, .3);
}

/* mobile toggle */
.ms-nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.ms-nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ms-ink); transition: transform .2s ease, opacity .2s ease; }
.ms-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ms-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ms-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .ms-nav-toggle { display: flex; }
  .ms-header-cta.ms-header-cta--desktop { display: none; }
  .ms-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ms-ivory); border-bottom: 1px solid var(--ms-line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: 0 24px 40px rgba(36, 27, 51, .12);
  }
  .ms-nav.is-open { max-height: 520px; }
  .ms-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px; }
  .ms-nav li { border-bottom: 1px solid var(--ms-line); }
  .ms-nav li:last-child { border-bottom: 0; }
  .ms-nav a { display: block; padding: 15px 0; font-size: 17px; }
  .ms-nav a::after { display: none; }
}

/* ============================================================
   Page-title header (rendered by page.php / tpl-fullwidth.php)
   ============================================================ */
.ms-page-title {
  background: linear-gradient(180deg, var(--ms-cream) 0%, var(--ms-ivory) 100%);
  border-bottom: 1px solid var(--ms-line);
  text-align: center;
  padding: clamp(46px, 6vw, 78px) 0 clamp(38px, 5vw, 62px);
}
.ms-page-title .ms-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ms-gold); font-weight: 800;
}
.ms-page-title h1 {
  margin: 0 auto; max-width: 900px;
  font-size: clamp(34px, 4.4vw, 56px); color: var(--ms-ink);
}

/* ============================================================
   Main / content
   ============================================================ */
.ms-main { display: block; }
.ms-content-narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 72px; }
.ms-content-narrow p { margin: 0 0 18px; }
.ms-content-narrow h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 40px 0 14px; }
.ms-content-narrow h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 30px 0 12px; }
.ms-content-narrow img { border-radius: 8px; }

/* ============================================================
   Footer
   ============================================================ */
.ms-footer-cta {
  background: linear-gradient(135deg, var(--ms-violet) 0%, var(--ms-violet-deep) 100%);
  color: #fff; text-align: center; padding: clamp(56px, 7vw, 92px) 0;
}
.ms-footer-cta .ms-eyebrow { color: var(--ms-lavender); }
.ms-footer-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); margin: 10px auto 18px; max-width: 760px; }
.ms-footer-cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }
.ms-footer-cta .ms-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; }
.ms-footer-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  padding: 0 34px; border-radius: 999px; background: #fff; color: var(--ms-violet-deep) !important;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ms-footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.28); }

.ms-site-footer { background: var(--ms-ink); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.ms-footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ms-footer-brand .ms-brand-name { color: #fff; }
.ms-footer-brand p { color: rgba(255,255,255,.6); font-size: 14.5px; line-height: 1.7; margin: 16px 0 0; max-width: 340px; }
.ms-footer-col h3 { color: #fff; font-family: var(--ms-font-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; margin: 0 0 16px; }
.ms-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ms-footer-col li { margin: 0 0 11px; }
.ms-footer-col a { color: rgba(255,255,255,.7); font-size: 14.5px; transition: color .15s ease; }
.ms-footer-col a:hover { color: var(--ms-lavender); }
.ms-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 30px; font-size: 13px; color: rgba(255,255,255,.5);
}
.ms-footer-bottom a { color: rgba(255,255,255,.6); }
.ms-footer-disclaimer { max-width: 900px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; line-height: 1.65; color: rgba(255,255,255,.42); }
.ms-footer-disclaimer strong { color: rgba(255,255,255,.7); }

/* sticky mobile book bar */
.ms-mobile-book {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; background: var(--ms-violet); color: #fff !important;
  font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 -8px 24px rgba(36, 27, 51, .22);
}
@media (max-width: 760px) {
  .ms-mobile-book { display: flex; }
  body { padding-bottom: 54px; }
}

/* ============================================================
   Shared helpers usable by page CSS
   ============================================================ */
.ms-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ms-gold); font-weight: 800; }
