/* ==========================================================================
   Dayhawk Telemammography — site styles
   Palette: Gold #f28b00 · Turquoise #2b99ab · Teal #0c7796 (brand spec)
   Sunrise arc (from logo): #e8402f → #f28b00 → #ffd400
   Display: Michroma · Body: Jost
   ========================================================================== */

:root {
  --ink: #12181b;
  --ink-2: #182125;
  --ink-3: #1f2b30;
  --paper: #f7f5f0;
  --white: #ffffff;
  --gold: #f28b00;
  --turq: #2b99ab;
  --teal: #0c7796;
  --teal-deep: #085d76;
  --red: #e8402f;
  --yellow: #ffd400;
  --text: #24313a;
  --text-soft: #53646e;
  --text-inverse: #e9f1f4;
  --text-inverse-soft: #9fb4bc;
  --line: #e2ddd3;
  --line-dark: #2a373d;
  --sunrise: linear-gradient(90deg, var(--red), var(--gold) 45%, var(--yellow));
  --radius: 14px;
  --shadow: 0 20px 50px -18px rgba(12, 119, 150, 0.25);
  --font-display: "Michroma", "Trebuchet MS", sans-serif;
  --font-body: "Jost", "Futura", "Century Gothic", sans-serif;
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.075rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

/* Visible keyboard focus for links, buttons, and other interactive elements
   (inputs keep their own box-shadow focus ring defined below). */
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; border-radius: 3px; }

/* Inline links inside running text carry an underline so they are not
   distinguished by color alone (WCAG 1.4.1). Nav items, buttons, footer
   link lists, and .text-link are excluded — they read as links by context. */
.prose a, .prose li a,
main p a:not(.btn):not(.text-link),
.consent a, .notice a { text-decoration: underline; text-underline-offset: 0.18em; }
::selection { background: var(--turq); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---- type ---- */
h1, h2, h3 { color: inherit; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.015em;
  text-transform: none;
}
h1.display { font-size: clamp(1.7rem, 4.2vw, 3.1rem); }
h2.display { font-size: clamp(1.35rem, 2.9vw, 2.1rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 3px;
  background: var(--sunrise);
  border-radius: 2px;
  flex: none;
}
.on-dark .eyebrow { color: var(--turq); }

.lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); font-weight: 300; color: var(--text-soft); max-width: 46em; }
.on-dark .lede { color: var(--text-inverse-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1c1204; }
.btn-gold:hover { background: #ff9d1c; color: #1c1204; box-shadow: 0 12px 30px -10px rgba(242, 139, 0, 0.55); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.on-dark .btn-outline { border-color: var(--turq); color: var(--turq); }
.on-dark .btn-outline:hover { background: var(--turq); color: var(--ink); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.text-link:hover { border-image: var(--sunrise) 1; border-bottom: 2px solid; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(18, 24, 27, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--sunrise);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
@media (max-width: 880px) { .brand img { height: 36px; } }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-inverse-soft);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-image: var(--sunrise) 1; border-bottom: 2px solid; }
.site-nav .btn { padding: 0.55rem 1.25rem; font-size: 0.92rem; }
/* Dark text on gold — 7.44:1 (AA). Explicit rule needed so it outranks
   the grey `.site-nav a` link color. */
.site-nav .btn-gold, .site-nav .btn-gold:hover { color: #1c1204; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line-dark); }
  .site-nav a[aria-current="page"] { border-image: none; border-bottom: 1px solid var(--line-dark); color: var(--gold); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---- sections ---- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.on-dark { background: var(--ink); color: var(--text-inverse); }
.on-dark-2 { background: var(--ink-2); color: var(--text-inverse); }
.on-white { background: var(--white); }

.section-head { max-width: 52em; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head p { margin-top: 1rem; }

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(43, 153, 171, 0.22), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(12, 119, 150, 0.18), transparent 60%),
    var(--ink);
  color: var(--text-inverse);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  max-width: 44em;
}
.hero h1 { margin: 0 0 1.4rem; color: #fff; }
.hero .lede { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 640px);
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
  filter: saturate(1.1);
}
@media (max-width: 700px) { .hero-mark { width: 90vw; right: -30%; opacity: 0.09; } }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--ink-2);
  padding: 1.4rem 1.6rem;
}
.stat .k {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--turq);
  display: block;
  margin-bottom: 0.45rem;
}
.stat .v { font-size: 1.12rem; font-weight: 500; color: #fff; }

/* ---- cards & grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(43, 153, 171, 0.4); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: 0.02em; }
.card p { color: var(--text-soft); font-size: 1rem; }
.card .tick { width: 2rem; height: 3px; background: var(--sunrise); border-radius: 2px; margin-bottom: 1.1rem; }

.on-dark .card, .on-dark-2 .card { background: var(--ink-3); border-color: var(--line-dark); }
.on-dark .card p, .on-dark-2 .card p { color: var(--text-inverse-soft); }
.on-dark .card h3, .on-dark-2 .card h3 { color: #fff; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem;
}
.step .num {
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--sunrise);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { color: #fff; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: 0.03em; }
.step p { color: var(--text-inverse-soft); font-size: 1rem; }

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; max-width: 780px; }
.team-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.6rem;
  align-items: start;
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.5); }
.team-card img {
  width: 168px;
  height: 224px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
}
.team-card .body { padding: 0; border-top: none; }
@media (max-width: 560px) {
  .team-card { grid-template-columns: 1fr; }
  .team-card img { width: 144px; height: 192px; }
}
.team-card .role {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #41b8cc; /* brightened turquoise — 6.19:1 on dark card (AA) */
  display: block;
  margin-bottom: 0.5rem;
}
.team-card h3 { color: #fff; font-size: 1.25rem; font-weight: 600; margin-bottom: 0.7rem; }
.team-card p { color: var(--text-inverse-soft); font-size: 0.98rem; margin-bottom: 0.7rem; }
.team-card p:last-child { margin-bottom: 0; }

/* ---- CTA bands ---- */
.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(242, 139, 0, 0.16), transparent 60%),
    linear-gradient(120deg, var(--teal-deep), var(--teal) 55%, var(--turq));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.band::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--sunrise);
}
.band h2 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 400; line-height: 1.3; max-width: 22em; }
.band p { color: rgba(255, 255, 255, 0.85); max-width: 40em; margin-top: 0.6rem; }
.band .eyebrow { color: #ffffff; margin-bottom: 0.7rem; }

/* ---- FAQ accordion ---- */
.faq-group { margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq-group > h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
.qa {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-weight: 500;
  font-size: 1.05rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  flex: none;
  transition: transform 0.2s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa[open] summary { border-bottom: 1px solid var(--line); }
.qa .a { padding: 1rem 1.3rem 1.2rem; color: var(--text-soft); }

/* ---- forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label.f-label { display: block; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 0.4rem; color: var(--text); }
label.f-label .req, .consent .req { color: #c62d1f; } /* darkened red — 5.53:1 on white (AA) */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--turq);
  box-shadow: 0 0 0 3px rgba(43, 153, 171, 0.18);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #c62d1f;
  box-shadow: 0 0 0 3px rgba(198, 45, 31, 0.15);
}
textarea { min-height: 150px; resize: vertical; }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.consent input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--teal); flex: none; }

