/* =========================================================
   NTX Home Services — global styles (every page)
   1. Fonts   2. Brand tokens   3. Base   4. Utilities & buttons
   5. Header  6. Photo banners   7. Footer   8. Pop-up forms
   9. Shared animations
   Page styles load after this file: home.css, services.css, jobs.css, hi.css, 404.css
   ========================================================= */

/* ---------- 1. Fonts ---------- */

@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter_18pt-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter_18pt-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter_18pt-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

/* ---------- 2. Brand tokens ---------- */

:root {
  /* Brand colors */
  --orange-start: #f6a21d;
  --orange-end: #ec6423;
  --blue-start: #4ac1eb;
  --blue-end: #11708c;
  --gradient-orange: linear-gradient(135deg, var(--orange-start) 0%, var(--orange-end) 100%);
  --gradient-blue: linear-gradient(135deg, var(--blue-start) 0%, var(--blue-end) 100%);

  /* Surfaces */
  --color-bg: #0b0d10;
  --color-bg-alt: #101317;
  --color-surface: #151a1f;
  --color-surface-raised: #1b2127;
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --color-text: #ffffff;
  --color-text-muted: #b8c0c8;
  --color-text-dark: #14100c;
  --color-focus: var(--blue-start);
  --color-error: #ff8a7a;

  /* Type */
  --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --weight-label: 500; /* Inter Medium for buttons, nav and labels. Change to 600 to try SemiBold. */

  /* Layout */
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --header-h: 4.25rem;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 68rem) {
  :root { --header-h: 3.75rem; }
}

/* ---------- 3. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html.has-dialog-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Pages without a full-bleed hero keep content clear of the fixed header. */
body:not(.has-hero) main { padding-top: var(--header-h); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[tabindex="-1"]:focus { outline: none; }

/* ---------- 4. Utilities & buttons ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--color-text-dark);
  font-weight: var(--weight-label);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--gradient-orange);
  color: var(--color-text-dark);
  box-shadow: 0 10px 30px rgba(236, 100, 35, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(236, 100, 35, 0.38); }
.btn--primary:disabled { opacity: 0.7; cursor: progress; transform: none; }

/* Orange gradient outline that fills on hover, like the header phone button. */
.btn--stroke {
  position: relative;
  isolation: isolate;
  background: transparent;
  color: #fff;
}

.btn--stroke::before,
.btn--stroke::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient-orange);
}

.btn--stroke::before {
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.btn--stroke::after {
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.btn--stroke:hover::after { opacity: 1; }

/* Frosted glass over photos */
.btn--glass {
  background: rgba(16, 19, 23, 0.5);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.btn--glass:hover { background: rgba(16, 19, 23, 0.65); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }

.btn--outline {
  background: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1.5px var(--color-border-strong);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue-start); }

/* Brand-colored line icons. The SVG file is used as a mask and filled with a gradient. */
.icon {
  display: inline-block;
  flex: none;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-orange);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon--blue { background: var(--gradient-blue); }

/* Icon files (approved artwork in /vectors — do not replace) */
.icon--real-people { --icon: url('../vectors/Real%20People%20Real%20Help-01.svg'); }
.icon--experienced { --icon: url('../vectors/Experienced%20Professionals-01.svg'); }
.icon--on-time { --icon: url('../vectors/On%20Time%20Arrival-01.svg'); }
.icon--communication { --icon: url('../vectors/Clear%20Communication-01.svg'); }
.icon--clean { --icon: url('../vectors/Clean%20and%20Careful%20Work-01.svg'); }
.icon--warranty { --icon: url('../vectors/Warrantied%20Workmanship-01.svg'); }
.icon--call { --icon: url('../vectors/Call%20Stroke%20Black-01.svg'); }
.icon--message { --icon: url('../vectors/Message%20Stroke%20Black-01.svg'); }
.icon--form { --icon: url('../vectors/Form%20Stroke%20Black-01.svg'); }
.icon--contact { --icon: url('../vectors/Contact-01.svg'); }
.icon--email { --icon: url('../vectors/Email-01.svg'); }
.icon--web { --icon: url('../vectors/Web-01.svg'); }
.icon--schedule { --icon: url('../vectors/Schedule-01.svg'); }
.icon--agreement { --icon: url('../vectors/Agreement-01.svg'); }
.icon--growth { --icon: url('../vectors/UpUpUp-01.svg'); }
.icon--star-1 { --icon: url('../vectors/1%20Star-01.svg'); }
.icon--star-2 { --icon: url('../vectors/2%20Star-01.svg'); }
.icon--star-3 { --icon: url('../vectors/3%20Star-01.svg'); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 5. Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(11, 13, 16, 0.94);
  box-shadow: 0 1px 0 var(--color-border), 0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.site-header__logo { display: block; }

/* Bigger screens: the logo moves out to the page's side margin instead of the content edge. */
@media (min-width: 81rem) {
  .site-header__logo { transform: translateX(calc((100vw - var(--container)) / -2 + var(--gutter))); }
}
.site-header__logo img { width: auto; height: calc(var(--header-h) - 1.25rem); }

/* Primary nav */
.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item { position: relative; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--weight-label);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s var(--ease);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-expanded='true'] { opacity: 1; }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current='page'] { opacity: 1; }
.site-nav__link[aria-current='page']::after { transform: scaleX(1); }

.chevron { width: 0.7rem; height: 0.5rem; transition: transform 0.2s var(--ease); }
.site-nav__toggle[aria-expanded='true'] .chevron { transform: rotate(180deg); }

.site-nav__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  min-width: 13rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}

