/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary:       #A05565;
  --primary-dark:  #864452;
  --primary-light: #F0D6DC;
  --primary-soft:  rgba(160, 85, 101, 0.1);
  --secondary:     #8AA38B;
  --secondary-dark:#6F8A6C;
  --secondary-soft:rgba(138, 163, 139, 0.15);
  --accent:        #E8D5B7;
  --dark:          #2C3E50;
  --bg-light:      #F5E8EB;
  --bg-card:       #FAF0F2;
  --text:          #3D3D3D;
  --text-muted:    #6C6C6C;
  --border:        #E8D5DA;
  --gold:          #C5A55A;
  --success:       #A05565;
  --body-font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --dyslexic-font: 'OpenDyslexic', 'Inter', sans-serif;
  --transition:    0.3s ease;
}

/* ============================================================
   Base
   ============================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  font-size: 18px;
}

@media (max-width: 1199.98px) {
  html { scroll-padding-top: 80px; }
}

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Neural synapse background - sparse dots + threads in dusty rose,
   ultra-low opacity so text contrast is unaffected. Decorative only. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360'%3E%3Cg fill='%23A05565' fill-opacity='0.055'%3E%3Ccircle cx='58' cy='78' r='3'/%3E%3Ccircle cx='302' cy='58' r='2.4'/%3E%3Ccircle cx='182' cy='182' r='3.4'/%3E%3Ccircle cx='88' cy='292' r='2.4'/%3E%3Ccircle cx='282' cy='302' r='3'/%3E%3C/g%3E%3Cg stroke='%23A05565' stroke-opacity='0.045' stroke-width='1.2' fill='none'%3E%3Cpath d='M58 78 L182 182 L302 58 M182 182 L282 302 M88 292 L182 182'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 360px 360px;
}

body.calm-mode::before {
  display: none;
}

/* ============================================================
   Brand icon system - inline SVG sprite + <use>
   ============================================================ */
