/* ============================================================
   WYO Brain Integration — styles.css  (v2, rebuilt)
   One stylesheet for the whole site. Colors and fonts are set
   once below; change them here and every page updates.
   ============================================================ */

:root {
  --iris: #460874;        /* brand purple */
  --iris-deep: #310354;   /* darker purple */
  --night: #1a0b2a;       /* near-black plum (hero, footer) */
  --wisteria: #7b5ea7;    /* soft purple accent */
  --lavender: #f4effa;    /* pale section background */
  --paper: #fdfcfa;       /* page background */
  --ink: #2b2436;         /* main text */
  --ink-soft: #5f566c;    /* secondary text */
  --honey: #d9a441;       /* warm gold accent */
  --line: #e6dff0;        /* hairline borders */
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--iris);
  margin: 0 0 0.5em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
a { color: var(--iris); }
a:hover { color: var(--iris-deep); }

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--iris);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

/* ============================================================
   Header & navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 255, 0.95);   /* soft warm white */
  backdrop-filter: blur(6px);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--iris), var(--wisteria) 45%, var(--honey));
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

/* Brand: logo image strictly capped, name text beside it */
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  text-decoration: none;
  color: var(--iris);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  height: 52px;
  width: auto;      /* keeps the WYO mark in proportion */
  flex: none;
}
@media (max-width: 1020px) {
  .brand span { display: none; }   /* mark only when space is tight */
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--iris);
  border-radius: 8px;
  color: var(--iris);
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.site-nav a,
.site-nav .submenu-label {
  display: block;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--lavender); color: var(--iris-deep); }
.site-nav a[aria-current="page"] { color: var(--iris); font-weight: 700; }

/* Treatment dropdown: opens via .open (set by nav.js on click);
   also opens on hover, but only on devices that truly hover */
.has-submenu { position: relative; }
button.submenu-label {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.submenu-label::after { content: " ▾"; font-size: 0.75em; color: var(--wisteria); }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(70, 8, 116, 0.12);
  padding: 0.4rem;
  min-width: 230px;
  flex-direction: column;
  gap: 0;
}
.submenu a { color: var(--ink); }
.submenu a:hover { background: var(--lavender); color: var(--iris-deep); }
.submenu a[aria-current="page"] { color: var(--iris); }
.has-submenu.open .submenu { display: flex; }

.nav-cta a {
  background: var(--iris);
  color: #fff !important;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}
.nav-cta a:hover { background: var(--iris-deep); }

/* Mobile navigation panel */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .brand span { display: inline; }   /* room returns once nav collapses */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(70, 8, 116, 0.12);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1.25rem; }
  .submenu {
    display: flex !important;   /* always expanded inside the panel */
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    background: transparent;
  }
  .submenu-label { color: var(--wisteria); font-weight: 700; text-align: left; }
  .nav-cta a { margin: 0.5rem 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand span { display: none; }   /* tiny phones: mark only */
}

/* ============================================================
   Hero (home page) — deep plum, banner fades into background
   ============================================================ */

.hero {
  background: radial-gradient(1100px 560px at 50% -12%,
              #4b2271 0%, #2a1240 55%, var(--night) 100%);
  padding: 2.75rem 0 3.5rem;
  text-align: center;
}
.hero-banner {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  /* no border or shadow: the image's own edges fade to transparent */
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--honey);
  margin: 0 0 0.75rem;
}
.hero h1 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
}
.hero .lede {
  max-width: 56ch;
  margin: 0 auto 1.75rem;
  font-size: 1.15rem;
  color: #cfc2e2;
}
.hero .btn-primary { background: var(--honey); color: var(--night); }
.hero .btn-primary:hover { background: #e8b85c; color: var(--night); }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Buttons (site-wide defaults) */
.btn-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary { background: var(--iris); color: #fff; }
.btn-primary:hover { background: var(--iris-deep); color: #fff; }
.btn-ghost { border: 2px solid var(--iris); color: var(--iris); }
.btn-ghost:hover { background: var(--lavender); }

/* Signature pathway divider */
.pathway {
  display: block;
  width: 180px;
  margin: 1.5rem auto 0;
  color: var(--honey);
}
.pathway.left { margin-left: 0; }

/* ============================================================
   Sections & layout helpers
   ============================================================ */

main section { padding: 3.25rem 0; }
section.tint { background: var(--lavender); }

.page-head {
  background: linear-gradient(180deg, var(--lavender), var(--paper));
  padding: 2.75rem 0 2.25rem;
}
.page-head h1 { margin-bottom: 0.25rem; }
.page-head .sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 62ch; margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.two-col .media img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(70, 8, 116, 0.14); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(70, 8, 116, 0.11);
}
.card h3, .card h4 { margin-top: 0; }
section.tint .card { border-color: transparent; box-shadow: 0 8px 22px rgba(70, 8, 116, 0.07); }

.step-num {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--honey);
  margin: 0 0 0.35rem;
}

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 1.6em; position: relative; margin-bottom: 0.5em; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: var(--lavender);
  border: 2px solid var(--wisteria);
}

