:root {
  --sky: #1E7BAE;
  --teal: #2FA88C;
  --teal-deep: #1D8D74;
  --navy: #163A4D;
  --navy-deep: #0C2A3D;
  --gray: #5B7180;
  --gray-light: #AFC6D4;
  --bg: #F4F8FA;
  --white: #FFFFFF;
  --border: #E1EAEE;
  --shadow: 0 4px 20px rgba(12,42,61,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

h1, h2, h3 { font-weight: 800; line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 12px;
}

h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }

.section-lead {
  max-width: 640px;
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--teal));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(30,123,174,0.30);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { font-weight: 800; font-size: 19px; white-space: nowrap; }
.brand-text .accent { color: var(--teal-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14.5px;
  font-weight: 600;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a.current { color: var(--teal-deep); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--teal-deep); flex-shrink: 0; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

.btn .short { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .nav-phone .phone-text { display: none; }
  .nav-cta .btn .long { display: none; }
  .nav-cta .btn .short { display: inline; }
  .nav { padding: 12px 16px; gap: 10px; }
  .brand-text { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  padding: 72px 0 60px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--sky), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--gray);
  font-weight: 600;
}
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--teal-deep); flex-shrink: 0; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .card { max-width: 320px; margin: 0 auto; }
}

/* ---------- Page header (non-hero pages, e.g. contractor application) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  padding: 56px 0 40px;
  text-align: center;
}
.page-header h1 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 14px; }
.page-header p { color: var(--gray); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--teal));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; color: var(--white); }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--gray); font-size: 14.5px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 15px; }

/* ---------- Insurance / payer section ---------- */
.payer-section {
  background: var(--navy-deep);
  color: var(--white);
}
.payer-section .eyebrow { color: var(--teal); }
.payer-section .section-lead { color: var(--gray-light); }
.payer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .payer-grid { grid-template-columns: 1fr; } }
.payer-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
}
.payer-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--white); }
.payer-card p { color: var(--gray-light); font-size: 14px; }

/* ---------- Service area ---------- */
.area-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .area-wrap { grid-template-columns: 1fr; } }
.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 20px;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
}
.area-list svg { width: 16px; height: 16px; color: var(--teal-deep); flex-shrink: 0; }
.area-note { margin-top: 20px; color: var(--gray); font-size: 14px; }
.area-map-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
}

/* ---------- Drive with us (recruiting) ---------- */
.drive-section {
  background: var(--navy);
  color: var(--white);
}
.drive-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.drive-wrap h2 { color: var(--white); margin-bottom: 10px; }
.drive-wrap p { color: var(--gray-light); max-width: 520px; font-size: 16px; }
.drive-copy { flex: 1; min-width: 260px; }

/* ---------- Request form / application form (shared) ---------- */
.request-section { background: var(--bg); }
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form-side h2 { margin-bottom: 14px; }
.form-side p { color: var(--gray); margin-bottom: 24px; }
.call-card {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.call-card .label { font-size: 13px; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.call-card .value { font-size: 24px; font-weight: 800; color: var(--navy); }
.call-card .value a { color: var(--sky); }

form {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--gray); font-size: 12.5px; }
.field .required { color: #B3261E; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 90px; }
fieldset { border: none; padding: 0; margin: 0 0 18px; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }

/* Honeypot field -- hidden from real visitors, catches simple bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

#form-status, #formStatus {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  display: none;
}
#form-status.ok, #formStatus.success { display: block; background: #E4F6F0; color: var(--teal-deep); }
#form-status.err, #formStatus.error { display: block; background: #FBE7E7; color: #B3261E; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: var(--gray-light);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand span { font-weight: 800; color: var(--white); font-size: 18px; }
footer p { font-size: 14px; line-height: 1.7; }
footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; font-size: 14.5px; }
footer ul li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
