/* ============================================================
   AIH Physician Services — Space Coast Web Design
   Clinical-blue, dual-path, conversion-focused
   Single brand accent variable: --blue (swap to match logo)
   ============================================================ */

:root {
  /* Brand: AIH gold + charcoal ink (matched to logo #C8B068) */
  --navy: #1c1b17; /* deep charcoal-ink (was navy) — primary dark surface */
  --navy-2: #262420; /* slightly lighter charcoal for gradients */
  --blue: #b89a4e; /* PRIMARY ACCENT — gold, darkened for text/button contrast */
  --blue-lt: #c8b068; /* logo gold — for icons, accents on dark bg */
  --gold-soft: #e7dcc0; /* pale gold wash for tints */
  --gold-dark: #86692a; /* gold for TEXT on light backgrounds — 4.5:1+ on #faf8f3 and #fff; use --blue/--blue-lt for fills, borders, and text on charcoal */
  --bg: #faf8f3; /* warm off-white */
  --ink: #2a2823; /* warm near-black body text */
  --muted: #79736a; /* warm grey */
  --line: #ece7dc; /* warm hairline */
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1160px;
  --shadow: 0 1px 2px rgba(28, 27, 23, 0.05), 0 8px 28px rgba(28, 27, 23, 0.07);
  --shadow-lg: 0 18px 50px rgba(28, 27, 23, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    "Inter",
    "Inter Fallback",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Newsreader", "Newsreader Fallback", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--gold-dark);
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
h3 {
  font-size: 1.35rem;
}
p {
  color: var(--muted);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #1c1b17;
  box-shadow: 0 6px 18px rgba(184, 154, 78, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(184, 154, 78, 0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn[hidden] {
  display: none;
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--gold-dark);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(28, 27, 23, 0.25);
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 251, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
#contactForm {
  scroll-margin-top: 140px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: 0 0 auto;
  background: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(28, 27, 23, 0.18);
}
.brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.brand-mark svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-lt);
  fill: none;
  stroke-width: 2;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text b {
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a.lnk {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a.lnk::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}
.nav-links a.lnk:hover::after,
.nav-links a.lnk.active::after {
  width: 100%;
}
.nav-links a.lnk.active {
  color: var(--navy);
  font-weight: 600;
}
.nav-links a.lnk-contact {
  color: var(--gold-dark);
  font-weight: 700;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
}
.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.25s;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdddec;
  padding: 64px 0 28px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer h3 {
  color: #fff;
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.site-footer p {
  color: #9fb6cb;
}
.foot-brand .brand-mark {
  margin-bottom: 16px;
}
.foot-links a {
  display: block;
  color: #bcd0e2;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.foot-links a:hover {
  color: #fff;
}
.foot-contact a {
  color: #bcd0e2;
  display: block;
  padding: 5px 0;
}
.foot-contact a:hover {
  color: #fff;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #7f97ad;
}
.foot-bottom a {
  color: #9fb6cb;
}
.foot-bottom a:hover {
  color: #fff;
}

/* ---------- Sections ---------- */
section {
  padding: 58px 0;
}
.section-head {
  max-width: 62ch;
  margin-bottom: 34px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.services-head {
  max-width: none;
}
.services-head h2 {
  white-space: nowrap;
  font-size: clamp(0.75rem, 3.8vw, 2.6rem);
}

/* ---------- Hero (home) ---------- */
.hero {
  color: #fff;
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    168deg,
    rgba(28, 27, 23, 0.87) 0%,
    rgba(38, 36, 32, 0.82) 55%,
    rgba(18, 58, 99, 0.85) 100%
  );
}
.hero > .wrap {
  position: relative;
  z-index: 2;
}
.hero .section-wave {
  position: relative;
  z-index: 2;
}
.hero-head {
  text-align: center;
}
.hero h1 {
  color: #fff;
  max-width: 20ch;
  margin: 0 auto;
}
.hero .lead {
  color: #c4d6e8;
  margin: 18px auto 0;
  text-align: center;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-credential {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.hero-credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 154, 78, 0.15);
  border: 1px solid rgba(184, 154, 78, 0.4);
  color: var(--blue-lt);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: 999px;
}

/* split-screen path chooser — two compact, solid-color buttons, side by side */
.split-screen {
  margin-top: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.split-half {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  color: var(--navy);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.split-half:nth-child(1) {
  background: var(--blue);
}
.split-half:nth-child(2) {
  background: #fff;
}
.split-half:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(28, 27, 23, 0.18);
}
.split-half h2 {
  font-size: 1.05rem;
  color: var(--navy);
}
.split-half p {
  color: rgba(28, 27, 23, 0.65);
  font-size: 0.85rem;
}
.split-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
  color: var(--navy);
}
.split-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.split-half:hover .split-cta svg {
  transform: translateX(5px);
}

.section-wave {
  display: block;
  width: 100%;
  margin-top: 40px;
  line-height: 0;
  margin-bottom: -2px;
}
.section-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.services-section {
  padding-bottom: 0;
}

/* ---------- Trusted by logos ---------- */
.logos-section {
  padding: 16px 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.logos-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(28, 27, 23, 0.45);
  margin-bottom: 28px;
}
.logos-track-wrap {
  overflow: visible;
}
.logos-track {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 48px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.logo-img-dupe {
  display: none !important;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition:
    opacity 0.2s,
    filter 0.2s;
}
.logo-img:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

/* ---------- Why AIH ---------- */
.why-section {
  background: var(--navy);
}
.why-section .section-head h2,
.why-section .section-head em {
  color: #fff;
}
.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  max-width: 640px;
  margin: 0 auto;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}
.why-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(184, 154, 78, 0.2);
  border: 1.5px solid var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b89a4e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Cards / services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card .ico {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(
    150deg,
    rgba(30, 111, 184, 0.12),
    rgba(91, 167, 217, 0.16)
  );
}
.card .ico svg {
  width: 27px;
  height: 27px;
  stroke: var(--blue);
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  font-size: 0.96rem;
}
.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
  padding-top: 18px;
}
.card-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Split / value ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4;
  background: linear-gradient(150deg, var(--navy), var(--blue));
  position: relative;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-media .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}
.checklist {
  list-style: none;
  margin-top: 22px;
}
.checklist li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  color: var(--ink);
  font-size: 1rem;
  align-items: flex-start;
}
.checklist li svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  stroke: #1c1b17;
  background: var(--blue-lt);
  border-radius: 50%;
  padding: 4px;
  margin-top: 2px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 14px;
  text-align: center;
}
.step .num {
  font-family: "Newsreader", "Newsreader Fallback", Georgia, serif;
  font-size: 2.4rem;
  color: var(--blue-lt);
  font-weight: 500;
  line-height: 1;
}
.step h3 {
  font-size: 1.1rem;
  margin: 10px 0 8px;
}
.step p {
  font-size: 0.93rem;
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.quote .mark {
  font-family: "Newsreader", "Newsreader Fallback", Georgia, serif;
  font-size: 3rem;
  color: var(--blue-lt);
  line-height: 0.5;
  height: 24px;
  display: block;
}
.quote p {
  color: var(--ink);
  font-size: 1rem;
  margin: 10px 0 20px;
}
.quote .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.quote .who b {
  font-size: 0.95rem;
  color: var(--navy);
  display: block;
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
}
.quote .who span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--navy), var(--blue));
  border-radius: 22px;
  padding: 60px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: #d2e2f0;
  max-width: 48ch;
  margin: 14px auto 28px;
}
.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(168deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 60px 0 52px;
  position: relative;
}
.page-hero h1 {
  color: #fff;
}
.page-hero .lead {
  color: #c4d6e8;
  margin-top: 5px;
}
.crumbs {
  font-size: 0.85rem;
  color: #8fa9c2;
  margin-bottom: 18px;
}
.crumbs a:hover {
  color: #fff;
}