.svg-sprite {
  display: none !important;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* Skip to main content  -  visually hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Apply dyslexic font when toggled */
body.dyslexic-mode {
  font-family: var(--dyslexic-font) !important;
  line-height: 1.8;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
}

body.dyslexic-mode h1,
body.dyslexic-mode h2,
body.dyslexic-mode h3,
body.dyslexic-mode h4,
body.dyslexic-mode h5,
body.dyslexic-mode h6,
body.dyslexic-mode .nav-link,
body.dyslexic-mode .btn,
body.dyslexic-mode .accordion-button {
  font-family: var(--dyslexic-font) !important;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
}

::selection {
  background: var(--primary);
  color: #fff;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary);
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  h2 { font-size: 1.65rem; }
}

.section {
  padding: 5rem 0;
}

/* Creates stacking context so z-index: -1 children render behind content */
.section-stack {
  position: relative;
  z-index: 0;
}

.section-light {
  background: var(--bg-light);
}

.section-primary {
  background: var(--primary);
}

.section-primary h2,
.section-primary h3.section-title,
.section-primary .lead-intro,
.section-primary p.lead-intro,
.section-primary .badge,
.section-primary .text-center p,
.section-primary .text-center .text-muted {
  color: #fff;
}

.section-primary .badge.bg-secondary-soft,
.section-primary .badge.bg-primary-soft {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

/* Illustration square containers */
.illustration-square {
  width: 260px;
  height: 260px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.illustration-square img,
.illustration-square svg {
  width: 100%;
  height: 100%;
  display: block;
}

.illustration-square img {
  object-fit: cover;
}

.illustration-square--sm {
  width: 240px;
  height: 240px;
}

.illustration-square--lg {
  width: 300px;
  height: 300px;
}

body.calm-mode .illustration-square img,
body.calm-mode .illustration-square svg {
  filter: none;
}

/* What to expect block */
.what-to-expect {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
}

.what-to-expect .icon {
  font-size: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
}

/* Badges */
.badge.bg-primary-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.badge.bg-secondary-soft {
  background: var(--secondary-soft);
  color: var(--secondary-dark);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* ============================================================
   Navigation
   ============================================================ */
#mainNav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  transition: box-shadow var(--transition);
}

#mainNav.nav-shadow {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05rem;
}

.brand-logo {
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  line-height: 1.2;
}

@media (max-width: 400px) {
  .brand-text {
    font-size: 0.85rem;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.45rem 0.7rem !important;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Dyslexia toggle button in nav */
.btn-outline-dyslexia {
  border: 1.5px solid var(--secondary);
  color: var(--secondary-dark);
  background: transparent;
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-outline-dyslexia:hover,
.btn-outline-dyslexia.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn-outline-dyslexia-footer {
  border: 1.5px solid var(--secondary);
  color: var(--secondary-dark);
  background: transparent;
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.btn-outline-dyslexia-footer:hover {
  background: var(--secondary);
  color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 130px;
  background: linear-gradient(135deg, #F5E8EB 0%, #F0D6DC 50%, #F5E8EB 100%);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .hero { padding-top: 80px; }
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.hero-title em {
  color: var(--primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
}

.hero-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: float 6s ease-in-out infinite;
}

/* Hero scene - bespoke neural tree with Celtic braided roots.
   Branches draw in on load; dots fade after. Decorative (aria-hidden). */
.hero-scene {
  width: 300px;
  height: 300px;
}

.hero-scene .branch {
  stroke: var(--gold);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-draw 1s ease forwards;
}
.hero-scene .trunk { stroke-width: 5; animation-delay: 0.1s; }
.hero-scene .trunk.ghost { opacity: 0.5; animation-delay: 0.2s; }
.hero-scene .b1 { stroke-width: 3.6; animation-delay: 0.55s; }
.hero-scene .b2 { stroke-width: 2.7; animation-delay: 0.95s; }
.hero-scene .b3 { stroke-width: 2; animation-delay: 1.25s; }

.hero-scene .braid {
  stroke: var(--gold);
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-draw 1.2s ease forwards;
  animation-delay: 1.35s;
}
.hero-scene .braid.dash { stroke-dasharray: 8 6; stroke-width: 2.6; opacity: 0; animation: hero-fade 0.8s ease forwards 1.7s; }
.hero-scene .braid.soft { opacity: 0; animation: hero-fade-soft 0.8s ease forwards 1.6s; }

.hero-scene .thread {
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.2;
  opacity: 0;
  animation: hero-fade-thread 0.8s ease forwards 1.8s;
}

.hero-scene circle {
  opacity: 0;
  animation: hero-fade 0.5s ease forwards;
  animation-delay: 1.9s;
}
.hero-scene .dot-g { fill: var(--gold); }
.hero-scene .dot-r { fill: var(--primary); }
.hero-scene .dot-s { fill: var(--secondary); }

@keyframes hero-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes hero-fade {
  to { opacity: 1; }
}
@keyframes hero-fade-soft {
  to { opacity: 0.5; }
}
@keyframes hero-fade-thread {
  to { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene .branch,
  .hero-scene .braid {
    animation: none;
    stroke-dashoffset: 0;
  }
  .hero-scene .braid.dash { animation: none; opacity: 0.75; }
  .hero-scene .braid.soft { animation: none; opacity: 0.5; }
  .hero-scene .thread { animation: none; opacity: 0.35; }
  .hero-scene circle { animation: none; opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-circle { width: 190px; height: 190px; }
  .hero-scene { width: 175px; height: 175px; }
  .hero-ctas .btn { width: 100%; margin-right: 0 !important; margin-bottom: 0.75rem; }
}

.lead-intro {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.kiku-steps {
  list-style: none;
  padding: 0;
}

.kiku-steps li {
  margin-bottom: 1.5rem;
}

.toggle-label {
  margin-left: 0.35rem;
}

.booking-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   About
   ============================================================ */
.about-visual {
  display: flex;
  justify-content: center;
}


.value-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-soft);
  color: var(--dark);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
}

.value-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(86, 126, 68, 0.15);
}

.value-badge .icon {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================================
   Service Cards
   ============================================================ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(74, 139, 139, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.service-features li {
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-features li::before {
  content: "✓";
  color: var(--success);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ============================================================
   Kiku Booking Steps
   ============================================================ */
.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  height: 100%;
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stars {
  color: #E8B84B;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1a1a1a;
  font-style: italic;
}

.testimonial-author {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Accordion (FAQ)
   ============================================================ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 500;
  color: var(--dark);
  background: var(--bg-card);
  padding: 1.1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.accordion-body {
  background: var(--bg-card);
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(74, 139, 139, 0.25);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
  font-weight: 500;
}

.btn-light {
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
  font-weight: 500;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo {
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-top: 0.15rem;
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}

.footer h5,
.footer h6 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer h5 { font-size: 1.1rem; }
.footer h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Nav layout - brand above, links below on desktop
   ============================================================ */
@media (min-width: 1200px) {
  #mainNav > .container {
    flex-wrap: wrap;
    justify-content: center;
  }
  #mainNav .navbar-brand {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.4rem;
  }
  #mainNav .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 0;
  }
  #mainNav .navbar-nav {
    justify-content: flex-end;
    width: 100%;
  }
}

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 1199.98px) {
  #mainNav .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  #mainNav .nav-link {
    padding: 0.6rem 1rem !important;
  }

  .btn-outline-dyslexia {
    margin-top: 0.5rem;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .section { padding: 3rem 0; }
  .hero { min-height: 90vh; }
  .illustration-square { width: 200px; height: 200px; }
  .illustration-square--lg { width: 220px; height: 220px; }
}

/* ============================================================
   Scroll-Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.3s; }

/* ============================================================
   Calm Mode  -  reduces visual stimulation
   ============================================================ */
body.calm-mode .celtic-knot,
body.calm-mode .hero-wave {
  display: none !important;
}

body.calm-mode *,
body.calm-mode *::before,
body.calm-mode *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

body.calm-mode .celtic-knot--center.celtic-knot--xl svg,
body.calm-mode .celtic-knot.pulse svg {
  animation: none !important;
}

/* Calm mode button active state */
.btn-calm.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* ============================================================
   "Remove the Mask" Hero Toggle
   ============================================================ */
.hero-mask-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 0.4rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.25rem;
}
.hero-mask-toggle:hover {
  background: var(--primary);
  color: #fff;
}

.hero-masked {
  display: block;
}
.hero-masked.hide {
  display: none;
}
.hero-authentic {
  display: none;
}
.hero-authentic.show {
  display: block;
  animation: maskFadeIn 0.6s ease forwards;
}

@keyframes maskFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Breathing Guide
   ============================================================ */
.breathing-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem 0.7rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(160, 85, 101, 0.3);
  transition: all 0.3s ease;
}
.breathing-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(160, 85, 101, 0.4);
}
.breathing-trigger:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}
.breathing-trigger .icon {
  font-size: 1.2rem;
}
.breathing-trigger span {
  font-weight: 500;
}

.breathing-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(219, 237, 207, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.breathing-overlay.open {
  display: flex;
}

.breathing-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}
.breathing-close:hover {
  color: var(--primary-dark);
}

.breathing-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transition: transform 4s ease-in-out, opacity 4s ease-in-out, box-shadow 4s ease-in-out;
  box-shadow: 0 0 30px rgba(86, 126, 68, 0.2);
}
.breathing-circle.inhale {
  transform: scale(3);
  opacity: 1;
  box-shadow: 0 0 60px rgba(86, 126, 68, 0.4);
}
.breathing-circle.exhale {
  transition-duration: 6s, 6s, 6s;
  transform: scale(1);
  opacity: 0.7;
  box-shadow: 0 0 20px rgba(86, 126, 68, 0.15);
}
.breathing-circle.hold,
.breathing-circle.rest {
  transition-duration: 0.3s, 0.3s, 0.3s;
}

.breathing-label {
  font-size: 1.25rem;
  color: var(--dark);
  font-weight: 500;
  margin-top: 2rem;
  min-height: 1.8rem;
}
.breathing-count {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 3.5rem;
  margin-top: 0.25rem;
}

.breathing-hands {
  display: flex;
  gap: 2.5rem;
  font-size: 3rem;
  color: var(--primary);
  margin-top: 0.5rem;
}
.breathing-hands .icon {
  transition: transform 0.3s ease;
}
.breathing-hands .hand-closed {
  display: none;
}
.breathing-hands.exhaling .hand-open {
  display: none;
}
.breathing-hands.exhaling .hand-closed {
  display: inline-block;
}
.breathing-hands.exhaling .icon {
  transform: translateY(8px);
}

.breathing-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* ============================================================
   Glossary Popovers
   ============================================================ */
.glossary-term {
  cursor: help;
  border-bottom: 1.5px dashed var(--secondary);
  transition: border-color 0.2s ease;
}
.glossary-term:hover {
  border-color: var(--primary);
}

.popover {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 280px;
}
.popover-header {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-bottom: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 12px 12px 0 0 !important;
}
.popover-body {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
}
.bs-popover-auto[data-popper-placement^=top] .popover-arrow::after,
.bs-popover-top .popover-arrow::after {
  border-top-color: var(--primary-soft);
}

/* ============================================================
   Celtic Knot Decorations
   ============================================================ */
.celtic-knot {
  position: absolute;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 3px rgba(197, 165, 90, 0.25));
  background: center / contain no-repeat;
}

/* Knot designs - gold strokes baked into single-source data-URIs */
.knot-a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='85' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='65' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Cpath d='M15 100 Q100 15 185 100 Q100 185 15 100' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Cpath d='M100 15 Q185 100 100 185 Q15 100 100 15' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='35' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='12' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E"); }

.knot-b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='55' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='35' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Cpath d='M45 100 Q100 45 155 100 Q100 155 45 100' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E"); }

.knot-c { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='55' cy='55' r='45' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='145' cy='55' r='45' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='145' r='45' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='55' cy='55' r='28' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='145' cy='55' r='28' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='145' r='28' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='20' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E"); }

.knot-d { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='88' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Crect x='22' y='22' width='156' height='156' rx='18' transform='rotate%2845 100 100%29' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='50' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='30' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='12' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E"); }

.knot-e { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='50' cy='50' r='42' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='150' cy='50' r='42' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='50' cy='150' r='42' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='150' cy='150' r='42' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='35' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Cpath d='M50 50 L150 150 M150 50 L50 150' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='10' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E"); }

.knot-f { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect x='12' y='12' width='176' height='176' rx='40' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Crect x='38' y='38' width='124' height='124' rx='28' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Cpath d='M12 100 Q100 12 188 100 Q100 188 12 100' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Cpath d='M100 12 Q188 100 100 188 Q12 100 100 12' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='18' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E"); }

.knot-g { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='88' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='70' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='45' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Ccircle cx='100' cy='100' r='28' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Cpath d='M12 100 L188 100 M100 12 L100 188' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3Cpath d='M30 30 L170 170 M170 30 L30 170' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' stroke-dasharray='8 5'/%3E%3Ccircle cx='100' cy='100' r='10' stroke='%23C5A55A' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E"); }

.celtic-knot--sm { width: 120px; height: 120px; }
.celtic-knot--md { width: 180px; height: 180px; }
.celtic-knot--lg { width: 280px; height: 280px; }
.celtic-knot--xl { width: 360px; height: 360px; }

.celtic-knot--tl { top: 1rem; left: 1rem; }
.celtic-knot--tr { top: 1rem; right: 1rem; }
.celtic-knot--bl { bottom: 1rem; left: 1rem; }
.celtic-knot--br { bottom: 1rem; right: 1rem; }
.celtic-knot--center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

@media (max-width: 768px) {
  .celtic-knot { display: none; }
}

/* Celtic knot animations */
@keyframes knot-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.celtic-knot--center.celtic-knot--xl {
  animation: knot-spin 60s linear infinite;
}

@keyframes knot-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.55; }
}
.celtic-knot.pulse {
  animation: knot-pulse 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .celtic-knot--center.celtic-knot--xl,
  .celtic-knot.pulse {
    animation: none;
  }
}

/* ============================================================
   Anxiety & Neurodivergence Section
   ============================================================ */
.anxiety-dialog {
  max-width: 720px;
  margin: 0 auto;
}

.dialog-line {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dialog-line--student {
  background: white;
  border-color: var(--secondary);
  margin-left: 1.5rem;
}

.dialog-speaker {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 3rem;
}

.dialog-line--student .dialog-speaker {
  color: var(--secondary-dark);
}

.anxiety-tip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: all var(--transition);
}

.anxiety-tip:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(74, 139, 139, 0.08);
  transform: translateY(-2px);
}

.anxiety-tip-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.anxiety-tip-icon .icon {
  font-size: 1.2rem;
  color: var(--primary);
}

.anxiety-tip h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.anxiety-tip p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.5;
}

.anxiety-closing {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.anxiety-closing p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

/* ============================================================
   School Avoidance - Young People Section
   ============================================================ */
.school-reflection {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.school-reflection p {
  margin-bottom: 1rem;
}

.school-quote {
  margin: 1.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dark);
}

.school-quote p {
  margin-bottom: 0;
}

.school-drawings {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.school-drawings img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border);
}

@media (max-width: 575.98px) {
  .school-drawings {
    flex-direction: column;
    align-items: center;
  }
  .school-drawings img {
    width: 180px;
    height: 180px;
  }
}

.school-cta p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   Workplace - Neurodivergent Struggles at Work
   ============================================================ */
.workplace-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.workplace-content p {
  margin-bottom: 1rem;
}

.workplace-content hr {
  border-color: var(--border);
  opacity: 0.5;
}

/* ============================================================
   Scope of Practice Notice
   ============================================================ */
.scope-notice {
  background: rgba(138, 163, 139, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

.scope-notice hr {
  margin-top: 0;
  border-color: var(--border);
  opacity: 0.3;
}

.scope-notice p {
  line-height: 1.6;
}

.scope-notice a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scope-notice a:hover {
  color: var(--primary-dark);
}

/* ============================================================
   Chronic Pain & Neurodivergence
   ============================================================ */
.chronic-pain-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.chronic-pain-content p {
  margin-bottom: 1rem;
}

/* ============================================================
   Neurodivergent Carers
   ============================================================ */
.carers-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.carers-content p {
  margin-bottom: 1rem;
}

/* ============================================================
   Breathing Guide - Bigger Button
   ============================================================ */
.breathing-trigger {
  padding: 0.85rem 1.5rem 0.85rem 1.2rem;
  font-size: 1.05rem;
  bottom: 2rem;
  right: 2rem;
}
.breathing-trigger .icon {
  font-size: 1.3rem;
}

/* Calm mode hides all decorative elements */
.calm-mode .anxiety-dialog,
.calm-mode .anxiety-tip,
.calm-mode .anxiety-closing {
  animation: none;
  transition: none;
}

.calm-mode .dialog-line,
.calm-mode .dialog-line--student {
  animation: none;
  transition: none;
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.6;
  }
  .top-bar,
  .footer-bar,
  .footer,
  .section-primary,
  #mainNav,
  .hero-wave,
  .celtic-knot,
  .breathing-trigger,
  .breathing-overlay,
  .skip-link,
  .btn-dyslexia,
  .nav-back {
    display: none !important;
  }
  .page-content {
    padding: 0 !important;
  }
  .page-content .container {
    max-width: 100%;
  }
  .page-content h1,
  .page-content h2,
  .page-content h3,
  .page-content strong {
    color: #000 !important;
  }
  .page-content p,
  .page-content li {
    color: #000 !important;
  }
  .page-content a {
    color: #000 !important;
    text-decoration: underline;
  }
  .page-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }
  .page-content a[href^="#"]::after {
    content: none;
  }
  .page-content hr {
    border-color: #ccc !important;
  }
  @page {
    margin: 2cm;
  }
}

/* ============================================================
   BLOG STYLES
   ============================================================ */

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-meta time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-article h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-article h3 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-article .lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-article p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.blog-article ul {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.blog-article li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.blog-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}

.blog-cta p {
  margin-bottom: 1rem;
  font-weight: 500;
}

.blog-cta .btn {
  margin: 0.25rem 0.5rem;
}

@media (max-width: 575.98px) {
  .blog-article h2 {
    font-size: 1.5rem;
  }
  .blog-cta {
    padding: 1.25rem;
  }
}
