/* ============================================================
   Youth Mental Health Map – styles.css
   Colors & fonts extracted from the live Squarespace site.css
   ============================================================ */

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

/* ----- Design tokens (exact values from site.css :root) ----- */
:root {
  --white-hsl:       0, 0%, 100%;
  --black-hsl:       229.71, 43.21%, 15.88%;   /* dark navy  #1A2044 */
  --accent-hsl:      294.17, 100%, 79.8%;       /* pink/orchid #F598FF */
  --lightAccent-hsl: 226.5, 100%, 84.31%;       /* periwinkle #AFC1FF */
  --darkAccent-hsl:  226.42, 85.09%, 68.43%;    /* cornflower #6A89F3 */

  --white:       hsl(var(--white-hsl));
  --black:       hsl(var(--black-hsl));
  --accent:      hsl(var(--accent-hsl));
  --lightAccent: hsl(var(--lightAccent-hsl));
  --darkAccent:  hsl(var(--darkAccent-hsl));

  /* Surface colours */
  --bg-periwinkle: hsl(var(--lightAccent-hsl));   /* light sections & footer */
  --border:        hsl(226.5, 50%, 80%);

  /* Typography (from site.css) */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Raleway', sans-serif;

  --max-width: 1500px;
  --radius-pill: 100px;
  --radius-sm:   8px;
}

/* ----- Base ----- */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--darkAccent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Headings: Space Grotesk, weight 500, tight letter-spacing */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--black);
  margin-bottom: 0.5em;
}

/* Squarespace formula: calc((size_value - 1) * 1.2vw + 1rem)
   size values: h1=4.6, h2=3.1, h3=2.6
   line-height: 1.2 * (1 + (1 - size_value) / 25) */
h1 { font-size: clamp(2rem,   4.32vw + 1rem, 4.6rem); line-height: 1.03; }
h2 { font-size: clamp(1.5rem, 2.52vw + 1rem, 3.1rem); line-height: 1.10; margin-top: 1.4em; }
h3 { font-size: clamp(1.1rem, 1.92vw + 1rem, 2.6rem); line-height: 1.12; margin-top: 1em; }

p  { margin-bottom: 1em; }
ul { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.35em; }

/* ----- Layout ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4vw;
}

.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.section { padding: 4rem 0; }


/* ----- Header / Nav ----- */
.site-header {
  background: var(--bg-periwinkle);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.16vw + 0.65rem, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}
.brand-name:hover { opacity: 0.75; text-decoration: none; }

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.25vw + 0.9rem, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  padding: 0.1em 0;
  /* Active underline via background-image (matches Squarespace technique) */
  background-image: none;
  background-repeat: repeat-x;
  background-size: 1px 1px;
  background-position: 0 calc(100% - 0.1em);
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.15s;
}
.main-nav a:hover  { opacity: 0.75; text-decoration: none; }
.main-nav a.active {
  background-image: linear-gradient(var(--white), var(--white));
}


/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 32px;
  min-height: 48px;
  border-radius: 300px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.1s linear;
}
.btn:hover { opacity: 0.75; text-decoration: none; }

.btn-primary {
  background: rgb(0, 0, 0);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--darkAccent);
  border: 2px solid var(--darkAccent);
}

.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover { opacity: 0.85; }


/* ----- Hero ----- */
/* Outer section: periwinkle background + bottom padding strip */
.hero {
  background: var(--bg-periwinkle);
  padding-bottom: 2.5rem;
}

/* Image wrapper: contains the bg image, overlay, and all hero content */
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 4.5rem 0 2.5rem;
  max-width: 92vw;
  margin: 0 auto;
}

/* Dark navy overlay */
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: hsla(229.71, 43.21%, 15.88%, 0.51);
  z-index: 0;
}

