/* ============================================================
   American Medical Staffing Corp
   Palette drawn directly from the AMS logo:
   Navy  #242D60  |  Brick #B13137  |  Ink #1A2138
   ============================================================ */

:root {
  --navy: #242D60;
  --navy-deep: #171D42;
  --brick: #B13137;
  --brick-dark: #8E272C;
  --ink: #1A2138;
  --slate: #4C5470;
  --line: #D9DCE7;
  --paper: #FFFFFF;
  --tint: #F3F4F9;
  --display: "Merriweather", Georgia, "Times New Roman", serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(23, 29, 66, 0.10);
}

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

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

h1, h2 {
  font-family: var(--display);
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: 0;
}
h3 {
  font-family: var(--body);
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }

a { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  background: var(--brick);
  display: inline-block;
}
.eyebrow-light { color: #F1B7BA; }
.eyebrow-light::before { background: var(--brick); }
.eyebrow-red { color: #F1B7BA; }
.eyebrow-red::before { background: var(--brick); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--brick); color: #fff; }
.btn-red:hover { background: var(--brick-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

.text-link {
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  color: var(--brick);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover { color: var(--brick-dark); }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: #C9CEE4;
  font-size: 0.82rem;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.utility-links { display: flex; align-items: center; gap: 14px; }
.utility-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.3); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand img { width: 150px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { border-bottom-color: var(--brick); }
.nav-cta {
  background: var(--brick);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--brick-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(23, 29, 66, 0.93) 0%, rgba(36, 45, 96, 0.88) 55%, rgba(46, 58, 122, 0.80) 100%),
    url("../images/hero.jpg") center 30% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: #E88A8E;
}
.hero-lede {
  color: #C9CEE4;
  max-width: 52ch;
  margin-bottom: 32px;
  font-size: 1.06rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 30px 28px 28px;
  backdrop-filter: blur(2px);
}
.band-graphic {
  display: grid;
  gap: 7px;
  margin-bottom: 24px;
}
.band { height: 8px; border-radius: 2px; display: block; }
.b-red     { background: var(--brick); width: 42%; }
.b-white   { background: rgba(255,255,255,0.85); width: 78%; }
.b-red-2   { background: var(--brick); width: 58%; }
.b-white-2 { background: rgba(255,255,255,0.35); width: 90%; }

.hero-points { list-style: none; display: grid; gap: 12px; }
.hero-points li {
  padding-left: 26px;
  position: relative;
  color: #E7EAF5;
  font-weight: 500;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 8px;
  background: var(--brick);
  border-radius: 1px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}
.trust-item span { color: var(--slate); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy-deep); }
.section-navy h2 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-sub { color: var(--slate); margin-top: 14px; }
.section-navy .section-sub { color: #C9CEE4; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-copy p { color: var(--slate); margin-bottom: 18px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-top-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-top-color: var(--brick);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 0.94rem; }

/* ---------- Careers ---------- */
.careers-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.careers-intro p { color: var(--slate); margin: 0 0 26px; max-width: 46ch; }
.careers-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.careers-list li {
  padding: 15px 20px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  padding-left: 34px;
}
.careers-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--brick);
  border-radius: 1px;
}
.careers-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.careers-list li:nth-last-child(-n+2) { border-bottom: none; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.process-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-label {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brick);
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.process-step h3 { color: #fff; margin-bottom: 10px; }
.process-step p { color: #C9CEE4; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-intro > p { color: var(--slate); margin-bottom: 30px; max-width: 44ch; }
.contact-details p { margin-bottom: 18px; color: var(--slate); }
.contact-details strong { color: var(--navy); font-family: var(--body); font-weight: 700; }
.contact-details a { color: var(--brick); text-decoration: none; font-weight: 600; }
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field label {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(36, 45, 96, 0.15);
}
.form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--slate);
  text-align: center;
}
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C9CEE4;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 56px 0 40px;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-tag { max-width: 40ch; font-size: 0.92rem; }
.footer-contact { margin-top: 14px; font-size: 0.88rem; color: #A9B0CC; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  color: #C9CEE4;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: #fff; }

.footer-bands { display: grid; }
.footer-bands span { height: 4px; display: block; }
.footer-bands span:nth-child(1) { background: var(--brick); }
.footer-bands span:nth-child(2) { background: rgba(255,255,255,0.25); }
.footer-bands span:nth-child(3) { background: var(--brick-dark); }

.footer-legal { padding: 20px 0 26px; font-size: 0.82rem; color: #8E96B8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; gap: 40px; }
  .about-grid, .careers-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 68px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: var(--radius); }
  .utility-note { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .careers-list { grid-template-columns: 1fr; }
  .careers-list li:nth-child(odd) { border-right: none; }
  .careers-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .careers-list li:last-child { border-bottom: none; }
}