/* ---------- Open Jobs ---------- */
.jobs-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.jobs-toolbar .field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.jobs-toolbar .field-search {
  flex: 1;
  min-width: 180px;
}
.jobs-toolbar .field-filter {
  flex: 0 0 auto;
  min-width: 170px;
}
.jobs-toolbar input,
.jobs-toolbar select {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 100%;
  outline: none;
}
.jobs-toolbar select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.jobs-toolbar svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  flex: 0 0 auto;
}

.job-list {
  display: grid;
  gap: 14px;
}
.job {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.job:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-lt);
}
.job h2 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.job .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.job .tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job .tag.spec {
  color: var(--gold-dark);
  border-color: rgba(30, 111, 184, 0.25);
  background: rgba(30, 111, 184, 0.06);
}

/* ---------- About ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.value h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.value p {
  font-size: 0.95rem;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-strip .s b {
  font-family: "Newsreader", "Newsreader Fallback", Georgia, serif;
  font-size: 2.6rem;
  color: var(--gold-dark);
  font-weight: 500;
  display: block;
  line-height: 1;
}
.stat-strip .s span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info .item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-info .item:last-child {
  border-bottom: 0;
}
.contact-info .ico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(
    150deg,
    rgba(30, 111, 184, 0.12),
    rgba(91, 167, 217, 0.16)
  );
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.contact-info .ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
}
.contact-info b {
  color: var(--navy);
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
}
.contact-info a,
.contact-info span {
  color: var(--muted);
  font-size: 0.98rem;
}
.contact-info a:hover {
  color: var(--gold-dark);
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-group {
  margin-bottom: 18px;
}
.field-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.field-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Reveal anim ---------- */
/* Hidden starting state only applies once the "js" class (set by an
   inline script in <head>) confirms script executed — so content stays
   visible by default for crawlers, no-JS browsers, and the brief window
   before a slow phone finishes loading/running main.js. */
