/* ==========================================================================
   EVERFLO COMPRESSION — site styles
   Field-rugged, photo-forward. Charcoal + Everflo red.
   ========================================================================== */

:root {
  --ink: #15181b;
  --ink-2: #1c2126;
  --ink-3: #252c33;
  --paper: #f4f3f0;
  --white: #ffffff;
  --red: #c8102e;
  --red-hot: #e01935;
  --steel: #9aa4ae;
  --steel-dark: #5c666f;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(21, 24, 27, 0.12);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --radius-btn: 0px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 28px rgba(21, 24, 27, 0.12);
}

/* ---------- 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);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--steel-dark); max-width: 62ch; }
.on-dark .lead, .lead.on-dark { color: var(--steel); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--red-hot);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); flex: none; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.tight { padding: clamp(44px, 6vw, 72px) 0; }
.dark { background: var(--ink); color: #fff; }
.dark-2 { background: var(--ink-2); color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-ghost-dark { border-color: rgba(21, 24, 27, 0.4); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(21, 24, 27, 0.05); }
.btn-lg { font-size: 1.15rem; padding: 16px 36px; }

/* ---------- 24/7 utility bar ---------- */
.util-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.92rem;
  padding: 7px 14px;
}
.util-bar a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.util-bar a:hover { color: rgba(255, 255, 255, 0.85); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.72), rgba(10, 12, 14, 0));
}
.nav.solid { background: var(--ink); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
.nav-inner {
  width: min(1320px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 4px;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  margin-left: 10px;
  transition: background 0.15s;
}
.nav-phone:hover { background: var(--red-hot); }
.nav-phone svg { width: 16px; height: 16px; fill: currentColor; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-burger span { display: block; width: 26px; height: 3px; background: #fff; transition: transform 0.25s, opacity 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: var(--ink);
  isolation: isolate;
}
.hero.short { min-height: 100vh; min-height: 100svh; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 14, 0.45) 0%, rgba(10, 12, 14, 0.15) 40%, rgba(10, 12, 14, 0.82) 100%),
    linear-gradient(100deg, rgba(10, 12, 14, 0.55) 0%, rgba(10, 12, 14, 0) 60%);
}
.hero-content { padding: 124px 0 clamp(44px, 6vh, 76px); width: min(var(--container), 92vw); margin-inline: auto; }
.hero-content h1 { max-width: 15ch; text-wrap: balance; }
.hero-content .lead { color: rgba(255, 255, 255, 0.85); margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 16, 46, 0.92);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  padding: 7px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ---------- Stat band ---------- */
.stat-band { background: var(--ink); color: #fff; border-top: 4px solid var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(28px, 4vw, 44px) 20px;
  text-align: center;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: none; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: #fff;
}
.stat b small { font-size: 0.5em; color: var(--red-hot); vertical-align: super; }
.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--steel);
}

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.svc-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.svc-card:hover img { transform: scale(1.05); }
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.05) 30%, rgba(10, 12, 14, 0.88) 100%);
}
.svc-card-body { padding: 24px; }
.svc-card-body h3 { border-left: 4px solid var(--red); padding-left: 14px; }
.svc-card-body p { margin-top: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.svc-card-body .more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-hot);
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; height: 100%; object-fit: cover; }
.dark .split-media img, .dark-2 .split-media img { box-shadow: var(--shadow); }
.split-media .tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-left: 4px solid var(--red);
  border-radius: 4px;
}
.split-body p + p { margin-top: 14px; }
.split-body .btn { margin-top: 26px; }

/* ---------- Checklist / tool list ---------- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 22px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 500; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--red);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.dark .checklist li, .dark-2 .checklist li { color: rgba(255, 255, 255, 0.9); }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; align-items: stretch; }
.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-item .ba-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 12, 14, 0.85);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 4px;
}
.ba-item.after .ba-label { background: var(--red); }

/* ---------- Brand strip ---------- */
.brand-strip { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.brand-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 40px;
  padding: 26px 0;
}
.brand-strip span {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: var(--steel);
}
.brand-strip img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.15s;
}
.brand-strip img.tall { height: 44px; }
.brand-strip img.prewhite { filter: none; }
.brand-strip img:hover { opacity: 1; }
@media (max-width: 980px) {
  .brand-strip-inner { justify-content: center; }
  .brand-strip img { height: 24px; }
  .brand-strip img.tall { height: 36px; }
}
.brand-strip-label {
  font-size: 0.85rem !important;
  letter-spacing: 0.14em !important;
  color: var(--red-hot) !important;
}

