/* ============================================================
   Soul Search Counseling — styles
   ============================================================ */
:root {
  --navy: #0b3463;
  --navy-800: #0a2a50;
  --navy-ish: #0b3463;
  --blue: #116dff;
  --blue-deep: #0f5fe0;
  --orange: #ea492e;
  --gold: #e6d67a;
  --lime: #dfe387;
  --cream: #f6efe0;
  --cream-2: #f8f4ea;
  --paper: #fffdf9;
  --ink: #0b1b33;
  --muted: #5c6472;
  --line: rgba(11, 27, 51, .14);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 26px 60px -30px rgba(11, 28, 56, .45);
  --shadow-sm: 0 12px 34px -18px rgba(11, 28, 56, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }

.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Shared type ---------- */
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--ink); }
.h2--light { color: #fff; }
.h2--underline { position: relative; display: inline-block; padding-bottom: .35rem; }
.h2--underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 3.4rem; height: 3px;
  background: var(--gold); border-radius: 3px;
}

.spark { display: inline-block; color: var(--orange); width: 30px; }
.spark svg { width: 100%; height: auto; display: block; }
.spark--sm { width: 15px; vertical-align: -1px; }

.link-underline {
  font-weight: 600; color: var(--blue-deep); position: relative; padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease), color .25s;
}
.link-underline:hover { background-size: 0% 2px; }
.link-underline--sm { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 100px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: var(--navy); box-shadow: 0 14px 26px -14px rgba(11, 52, 99, .55); }
.btn--primary:hover { background: #d8c65a; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gold); }
.btn:focus-visible, a:focus-visible, button:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px;
}
.topbar :focus-visible, .tarot :focus-visible, .cta-band :focus-visible,
.mobile-nav :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar { background: var(--navy); color: #dbe6f6; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar__note { margin: 0; opacity: .72; }
.topbar__login { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; transition: color .25s; }
.topbar__login:hover { color: #fff; }
.topbar__count {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.16); font-size: .72rem; margin-left: .2rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--paper);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -22px rgba(11,28,56,.55); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand__mark { color: var(--orange); width: 30px; flex: none; }
.brand__mark svg { width: 100%; height: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.brand__sub { font-size: .74rem; color: var(--muted); margin-top: .28rem; letter-spacing: .02em; }

.nav__list { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  position: relative; font-size: .96rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: .3rem; padding: .4rem 0;
  transition: color .22s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 0; height: 2px;
  background: var(--blue); transition: width .3s var(--ease), left .3s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; left: 0; }
.nav__link.is-active { color: var(--blue); }
.nav__link--btn { background: none; border: 0; }
.nav__more { position: relative; }
.nav__dropdown {
  position: absolute; top: 140%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 190px;
  padding: .5rem; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.nav__more:hover .nav__dropdown, .nav__more:focus-within .nav__dropdown,
.nav__more.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown a { display: block; padding: .55rem .8rem; border-radius: 8px; font-size: .9rem; transition: background .2s; }
.nav__dropdown a:hover { background: var(--cream); }

.header__actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn { background: none; border: 0; color: var(--ink); padding: .5rem; border-radius: 50%; transition: color .25s, background .25s; }
.icon-btn:hover { color: var(--blue); background: var(--cream); }

.search-bar { border-top: 1px solid var(--line); background: var(--cream-2); }
.search-bar__inner { display: flex; align-items: center; gap: .8rem; padding: 1rem 0; }
.search-bar__inner input {
  flex: 1; border: 0; background: transparent; font-size: 1.05rem; color: var(--ink); outline: none;
}
.search-bar__close { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .85rem; }
.search-bar__close:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--cream); position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%; width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(230,214,122,.5), transparent 65%); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.hero__copy, .page-hero__copy { min-width: 0; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5rem); color: var(--navy); letter-spacing: -.025em; }
.hero__title + .hero__lead { margin-top: 1.4rem; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; color: var(--ink); max-width: 30ch; }
.hero__sub { color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }
.hero__tag {
  display: inline-block; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 100px; letter-spacing: .04em; text-transform: uppercase;
}
.hero__actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero .spark { margin-bottom: .6rem; }

.hero__media { position: relative; }
.hero__backdrop {
  position: absolute; inset: -3% -2% -5% 4%; background: var(--lime); border-radius: 8px;
  transform: rotate(-3.2deg); z-index: 0;
}
.hero__frame { position: relative; z-index: 1; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero__frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Starry-night texture (hero + footer only) */
.hero__stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .16; }
.hero__stars img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FEATURE STRIP
   ============================================================ */
