/* ============================================================
   SoftRose — Design System
   style.css
   ============================================================ */

/* ------------------------------------------------------------
   1. Google Fonts Import
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');


/* ------------------------------------------------------------
   2. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Brand colours */
  --color-blue:         #7BB8E8;
  --color-blue-mid:     #5A9FD4;
  --color-purple:       #9B6BC4;
  --color-purple-light: #C084D4;
  --color-mauve:        #B56BB0;

  /* Brand gradient — used sparingly: CTAs, active states,
     accent borders, tag badges. Never full-page backgrounds. */
  --gradient-brand: linear-gradient(
    135deg,
    #7BB8E8 0%,
    #9B6BC4 50%,
    #B56BB0 100%
  );

  /* Text */
  --color-text-primary:   #2B2D3A;
  --color-text-secondary: #5A5C6E;
  --color-text-light:     #8C8EA0;

  /* Backgrounds */
  --color-bg-primary:   #F8F7F5;
  --color-bg-secondary: #FFFFFF;
  --color-bg-soft:      #F0EDF8;

  /* Borders */
  --color-border:     rgba(155, 107, 196, 0.15);
  --color-border-mid: rgba(155, 107, 196, 0.3);

  /* UI states */
  --color-focus:      #9B6BC4;
  --color-link:       #5A9FD4;
  --color-link-hover: #9B6BC4;

  /* Typography scale */
  --font-base: 'Plus Jakarta Sans', sans-serif;
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */
  --leading:   1.75;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-8);

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}


/* ------------------------------------------------------------
   3. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-link-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-base);
}

/* Focus visible — keyboard navigation */
:focus-visible {
  outline: 2.5px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}


/* ------------------------------------------------------------
   4. Skip Link (accessibility)
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--color-purple);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-4);
}


/* ------------------------------------------------------------
   5. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }

p {
  color: var(--color-text-secondary);
  line-height: var(--leading);
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-4);
}

strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

em {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* Heading size overrides at desktop — applied via utility classes */
.text-hero {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.15;
}

.text-xl  { font-size: var(--text-xl);  }
.text-lg  { font-size: var(--text-lg);  }
.text-sm  { font-size: var(--text-sm);  }
.text-xs  { font-size: var(--text-xs);  }

.text-primary   { color: var(--color-text-primary);   }
.text-secondary { color: var(--color-text-secondary); }
.text-light     { color: var(--color-text-light);     }
.text-center    { text-align: center; }
.text-italic    { font-style: italic; }

/* Gradient text utility */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section intro paragraph */
.section-intro {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 60ch;
  line-height: 1.6;
}


/* ------------------------------------------------------------
   6. Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* Section wrapper */
.section {
  padding-block: var(--space-16);
}

.section--sm {
  padding-block: var(--space-10);
}

.section--lg {
  padding-block: var(--space-24);
}

/* Background variants */
.bg-primary   { background-color: var(--color-bg-primary);   }
.bg-secondary { background-color: var(--color-bg-secondary); }
.bg-soft      { background-color: var(--color-bg-soft);      }

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* Flex helpers */
.flex         { display: flex; }
.flex-wrap    { flex-wrap: wrap; }
.flex-center  { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.gap-2        { gap: var(--space-2); }
.gap-3        { gap: var(--space-3); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }

/* Grid helpers */
.grid { display: grid; }

/* Card grid — mobile-first, 1 col → 2 → 3 */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Two-column content layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

/* Spacing utilities */
.mt-2  { margin-top: var(--space-2);  }
.mt-4  { margin-top: var(--space-4);  }
.mt-6  { margin-top: var(--space-6);  }
.mt-8  { margin-top: var(--space-8);  }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2);  }
.mb-4  { margin-bottom: var(--space-4);  }
.mb-6  { margin-bottom: var(--space-6);  }
.mb-8  { margin-bottom: var(--space-8);  }

/* Visually hidden (for screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ------------------------------------------------------------
   7. Navigation
   ------------------------------------------------------------ */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-1) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background-color var(--transition-base);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-purple);
  background-color: var(--color-bg-soft);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--color-purple);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: var(--space-2);
  transition: background-color var(--transition-base);
}

.nav-toggle:hover {
  background-color: var(--color-bg-soft);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-8) var(--space-6);
  background: rgba(248, 247, 245, 0.98);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background-color var(--transition-base);
}

.nav-mobile a:hover {
  color: var(--color-purple);
  background-color: var(--color-bg-soft);
}

.nav-mobile a.active,
.nav-mobile a[aria-current="page"] {
  color: var(--color-purple);
  background-color: var(--color-bg-soft);
}


/* ------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------ */
footer.site-footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  max-width: 36ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-8);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding-block: var(--space-1);
  transition: color var(--transition-base);
}