.hero-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Hero h1: periwinkle on the dark image */
.hero h1 {
  color: var(--lightAccent);
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.094vw + 1.1rem, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.hero-privacy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

/* Disclaimer box sits INSIDE the hero text area */
.hero-disclaimer {
  max-width: 560px;
  margin: 0 auto;
  background: hsla(var(--white-hsl), 0.12);
  border: 1px solid hsla(var(--white-hsl), 0.3);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}
.hero-disclaimer p { margin-bottom: 0; }
.hero-disclaimer a { color: var(--lightAccent); }


/* ----- How It Works ----- */
.section-how {
  background: var(--white);
  padding-top: 3rem;   /* reduced because hero chevron already gives visual separation */
}

.section-how h2 { margin-top: 0; text-align: center; font-size: clamp(1.8rem, 4.32vw + 1.044rem, 6rem); line-height: 1.03; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

/* Step 2 is offset downward on the original (starts 5 grid rows lower than steps 1 & 3) */
.steps-grid .step:nth-child(2) {
  margin-top: clamp(4rem, 10.75vw, 8rem);
}

.step { text-align: center; }

/* Circular phone screenshots — all three circles are the same grid size in the original */
.step-img {
  width: clamp(200px, 20vw, 280px);
  height: clamp(200px, 20vw, 280px);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-periwinkle);
}

/* Middle step: accent (pink) background */
.step-img--featured {
  background: var(--accent);
}

/* Step 3: darkAccent (cornflower blue) background */
.step-img--blue {
  background: var(--darkAccent);
}

.step-img img {
  width: 70%;
  height: 100%;
  object-fit: contain;
}

.step-number {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.281vw + 1.04rem, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--black);
  text-align: center;
  margin-bottom: 0.5em;
  overflow: visible;
}

/* Q-shaped hand-drawn circle around step number (exact Squarespace SVG path) */
.step-circle {
  position: relative;
  display: inline-block;
}

.step-circle-svg {
  position: absolute;
  width: 1em;
  height: 1.8em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  overflow: visible;
  pointer-events: none;
}

.step h3 {
  margin-top: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.28vw + 0.93rem, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-align: center;
}
.step p:not(.step-number) { font-size: 0.9rem; color: hsla(var(--black-hsl), 0.65); margin-bottom: 0; text-align: center; }