.notice {
  border-left: 4px solid var(--gold);
  background: rgba(242, 139, 0, 0.08);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
  font-size: 0.98rem;
  color: var(--text);
}

.form-status { margin-top: 1rem; font-weight: 500; }
.form-status.err { color: var(--red); }
.form-status.ok { color: var(--teal); }

/* ---- contact page ---- */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-panel {
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
}
.contact-panel h3 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--turq); margin-bottom: 1.2rem; }
.contact-panel dl div { margin-bottom: 1.1rem; }
.contact-panel dt { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-inverse-soft); margin-bottom: 0.2rem; }
.contact-panel dd { font-size: 1.08rem; font-weight: 500; }
.contact-panel a { color: #fff; }
.contact-panel a:hover { color: var(--gold); }

/* ---- legal pages ---- */
.legal-banner {
  background: repeating-linear-gradient(-45deg, rgba(242, 139, 0, 0.13), rgba(242, 139, 0, 0.13) 12px, rgba(242, 139, 0, 0.05) 12px, rgba(242, 139, 0, 0.05) 24px);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 0.9rem 1.3rem;
  font-weight: 500;
  margin-bottom: 2.2rem;
}
.prose { max-width: 46em; }
.prose h2 { font-size: 1.3rem; font-weight: 600; margin: 2.2rem 0 0.8rem; letter-spacing: 0.02em; }
.prose h3 { font-size: 1.08rem; font-weight: 600; margin: 1.6rem 0 0.6rem; }
.prose p, .prose li { color: var(--text-soft); margin-bottom: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose .updated { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.4rem; }

/* ---- page hero (interior) ---- */
.page-hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(43, 153, 171, 0.2), transparent 60%),
    var(--ink);
  color: var(--text-inverse);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.8rem);
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero .lede { margin-top: 0.4rem; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--text-inverse-soft); }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--sunrise); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand img { height: 88px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; max-width: 26em; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--turq);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--text-inverse-soft); font-size: 0.98rem; }
.site-footer a:hover { color: #fff; }
.footer-phi { font-size: 0.88rem; line-height: 1.55; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding: 1.3rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* ---- cookie banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 2rem));
  background: var(--ink-2);
  color: var(--text-inverse);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  padding: 1.2rem 1.4rem;
  z-index: 100;
  display: none;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.93rem; color: var(--text-inverse-soft); flex: 1 1 320px; }
.cookie-banner a { color: var(--turq); }
.cookie-banner .btn { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- misc ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #1c1204;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