.reveal {
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cards,
  .quotes,
  .values {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .stat-strip {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-top: 70px;
  }
  section {
    padding: 46px 0;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    padding-bottom: 76px;
  }
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 12px 16px;
    gap: 10px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(28, 27, 23, 0.1);
  }
  .mobile-cta-bar .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.92rem;
    padding: 13px 16px;
  }
  .logos-track-wrap {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .logos-track-wrap::-webkit-scrollbar {
    height: 3px;
  }
  .logos-track-wrap::-webkit-scrollbar-track {
    background: transparent;
  }
  .logos-track-wrap::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 999px;
  }
  .logos-track {
    width: max-content;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 32px;
  }
  .logo-img {
    height: 28px;
    flex-shrink: 0;
  }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    visibility: hidden;
    transition:
      transform 0.3s ease,
      visibility 0.3s;
  }
  .nav-links.open {
    transform: none;
    visibility: visible;
    box-shadow: var(--shadow-lg);
  }
  .nav-links a.lnk {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn {
    display: flex;
  }
  .nav-cta .btn-navy,
  .nav-cta .btn-primary {
    display: none;
  }
  .brand-text b {
    font-size: 0.92rem;
  }
  .brand-text span {
    font-size: 0.6rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .cards,
  .quotes,
  .values,
  .steps,
  .stat-strip,
  .form-row,
  .why-list {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cta-band {
    padding: 40px 24px;
  }
  .job {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Open Jobs — dynamic feed additions (append to your style.css)
   ============================================================ */
.job-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Employment-type tag colors (gold theme) */
.tag.type-perm {
  color: #2e5a34;
  background: #eaf3ec;
  border-color: #cfe4d4;
}
.tag.type-locum {
  color: #1e5f6f;
  background: #e8f2f4;
  border-color: #c9e1e5;
}
/* Loading spinner */
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* Job detail modal */
.jobmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.jobmodal[hidden] {
  display: none;
}
.jobmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 23, 0.55);
  backdrop-filter: blur(2px);
}
.jobmodal-panel {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.jobmodal-panel-wide {
  max-width: 960px;
}
.jobmodal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
  padding: 32px 38px 18px;
  border-bottom: 1px solid var(--line);
}
.jobmodal-header h2 {
  margin: 0;
}
.jm-header-text {
  min-width: 0;
}
.jm-posted {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.jobmodal-scroll {
  overflow-y: auto;
  padding: 24px 38px 38px;
}
.jobmodal-close {
  flex-shrink: 0;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.jobmodal-close:hover {
  background: var(--bg);
  color: var(--ink);
}
.jm-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px 24px;
  margin: 18px 0 26px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.jm-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.jm-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}
.jm-subhead {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.jm-apply {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---------- Apply form validation ---------- */
.field-error {
  display: block;
  color: #b3261e;
  font-size: 0.8rem;
  margin-top: 5px;
  min-height: 1em;
}
.field-group input.invalid {
  border-color: #b3261e;
  background: #fdf3f2;
}
.field-group input.invalid:focus {
  border-color: #b3261e;
}

/* required-field asterisk */
.field-group label .req {
  color: #b3261e;
  margin-left: 2px;
}

/* resume file input + clear button */
.file-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-control input[type="file"] {
  flex: 1;
  min-width: 0;
}
.file-clear[hidden] {
  display: none;
}
.file-clear {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.file-clear:hover {
  background: #fdf3f2;
  color: #b3261e;
  border-color: #b3261e;
}

.jobmodal-body {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}
.jobmodal-body p {
  color: var(--ink);
  margin: 0 0 12px;
}
.jobmodal-body ul,
.jobmodal-body ol {
  margin: 0 0 14px 22px;
}
.jobmodal-body li {
  margin: 5px 0;
}
.jobmodal-body strong {
  color: var(--navy);
}
.jobmodal-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.jobmodal-actions.single-action .btn {
  flex: 1 1 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .job-actions {
    width: 100%;
  }
  .job-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .jobmodal-header {
    padding: 22px 26px 14px;
  }
  .jobmodal-scroll {
    padding: 18px 26px 26px;
  }
  .jobmodal-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