/* ----- Clinician CTA (dark navy section) ----- */
.section-dark {
  background: var(--black);
  padding: 5rem 0;
}
.section-interpret {
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.section-dark h2 { color: var(--white); margin-top: 0; }
.section-dark p  { color: rgba(255, 255, 255, 0.82); }

.interpret-card {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  border-radius: 22px;
  padding: 12%;
  background: var(--white);
}
.interpret-card p  { color: var(--black); margin-bottom: 1rem; }
.interpret-card ul { list-style: disc; display: inline-block; text-align: left; color: hsla(var(--black-hsl), 0.82); }
.interpret-card li { margin-bottom: 0.6rem; }
.interpret-card li p { color: hsla(var(--black-hsl), 0.82); margin-bottom: 0; }

.clinician-cta {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.clinician-cta p { margin-bottom: 1.5rem; }
.clinician-cta a { color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; }

.clinician-video {
  width: 100%;
  max-width: 680px;
  margin: 2rem auto 2.5rem;
  aspect-ratio: 16 / 9;
}
.clinician-video video {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}


/* ----- Inner-page hero (for non-index pages) ----- */
.page-hero {
  background: var(--bg-periwinkle);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1   { margin-bottom: 0.3rem; }
.page-lead {
  font-size: 1.1rem;
  color: hsla(var(--black-hsl), 0.65);
  margin-bottom: 0;
}


/* ----- Dimension cards (Clinician Guide) ----- */
.dimension-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.dimension-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  box-shadow: 0 2px 8px hsla(var(--darkAccent-hsl), 0.08);
  text-align: center;
}
.dimension-card h4 { margin-top: 0; color: var(--darkAccent); font-family: var(--font-heading); font-size: clamp(1.2rem, 1.37vw + 1.01rem, 2.5rem); letter-spacing: -0.05em; line-height: 1.2; }
.dimension-card p  { color: var(--black); }
.dimension-card ul { display: inline-block; text-align: left; margin-bottom: 0; }
.dimension-card li { color: var(--black); }

.guide-list { list-style: none; padding-left: 0; }
.guide-list li {
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.guide-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--darkAccent);
}
.guide-list li:last-child { border-bottom: none; }


/* ----- FAQ ----- */
.section-faq-hero {
  background: linear-gradient(rgba(23, 29, 58, 0.44), rgba(23, 29, 58, 0.44)),
              url('/static/images/map.jpg') center / cover no-repeat;
  padding: clamp(5rem, 8.5vw, 8rem) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-faq-hero h1 { color: var(--white); margin: 0; }

.faq-list { margin: 0 auto; max-width: 1000px; }

.faq-item {
  text-align: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child  { border-bottom: none; }
.faq-item h4 { margin-top: 0; margin-bottom: 2rem; color: #000; font-family: var(--font-heading); font-size: clamp(1.2rem, 1.37vw + 1.01rem, 2.5rem); letter-spacing: -0.05em; line-height: 1.2; }
.section-light .faq-item p  { color: var(--white); margin-bottom: 0; }
.section-light .faq-item a  { color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; }

/* ----- Research CTA (About) ----- */
.section-research {
  min-height: clamp(20rem, 32vw, 34rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.research-content {
  max-width: 625px;
}
.section-research h1 { color: var(--black); margin-top: 0; }
.section-research p  { color: var(--black); }
.section-research a  { color: var(--black); }


/* ----- Team (About) ----- */
.team-intro { align-items: center; }
.team-intro > div:first-child p { margin-bottom: 2em; }


.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}

.team-member--last {
  grid-column: 1 / -1;
  justify-self: center;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.team-photo {
  width: 219px;
  height: 219px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.team-info strong { display: block; color: var(--black); font-size: 0.9rem; }


/* ----- Callout ----- */
.callout {
  background: var(--bg-periwinkle);
  border-left: 4px solid var(--darkAccent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin-top: 2.5rem;
}
.callout p { margin-bottom: 0; }


/* ----- Contact form ----- */
.contact-form { max-width: 540px; margin-top: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsla(var(--black-hsl), 0.65);
  margin-bottom: 0.4rem;
}

.required { color: #c0392b; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--darkAccent);
  box-shadow: 0 0 0 3px hsla(var(--darkAccent-hsl), 0.18);
}

.form-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}
.form-msg.error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c6; }
.form-msg.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }


/* ----- Section helpers ----- */
.section-light {
  background: var(--bg-periwinkle);
  padding: clamp(3rem, 6.6vw, 6rem) 0;
  color: var(--black);
  font-size: clamp(1rem, 0.24vw + 1rem, 1.3rem);
  line-height: 1.5;
}
.section-light h2 { color: var(--black); margin-top: 0; font-size: clamp(1.6rem, 2.56vw + 1rem, 4.2rem); line-height: 1.10; }
.section-light h3 { color: var(--black); }
.section-light p  { color: var(--black); }

.content-narrow h2:first-child { margin-top: 0; }

/* ----- Contact two-column layout ----- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}
.contact-split-content {
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}
.contact-split-image {
  position: relative;
  overflow: hidden;
}
.contact-split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-split-image { min-height: 260px; position: relative; }
}

/* Two-column split: heading left (~40%), body right (~55%) */
.split-section {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 2rem 4rem;
  align-items: start;
}
.split-section h2 { margin-top: 0; }
@media (max-width: 767px) {
  .split-section { grid-template-columns: 1fr; }
}


/* ----- Footer ----- */
.site-footer {
  background: var(--bg-periwinkle);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 0.6875vw + 1.178rem, 2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
  color: var(--darkAccent);
}

.site-footer a {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.091vw + 1.21rem, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: rgb(0, 0, 0);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer a:hover { opacity: 0.75; text-decoration: underline; }

.footer-copy {
  width: 100%;
  font-size: 0.78rem;
  color: hsla(var(--black-hsl), 0.4);
  margin-top: 0.5rem;
}


/* ----- Responsive ----- */
@media (max-width: 700px) {
  /* clamp min values already handle small screens; these are safety overrides */
  .header-inner  { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .main-nav a    { padding: 0.3rem 0.6rem; font-size: 0.83rem; }
  .hero          { padding-bottom: 3rem; }
  .hero-image    { padding: 3rem 0 1.5rem; }
  .steps-grid    { grid-template-columns: 1fr; }
  .step-img      { width: 160px; height: 160px; }
  .step-img--featured { width: 200px; height: 200px; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }
  .dimension-cards { grid-template-columns: 1fr; }
}