.quote {
  border-left: 4px solid var(--honey);
  background: var(--lavender);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.12rem;
  color: var(--iris-deep);
}
.quote footer { font-family: 'Karla', sans-serif; font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; }

.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   Video grid
   ============================================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-grid figure { margin: 0; }
.video-featured { max-width: 820px; margin: 0 auto 1.75rem; }
.video-featured figcaption {
  font-weight: 700;
  color: var(--iris);
  margin-top: 0.6rem;
  text-align: center;
  font-size: 1.1rem;
}
.cards.grid-2, .video-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) {
  .cards.grid-2, .video-grid.grid-2 { grid-template-columns: 1fr; }
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-grid figcaption { font-weight: 700; color: var(--iris); margin-top: 0.6rem; }

/* ============================================================
   Pricing, FAQ, hours, contact
   ============================================================ */

.price-card .price {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  color: var(--iris);
  margin: 0 0 0.75rem;
}
.price-card .price span { font-size: 0.95rem; font-family: 'Karla', sans-serif; color: var(--ink-soft); }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.faq summary {
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--iris);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--honey);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: 0.75rem; }

.hours { width: 100%; border-collapse: collapse; max-width: 420px; }
.hours td { padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--ink-soft); }

.contact-options { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-options a.card {
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  color: var(--iris);
}
.contact-options .big { font-size: 1.15rem; display: block; margin-top: 0.35rem; overflow-wrap: anywhere; }

/* ============================================================
   CTA band & footer
   ============================================================ */

.cta-band {
  background: linear-gradient(135deg, var(--iris) 0%, var(--iris-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6dbf5; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--iris); }
.cta-band .btn-primary:hover { background: var(--lavender); color: var(--iris-deep); }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.site-footer {
  background: var(--night);
  color: #d9cdea;
  padding: 3rem 0 2rem;
  font-size: 0.98rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; margin-bottom: 0.6rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.site-footer .tagline { font-style: italic; color: var(--honey); }

/* ============================================================
   Chat bubble (bottom-right message widget)
   ============================================================ */

.chat-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; }
.chat-toggle {
  background: var(--iris);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(70, 8, 116, 0.35);
}
.chat-toggle:hover { background: var(--iris-deep); }
.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 330px;
  max-width: calc(100vw - 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(70, 8, 116, 0.25);
  padding: 1rem 1.15rem 1.15rem;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--iris);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}
.chat-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.chat-intro { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.75rem; }
.chat-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.chat-form input,
.chat-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.chat-form input:focus,
.chat-form textarea:focus { outline: 2px solid var(--wisteria); border-color: var(--wisteria); }
.chat-form .btn { width: 100%; border: none; cursor: pointer; font: inherit; font-weight: 700; }
.chat-status { font-size: 0.88rem; color: var(--ink-soft); margin: 0.6rem 0 0; }
.chat-sent { color: var(--iris); font-weight: 700; text-align: center; margin: 1rem 0; }

/* Footer social icons */
.social-row { display: flex; gap: 0.75rem; margin-top: 0.85rem; }
.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--iris);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.social-row a:hover {
  background: var(--honey);
  color: var(--night);
  transform: translateY(-2px);
}
.social-row svg { width: 22px; height: 22px; }
