/* ================================================================
   Urgent Locums — Stylesheet
   Aesthetic: Refined Clinical Authority
   Fonts: Fraunces (display) + DM Sans (body)
   ================================================================ */

:root {
  --navy:       #0B1F3A;
  --navy-mid:   #132D52;
  --teal:       #0EA5E9;
  --teal-dark:  #0284C7;
  --teal-light: #E0F2FE;
  --teal-pale:  #F0F9FF;
  --text:       #1E293B;
  --text-mid:   #475569;
  --text-light: #94A3B8;
  --border:     #E2E8F0;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --success:    #059669;
  --error:      #DC2626;
  --warning:    #D97706;
  --shadow-sm:  0 1px 3px rgba(11,31,58,.08);
  --shadow-md:  0 4px 16px rgba(11,31,58,.10);
  --shadow-lg:  0 12px 40px rgba(11,31,58,.14);
  --radius:     8px;
  --radius-lg:  14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-w:      1100px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mid); }
p { color: var(--text-mid); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  padding: 13px 28px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: white; border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,165,233,.3); }
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; text-decoration: none; transform: translateY(-1px); }
.btn-white {
  background: white; color: var(--navy); border-color: white;
}
.btn-white:hover { background: var(--teal-light); border-color: var(--teal-light); text-decoration: none; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary-sm { background: var(--teal); color: white; border-color: var(--teal); font-size: .85rem; padding: 9px 18px; border-radius: 6px; font-weight: 500; }
.btn-primary-sm:hover { background: var(--teal-dark); text-decoration: none; }
.btn-outline-sm { color: var(--navy); border: 1.5px solid var(--navy); font-size: .85rem; padding: 8px 16px; border-radius: 6px; font-weight: 500; }
.btn-outline-sm:hover { background: var(--navy); color: white; text-decoration: none; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: white; text-decoration: none; flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; background: var(--teal); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: white; line-height: 1;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-body); font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,.9); letter-spacing: .01em; }
.logo-text strong { font-weight: 600; color: white; }
.logo-footer .logo-text, .logo-footer .logo-mark { opacity: .9; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  color: rgba(255,255,255,.75); font-size: .9rem; padding: 6px 10px;
  border-radius: 6px; transition: all .2s;
}
.site-nav ul a:hover, .site-nav ul a.active { color: white; background: rgba(255,255,255,.1); text-decoration: none; }
.nav-ctas { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all .3s; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0D3061 100%);
  color: white; padding: 80px 0 90px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(14,165,233,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(14,165,233,.05);
  border: 1px solid rgba(14,165,233,.15);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
  display: inline-block; background: rgba(14,165,233,.2); color: var(--teal);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
  border: 1px solid rgba(14,165,233,.3);
}
.hero h1 { color: white; margin-bottom: 20px; font-weight: 300; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 36px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .85rem; }
.trust-icon { color: var(--teal); font-size: 1rem; }

/* ── Section ─────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-label { color: var(--teal-dark); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--teal-light); }
.card-icon { width: 48px; height: 48px; background: var(--teal-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: .92rem; }

/* ── Split section ───────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-content h2 { margin-bottom: 16px; }
.split-content p { margin-bottom: 20px; }
.split-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.split-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-mid); font-size: .95rem; }
.split-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.split-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; flex-direction: column; gap: 16px; min-height: 340px; justify-content: center;
}
.visual-stat { color: white; }
.visual-stat .stat-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--teal); display: block; line-height: 1; }
.visual-stat .stat-label { font-size: .85rem; color: rgba(255,255,255,.65); }
.visual-divider { height: 1px; background: rgba(255,255,255,.1); }

/* ── Niches ──────────────────────────────────────────────────── */
.niches { background: var(--navy); color: white; }
.niches .section-header h2 { color: white; }
.niches .section-header p { color: rgba(255,255,255,.7); }
.niche-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.niche-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
  transition: all .25s;
}
.niche-card:hover { background: rgba(14,165,233,.12); border-color: rgba(14,165,233,.4); }
.niche-icon { font-size: 2rem; margin-bottom: 10px; }
.niche-card h3 { color: white; font-size: 1rem; margin-bottom: 6px; }
.niche-card p { color: rgba(255,255,255,.55); font-size: .82rem; }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner { background: var(--teal-pale); border-top: 1px solid var(--teal-light); border-bottom: 1px solid var(--teal-light); padding: 64px 0; text-align: center; }
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-banner .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 56px 0; color: white;
}
.page-hero h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-section { max-width: 720px; margin: 0 auto; }
.form-card {
  background: white; border-radius: var(--radius-lg); padding: 48px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 500; color: var(--text); }
