:root {
  --purple: #a50202;
  --purple-2: #c51616;
  --purple-dark: #4b0000;
  --purple-soft: #fff0f0;
  --text: #1c1515;
  --muted: #6e6060;
  --white: #ffffff;
  --line: #efdddd;
  --shadow: 0 24px 60px rgba(165, 2, 2, 0.16);
  --radius: 24px;
  --header-height: 86px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

main {
  min-height: 60vh;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 30px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--purple);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}

.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(239, 221, 221, 0.85);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand img {
  width: 172px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #443434;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

.nav-links a.active {
  border-bottom: 3px solid var(--purple);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--purple-soft);
  border-radius: 14px;
  width: 46px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--purple);
  margin: 5px 0;
  border-radius: 99px;
}

.section { padding: 92px 0; }

.page-top {
  padding-top: 108px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 18%, rgba(208, 24, 24, 0.17), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  padding-bottom: 96px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -180px auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(165, 2, 2, 0.10);
}

.subhero {
  background:
    radial-gradient(circle at 82% 12%, rgba(208, 24, 24, 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  padding: 102px 0 86px;
}

.purple-subhero {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.24), transparent 30%),
    linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: white;
}

.purple-subhero p {
  color: #ffe2e2;
}

.hero-grid,
.split-grid,
.contact-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
}

.eyebrow.light { color: #f6caca; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}

.subhero h1 {
  max-width: 900px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-text,
.lead,
.section-heading p,
.about-grid p,
.subhero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-text {
  max-width: 650px;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-weight: 900;
  border: 2px solid var(--purple);
  box-shadow: 0 16px 30px rgba(165, 2, 2, 0.2);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(165, 2, 2, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  box-shadow: none;
}

.btn-white {
  background: white;
  color: var(--purple);
  border-color: white;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--purple);
  font-weight: 900;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 720px;
}

.trust-row div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.trust-row strong {
  display: block;
  color: var(--purple);
  font-size: 1.1rem;
}

.trust-row span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 34px;
  padding: 34px;
}

.card-logo {
  background: #fff8f8;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  margin-bottom: 18px;
}

.card-logo img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.pulse-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--purple-soft);
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
}

.pulse-card p {
  margin: 0;
  font-weight: 800;
  color: var(--purple-dark);
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: #31c46a;
  box-shadow: 0 0 0 6px rgba(49, 196, 106, 0.14);
  flex: 0 0 auto;
}

.quick-list {
  display: grid;
  gap: 12px;
}

.quick-list p {
  margin: 0;
  color: #463737;
  font-weight: 800;
}

.quick-list span {
  color: var(--purple);
  margin-right: 8px;
}

.strip {
  padding: 34px 0;
  background: var(--purple);
  color: white;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  font-weight: 900;
}

.strip-grid p { margin: 0; }

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 35px rgba(28, 21, 21, 0.06);
}

.service-card.tall {
  min-height: 100%;
}

.service-card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
  margin-bottom: 22px;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-card li {
  margin-bottom: 8px;
}

.split-section,
.about-callout {
  background: #fffafa;
}

.steps { display: grid; gap: 18px; }

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(165, 2, 2, 0.06);
}

.step span {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: white;
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.purple-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.24), transparent 30%),
    linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: white;
}

.purple-section .lead {
  color: #ffe2e2;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.benefit-grid div {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 22px;
}

.benefit-grid p {
  color: #ffe2e2;
  margin-bottom: 0;
}

.light-cards div {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(28, 21, 21, 0.06);
}

.light-cards p {
  color: var(--muted);
}

.about-grid { align-items: start; }

.about-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-grid { align-items: start; }

.contact-details {
  margin-top: 28px;
  background: var(--purple-soft);
  border-radius: 22px;
  padding: 22px;
}

.contact-details p { margin: 0 0 10px; }
.contact-details p:last-child { margin-bottom: 0; }

.contact-details a {
  color: var(--purple);
  font-weight: 900;
}

.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: #382c2c;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #f0caca;
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  background: white;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(165, 2, 2, 0.10);
}

textarea { resize: vertical; }

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 14px 0 0;
}

.site-footer {
  background: #240000;
  color: white;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 30px;
  align-items: start;
}

.site-footer img {
  width: 150px;
  background: white;
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  color: #f6caca;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.site-footer h3 {
  color: white;
  margin-bottom: 14px;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 32px;
  padding-top: 20px;
}

.copyright p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

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

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 12px;
  }

  .nav-links a.active {
    border-bottom: 0;
    background: var(--purple-soft);
    border-radius: 12px;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .trust-row,
  .cards.three,
  .strip-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 72px 0; }

  .page-top { padding-top: 84px; }

  .hero { padding-bottom: 72px; }

  .subhero { padding: 84px 0 68px; }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand img { width: 142px; }

  h1 { font-size: clamp(2.65rem, 15vw, 4rem); }

  .hero-actions { flex-direction: column; }

  .btn { width: 100%; }

  .hero-card,
  .contact-form,
  .about-panel {
    padding: 22px;
    border-radius: 24px;
  }
}


/* V3: compact sticky header */
.site-header {
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav {
  transition: min-height 0.25s ease;
}

.brand img {
  transition: width 0.25s ease, transform 0.25s ease;
}

.nav-links {
  transition: gap 0.25s ease, font-size 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(165, 2, 2, 0.12);
}

.site-header.is-scrolled .nav {
  min-height: 62px;
}

.site-header.is-scrolled .brand img {
  width: 118px;
}

.site-header.is-scrolled .nav-links {
  gap: 16px;
  font-size: 0.88rem;
}

.site-header.is-scrolled .nav-links a {
  padding: 4px 0;
}

/* V3: rotating half-wheel visual accent */
.side-wheel {
  position: fixed;
  top: 52%;
  right: -222px;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.58;
}

.wheel-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  filter: drop-shadow(0 24px 40px rgba(165, 2, 2, 0.18));
}

.wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 27%, transparent 28%),
    conic-gradient(
      from -45deg,
      rgba(165, 2, 2, 0.92) 0deg 90deg,
      rgba(208, 24, 24, 0.78) 90deg 180deg,
      rgba(165, 2, 2, 0.28) 180deg 270deg,
      rgba(75, 0, 0, 0.70) 270deg 360deg
    );
  border: 14px solid rgba(165, 2, 2, 0.12);
  animation: opWheelSpin 18s linear infinite;
}

.wheel-disc::before,
.wheel-disc::after {
  content: "";
  position: absolute;
  inset: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
}

.wheel-disc::after {
  inset: 170px;
  background: white;
  border: 8px solid rgba(165,2,2,0.16);
}

.wheel-item {
  position: absolute;
  left: 50%;
  top: 50%;
  color: white;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform-origin: 0 0;
  white-space: nowrap;
}

.item-1 { transform: rotate(20deg) translate(105px, -8px); }
.item-2 { transform: rotate(110deg) translate(105px, -8px); }
.item-3 { transform: rotate(200deg) translate(105px, -8px); }
.item-4 { transform: rotate(290deg) translate(105px, -8px); }

@keyframes opWheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Keep primary page content visually above the fixed wheel */
main,
.site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .site-header.is-scrolled .nav {
    min-height: 58px;
  }

  .site-header.is-scrolled .brand img {
    width: 112px;
  }

  .site-header.is-scrolled .nav-links {
    top: 58px;
  }

  .side-wheel {
    width: 300px;
    height: 300px;
    right: -178px;
    opacity: 0.35;
  }

  .wheel-item {
    display: none;
  }
}

