/* =========================================================
   Singula Health: Phase 0 site styles
   Brand source: Singula_Template Colors and Style Guide.pptx
   (Mac Color Meter hex values, confirmed 2026-07-22)
   Typeface note: brand guide specifies Gotham. Gotham is a
   licensed commercial font with no free web-embed distribution,
   so this build substitutes Montserrat (a widely-used free
   geometric sans with similar proportions) via Google Fonts.
   Swap the @import + font-family below if/when a Gotham web
   license is available.
   ========================================================= */

:root {
  /* --- Singula Health brand colors (verified hex) --- */
  --navy-900: #023E74;   /* Dark Blue, primary, headline bg */
  --blue-700: #066489;   /* secondary blue */
  --blue-500: #0D99E4;   /* bright accent blue, shared Singula Health / Medical */
  --teal-600: #15C69F;   /* primary green/teal, first-word headline accent */
  --teal-400: #19EEBC;   /* light green, small elements ONLY, never body text/large fills */
  --gray-100: #F0F0F0;   /* neutral light, backgrounds only */
  --gray-400: #9C9C9C;   /* neutral mid, secondary text */
  --gray-700: #4F4F4F;   /* neutral dark, body copy on light bg */
  --white:    #FFFFFF;

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 720px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-500); }

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

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--white);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* --- Top bar / wordmark --- */
.topbar {
  padding: 18px 0;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.wordmark img {
  height: 26px;
  width: auto;
  display: block;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, var(--blue-700) 0%, var(--navy-900) 65%, var(--navy-900) 100%);
  color: var(--white);
  padding-bottom: 40px;
}
.hero .kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin: 6px 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.18;
  margin: 0 0 14px;
}
.hero h1 .accent { color: var(--teal-400); }
.hero p.lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin: 0 0 20px;
  max-width: 58ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  line-height: 1.3;
}
.chip strong {
  color: var(--teal-400);
  font-weight: 700;
}

/* --- CTA button (single, site-wide) --- */
.btn-primary {
  display: inline-block;
  background: var(--teal-600);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn-primary:hover { background: var(--teal-400); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

/* --- Content sections --- */
section.block {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-100);
}
section.block:last-of-type { border-bottom: none; }

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy-900);
  margin: 0 0 12px;
}
/* Brand green (teal-600) is only 2.2:1 contrast on white. It fails WCAG AA even
   for large bold text. Using the darker brand blue for light-background accents;
   teal stays reserved for dark backgrounds and small decorative elements
   (chips, buttons), matching the brand guide's "use light green only for
   elements" instruction. */
h2 .accent { color: var(--blue-700); }

.block p {
  margin: 0 0 12px;
  font-size: 15.5px;
}

.stage-block {
  background: var(--gray-100);
}
.stage-block .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
}
.stage-block p {
  font-size: 14.5px;
  color: var(--gray-700);
}
.stage-block strong { color: var(--navy-900); }

/* --- Contact form --- */
.form-section {
  background: var(--white);
}
.form-note {
  background: var(--gray-100);
  border-left: 4px solid var(--blue-500);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--gray-700);
  margin: 4px 0 22px;
}

form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
form.contact-form .field-full { grid-column: 1 / -1; }

@media (max-width: 520px) {
  form.contact-form { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 5px;
}
.field .optional {
  font-weight: 400;
  color: #6B6B6B; /* darkened from brand neutral gray-400 (#9C9C9C). That value
                     is only 2.75:1 contrast on white, below WCAG AA for text */
  text-transform: none;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1.5px solid var(--gray-100);
  background: var(--gray-100);
  border-radius: 8px;
  color: var(--gray-700);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 90px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--gray-700);
}
.checkbox-row input { margin-top: 3px; }

.form-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}
.form-status.visible { display: block; }
.form-status.info {
  background: #EAF4FB;
  color: var(--navy-900);
  border: 1px solid var(--blue-500);
}

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: none;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  padding: 18px 20px;
}
.cookie-banner.visible { display: block; }
.cookie-banner .wrap {
  max-width: 880px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  flex: 1 1 320px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie-banner .btn-decline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.cookie-banner .btn-decline:hover { border-color: var(--white); }
.cookie-banner .btn-accept {
  background: var(--teal-600);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.cookie-banner .btn-accept:hover { background: var(--teal-400); }

/* --- Footer --- */
footer.site-footer {
  padding: 28px 0 40px;
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
}
footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
footer.site-footer a {
  color: var(--white);
  text-decoration: underline;
}

/* --- Simple pages (thank-you / privacy) --- */
.simple-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.simple-page .wrap { padding-top: 48px; padding-bottom: 48px; }
.simple-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 5vw, 32px);
  color: var(--navy-900);
  margin: 0 0 14px;
}
.simple-page h1 .accent { color: var(--blue-700); }
.simple-page p { font-size: 16px; }
.back-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--blue-500);
  text-decoration: none;
}
.privacy-page.simple-page { display: block; min-height: 0; }
.privacy-page h2 {
  font-size: 18px;
  margin-top: 26px;
}
.privacy-page p, .privacy-page li { font-size: 15px; }