/* ---------- Cert chips ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.light-chips .cert-chip { border-color: var(--line-light); color: var(--ink); }
.cert-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- Cert cards (safety page) ---------- */
.cert-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.cert-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.cert-card h3 { color: #fff; }
.cert-card p { margin-top: 12px; color: var(--steel); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; isolation: isolate; text-align: center; }
.cta-band .hero-bg { z-index: -2; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.78), rgba(10, 12, 14, 0.85));
}
.cta-band-inner { padding: clamp(70px, 10vw, 120px) 0; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.cta-band .lead { margin: 16px auto 0; color: rgba(255, 255, 255, 0.85); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Big phone ---------- */
.phone-xl {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  transition: color 0.15s;
}
.phone-xl:hover { color: var(--red-hot); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 44px);
}
.dark .form-card, .dark-2 .form-card { background: var(--ink-2); border: 1px solid var(--line-dark); box-shadow: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  color: var(--steel-dark);
}
.dark .form-field label, .dark-2 .form-field label { color: var(--steel); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line-light);
  border-radius: 4px;
  padding: 12px 14px;
  background: var(--paper);
  transition: border-color 0.15s;
  width: 100%;
}
.dark .form-field input, .dark .form-field select, .dark .form-field textarea,
.dark-2 .form-field input, .dark-2 .form-field select, .dark-2 .form-field textarea {
  background: var(--ink-3);
  border-color: var(--line-dark);
  color: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--steel-dark); }
.dark .form-note, .dark-2 .form-note { color: var(--steel); }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 4px;
  font-weight: 500;
}
.form-status.ok { display: block; background: rgba(34, 150, 83, 0.14); color: #1d7a44; border: 1px solid rgba(34, 150, 83, 0.4); }
.dark .form-status.ok, .dark-2 .form-status.ok { color: #5fd394; }
.form-status.err { display: block; background: rgba(200, 16, 46, 0.1); color: var(--red); border: 1px solid rgba(200, 16, 46, 0.4); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact page ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.loc-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.loc-card iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(0.25) contrast(1.05); }
.loc-card-body { padding: 26px 28px 30px; }
.loc-card-body h3 { color: var(--ink); }
.loc-card-body .loc-role {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
  color: var(--red);
}
.loc-card-body p { margin-top: 10px; color: var(--steel-dark); }
.loc-card-body a.loc-link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--red); }
.loc-card-body a.loc-link:hover { text-decoration: underline; }

/* ---------- Careers perks ---------- */
.perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.perk {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--red);
}
.perk .perk-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(21, 24, 27, 0.14);
}
.perk h3 { margin-top: 6px; }
.perk p { margin-top: 10px; color: var(--steel-dark); font-size: 0.97rem; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose .updated {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--red);
}
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-top: 40px; }
.prose h2:first-of-type { margin-top: 24px; }
.prose p { margin-top: 14px; color: var(--steel-dark); }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.prose li { margin-top: 8px; color: var(--steel-dark); }
.prose a { color: var(--red); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #0e1113; color: var(--steel); border-top: 4px solid var(--red); }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.footer-logo img { height: 54px; width: auto; }
.footer-main p { margin-top: 16px; font-size: 0.95rem; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer li { margin-bottom: 10px; font-size: 0.95rem; }
.footer a:hover { color: #fff; }
.footer .f-phone { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(14, 17, 19, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.6rem; padding: 14px 22px; }
  .nav-phone { margin: 18px 0 0; font-size: 1.3rem; padding: 14px 28px; }
  .nav-burger { display: flex; z-index: 95; }
  .nav-logo img { height: 52px; }
  .util-bar .util-long { display: none; }

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line-dark); }
  .stat:nth-child(-n + 2) { border-top: none; }

  .split, .ba-grid, .loc-grid { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .checklist { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
}

@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .hero-ctas .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