.footer-nav a:hover {
  color: var(--color-purple);
}

.footer-contact {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.footer-contact a {
  color: var(--color-link);
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--color-link-hover);
}

.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}


/* ------------------------------------------------------------
   9. Buttons
   ------------------------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--gradient-brand);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition-base);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.88;
  color: #fff;
}

.btn-primary:focus-visible {
  outline: 2.5px solid var(--color-focus);
  outline-offset: 3px;
}

.btn-primary--full {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-purple);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border: 2px solid var(--color-purple);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--color-bg-soft);
  color: var(--color-purple);
}

.btn-secondary:focus-visible {
  outline: 2.5px solid var(--color-focus);
  outline-offset: 3px;
}

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}


/* ------------------------------------------------------------
   10. Card
   ------------------------------------------------------------ */
.card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-mid);
}

/* Card as link wrapper */
a.card {
  text-decoration: none;
  display: block;
  color: inherit;
}

a.card:hover {
  color: inherit;
}

/* Card icon */
.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  flex-shrink: 0;
  color: var(--color-purple);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-purple);
}

/* Card heading */
.card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

/* Card body text */
.card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: none;
}

/* Card link arrow */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-purple);
  text-decoration: none;
  margin-top: var(--space-4);
  transition: gap var(--transition-base);
}

.card-link:hover {
  gap: var(--space-2);
  color: var(--color-purple);
}

/* Book card variant */
.card--book .book-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.card--book .book-author {
  font-size: var(--text-sm);
  color: var(--color-purple);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.card--book .book-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: none;
}


/* ------------------------------------------------------------
   11. Callout / Info Box
   ------------------------------------------------------------ */
.callout {
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading);
}

.callout p {
  max-width: none;
  color: var(--color-text-secondary);
}

.callout p:first-child {
  margin-top: 0;
}

/* Pull-quote variant */
.callout--pullquote {
  border-left-color: var(--color-blue-mid);
  padding: var(--space-6) var(--space-8);
}

.callout--pullquote blockquote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.callout--pullquote cite {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: normal;
}

/* Warning / avoid variant */
.callout--warning {
  border-left-color: #C0392B;
  background: #FDF5F4;
}

.callout--warning p {
  color: #5C2018;
}

/* Positive / recommended variant */
.callout--positive {
  border-left-color: #5A9FD4;
}

/* Crisis/urgent info variant */
.callout--urgent {
  border-left-color: #C0392B;
  background: #FDF5F4;
  font-weight: 500;
}

.callout--urgent p {
  color: #5C2018;
}


/* ------------------------------------------------------------
   12. Tag / Badge
   ------------------------------------------------------------ */
.tag {
  display: inline-block;
  background: var(--gradient-brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  line-height: 1.5;
  white-space: nowrap;
}

/* Subtle tag variant */
.tag--subtle {
  background: var(--color-bg-soft);
  color: var(--color-purple);
  border: 1px solid var(--color-border-mid);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.85rem;
}

/* Tag list container */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Tag column heading */
.tag-group-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}


/* ------------------------------------------------------------
   13. Stat Block
   ------------------------------------------------------------ */
.stat-block {
  text-align: center;
  padding: var(--space-8);
}

.stat-block .stat-number {
  font-size: var(--text-5xl);
  font-weight: 600;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
  display: block;
}

.stat-block .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 18ch;
  margin-inline: auto;
}

/* Stat strip layout */
.stat-strip {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stat-strip-grid .stat-block {
  padding: var(--space-8) var(--space-6);
}

.stat-strip-grid .stat-block + .stat-block {
  border-left: 1px solid var(--color-border);
}

.stat-strip-grid .stat-block:nth-child(n+3) {
  border-top: 1px solid var(--color-border);
}

.stat-source {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-light);
  padding-bottom: var(--space-6);
}


/* ------------------------------------------------------------
   14. Step Indicator
   ------------------------------------------------------------ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.step-content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  padding-top: var(--space-2);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: none;
}

/* Horizontal step indicator (home page) */
.steps-horizontal {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.steps-horizontal .step-connector {
  display: none;
}


/* ------------------------------------------------------------
   15. Checklist
   ------------------------------------------------------------ */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.checklist-item::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--color-border-mid);
  border-radius: 5px;
  margin-top: 2px;
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   16. Icon List (contact/services list)
   ------------------------------------------------------------ */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.icon-list-item .icon-list-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: var(--color-purple);
  margin-top: 2px;
  flex-shrink: 0;
}

.icon-list-item strong {
  display: block;
  color: var(--color-text-primary);
  font-weight: 600;
  margin-bottom: var(--space-1);
}


/* ------------------------------------------------------------
   17. Contact Banner
   ------------------------------------------------------------ */
.contact-banner {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  text-align: center;
}

.contact-banner h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.contact-banner p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}


