/* ==========================================================================
   Connect — Dr. Monica Simon
   Brand colors live in :root below. Change them here and nowhere else.
   ========================================================================== */

:root {
  /* ---- Brand palette (single source of truth) ---- */
  --graphite: #1A202C;
  --ivory: #F5F2EB;
  --ocean-teal: #006D77;
  --terracotta: #E07A5F;
  --sage: #A3B18A;
  --lavender: #6D597A;

  /* ---- Derived tones (mixed only from the palette above) ---- */
  --text: var(--graphite);
  --text-soft: color-mix(in srgb, var(--graphite) 78%, var(--ivory));
  --surface: color-mix(in srgb, var(--ivory) 55%, white);
  --line: color-mix(in srgb, var(--graphite) 16%, var(--ivory));
  --tint-sage: color-mix(in srgb, var(--sage) 30%, var(--ivory));
  --tint-lavender: color-mix(in srgb, var(--lavender) 13%, var(--ivory));
  --tint-teal: color-mix(in srgb, var(--ocean-teal) 11%, var(--ivory));
  --tint-terracotta: color-mix(in srgb, var(--terracotta) 18%, var(--ivory));
  --shadow: 0 1px 2px color-mix(in srgb, var(--graphite) 8%, transparent),
            0 6px 18px color-mix(in srgb, var(--graphite) 6%, transparent);

  /* ---- Type & spacing ---- */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --gutter: 20px;
  --tap: 56px; /* comfortably above the 44px minimum */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }

a { color: var(--ocean-teal); }

/* ---- Focus: always visible ---- */
:focus-visible {
  outline: 3px solid var(--ocean-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--graphite);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.site-header { padding-block: 22px 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--graphite);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ocean-teal);
}

main { flex: 1; padding-block: 12px 40px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean-teal);
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(2rem, 8.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 750;
}

h1 + .rule { margin-top: 16px; }
.rule {
  width: 44px; height: 4px;
  border-radius: 2px;
  background: var(--terracotta); /* decorative accent only */
}

.lede {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 34ch;
}
.lede.wide { max-width: 46ch; }

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

/* ---- Choice cards ---- */
.cards {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--ocean-teal); transform: translateY(-1px); }
.card:active { transform: translateY(0); }
.card:focus-visible { border-radius: var(--radius); }

.card-counseling { background: var(--tint-sage); }
.card-grief      { background: var(--tint-lavender); }
.card-eap        { background: var(--tint-teal); }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ocean-teal);
}
.card-grief .card-icon { color: var(--lavender); }
.card-icon svg { width: 26px; height: 26px; }

.card-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card-text {
  display: block;
  margin-top: 4px;
  font-size: 0.9875rem;
  line-height: 1.4;
  color: var(--text-soft);
}
.card-arrow { color: var(--ocean-teal); display: grid; place-items: center; }
.card-grief .card-arrow { color: var(--lavender); }
.card-arrow svg { width: 22px; height: 22px; }

.card[aria-disabled="true"] {
  cursor: default;
  opacity: 0.75;
  transform: none;
}
.card[aria-disabled="true"]:hover { border-color: var(--line); transform: none; }

/* ---- Buttons ---- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ocean-teal);
  background: var(--ocean-teal);
  color: var(--ivory);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: color-mix(in srgb, var(--ocean-teal) 85%, var(--graphite)); border-color: color-mix(in srgb, var(--ocean-teal) 85%, var(--graphite)); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn-secondary {
  background: transparent;
  color: var(--graphite);
  border-color: var(--graphite);
}
.btn-secondary:hover { background: var(--graphite); border-color: var(--graphite); color: var(--ivory); }

.btn-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
}

/* ---- Text link rows ---- */
.link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--ocean-teal);
  font-weight: 650;
  text-decoration: none;
}
.link-row:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-row svg { width: 18px; height: 18px; }

.back-nav {
  margin-top: 36px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ---- EAP list & search ---- */
.search { margin-top: 24px; }
.search label { display: block; font-weight: 650; margin-bottom: 6px; }
.search input {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--graphite);
  border-radius: var(--radius-sm);
}
.search input:focus-visible { outline-offset: 2px; border-radius: var(--radius-sm); }

.org-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.org-list .card { grid-template-columns: 1fr auto; min-height: 72px; background: var(--surface); }

.empty { margin-top: 20px; color: var(--text-soft); }

/* ---- Organization page ---- */
.panel {
  margin-top: 24px;
  padding: 22px;
  background: var(--tint-teal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.phone-label { font-size: 0.9rem; font-weight: 650; color: var(--text-soft); }
.phone-number {
  display: inline-block;
  margin: 2px 0 18px;
  min-height: 44px;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--graphite);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.phone-number:hover { text-decoration: underline; text-underline-offset: 5px; }

.actions { display: grid; gap: 12px; }
.actions + .btn-note { margin-top: 12px; }

.desc { margin-top: 20px; color: var(--text); }

.steps {
  margin: 22px 0 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}
.steps li + li { margin-top: 6px; }

.extra { margin-top: 12px; }

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--tint-terracotta);
  border: 1px solid var(--terracotta);
  border-radius: var(--radius-sm);
  font-size: 0.975rem;
}
.notice strong { font-weight: 700; }

.fine {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---- Footer ---- */
.site-footer {
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }

/* ---- Larger screens ---- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .wrap { max-width: 640px; }
  .site-header { padding-top: 40px; }
  main { padding-top: 32px; }
  .actions.two { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .card:hover { transform: none; }
}

/* Windows high-contrast / forced colors */
@media (forced-colors: active) {
  .card, .btn, .panel { border: 2px solid CanvasText; }
}
