/* ==========================================================================
   Coreo — components.css
   Buttons, cards, stats, numbered lists, quotes, media frames, video,
   bios, references, and the contact form.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — plum */
.btn--primary {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
  box-shadow: 0 6px 18px rgba(140, 35, 110, 0.24);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 10px 26px rgba(140, 35, 110, 0.34);
}

/* Secondary — teal outline */
.btn--secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn--secondary:hover {
  background: var(--teal);
  color: #fff;
}

/* On the teal hero card and other saturated panels */
.btn--on-teal {
  background: #fff;
  border-color: #fff;
  color: var(--plum);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.btn--on-teal:hover { background: #fff; color: var(--plum); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn--ghost-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--plum);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Inline text link with a trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   2. Cards
   -------------------------------------------------------------------------- */
.card {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-edge);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; }

/* Card with a teal rule across the top */
.card--ruled { border-top: 3px solid var(--teal); }

/* --------------------------------------------------------------------------
   3. Statistic cards
   -------------------------------------------------------------------------- */
.stat {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat__value {
  display: block;
  margin-bottom: 10px;
  color: var(--plum);
  font-size: clamp(2.35rem, 1.9rem + 1.7vw, 3.1rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stat__label {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-mid);
}

/* --------------------------------------------------------------------------
   4. Numbered sequences
   -------------------------------------------------------------------------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }

.steps__item {
  position: relative;
  counter-increment: step;
  padding: 0 0 0 68px;
}
.steps__item + .steps__item { margin-top: 32px; }

.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps__item h3 { margin-bottom: 8px; }
.steps__item p { font-size: 0.99rem; }

/* Navy variant — the one section where navy carries the accent */
.steps--navy .steps__item::before { background: var(--navy); }

/* --------------------------------------------------------------------------
   5. Callout — closing statement in a tinted panel
   -------------------------------------------------------------------------- */
.callout {
  padding: 34px 38px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--teal-wash);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink);
}
.callout--plum { border-left-color: var(--plum); background: var(--plum-wash); }

/* --------------------------------------------------------------------------
   6. Pull quote
   -------------------------------------------------------------------------- */
.quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
  padding: 40px 42px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  box-shadow: var(--shadow-sm);
}

.quote__portrait {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 0 0 4px var(--plum-wash);
}

.quote__text {
  margin: 0 0 18px;
  font-size: clamp(1.08rem, 1.0rem + 0.4vw, 1.28rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
}

.quote__cite {
  display: block;
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--ink-soft);
}
.quote__cite strong { display: block; color: var(--ink); font-weight: 650; }

/* --------------------------------------------------------------------------
   7. Media frames
   -------------------------------------------------------------------------- */
.media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Fixed-ratio variants so images crop predictably instead of reflowing */
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--band { aspect-ratio: 21 / 8; }

/* Small teal square offset behind an image, used sparingly */
.media-framed { position: relative; }
.media-framed::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 46%;
  height: 52%;
  border-radius: var(--radius);
  background: var(--teal-wash);
  z-index: -1;
}

/* Diagram panel — diagrams need room and a neutral backdrop */
.diagram {
  padding: clamp(22px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.diagram img { width: 100%; margin-inline: auto; }
.diagram figcaption {
  margin-top: 20px;
  text-align: center;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

/* Diagrams are wide; let them scroll rather than shrink to illegibility */
@media (max-width: 640px) {
  .diagram__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram__scroll img { min-width: 540px; }
}

/* --------------------------------------------------------------------------
   8. Video player (origin story) — click to play, with controls
   -------------------------------------------------------------------------- */
.video-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
}

/* Custom play affordance shown until the video is first started */
.video-player__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(18,38,46,0.20), rgba(18,38,46,0.45));
  cursor: pointer;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.video-player.is-playing .video-player__play { opacity: 0; visibility: hidden; }

.video-player__play span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.video-player__play:hover span { transform: scale(1.08); background: var(--teal); }

.video-player__play span::before {
  content: "";
  width: 0; height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
}

.video-player__label {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  color: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.video-player.is-playing .video-player__label { opacity: 0; visibility: hidden; }

@media (max-width: 640px) {
  .video-player__play span { width: 64px; height: 64px; }
  .video-player__play span::before { border-width: 12px 0 12px 20px; }
}

/* --------------------------------------------------------------------------
   9. Bio cards (About page + team snapshot)
   -------------------------------------------------------------------------- */
.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.bio__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-md);
}