/* ------------------------------------------------------------
   18. Hero Section
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
  padding-block: var(--space-16) var(--space-20);
}

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

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
  max-width: 20ch;
}

.hero .section-intro {
  margin-bottom: var(--space-8);
}

/* Decorative blob shapes */
.blob {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  background: var(--gradient-brand);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.blob-hero {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  bottom: -15%;
  right: -10%;
}

.blob-section {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  top: -20%;
  left: -5%;
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--color-bg-primary);
  padding-block: var(--space-12);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.page-hero .section-intro {
  max-width: 60ch;
}


/* ------------------------------------------------------------
   19. Section Heading Block
   ------------------------------------------------------------ */
.section-heading {
  margin-bottom: var(--space-10);
}

.section-heading h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.section-heading p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 56ch;
}

/* Centred variant */
.section-heading--center {
  text-align: center;
}

.section-heading--center p {
  margin-inline: auto;
}


/* ------------------------------------------------------------
   20. Co-occurring Conditions List
   ------------------------------------------------------------ */
.condition-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.condition-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  transition: background-color var(--transition-fast);
}

.condition-item:last-child {
  border-bottom: none;
}

.condition-item:hover {
  background: var(--color-bg-soft);
}

.condition-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--text-base);
  min-width: 14ch;
  flex-shrink: 0;
}

.condition-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}


/* ------------------------------------------------------------
   21. Tag Columns (autism traits)
   ------------------------------------------------------------ */
.tag-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}


/* ------------------------------------------------------------
   22. Disclaimer Block
   ------------------------------------------------------------ */
.disclaimer {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 70ch;
}


/* ------------------------------------------------------------
   23. Image / Media Placeholder
   ------------------------------------------------------------ */
.img-placeholder {
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  opacity: 0.12;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.img-placeholder--square {
  aspect-ratio: 1;
}

.img-placeholder--portrait {
  aspect-ratio: 3 / 4;
}


/* ------------------------------------------------------------
   24. Responsive — Tablet (768px+)
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  /* Typography */
  h1             { font-size: var(--text-4xl); }
  .text-hero     { font-size: var(--text-4xl); }

  /* Hero */
  .hero h1       { font-size: var(--text-4xl); }
  .page-hero h1  { font-size: var(--text-4xl); }

  /* Layout */
  .card-grid     { grid-template-columns: repeat(2, 1fr); }
  .two-col       { grid-template-columns: 1fr 1fr; }
  .tag-columns   { grid-template-columns: 1fr 1fr; }

  /* Steps — horizontal at tablet */
  .steps-horizontal {
    flex-direction: row;
    align-items: flex-start;
  }

  .steps-horizontal .step {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    position: relative;
  }

  .steps-horizontal .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0.3;
  }

  .steps-horizontal .step-content {
    text-align: center;
  }

  .steps-horizontal .step-content h3 {
    padding-top: 0;
  }

  /* Nav */
  .nav-toggle { display: none; }
  .nav-links  { display: flex; gap: var(--space-3); }
  .nav-links a { padding: var(--space-2); }

  /* Stat strip */
  .stat-strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-strip-grid .stat-block:nth-child(n+3) {
    border-top: none;
  }

  .stat-strip-grid .stat-block + .stat-block {
    border-left: 1px solid var(--color-border);
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: start;
  }

  /* Contact banner */
  .contact-banner {
    padding: var(--space-16) var(--space-20);
  }
}


/* ------------------------------------------------------------
   25. Responsive — Desktop (1200px+)
   ------------------------------------------------------------ */
@media (min-width: 1200px) {
  /* Typography */
  h1            { font-size: var(--text-5xl); }
  .text-hero    { font-size: var(--text-5xl); }

  /* Hero */
  .hero {
    padding-block: var(--space-20) var(--space-24);
  }

  .hero h1      { font-size: var(--text-5xl); max-width: 18ch; }
  .page-hero h1 { font-size: var(--text-4xl); }

  /* Nav — restore comfortable gap at desktop */
  .nav-links  { gap: var(--space-6); }
  .nav-links a { padding: var(--space-2) var(--space-3); }

  /* Card grid — 3 col */
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }

  /* Two-col with ratio control */
  .two-col--60-40 { grid-template-columns: 60fr 40fr; }
  .two-col--55-45 { grid-template-columns: 55fr 45fr; }

  /* Section spacing */
  .section     { padding-block: var(--space-20); }
  .section--lg { padding-block: var(--space-24); }
}


/* ------------------------------------------------------------
   26. Print
   ------------------------------------------------------------ */
@media print {
  nav.site-nav,
  footer.site-footer,
  .btn-primary,
  .btn-secondary,
  .blob,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card,
  .callout {
    break-inside: avoid;
  }
}


/* ------------------------------------------------------------
   27. Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
