/* ============================================================
   BluePeak Health — Brand Stylesheet
   Built from BluePeak Health Brand Guidelines (Swiss Modernism)
   ============================================================ */

:root {
  /* Brand colors — per Brand Guidelines §2 */
  --navy: #00205B;
  --cyan: #0085CA;
  --slate-text: #1E293B;
  --slate-muted: #475569;
  --slate-faint: #94A3B8;
  --bg-light: #F4F6F9;
  --white: #FFFFFF;
  --border-hair: #E2E8F0;

  /* Type */
  --font-brand: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Grid */
  --container: 1180px;
  --gutter: 24px;
  --radius: 2px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-brand);
  color: var(--slate-text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography scale ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 18px; color: var(--slate-text); }

.lede {
  font-size: 1.2rem;
  color: var(--slate-muted);
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}

.eyebrow--on-navy { color: #6FC6EE; }

.text-white { color: var(--white); }
.text-muted { color: var(--slate-muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--cyan { background: var(--cyan); color: var(--white); }
.btn--cyan:hover { background: #006B9E; }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #001640; }

.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-hair);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo svg { height: 60px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  text-decoration: none;
  border-bottom-color: var(--cyan);
}

.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-size: 0.86rem; font-weight: 700; color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

.nav-links-mobile { display: none; }

/* ---------- Hero (with geometric watermark) ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -14%;
  transform: translateY(-50%);
  width: 62vw;
  max-width: 820px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 680px; }

.hero h1 { color: var(--white); margin-bottom: 22px; }

.hero .lede { color: #C8D6EA; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section framing ---------- */

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--light { background: var(--bg-light); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  height: 2px;
  background: var(--cyan);
  border: none;
  margin: 0;
}

/* ---------- Grid utilities ---------- */

.grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(12, 1fr);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 36px 32px;
  height: 100%;
}

.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--slate-muted); }

.motif-glyph { margin-bottom: 22px; }
.motif-glyph svg { display: block; }

/* Stat block */
.stat {
  border-left: 3px solid var(--cyan);
  padding-left: 20px;
}
.stat .stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat .stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-muted);
  font-weight: 700;
}

/* Process / numbered steps (real sequence — referral workflow) */
.step {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-hair);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 { margin-bottom: 6px; }
.step-body p { margin-bottom: 0; color: var(--slate-muted); }

/* Person / clinician card */
.person {
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius);
}
.person-photo {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-hair);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-faint);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.person-body { padding: 22px 24px; }
.person-body .role {
  display: block;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.person-body h4 { margin-bottom: 2px; }
.person-body .creds { color: var(--slate-muted); font-size: 0.9rem; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border-hair);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.4rem;
  color: var(--cyan);
  font-weight: 400;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-a { padding: 0 0 28px; color: var(--slate-muted); max-width: 760px; }

/* Callout / placeholder note (for internal editing, remove before launch) */
.editor-note {
  background: #FFF7E6;
  border: 1px dashed #D9A441;
  color: #7A5309;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin: 0 0 20px;
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
input, select, textarea, button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-brand);
  font-size: 1rem;
  color: var(--slate-text);
  background: var(--white);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  padding: 13px 14px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23475569'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}
textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--slate-faint);
  padding: 64px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--slate-faint); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }

.footer-address p { color: var(--slate-faint); font-size: 0.92rem; margin-bottom: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6FC6EE;
}

.footer-legal { font-size: 0.8rem; color: var(--slate-faint); }
.footer-legal a { color: var(--slate-faint); text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-watermark { opacity: 0.06; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-row.open + .nav-links-mobile { display: flex; }
  .nav-links-mobile {
    display: none;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 8px 0 20px;
    border-top: 1px solid var(--border-hair);
  }
  .nav-links-mobile a {
    display: block;
    padding: 14px 4px;
    color: var(--navy);
    font-weight: 700;
    border-bottom: 1px solid var(--border-hair);
  }
  .brand-logo svg { height: 44px; }
  .hero { padding: 70px 0 64px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

/* ---------- Blog ---------- */

.blog-list { max-width: 760px; }
.blog-card { padding: 32px 0; border-bottom: 1px solid var(--border-hair); }
.blog-card:last-child { border-bottom: none; }
.blog-card-date {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.blog-card h2 a { color: var(--navy); }
.blog-card h2 a:hover { color: var(--cyan); }
article.section h2 { margin-top: 40px; font-size: 1.5rem; }