@media (max-width: 640px) {
  .side-wheel {
    width: 230px;
    height: 230px;
    right: -155px;
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-disc {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* V4: home-only service cycle wheel */
.side-wheel {
  display: none !important;
}

.home-cycle-card {
  overflow: hidden;
}

.cycle-feature {
  position: relative;
  min-height: 300px;
  margin: -8px -8px 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 50%, rgba(208, 24, 24, 0.18), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #fff4f4 100%);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  overflow: hidden;
}

.cycle-wheel-shell {
  position: relative;
  height: 260px;
  width: 170px;
  margin-left: -32px;
}

.cycle-mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cycle-wheel {
  position: absolute;
  width: 260px;
  height: 260px;
  left: -118px;
  top: 0;
  border-radius: 50%;
  border: 12px solid rgba(165, 2, 2, 0.12);
  background: white;
  box-shadow: 0 22px 48px rgba(165, 2, 2, 0.16);
  transform: rotate(0deg);
  transition: transform 1.25s cubic-bezier(.2,.82,.2,1);
}

.cycle-wheel::before {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: white;
  z-index: 3;
  box-shadow: inset 0 0 0 8px rgba(165, 2, 2, 0.10);
}

.cycle-wheel::after {
  content: "OP";
  position: absolute;
  inset: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
  z-index: 4;
  transform: rotate(var(--counter-rotate, 0deg));
  transition: transform 1.25s cubic-bezier(.2,.82,.2,1);
}

.cycle-quadrant {
  position: absolute;
  width: 50%;
  height: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
}

.cycle-quadrant span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.34);
  transform: rotate(var(--counter-rotate, 0deg));
  transition: transform 1.25s cubic-bezier(.2,.82,.2,1);
}

.q1 {
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #a50202, #c51616);
  border-radius: 0 100% 0 0;
}

.q2 {
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #c51616, #a50202);
  border-radius: 0 0 100% 0;
}

.q3 {
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #4b0000, #a50202);
  border-radius: 0 0 0 100%;
}

.q4 {
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #cf2929, #a50202);
  border-radius: 100% 0 0 0;
}

.cycle-info {
  position: relative;
  z-index: 5;
}

.cycle-kicker {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cycle-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  margin-bottom: 12px;
  letter-spacing: -0.055em;
}

.cycle-info p:last-child {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0;
}

.compact-logo {
  padding: 16px;
}

.compact-logo img {
  max-width: 280px;
}

/* soft text fade when cycle changes */
.cycle-info.is-changing {
  animation: cycleTextFade 0.55s ease;
}

@keyframes cycleTextFade {
  0% { opacity: 0.35; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .cycle-feature {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .cycle-wheel-shell {
    height: 210px;
    width: 210px;
    margin: 0 auto -4px;
  }

  .cycle-wheel {
    width: 210px;
    height: 210px;
    left: 0;
  }

  .cycle-wheel::before {
    inset: 44px;
  }

  .cycle-wheel::after {
    inset: 74px;
  }

  .cycle-info {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .cycle-feature {
    min-height: auto;
    margin: -2px -2px 22px;
    border-radius: 24px;
  }

  .cycle-wheel-shell {
    width: 178px;
    height: 178px;
  }

  .cycle-wheel {
    width: 178px;
    height: 178px;
    border-width: 9px;
  }

  .cycle-wheel::before {
    inset: 36px;
  }

  .cycle-wheel::after {
    inset: 62px;
    font-size: 1rem;
  }

  .cycle-quadrant span {
    width: 36px;
    height: 36px;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-wheel,
  .cycle-wheel::after,
  .cycle-quadrant span {
    transition: none;
  }

  .cycle-info.is-changing {
    animation: none;
  }
}


/* V5: header stability + visual content sections */
:root {
  --header-height: 82px;
}

.site-header {
  min-height: var(--header-height);
}

.nav {
  min-height: var(--header-height);
  transition: min-height 0.25s ease;
}

.brand img {
  width: 172px;
  transition: width 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.nav-links {
  transition: gap 0.25s ease, font-size 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(165, 2, 2, 0.12);
}

.site-header.is-scrolled .nav {
  min-height: var(--header-height);
}

.site-header.is-scrolled .brand img {
  width: 128px;
}

.site-header.is-scrolled .nav-links {
  gap: 16px;
  font-size: 0.89rem;
  transform: translateY(-1px);
}

/* neutralize old V3 shrinking rule that changed nav height */
@media (min-width: 981px) {
  .site-header.is-scrolled .nav {
    min-height: var(--header-height) !important;
  }
}

.visual-grid {
  display: grid;
  gap: 22px;
}

.visual-grid.five-up {
  grid-template-columns: repeat(5, 1fr);
}

.visual-grid.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.visual-card,
.photo-feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(28, 21, 21, 0.07);
}

.visual-card img,
.photo-feature-card img,
.feature-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.visual-content {
  padding: 18px 18px 20px;
}

.visual-content h3 {
  margin-bottom: 8px;
}

.visual-content p,
.photo-feature-card figcaption {
  color: var(--muted);
  margin: 0;
}

.photo-feature-grid.three-photo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-feature-card figcaption {
  padding: 16px 18px 20px;
  font-weight: 600;
}

.feature-image-wrap {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: white;
}

.feature-image {
  height: 360px;
}

.compact-top-image {
  margin-bottom: 22px;
}

.compact-top-image .feature-image {
  height: 260px;
}

.image-left {
  align-items: start;
}

.industry-visuals {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

@media (max-width: 1180px) {
  .visual-grid.five-up {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .visual-grid.five-up,
  .visual-grid.two-up,
  .photo-feature-grid.three-photo {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 280px;
  }
}

@media (max-width: 560px) {
  .visual-card img,
  .photo-feature-card img,
  .feature-image {
    height: 220px;
  }
}


/* V7: stronger unique visual presence and no repeated imagery */

/* Home slideshow */
.hero.hero-slideshow {
  position: relative;
  min-height: 720px;
  padding-top: 110px;
  padding-bottom: 90px;
  overflow: hidden;
  background: #290b0b;
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(36, 0, 0, 0.82) 0%, rgba(36, 0, 0, 0.60) 45%, rgba(36, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(165, 2, 2, 0.15), rgba(0,0,0,0.12));
}

.hero.hero-slideshow .hero-grid {
  position: relative;
  z-index: 2;
}

.hero-copy-light h1,
.hero-copy-light .light-text,
.hero-copy-light {
  color: #ffffff;
}

.hero-copy-light .hero-text {
  color: rgba(255,255,255,0.92);
}

.btn-outline-light {
  color: white;
  border-color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.16);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  background: white;
  transform: scale(1.15);
}

/* Unique background hero for inner pages */
.page-hero {
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
  overflow: hidden;
  color: white;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 0, 0, 0.78) 0%, rgba(36, 0, 0, 0.60) 45%, rgba(36, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(208, 24, 24, 0.10), rgba(0,0,0,0.12));
}

.page-hero .subhero-content {
  position: relative;
  z-index: 2;
}

.page-hero p,
.page-hero .lead,
.page-hero .subhero-content p {
  color: rgba(255,255,255,0.92);
}

.page-hero h1,
.page-hero h2 {
  color: white;
}

.page-hero .eyebrow {
  color: #ffe2e2;
}

/* Reduce old repeated embedded image blocks, keep only text support sections */
.feature-image-wrap,
.photo-feature-section,
.visual-grid,
.photo-feature-grid,
.compact-top-image {
  display: none !important;
}

/* Give home cycle card a stronger floating look over slideshow */
.hero.hero-slideshow .home-cycle-card {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.18);
}

/* Ensure job seekers button stays bright over bg */
.page-hero .btn.btn-white {
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
}

@media (max-width: 980px) {
  .hero.hero-slideshow {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 70px;
  }

  .hero.hero-slideshow .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero.hero-slideshow {
    padding-top: 82px;
    padding-bottom: 58px;
  }

  .hero-dots {
    margin-bottom: 8px;
  }
}


/* V8: real stock-photo treatment */
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(36, 0, 0, 0.82) 0%, rgba(36, 0, 0, 0.58) 42%, rgba(36, 0, 0, 0.30) 100%),
    linear-gradient(180deg, rgba(165, 2, 2, 0.10), rgba(0,0,0,0.14));
}

.hero-slide {
  filter: saturate(0.94) contrast(1.02);
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(36, 0, 0, 0.78) 0%, rgba(36, 0, 0, 0.55) 45%, rgba(36, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(208, 24, 24, 0.06), rgba(0,0,0,0.16));
}

.slide-caption {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.hero-dot {
  outline: none;
}

.hero-dot:focus-visible {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
}


/* V9: staffing-industry inspired sections and design refinements */
.nav-links a[href="contact.html"] {
  background: var(--purple);
  color: white !important;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(165, 2, 2, 0.18);
}

.nav-links a[href="contact.html"].active {
  border-bottom: 0;
  color: white !important;
}

.audience-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff9f9 100%);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.audience-card {
  min-height: 330px;
  border-radius: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background: white;
}

.audience-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(165, 2, 2, 0.10);
}

.employer-card {
  background:
    radial-gradient(circle at 100% 100%, rgba(165, 2, 2, 0.18), transparent 40%),
    linear-gradient(135deg, #ffffff, #fff0f0);
}

.worker-card {
  background:
    radial-gradient(circle at 100% 100%, rgba(208, 24, 24, 0.16), transparent 42%),
    linear-gradient(135deg, #ffffff, #fff8f8);
}

.card-label {
  color: var(--purple);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.audience-card h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
  margin-bottom: 10px;
}

.audience-card p {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 22px;
}

.specialties-showcase {
  background: #240000;
  color: white;
}

.specialties-showcase .section-heading p {
  color: #f6caca;
}

.specialties-showcase .eyebrow {
  color: #f6caca;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.specialty-grid article {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 24px;
  min-height: 210px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.specialty-grid article:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.13);
}

.specialty-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: white;
  color: var(--purple);
  font-weight: 900;
  margin-bottom: 18px;
}

.specialty-grid p {
  color: #f6caca;
  margin-bottom: 0;
}

.latest-jobs {
  background: linear-gradient(180deg, #ffffff, #fff8f8);
}

.job-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.job-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(28, 21, 21, 0.07);
}

.job-card p {
  color: var(--muted);
  min-height: 76px;
}

.job-card span {
  display: inline-flex;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.job-card a {
  display: block;
  color: var(--purple);
  font-weight: 900;
}

.services-grid-expanded {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.process-band {
  background: #fffafa;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-line article {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(165, 2, 2, 0.06);
}

.process-line span {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.process-line p {
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .audience-grid,
  .specialty-grid,
  .job-card-grid,
  .services-grid-expanded,
  .process-line {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 260px;
  }
}


/* V10: stable header behavior and language tab */
:root {
  --header-height: 82px;
}

.site-header {
  height: var(--header-height);
  min-height: var(--header-height);
}

.nav {
  height: var(--header-height);
  min-height: var(--header-height) !important;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(165, 2, 2, 0.12);
}

.site-header.is-scrolled .nav {
  height: var(--header-height);
  min-height: var(--header-height) !important;
}

.site-header.is-scrolled .brand img {
  width: 132px;
}

.site-header:not(.is-scrolled) .brand img {
  width: 172px;
}

.site-header.is-scrolled .nav-links {
  gap: 16px;
  font-size: 0.89rem;
  transform: none;
}

.language-link {
  color: var(--purple) !important;
  border: 1px solid rgba(165, 2, 2, 0.25);
  padding: 9px 13px !important;
  border-radius: 999px;
  background: rgba(165, 2, 2, 0.06);
  font-weight: 900;
}

.language-link:hover {
  background: rgba(165, 2, 2, 0.12);
}

.nav-links a[href="contact-es.html"] {
  background: var(--purple);
  color: white !important;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(165, 2, 2, 0.18);
}

.nav-links a[href="contact-es.html"].active {
  border-bottom: 0;
  color: white !important;
}

@media (max-width: 980px) {
  .nav-links {
    top: var(--header-height) !important;
  }

  .site-header.is-scrolled .nav-links {
    top: var(--header-height) !important;
  }

  .language-link {
    display: inline-flex;
    justify-content: center;
  }
}


/* V11: navigation polish — seamless logo + locked Quick Apply button */
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.brand img {
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}

/* Remove the visible white logo tile that was used in the footer styles and could carry over visually. */
.site-header .brand img,
.nav .brand img {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Keep Quick Apply the same comfortable shape before and after scrolling. */
.nav-links a[href="contact.html"],
.nav-links a[href="contact-es.html"],
.site-header.is-scrolled .nav-links a[href="contact.html"],
.site-header.is-scrolled .nav-links a[href="contact-es.html"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 122px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: var(--purple) !important;
  color: #ffffff !important;
  line-height: 1 !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  border: 2px solid var(--purple) !important;
  box-shadow: 0 10px 24px rgba(165, 2, 2, 0.18) !important;
  transform: none !important;
}

/* Do not let generic scrolled-link padding squeeze the CTA. */
.site-header.is-scrolled .nav-links a {
  line-height: 1.1;
}

.site-header.is-scrolled .nav-links a[href="contact.html"].active,
.site-header.is-scrolled .nav-links a[href="contact-es.html"].active,
.nav-links a[href="contact.html"].active,
.nav-links a[href="contact-es.html"].active {
  border-bottom: 2px solid var(--purple) !important;
  color: #ffffff !important;
}

/* Keep the language pill separate and stable too. */
.language-link,
.site-header.is-scrolled .language-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Header logo can scale, but only the image itself changes — no white plate behind it. */
.site-header:not(.is-scrolled) .brand img {
  width: 172px;
}

.site-header.is-scrolled .brand img {
  width: 132px;
}

/* Mobile nav CTA stays full and comfortable. */
@media (max-width: 980px) {
  .nav-links a[href="contact.html"],
  .nav-links a[href="contact-es.html"],
  .site-header.is-scrolled .nav-links a[href="contact.html"],
  .site-header.is-scrolled .nav-links a[href="contact-es.html"] {
    width: 100% !important;
    min-width: 100% !important;
    min-height: 46px !important;
    padding: 0 18px !important;
  }

  .language-link,
  .site-header.is-scrolled .language-link {
    width: 100% !important;
    min-height: 44px !important;
  }
}


/* V12: return to premium large-to-small navigation, with stable logo sizing */
:root {
  --nav-large-height: 104px;
  --nav-small-height: 68px;
}

/* Allow the header to actually grow at top and shrink on scroll again. */
.site-header {
  height: auto !important;
  min-height: var(--nav-large-height) !important;
  transition: min-height 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.nav {
  height: var(--nav-large-height) !important;
  min-height: var(--nav-large-height) !important;
  transition: height 0.28s ease, min-height 0.28s ease;
}

.site-header.is-scrolled {
  min-height: var(--nav-small-height) !important;
}

.site-header.is-scrolled .nav {
  height: var(--nav-small-height) !important;
  min-height: var(--nav-small-height) !important;
}

/* Size the logo by height instead of width so the transparent cropped logo doesn't get oversized. */
.brand img,
.site-header:not(.is-scrolled) .brand img,
.site-header.is-scrolled .brand img,
.site-header .brand img,
.nav .brand img {
  width: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.site-header:not(.is-scrolled) .brand img {
  max-height: 68px !important;
  max-width: 150px !important;
}

.site-header.is-scrolled .brand img {
  max-height: 44px !important;
  max-width: 108px !important;
}

/* Keep nav links vertically centered during the height transition. */
.nav-links {
  align-items: center !important;
}

.site-header:not(.is-scrolled) .nav-links {
  gap: 22px;
  font-size: 0.96rem;
}

.site-header.is-scrolled .nav-links {
  gap: 16px;
  font-size: 0.89rem;
}

/* Quick Apply must remain comfortable in both header sizes. */
.nav-links a[href="contact.html"],
.nav-links a[href="contact-es.html"],
.site-header.is-scrolled .nav-links a[href="contact.html"],
.site-header.is-scrolled .nav-links a[href="contact-es.html"],
.site-header:not(.is-scrolled) .nav-links a[href="contact.html"],
.site-header:not(.is-scrolled) .nav-links a[href="contact-es.html"] {
  min-width: 126px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.site-header.is-scrolled .nav-links a[href="contact.html"],
.site-header.is-scrolled .nav-links a[href="contact-es.html"] {
  min-height: 42px !important;
  min-width: 124px !important;
}

/* The Spanish/English pill stays stable too. */
.language-link,
.site-header.is-scrolled .language-link,
.site-header:not(.is-scrolled) .language-link {
  min-height: 40px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
}

/* The mobile menu should align below whichever header size is active. */
@media (max-width: 980px) {
  :root {
    --nav-large-height: 88px;
    --nav-small-height: 66px;
  }

  .site-header:not(.is-scrolled) .brand img {
    max-height: 58px !important;
    max-width: 128px !important;
  }

  .site-header.is-scrolled .brand img {
    max-height: 42px !important;
    max-width: 102px !important;
  }

  .nav-links {
    top: var(--nav-large-height) !important;
  }

  .site-header.is-scrolled .nav-links {
    top: var(--nav-small-height) !important;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-large-height: 82px;
    --nav-small-height: 62px;
  }

  .site-header:not(.is-scrolled) .brand img {
    max-height: 52px !important;
    max-width: 116px !important;
  }

  .site-header.is-scrolled .brand img {
    max-height: 38px !important;
    max-width: 94px !important;
  }
}


/* V13: more movement, interactive cards, and locations map */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card,
.audience-card,
.job-card,
.step,
.hover-reveal-card,
.location-list-item,
.selected-location-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover,
.audience-card:hover,
.job-card:hover,
.step:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 55px rgba(165, 2, 2, 0.16);
  border-color: rgba(165, 2, 2, 0.22);
}

.job-card:hover p,
.service-card:hover p,
.audience-card:hover p {
  color: #493838;
}

.location-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.location-panel {
  position: sticky;
  top: calc(var(--nav-small-height, 68px) + 24px);
  display: grid;
  gap: 18px;
}

.location-search-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(28, 21, 21, 0.08);
}

.location-search-card label {
  margin-bottom: 8px;
}

.location-search-card input,
.location-search-card select {
  margin-bottom: 16px;
}

.location-list {
  display: grid;
  gap: 12px;
}

.location-list-item {
  text-align: left;
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  font-family: inherit;
}

.location-list-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1rem;
}

.location-list-item span {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.88rem;
}

.location-list-item:hover,
.location-list-item.active {
  transform: translateX(6px);
  border-color: rgba(165, 2, 2, 0.34);
  box-shadow: 0 16px 35px rgba(165, 2, 2, 0.12);
  background: linear-gradient(135deg, #ffffff, #fff3f3);
}

.map-stage {
  display: grid;
  gap: 20px;
}

.map-card {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(208, 24, 24, 0.22), transparent 35%),
    linear-gradient(135deg, #ffffff, #ffeded);
  box-shadow: var(--shadow);
}

.map-background {
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 54% 42%, rgba(165, 2, 2, 0.12), transparent 13%),
    radial-gradient(circle at 57% 60%, rgba(165, 2, 2, 0.12), transparent 12%),
    radial-gradient(circle at 49% 28%, rgba(165, 2, 2, 0.12), transparent 13%),
    linear-gradient(135deg, rgba(165,2,2,0.08), rgba(255,255,255,0.8));
  border: 1px solid rgba(165, 2, 2, 0.10);
}

.map-background::before {
  content: "";
  position: absolute;
  inset: 54px 74px;
  background:
    linear-gradient(135deg, rgba(165, 2, 2, 0.20), rgba(208, 24, 24, 0.06));
  clip-path: polygon(36% 4%, 58% 9%, 73% 23%, 84% 40%, 76% 61%, 64% 74%, 59% 93%, 39% 83%, 22% 68%, 15% 44%, 21% 21%);
  border-radius: 24px;
  opacity: 0.95;
}

.map-region {
  position: absolute;
  z-index: 2;
  color: rgba(165, 2, 2, 0.18);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  pointer-events: none;
  text-transform: uppercase;
}

.map-region.midwest {
  top: 14%;
  left: 10%;
}

.map-region.south {
  bottom: 9%;
  right: 12%;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 9px rgba(165, 2, 2, 0.13), 0 16px 28px rgba(165, 2, 2, 0.26);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.map-pin span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: white;
  margin: auto;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(165, 2, 2, 0.2);
  animation: mapPulse 2.8s ease-out infinite;
}

.map-pin:hover,
.map-pin.active {
  transform: translate(-50%, -50%) scale(1.25);
  background: #620000;
  box-shadow: 0 0 0 13px rgba(165, 2, 2, 0.18), 0 22px 38px rgba(165, 2, 2, 0.30);
}

@keyframes mapPulse {
  0% { opacity: 0.7; transform: scale(0.8); }
  70% { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(1.55); }
}

.selected-location-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 42px rgba(28, 21, 21, 0.08);
}

.selected-location-card.is-changing {
  animation: locationFade 0.45s ease;
}

@keyframes locationFade {
  0% { opacity: 0.45; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.selected-location-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.055em;
  margin-bottom: 10px;
}

.selected-location-card p {
  color: var(--muted);
}

.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.location-tags span {
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hover-reveal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hover-reveal-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 100%, rgba(165, 2, 2, 0.12), transparent 42%),
    white;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(28, 21, 21, 0.07);
}

.hover-reveal-card h3 {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.hover-reveal-card p {
  color: var(--muted);
}

.hover-reveal-card .reveal-copy {
  opacity: 0;
  max-height: 0;
  color: var(--muted);
  font-weight: 650;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.hover-reveal-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 28px 60px rgba(165, 2, 2, 0.16);
  border-color: rgba(165, 2, 2, 0.28);
}

.hover-reveal-card:hover .reveal-copy {
  opacity: 1;
  max-height: 160px;
  margin: 16px 0;
}

.hover-reveal-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--purple);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .location-layout {
    grid-template-columns: 1fr;
  }

  .location-panel {
    position: static;
  }

  .map-card {
    min-height: 430px;
  }
}

@media (max-width: 980px) {
  .hover-reveal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .map-card {
    min-height: 340px;
    border-radius: 24px;
  }

  .map-background {
    inset: 12px;
  }

  .map-region {
    font-size: 2.2rem;
  }

  .location-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin::after {
    animation: none;
  }

  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
  }
}


.locations-teaser {
  background: linear-gradient(135deg, #ffffff 0%, #fff4f4 100%);
}

.mini-map-preview {
  position: relative;
  min-height: 330px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 55% 40%, rgba(165, 2, 2, 0.18), transparent 22%),
    linear-gradient(135deg, white, #ffe8e8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-map-preview::before {
  content: "";
  position: absolute;
  inset: 58px;
  background: rgba(165, 2, 2, 0.14);
  clip-path: polygon(36% 4%, 58% 9%, 73% 23%, 84% 40%, 76% 61%, 64% 74%, 59% 93%, 39% 83%, 22% 68%, 15% 44%, 21% 21%);
  border-radius: 22px;
}

.mini-map-preview span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 0 8px rgba(165,2,2,0.13);
  animation: mapPulse 2.8s ease-out infinite;
}

.mini-map-preview span:nth-child(1) { left: 48%; top: 35%; }
.mini-map-preview span:nth-child(2) { left: 56%; top: 48%; animation-delay: 0.3s; }
.mini-map-preview span:nth-child(3) { left: 42%; top: 55%; animation-delay: 0.6s; }
.mini-map-preview span:nth-child(4) { left: 62%; top: 66%; animation-delay: 0.9s; }

.mini-map-preview p {
  position: absolute;
  left: 26px;
  bottom: 22px;
  color: var(--purple);
  font-weight: 900;
  font-size: 1.2rem;
}


/* V14: upgraded Find Talent / Find Work movement + real rendered state map */
.talent-builder-section,
.worker-path-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(165,2,2,0.08), transparent 30%),
    linear-gradient(180deg, #ffffff, #fff8f8);
}

.talent-builder-grid,
.work-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card,
.work-path-card {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  padding: 28px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(28, 21, 21, 0.07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.solution-card::before,
.work-path-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -85px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(165,2,2,0.08);
  transition: transform .28s ease, background .28s ease;
}

.solution-card img,
.work-path-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform .28s ease;
}

.solution-card span {
  display: block;
  color: var(--purple);
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 8px;
}

.solution-card strong,
.work-path-card h3 {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.12;
}

.work-path-card p {
  color: var(--muted);
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.solution-card:hover,
.solution-card.active,
.work-path-card:hover,
.work-path-card.active {
  transform: translateY(-10px) scale(1.035);
  border-color: rgba(165,2,2,.32);
  box-shadow: 0 30px 65px rgba(165,2,2,.18);
  background: linear-gradient(135deg, white, #fff2f2);
}

.solution-card:hover img,
.solution-card.active img,
.work-path-card:hover img,
.work-path-card.active img {
  transform: rotate(-4deg) scale(1.12);
}

.solution-card:hover::before,
.solution-card.active::before,
.work-path-card:hover::before,
.work-path-card.active::before {
  transform: scale(1.25);
  background: rgba(165,2,2,.14);
}

.solution-detail,
.work-path-detail {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.solution-detail.is-changing,
.work-path-detail.is-changing {
  animation: panelSwap .45s ease;
}

@keyframes panelSwap {
  0% { opacity: .45; transform: translateY(8px) scale(.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.solution-detail h3,
.work-path-detail h3 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  letter-spacing: -.055em;
}

.solution-detail p,
.work-path-detail p {
  color: var(--muted);
  margin-bottom: 0;
}

.employer-motion-section,
.applicant-readiness-section {
  background: #240000;
  color: white;
}

.employer-motion-section .eyebrow,
.applicant-readiness-section .eyebrow {
  color: #f6caca;
}

.employer-motion-section .lead,
.applicant-readiness-section .lead {
  color: #f8dada;
}

.motion-stack {
  display: grid;
  gap: 16px;
}

.motion-stack article,
.readiness-list article {
  position: relative;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
  transition: transform .24s ease, background .24s ease;
}

.motion-stack article:hover,
.readiness-list article:hover {
  transform: translateX(8px) scale(1.02);
  background: rgba(255,255,255,.14);
}

.motion-stack span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--purple);
  font-weight: 900;
  margin-bottom: 12px;
}

.motion-stack p,
.readiness-list p {
  color: #f8dada;
  margin-bottom: 0;
}

.industry-pulse-section,
.job-carousel-section {
  background: linear-gradient(180deg, #ffffff, #fff8f8);
}

.pulse-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pulse-expand-card {
  position: relative;
  min-height: 270px;
  border-radius: 30px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(28,21,21,.07);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}

.pulse-expand-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  transition: transform .28s ease;
}

.pulse-expand-card h3 {
  font-size: 1.5rem;
}

.pulse-expand-card p {
  color: var(--muted);
  max-height: 54px;
  overflow: hidden;
  transition: max-height .28s ease;
}

.pulse-expand-card:hover {
  transform: translateY(-10px) scale(1.045);
  box-shadow: 0 30px 65px rgba(165,2,2,.18);
}

.pulse-expand-card:hover img {
  transform: scale(1.15) rotate(5deg);
}

.pulse-expand-card:hover p {
  max-height: 160px;
}

.opportunity-carousel {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.opportunity-slide {
  position: absolute;
  inset: 34px 92px;
  opacity: 0;
  transform: translateX(40px) scale(.98);
  transition: opacity .45s ease, transform .45s ease;
  text-align: center;
  pointer-events: none;
}

.opportunity-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.opportunity-slide img {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
}

.opportunity-slide span {
  display: inline-flex;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  margin-bottom: 14px;
}

.opportunity-slide h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.06em;
}

.opportunity-slide p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(165,2,2,.22);
  transition: transform .2s ease, background .2s ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.12);
  background: #4b0000;
}

[data-carousel-prev] { left: 24px; }
[data-carousel-next] { right: 24px; }

.readiness-list {
  display: grid;
  gap: 16px;
}

.readiness-list span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
  background: white;
  box-shadow: 0 0 0 8px rgba(255,255,255,.10);
  margin-bottom: 12px;
}

.readiness-list strong {
  display: block;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Replace abstract location blob with a real rendered U.S. state map asset */
.map-card {
  min-height: 600px;
}

.us-state-map-background {
  background: white !important;
  border: 1px solid rgba(165,2,2,.12);
  display: grid;
  place-items: center;
}

.us-state-map-background::before {
  display: none !important;
}

.us-state-map-image {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 18px 32px rgba(165,2,2,.10));
}

.us-state-map-background .map-pin {
  z-index: 8;
}

.map-region {
  display: none !important;
}

@media (max-width: 980px) {
  .talent-builder-grid,
  .work-path-grid,
  .pulse-card-grid {
    grid-template-columns: 1fr;
  }

  .solution-detail,
  .work-path-detail {
    grid-template-columns: 1fr;
  }

  .opportunity-slide {
    inset: 28px 70px;
  }
}

@media (max-width: 560px) {
  .map-card {
    min-height: 430px;
  }

  .solution-card,
  .work-path-card {
    min-height: 210px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .opportunity-slide {
    inset: 28px 54px;
  }
}


/* V15: extra OP icon system + reliable inline U.S. map fix */
.op-icon-strip-section {
  padding: 54px 0;
  background: #240000;
}

.op-icon-strip,
.op-values-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.op-icon-strip article,
.op-values-icons article {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  color: white;
  transition: transform .26s ease, background .26s ease, box-shadow .26s ease;
}

.op-values-icons article {
  background: white;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 16px 38px rgba(28,21,21,.07);
}

.op-icon-strip article:hover,
.op-values-icons article:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 28px 60px rgba(165,2,2,.18);
}

.op-icon-strip img,
.op-values-icons img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 14px;
  transition: transform .26s ease;
}