.site-nav__menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__menu a:hover { background: rgba(255, 255, 255, 0.06); }

/* Contact area */
.site-header__contact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-header__contact-label {
  font-size: 0.875rem;
  font-weight: var(--weight-label);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.contact-popover { position: relative; }

/* Orange gradient outline that fills on hover. The number stays white. */
.phone-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 2.375rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.phone-button::before,
.phone-button::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient-orange);
}

.phone-button::before {
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.phone-button::after {
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.phone-button:hover::after,
.phone-button[aria-expanded='true']::after { opacity: 1; }

.contact-popover__options {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem; /* room for the rings */
  padding-top: 0.6rem;
  transform: translateX(-50%);
}

/*
 * Call (orange) and Text (blue) circles, styled like the service page step circles:
 * frosted glass with a gradient ring around it. On hover or touch the circle grows and
 * the ring moves outward and spins. Sizes change through inset and width (not scale)
 * so the icon stays sharp.
 */
.round-action {
  --ring-a: var(--orange-start);
  --ring-b: var(--orange-end);
  position: relative;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
}
.round-action--text { --ring-a: var(--blue-start); --ring-b: var(--blue-end); }

.round-action::before,
.round-action::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  transition: inset 0.4s var(--ease), opacity 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.round-action::before {
  inset: 0;
  background: rgba(16, 19, 23, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.round-action::after {
  inset: -0.4rem;
  padding: 1.5px;
  background: conic-gradient(from var(--tag-angle), var(--ring-a), var(--ring-b), transparent, var(--ring-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.round-action .icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--ring-a), var(--ring-b));
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}

.round-action:is(:hover, :active)::before { inset: -0.2rem; box-shadow: inset 0 0 0 1px var(--ring-a), 0 12px 28px rgba(0, 0, 0, 0.5); }
.round-action:is(:hover, :active)::after { inset: -0.7rem; animation: tag-spin 1.6s linear infinite; }
.round-action:is(:hover, :active) .icon { width: 1.7rem; height: 1.7rem; }
.round-action:focus-visible { border-radius: 50%; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 1.375rem;
  height: 2px;
  margin-left: -0.6875rem;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after { transform: translateY(7px); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: rotate(45deg); background: #fff; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: rotate(-45deg); background: #fff; }

/* Compact header: below the width needed for logo + nav + contact in one row. */
@media (max-width: 68rem) {
  .site-header__inner { grid-template-columns: auto 1fr; gap: 1rem; }
  .site-header__contact { justify-self: end; gap: 0.6rem; }
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(11, 13, 16, 0.98);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .site-header.is-menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.5rem;
  }

  .site-nav__item { border-bottom: 1px solid var(--color-border); }

  .site-nav__link {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1.0625rem;
  }
  .site-nav__link::after { left: 0; right: auto; width: 2rem; bottom: 0.6rem; }

  .site-nav__menu {
    position: static;
    min-width: 0;
    margin: 0 0 0.75rem;
    padding: 0.25rem;
    background: var(--color-surface);
    box-shadow: none;
    transform: none;
  }
  .site-nav__menu a { padding: 0.75rem 1rem; font-size: 1rem; }
}

@media (max-width: 32rem) {
  .site-header__contact-label { display: none; }
  .phone-button { padding: 0 0.75rem; font-size: 0.875rem; }
}

/* ---------- 6. Photo banners (homepage and jobs page) ---------- */

/* Full-bleed photo with text overlay. Used by the hero and the Promise banner. */
.banner {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.banner__media,
.banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.banner__media img { object-fit: cover; }

.banner__scrim { position: absolute; inset: 0; pointer-events: none; }

.banner__content { position: relative; z-index: 1; }

.banner__copy { max-width: 34rem; }

.banner--right .banner__copy { margin-left: auto; }

/* Hero / Why Us */
.hero {
  display: flex;
  flex-direction: column;
  min-height: clamp(36rem, 92vh, 54rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem); /* breathing room before the white Promise section */
  padding-top: calc(var(--header-h) + 3rem);
}

.hero__media img { object-position: 74% 30%; }

.hero__scrim {
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.7) 0%, rgba(8, 10, 12, 0) 22%),
    linear-gradient(90deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.86) 30%, rgba(8, 10, 12, 0.35) 52%, rgba(8, 10, 12, 0) 66%),
    linear-gradient(0deg, var(--color-bg-alt) 0%, rgba(16, 19, 23, 0.7) 12%, rgba(16, 19, 23, 0) 30%);
}

.hero__content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
}

.hero__title {
  margin-top: 1rem;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero__text {
  margin-top: 1.5rem;
  max-width: 31rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
}

.hero .btn { margin-top: 2.25rem; min-width: 12rem; font-size: 1.0625rem; }

/* Tablet and mobile: photos sit above their text so faces and text both stay clear. */
@media (max-width: 60rem) {
  .banner {
    --media-ratio: 16 / 9;
    display: block;
    min-height: 0;
    padding: 0;
  }
  .banner__media {
    position: relative;
    display: block;
    aspect-ratio: var(--media-ratio);
  }
  .banner__content { margin-top: -2.5rem; }
  .banner__copy { max-width: 40rem; margin-left: 0; }
  .banner--right .banner__copy { margin-left: 0; }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(8, 10, 12, 0.65) 0%, rgba(8, 10, 12, 0) 26%),
      linear-gradient(0deg, var(--color-bg-alt) 0%, rgba(16, 19, 23, 0) 35%);
    aspect-ratio: var(--media-ratio);
    bottom: auto;
  }
  .hero__content { grid-template-columns: 1fr; padding-bottom: 0; }
}

@media (max-width: 47.99rem) {
  .banner { --media-ratio: 4 / 3.4; }
  .hero__media img { object-position: 86% 30%; }
  .hero .btn { width: 100%; }
}

/* ---------- 7. Footer ---------- */

.site-footer {
  padding-block: 4rem 3rem;
  background: #07090b;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  /* First column fits the one-line tagline, the Hours column fits its longest line. */
  grid-template-columns: max-content max-content repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer__hours li { white-space: nowrap; }

/* Narrower desktops: the logo and tagline get their own row above the four columns. */
@media (max-width: 80rem) {
  .site-footer__grid { grid-template-columns: max-content repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

.site-footer__brand { margin-right: clamp(1rem, 3vw, 2.5rem); } /* extra room before column 2 */

.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: 9rem; }

.site-footer__tagline { margin-top: 1.25rem; color: var(--color-text); white-space: nowrap; }

.site-footer__heading {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.site-footer__links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.site-footer__links a:hover,
.link-button:hover { color: var(--orange-start); }
.site-footer__links a[aria-current='page'] { color: var(--orange-start); }

.site-footer__copyright {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

@media (max-width: 60rem) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 30rem) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__tagline,
  .site-footer__copyright,
  .site-footer__hours li { white-space: normal; }
}

/* ---------- 8. Request Service form ---------- */

.request-dialog {
  width: min(40rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  overflow: visible;
}

.request-dialog::backdrop {
  background: rgba(4, 6, 8, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.request-dialog__panel {
  position: relative;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.request-dialog__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-start), var(--orange-end) 50%, var(--blue-end) 50.01%, var(--blue-start));
}

/* Sticky so the X stays reachable while a long form scrolls. */
.request-dialog__close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  margin: -0.75rem -0.75rem 0 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-raised);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.request-dialog__close:hover { background: #262e36; }
.request-dialog__close svg { width: 1rem; height: 1rem; }
.request-dialog__close:focus-visible { border-radius: 50%; }

.request-dialog__title {
  margin-top: 0.5rem;
  padding-right: 2.5rem;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
}

.request-dialog__intro { margin-top: 0.5rem; color: var(--color-text-muted); }

.required-mark { color: var(--orange-start); }

.request-form { margin-top: 1.75rem; }

.request-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }

.field label,
.field legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: var(--weight-label);
}

.field__hint { color: var(--color-text-muted); font-size: 0.8125rem; font-weight: 400; }
.field__hint.is-error { color: var(--color-error); }

.field input[type='text'],
.field input[type='tel'],
.field input[type='email'],
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea { min-height: 7.5rem; resize: vertical; }

.field select {
  padding-right: 2.5rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b8c0c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  cursor: pointer;
}
.field select option { background: var(--color-surface); color: var(--color-text); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-start);
  box-shadow: 0 0 0 3px rgba(74, 193, 235, 0.2);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-error); }