.features { background: var(--paper); border-bottom: 1px solid var(--line); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature {
  display: flex; align-items: center; gap: 1rem; padding: 2.1rem 1.6rem; position: relative;
  transition: background .3s;
}
.feature:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 24%; height: 52%; width: 1px; background: var(--line);
}
.feature:hover { background: var(--cream-2); }
.feature__icon { width: 40px; height: 40px; flex: none; color: var(--blue); transition: transform .35s var(--ease); }
.feature:hover .feature__icon { transform: translateY(-3px) scale(1.06); }
.feature__icon svg { width: 100%; height: 100%; }
.feature__text { display: flex; flex-direction: column; line-height: 1.35; }
.feature__text strong { font-weight: 600; font-size: .98rem; }
.feature__text em { font-style: normal; font-size: .82rem; color: var(--muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--cream-2); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.about__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__accent { position: absolute; left: -18px; bottom: 8%; width: 60%; height: 62%; background: var(--gold); z-index: 0; }
.about__media figure { position: relative; z-index: 1; margin: 0; overflow: hidden; border-radius: 4px; box-shadow: var(--shadow-sm); }
.about__media img { width: 100%; height: auto; aspect-ratio: 306 / 445; object-fit: cover; }
.about__copy p { font-size: 1.08rem; color: #33404f; max-width: 46ch; }
.about__copy .h2 { margin-bottom: 1.2rem; }
.about__accentline { color: var(--orange); font-weight: 600; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.6rem; }

/* ============================================================
   TAROT DARK
   ============================================================ */
.tarot { background: var(--navy); color: #e7eefb; padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; overflow: hidden; }
.tarot::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 30%, rgba(17,109,255,.28), transparent 42%),
              radial-gradient(circle at 8% 90%, rgba(230,214,122,.14), transparent 45%);
  pointer-events: none;
}
.tarot__grid { display: grid; grid-template-columns: 1fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.tarot__copy p { color: #c3d2ea; font-size: 1.1rem; max-width: 42ch; margin-top: 1.4rem; }
.tarot__list { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.6rem; margin: 1.6rem 0 2rem; }
.tarot__list li { position: relative; padding-left: 1.3rem; font-size: .98rem; }
.tarot__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.tarot__list li:last-child { grid-column: 1 / -1; }
.tarot__media img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.tarot__media { display: flex; justify-content: center; }

/* ============================================================
   COURSES
   ============================================================ */
.courses { background: var(--lime); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem); position: relative; }
.courses__head { margin-bottom: 2.6rem; max-width: 52ch; }
.courses__head .h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.quotes { color: var(--ink); font-size: 1.6em; line-height: 0; vertical-align: -.2em; margin-left: .1em; }
.courses__head p { margin-top: .9rem; font-size: 1.08rem; color: #3b4326; }
.courses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.course-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card__media { overflow: hidden; }
.course-card__media img { width: 100%; height: 190px; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.course-card__body h3 { font-size: 1.25rem; }
.course-card__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.course-card__body .link-underline { margin-top: .7rem; align-self: flex-start; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--paper); padding: clamp(3rem, 6vw, 5rem) 0; }
.reviews__inner { max-width: 780px; margin-inline: auto; text-align: center; position: relative; }
.reviews__quote-mark { display: block; font-family: var(--font-display); font-size: 4rem; line-height: .4; color: var(--navy); margin-bottom: 1rem; }
.reviews__slider { position: relative; display: grid; }
.review { margin: 0; grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.review.is-active { opacity: 1; transform: none; pointer-events: auto; }
.review blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.45; color: var(--navy);
}
.review figcaption { margin-top: 1.2rem; display: flex; justify-content: center; align-items: center; gap: .8rem; }
.review__name { font-weight: 600; font-size: .95rem; }
.review__stars { color: var(--orange); letter-spacing: .12em; }
.reviews__dots { display: flex; justify-content: center; gap: .25rem; margin-top: 1.6rem; }
.reviews__dots button {
  position: relative; width: 24px; height: 24px; border: 0; padding: 0;
  background: transparent; border-radius: 50%;
}
.reviews__dots button::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  border-radius: 50%; background: rgba(11,27,51,.22); transition: background .25s, transform .25s;
}
.reviews__dots button.is-active::before { background: var(--orange); transform: scale(1.35); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--blue-deep); color: #fff; }
.cta-band__inner { display: flex; align-items: center; gap: 1.6rem; padding: 1.7rem 0; flex-wrap: wrap; }
.cta-band__icon { width: 46px; flex: none; color: #fff; }
.cta-band__icon svg { width: 100%; height: auto; }
.cta-band__copy { flex: 1; min-width: 240px; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; margin: 0; }
.cta-band__sub { margin: .15rem 0 0; font-size: .95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: #cdd9ec; position: relative; overflow: hidden; padding-top: 3.5rem; }
.footer-bg { position: absolute; inset: 0; opacity: .22; pointer-events: none; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,28,56,.72), var(--navy) 80%); pointer-events: none; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer__brand { min-width: 0; }
.brand--footer .brand__name, .brand--footer .brand__sub { color: #fff; }
.brand--footer .brand__sub { color: #9fb0ca; }
.footer__tagline { margin-top: 1.2rem; max-width: 28ch; font-size: .95rem; }
.footer__col h3 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; font-weight: 600; }
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; }
.footer__col a { transition: color .22s, padding-left .22s; }
.footer__col a:hover { color: var(--gold); padding-left: .25rem; }
.footer__col address { font-style: normal; }
.footer__bottom {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.14); padding: 1.4rem 0; font-size: .82rem; color: #9fb0ca;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .header__inner { flex-wrap: wrap; padding: .7rem 0 .2rem; min-height: auto; }
  .nav { order: 3; width: 100%; border-top: 1px solid var(--line); margin-top: .7rem; }
  .nav__list { flex-wrap: wrap; justify-content: center; gap: .2rem 1.2rem; padding: .5rem 0; }
  .nav__link { white-space: nowrap; font-size: .92rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 540px; margin-bottom: 2.4rem; }
  .page-hero__media { order: -1; max-width: 520px; margin-bottom: 2.4rem; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; }
  .tarot__grid { grid-template-columns: 1fr; }
  .tarot__media { order: -1; max-width: 520px; margin-inline: auto; }
  .courses__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .courses__head { margin-inline: auto; text-align: center; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--max)); }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { padding: 1.3rem .4rem; }
  .feature:not(:last-child)::after { left: 0; right: 0; top: auto; bottom: 0; height: 1px; width: 100%; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .brand__name { font-size: 1.25rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