.op-icon-strip article:hover img,
.op-values-icons article:hover img {
  transform: rotate(-5deg) scale(1.12);
}

.op-icon-strip h3,
.op-values-icons h3 {
  margin-bottom: 8px;
}

.op-icon-strip p {
  color: #ffe2e2;
  margin-bottom: 0;
}

.op-values-icons p {
  color: var(--muted);
  margin-bottom: 0;
}

.op-values-icons-section {
  background: linear-gradient(180deg, #ffffff, #fff8f8);
}

.service-icon-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 14px;
  transition: transform .24s ease;
}

.service-card:hover .service-icon-img {
  transform: rotate(-5deg) scale(1.12);
}

/* Force old broken map layers off */
.us-state-map-image,
.map-background::before,
.map-region {
  display: none !important;
}

/* Reliable inline map rendering */
.fixed-us-map-card {
  position: relative;
  min-height: 620px !important;
  padding: 0;
  background: #ffffff !important;
  overflow: hidden;
}

.inline-map-wrap {
  position: absolute;
  inset: 22px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff9f9;
  border: 1px solid rgba(165,2,2,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}

.inline-us-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.inline-us-map .state-tile {
  transition: transform .2s ease, opacity .2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.inline-us-map .active-state {
  filter: drop-shadow(0 8px 10px rgba(165,2,2,.25));
}

.inline-us-map .state-tile:hover {
  transform: scale(1.08);
}

.inline-map-wrap .map-pin {
  z-index: 15 !important;
}

/* Map pin text/active fix */
.map-pin {
  display: grid;
  place-items: center;
}

.location-list-item[style*="display: none"] {
  display: none !important;
}

@media (max-width: 1080px) {
  .fixed-us-map-card {
    min-height: 520px !important;
  }
}

@media (max-width: 980px) {
  .op-icon-strip,
  .op-values-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .fixed-us-map-card {
    min-height: 470px !important;
  }
}

@media (max-width: 560px) {
  .op-icon-strip,
  .op-values-icons {
    grid-template-columns: 1fr;
  }

  .fixed-us-map-card {
    min-height: 360px !important;
  }

  .inline-map-wrap {
    inset: 10px;
  }
}


/* V16: clean location map — clickable states, no overlapping pin cluster */
.clean-map-card {
  min-height: 620px !important;
  background: #ffffff !important;
  overflow: hidden;
}

.clean-inline-map-wrap {
  position: absolute;
  inset: 22px;
  border-radius: 30px;
  overflow: hidden;
  background: #fff9f9;
  border: 1px solid rgba(165,2,2,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85);
}

.clean-state-map {
  display: block;
  width: 100%;
  height: 100%;
}

.clean-state-map .state-tile {
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.clean-state-map .active-state {
  cursor: pointer;
  filter: drop-shadow(0 9px 10px rgba(165,2,2,.20));
}

.clean-state-map .clickable-state:hover,
.clean-state-map .clickable-state:focus,
.clean-state-map .selected-state {
  transform: scale(1.12);
  filter: drop-shadow(0 12px 14px rgba(165,2,2,.34));
  outline: none;
}

.clean-state-map .selected-state rect {
  stroke: #ffffff;
  stroke-width: 4;
}

.clean-state-map .state-dot {
  animation: stateDotPulse 2.6s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes stateDotPulse {
  0% { opacity: 1; transform: scale(.9); }
  60% { opacity: .55; transform: scale(1.55); }
  100% { opacity: 1; transform: scale(.9); }
}

.map-helper-card {
  position: absolute;
  right: 34px;
  bottom: 32px;
  z-index: 5;
  width: min(260px, calc(100% - 68px));
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(165,2,2,.16);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 16px 34px rgba(28,21,21,.10);
  backdrop-filter: blur(8px);
}

.map-helper-card img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.map-helper-card p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.35;
}

/* Hide old map pin layer fully on the clean map */
.clean-map-card .map-pin {
  display: none !important;
}

/* Disable old SVG image map if any earlier markup survives */
.clean-map-card .us-state-map-image {
  display: none !important;
}

@media (max-width: 1080px) {
  .clean-map-card {
    min-height: 540px !important;
  }
}

@media (max-width: 700px) {
  .clean-map-card {
    min-height: 410px !important;
  }

  .clean-inline-map-wrap {
    inset: 10px;
  }

  .map-helper-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .clean-map-card {
    min-height: 330px !important;
  }

  .map-helper-card {
    display: none;
  }
}


/* V17: map paused — clean service areas now, Firebase-ready location hub later */
.service-area-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-area-card {
  position: relative;
  min-height: 340px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 16px 38px rgba(28,21,21,.07);
  padding: 28px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.service-area-card::before {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(165,2,2,.08);
  transition: transform .28s ease, background .28s ease;
}

.service-area-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(165,2,2,.30);
  box-shadow: 0 30px 65px rgba(165,2,2,.16);
  background: linear-gradient(135deg, #ffffff, #fff2f2);
}

.service-area-card:hover::before {
  transform: scale(1.22);
  background: rgba(165,2,2,.13);
}

.service-area-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 18px;
  transition: transform .28s ease;
}

.service-area-card:hover img {
  transform: rotate(-5deg) scale(1.12);
}

.service-area-card > span {
  display: inline-flex;
  color: var(--purple);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 10px;
}

.service-area-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -.055em;
}

.service-area-card p {
  color: var(--muted);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.area-tags span {
  display: inline-flex;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.service-area-card a {
  position: relative;
  z-index: 2;
  color: var(--purple);
  font-weight: 900;
}

.featured-area,
.future-area {
  background:
    radial-gradient(circle at 100% 100%, rgba(165,2,2,.15), transparent 42%),
    white;
}

.firebase-preview-section {
  background: #240000;
  color: white;
}

.firebase-preview-card {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 32px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(225,72,72,.20), transparent 34%),
    rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px;
  padding: 36px;
}

.firebase-preview-card .eyebrow {
  color: #f6caca;
}

.firebase-preview-card p {
  color: #ffe2e2;
}

.firebase-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.firebase-feature-list article {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 16px;
  transition: transform .24s ease, background .24s ease;
}

.firebase-feature-list article:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255,255,255,.16);
}

.firebase-feature-list img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.firebase-feature-list span {
  font-weight: 900;
}

/* Hide any old map mechanics if older markup appears in cache/builds. */
.interactive-location-section,
.fixed-us-map-card,
.clean-map-card,
.map-stage,
.location-panel,
.location-layout,
.map-card,
.inline-map-wrap,
.map-helper-card {
  display: none !important;
}

.locations-teaser .mini-map-preview::before {
  opacity: .55;
}

@media (max-width: 980px) {
  .service-area-grid,
  .firebase-preview-card,
  .firebase-feature-list {
    grid-template-columns: 1fr;
  }
}


/* V18: numbering cleanup */
.service-card .service-icon-img:first-child,
.service-card > .service-icon-img:first-of-type {
  margin-top: 0;
}

/* Keep numbered process badges clean and consistent after removing leading zeros. */
.motion-stack span,
.process-line span,
.step span,
.specialty-grid span {
  font-variant-numeric: tabular-nums;
}

/* IQ MGMT brand system */
.brand {
  gap: 12px;
  line-height: 1;
}

.brand img,
.site-header:not(.is-scrolled) .brand img,
.site-header.is-scrolled .brand img,
.site-header .brand img,
.nav .brand img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
}

.brand-wordmark {
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark strong {
  color: var(--purple);
  font-weight: 950;
}

.site-header.is-scrolled .brand img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

.site-header.is-scrolled .brand-wordmark {
  font-size: 1.32rem;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.card-logo img,
.compact-logo img {
  width: 74px !important;
  height: 74px !important;
  max-width: 74px !important;
  object-fit: contain;
  margin: 0 !important;
}

.card-logo .brand-wordmark {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.site-footer .footer-grid > div:first-child {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 8px 12px;
}

.site-footer img {
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 7px;
  object-fit: contain;
}

.site-footer .brand-wordmark {
  color: white;
  font-size: 1.4rem;
}

.site-footer .brand-wordmark strong {
  color: #ff9a9a;
}

.site-footer .footer-grid > div:first-child p {
  grid-column: 1 / -1;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .brand img,
  .site-header:not(.is-scrolled) .brand img,
  .site-header .brand img,
  .nav .brand img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }

  .brand-wordmark {
    font-size: 1.32rem;
  }
}