.field__error {
  min-height: 0;
  color: var(--color-error);
  font-size: 0.8125rem;
}
.field__error:empty { display: none; }

/* Checkbox pills */
.choice-group__options { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.15rem; }

.choice { position: relative; cursor: pointer; }

.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.choice span::before {
  content: '';
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 0.3rem;
  background: center / 0.7rem no-repeat;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.choice:hover span { border-color: rgba(255, 255, 255, 0.3); }
.choice input:checked + span { border-color: var(--orange-start); background: rgba(246, 162, 29, 0.08); }
.choice input:checked + span::before {
  border-color: transparent;
  background-color: var(--orange-end);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choice input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* File upload slots */
.uploads__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; margin-top: 0.15rem; }

.file-slot { position: relative; display: flex; }

.file-slot__input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.file-slot__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.5rem 0.85rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.file-slot__label:hover { border-color: var(--blue-start); }
.file-slot__input:focus-visible + .file-slot__label { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.file-slot__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gradient-blue);
  font-weight: 600;
  line-height: 1;
}

.file-slot__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.file-slot.has-file .file-slot__label { border-style: solid; padding-right: 3rem; }
.file-slot.has-file .file-slot__icon { background: var(--gradient-orange); }

.file-slot__remove {
  position: absolute;
  top: 50%; right: 0.4rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
}
.file-slot__remove:hover { background: rgba(255, 255, 255, 0.08); }
.file-slot__remove svg { width: 0.85rem; height: 0.85rem; }