label .required { color: var(--error); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem;
  color: var(--text); background: white; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea { resize: vertical; min-height: 110px; }
.file-input-wrap {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px;
  text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.file-input-wrap:hover, .file-input-wrap.drag-over { border-color: var(--teal); background: var(--teal-pale); }
.file-input-wrap input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-input-icon { font-size: 1.6rem; margin-bottom: 8px; }
.file-input-label { font-size: .9rem; color: var(--text-mid); }
.file-input-label strong { color: var(--teal-dark); }
.file-input-hint { font-size: .78rem; color: var(--text-light); margin-top: 4px; }
.file-name-display { font-size: .85rem; color: var(--success); margin-top: 6px; font-weight: 500; }
.gdpr-consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--teal-pale); border: 1px solid var(--teal-light);
  border-radius: var(--radius); padding: 16px; margin-top: 8px;
}
.gdpr-consent input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--teal); cursor: pointer; }
.gdpr-consent label { font-size: .85rem; color: var(--text-mid); font-weight: 400; cursor: pointer; }
.gdpr-consent label a { color: var(--teal-dark); }
.form-submit { margin-top: 28px; }
.form-submit .btn { width: 100%; font-size: 1rem; padding: 15px; }
.form-note { font-size: .8rem; color: var(--text-light); text-align: center; margin-top: 12px; }
.alert {
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px;
  font-size: .92rem; display: flex; gap: 10px; align-items: flex-start;
}
.alert-success { background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }
.alert-error   { background: #FEE2E2; border: 1px solid #FCA5A5; color: #991B1B; }
.field-error { color: var(--error); font-size: .8rem; margin-top: 2px; }

/* ── Compliance page ─────────────────────────────────────────── */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.compliance-card { background: white; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--border); }
.compliance-card .card-icon { background: var(--teal-pale); }
.compliance-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.compliance-card ul { display: flex; flex-direction: column; gap: 8px; }
.compliance-card ul li { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; color: var(--text-mid); }
.compliance-card ul li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.process-steps { counter-reset: steps; display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex; gap: 20px; align-items: flex-start; padding: 24px 0;
  border-bottom: 1px solid var(--border); counter-increment: steps;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
  font-size: .9rem; flex-shrink: 0; font-family: var(--font-display);
}
.step-content h3 { margin-bottom: 6px; font-size: 1rem; }
.step-content p { font-size: .9rem; }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-content { max-width: 760px; margin: 0 auto; padding: 60px 20px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content .last-updated { color: var(--text-light); font-size: .85rem; margin-bottom: 40px; display: block; }
.legal-content h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 8px; font-family: var(--font-body); font-weight: 600; }
.legal-content p, .legal-content li { color: var(--text-mid); font-size: .95rem; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--teal-dark); }

/* ── About ───────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.value-card { background: white; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); text-align: center; }
.value-card .card-icon { margin: 0 auto 14px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: .88rem; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.contact-info h2 { font-size: 1.6rem; margin-bottom: 14px; }
.contact-info p { font-size: .95rem; margin-bottom: 28px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-detail-icon { width: 38px; height: 38px; background: var(--teal-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: .85rem; color: var(--text); margin-bottom: 2px; }
.contact-detail-text span { font-size: .9rem; color: var(--text-mid); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: white; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .88rem; margin-top: 14px; line-height: 1.65; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: rgba(255,255,255,.5); font-size: .72rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .8rem; }
.footer-badges { display: flex; gap: 8px; }
.badge { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); font-size: .72rem; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); }

/* ── Utilities ───────────────────────────────────────────────── */
.bg-light { background: var(--bg); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeUp .6s ease both; }
.animate-up:nth-child(2) { animation-delay: .1s; }
.animate-up:nth-child(3) { animation-delay: .2s; }
.animate-up:nth-child(4) { animation-delay: .3s; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse { direction: ltr; }
  .split-visual { min-height: 200px; flex-direction: row; flex-wrap: wrap; gap: 24px; padding: 28px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .form-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .hero { padding: 56px 0 64px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .hero-trust { gap: 16px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: fixed; inset: 0; top: 63px;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 28px 20px; gap: 20px; overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; width: 100%; }
  .site-nav ul a { display: block; padding: 12px 14px; font-size: 1rem; }
  .nav-ctas { flex-direction: column; width: 100%; }
  .nav-ctas .btn-outline-sm, .nav-ctas .btn-primary-sm { width: 100%; text-align: center; padding: 13px; font-size: 1rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
}