.bio__role {
  display: block;
  margin: -4px 0 16px;
  color: var(--teal);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bio__body p { font-size: 0.99rem; }

/* Compact bio used for advisors and the medical board */
.bio--compact { grid-template-columns: 140px 1fr; gap: 28px; }
.bio--compact .bio__photo { border-radius: 50%; }

@media (max-width: 640px) {
  .bio,
  .bio--compact { grid-template-columns: 1fr; gap: 22px; }
  .bio__photo { max-width: 190px; }
}

/* --------------------------------------------------------------------------
   10. Audience / CTA cards
   -------------------------------------------------------------------------- */
.audience {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.audience:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
}
.audience h3 { margin-bottom: 2px; font-size: 1.22rem; }
.audience p { flex: 1; margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; }
.audience .link-arrow { color: #fff; }
.audience .link-arrow:hover { color: #fff; }

/* --------------------------------------------------------------------------
   11. Definition-style "Coreo is not" list
   -------------------------------------------------------------------------- */
.not-list { margin: 0; padding: 0; list-style: none; }
.not-list li {
  position: relative;
  padding: 20px 0 20px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 0.99rem;
}
.not-list li:first-child { border-top: 1px solid var(--line); }
.not-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 30px;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--plum);
}
.not-list strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   12. References
   -------------------------------------------------------------------------- */
.references {
  padding-block: 52px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}
.references h2 {
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.references ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.65;
}
.references li + li { margin-top: 9px; }
.references li:target { color: var(--navy); }

/* --------------------------------------------------------------------------
   13. Contact form
   -------------------------------------------------------------------------- */
.form {
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form__grid > .field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.field label .req { color: var(--plum); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.97rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}
.field textarea { min-height: 150px; resize: vertical; }

.form__note { margin-top: 16px; font-size: 0.83rem; color: var(--ink-soft); }

/* Netlify's spam honeypot. Hidden from people, still present for bots to trip
   over. Kept out of the tab order and off the accessibility tree. */
.form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form__status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  display: none;
}
.form__status.is-success {
  display: block;
  background: var(--teal-wash);
  border-left: 3px solid var(--teal);
  color: var(--ink);
}
.form__status.is-error {
  display: block;
  background: var(--plum-wash);
  border-left: 3px solid var(--plum);
  color: var(--ink);
}

@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   14. Panel — an emphasized block for a feature that needs its own space
   -------------------------------------------------------------------------- */
.panel {
  padding: clamp(28px, 3.4vw, 50px);
  border: 1px solid var(--teal-edge);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.panel--tint { background: var(--teal-wash); box-shadow: none; }

/* Sub-blocks inside a panel */
.panel__item + .panel__item {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.panel__item h4 {
  margin-bottom: 8px;
  color: var(--plum);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   15. Signature block — a named attribution closing a first-person section
   -------------------------------------------------------------------------- */
.signature {
  display: inline-block;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 3px solid var(--teal);
}
.signature .name { margin: 0; font-weight: 700; color: var(--ink); }
.signature .role { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   16. Credential list — the bulleted appointments under an advisor's name
   -------------------------------------------------------------------------- */
.creds { margin: 0; padding: 0; list-style: none; }
.creds li {
  position: relative;
  padding-left: 20px;
  font-size: 0.97rem;
}
.creds li + li { margin-top: 8px; }
.creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   17. Misc
   -------------------------------------------------------------------------- */
.partner-logo {
  display: inline-block;
  padding: 22px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.partner-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner-logo img { height: 54px; width: auto; }

.contact-block {
  padding: 34px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact-block .name { margin: 0 0 2px; font-size: 1.16rem; font-weight: 700; color: var(--ink); }
.contact-block .role { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.94rem; }
.contact-block .email { font-size: 1.02rem; font-weight: 600; }

@media (max-width: 640px) {
  .quote { grid-template-columns: 1fr; gap: 20px; padding: 30px 24px; }
  .callout { padding: 26px 24px; }
  .card, .stat { padding: 26px 22px; }
  .steps__item { padding-left: 56px; }
  .steps__item::before { width: 40px; height: 40px; font-size: 0.95rem; }
}