.request-form__captcha { margin-top: 1.25rem; }
.request-form > .uploads { margin-top: 1.25rem; }

/* City, State and Zip in one row */
.request-form__place {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

/* Consent boxes (SMS Terms, section 6) */
.consent { gap: 0.6rem; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.consent-check:hover { border-color: rgba(255, 255, 255, 0.3); }
.consent-check:has(input:checked) { border-color: var(--orange-start); color: var(--color-text); }
.consent-check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--orange-end);
  cursor: pointer;
}
.consent-check a,
.request-form__consent a { color: var(--orange-start); }
.consent__required.has-error .consent-check { border-color: var(--color-error); }
.consent .request-form__consent { margin-top: 0.4rem; }

.request-form__consent {
  margin-top: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.request-form__status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 138, 122, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 138, 122, 0.08);
  color: var(--color-error);
  font-size: 0.875rem;
}

.request-form__submit {
  width: 100%;
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.request-dialog__success { text-align: center; padding-block: 1.5rem 0.5rem; }
.request-dialog__success .request-dialog__title { padding-right: 0; }
.request-dialog__success .btn { margin-top: 2rem; min-width: 10rem; }

.request-dialog__success-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--gradient-orange);
  color: var(--color-text-dark);
}
.request-dialog__success-icon svg { width: 2rem; height: 2rem; }

@media (max-width: 32rem) {
  .request-dialog { width: calc(100% - 1rem); }
  .request-dialog__panel { max-height: calc(100dvh - 1rem); }
  .request-form__grid { grid-template-columns: 1fr; }
  .request-form__place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .request-form__place .field:first-child { grid-column: 1 / -1; }
}

/* ---------- 9. Shared animations and button colors ---------- */

/* Spinning gradient ring: header Call/Text circles and the jobs page tags. */
@property --tag-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 135deg;
}

@keyframes tag-spin { to { --tag-angle: 495deg; } }

/* Rings pulsing outward, like a phone ringing (service page and homepage buttons). */
@keyframes btn-ripple {
  0% { inset: 0; opacity: 0.9; }
  100% { inset: -0.75rem -1rem; opacity: 0; }
}

/* Part Time pop-ups use the blue gradient for the label and the Apply button. */
.eyebrow--blue { background: var(--gradient-blue); -webkit-background-clip: text; background-clip: text; }

.btn--blue {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 10px 30px rgba(17, 112, 140, 0.32);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn--blue:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(17, 112, 140, 0.42); }
