/* ST3 Care: shared stylesheet for the public pages
   (index, about, staffing, jobs, training, contact, employee_form, thank_you).
   After editing, bump ?v= on the <link> in those pages: Cloudflare caches this file for a week. */

:root {
  --navy: #0f2a3d;
  --ink: #1b2733;
  --muted: #546474;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --teal-light: #14b8a6;
  --mint: #e9f7f3;
  --cream: #faf7f2;
  --pink: #e0457b;
  --line: #e3e8ec;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 42, 61, 0.08);
  --shadow-lg: 0 22px 50px rgba(15, 42, 61, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #d5e3ec; font-size: 0.9rem; text-align: center; padding: 9px 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; margin-left: 6px; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 13px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--mint); color: var(--teal); }
.site-nav .nav-login { color: var(--muted); }
.site-nav a.btn { margin-left: 10px; color: #fff; }
.site-nav a.btn:hover { background: var(--teal-dark); color: #fff; }
.nav-toggle, .nav-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(900px 420px at 90% -10%, #d3f1e7 0, transparent 60%),
    linear-gradient(180deg, var(--mint), #fff);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--teal); font-weight: 700; font-size: 0.85rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; isolation: isolate; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border-radius: 28px; background: linear-gradient(135deg, var(--teal-light), var(--pink)); opacity: 0.2;
}
.hero-media.contain img { object-fit: contain; background: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.trust li::before { content: "✓"; margin-right: 8px; color: var(--teal); font-weight: 800; }

/* Plain page heading band (contact, apply, thank you) */
.page-hero { padding: 64px 0 36px; text-align: center; background: linear-gradient(180deg, var(--mint), #fff); }
.page-hero .lead { margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: block; margin-bottom: 10px; color: var(--teal); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Cards: image on top, text below ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-body p + p { margin-top: 0.8em; }

/* Link tiles */
.tile {
  display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--teal); }
.tile p { color: var(--muted); }
.tile .more { color: var(--teal); font-weight: 700; }

/* ---------- Split: image beside text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.split.reverse .split-media { order: 2; }
.split p { color: var(--muted); }
.checklist { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--teal); font-weight: 800; font-size: 0.8rem;
}
.checklist strong { color: var(--navy); }

/* Role pills (jobs) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.pills li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; }

/* Numbered course list (training) */
.course-grid { counter-reset: course; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.course-grid li {
  counter-increment: course; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  color: var(--navy); font-weight: 600;
}
.course-grid li::before {
  content: counter(course); flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px; background: var(--mint); color: var(--teal); font-weight: 800; font-size: 0.9rem;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 56px; border-radius: 28px; color: #d9e8ef;
  background: linear-gradient(135deg, var(--navy), #134e4a);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; max-width: 56ch; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.form-card fieldset { margin: 0 0 30px; padding: 0; border: 0; }
.form-card legend { margin-bottom: 14px; padding: 0; color: var(--navy); font-weight: 800; font-size: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.form-grid > .full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-weight: 600; font-size: 0.92rem; }
.req { color: var(--pink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fbfcfd; color: var(--ink); font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start; }
.info-card { padding: 36px; border-radius: 24px; background: var(--navy); color: #d5e3ec; }
.info-card h2 { color: #fff; font-size: 1.5rem; }
.info-list { display: grid; gap: 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.info-list strong { display: block; color: #fff; }
.info-list a { color: #7fe0cf; }
.info-card img { margin-top: 28px; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }

.narrow { max-width: 880px; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 0; background: var(--navy); color: #b5c6d2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid p { margin: 14px 0 0; max-width: 36ch; }
.footer-title { margin: 0 0 14px; color: #fff; font-weight: 800; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #b5c6d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .brand { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a { padding: 8px 10px; }
}

@media (max-width: 900px) {
  /* Phone/tablet menu: the checkbox sits invisibly on the ☰ button so it stays tappable and keyboard-focusable */
  .nav-toggle {
    display: block; position: absolute; top: 50%; right: 0; transform: translateY(-50%); z-index: 2;
    width: 46px; height: 46px; margin: 0; opacity: 0; cursor: pointer;
  }
  .nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; background: var(--navy);
  }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after {
    position: relative; display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff;
    transition: transform 0.2s, background 0.2s;
  }
  .nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; }
  .nav-btn span::before { top: -7px; }
  .nav-btn span::after { top: 7px; }
  .nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--teal-light); outline-offset: 2px; }
  .nav-toggle:checked + .nav-btn span { background: transparent; }
  .nav-toggle:checked + .nav-btn span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-btn span::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  .site-nav a.btn { margin: 8px 0 0; }

  .hero { padding: 40px 0 64px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .hero-media::before { inset: 14px -10px -14px 14px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .cta-band { padding: 36px 28px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .course-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .actions .btn, .cta-band .btn, .form-actions .btn { flex: 1 1 100%; }
  .topbar { font-size: 0.82rem; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 40px; height: 40px; }
  .section-head { margin-bottom: 32px; }
}

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