/* ── Universal Toughjobs Header — mirrors index.html exactly ──────────── */

:root {
  --ink: #0A0F1C;
  --navy: #002768;
  --red: #C8262A;
  --red-on-dark: #E8484C;
  --white: #FFFFFF;
  --accent: #C8262A;
  --accent-ink: #FFFFFF;
  --container: 1240px;
  --tj-divider-depth: 14px;
}

/* Two text colors for unstyled page and section headings. */
main h1 .tj-heading-primary,
main h2 .tj-heading-primary {
  color: var(--navy, #002768) !important;
  -webkit-text-fill-color: currentColor !important;
}

main h1 .tj-heading-accent,
main h2 .tj-heading-accent {
  color: var(--red, #C8262A) !important;
  -webkit-text-fill-color: currentColor !important;
}

main h1 .tj-heading-primary-on-dark,
main h2 .tj-heading-primary-on-dark {
  color: #FFFFFF !important;
  -webkit-text-fill-color: currentColor !important;
}

main h1 .tj-heading-accent-on-dark,
main h2 .tj-heading-accent-on-dark {
  color: var(--red-on-dark, #E8484C) !important;
  -webkit-text-fill-color: currentColor !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: all 0.3s ease;
  width: 100%;
}

.nav-container {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  width: 100%;
  padding: 0 clamp(18px, 3vw, 32px);
  max-width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.logo-link img {
  height: auto !important;
  width: clamp(230px, 20vw, 300px) !important;
  transition: all 0.3s ease;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.logo-text {
  display: flex;
  align-items: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text .tough, .logo-text .tight { color: var(--red); }
.logo-text .jobs, .logo-text .light { color: var(--white); }

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.nav-link {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-on-dark);
  border-bottom-color: var(--red);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border-top: 3px solid var(--red);
  width: 920px;
  z-index: 999;
  padding: 32px;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: grid; }

.nav-links > .nav-dropdown:first-child .nav-dropdown-menu {
  position: fixed;
  top: 76px;
  left: 50%;
  margin-left: 0;
  transform: translateX(-50%);
}

.nav-dropdown-menu.compact {
  width: 220px;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 20px;
}
.nav-dropdown-menu.compact .nav-dropdown-item {
  padding: 8px 0;
  font-size: 14px;
}

.nav-dropdown-menu.services-menu {
  width: 560px;
  grid-template-columns: repeat(3, 1fr);
}

.nav-dd-cat {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-on-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.nav-dd-list { display: flex; flex-direction: column; gap: 10px; }

.nav-dropdown-item {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
}

.nav-dropdown-item:hover { color: var(--white); }

.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.nav-phone {
  color: var(--white);
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  animation: phone-pulse 4s ease-in-out infinite;
}

@keyframes phone-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

header .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
  white-space: nowrap;
}

header .btn:hover { filter: brightness(0.92); }
header .btn:active { transform: translateY(1px); }

/* ── Hamburger + mobile drawer ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.mobile-backdrop.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px); background: var(--ink); z-index: 60;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; padding: 20px 24px 48px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer > a, .md-sub-toggle {
  color: var(--white); text-decoration: none;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.md-sub-toggle {
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  text-align: left;
}
.mobile-drawer > a:hover, .md-sub-toggle:hover { color: var(--red-on-dark); }
.md-close { align-self: flex-end; width: 44px; height: 44px; background: transparent; border: 0; color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; padding: 0; margin-bottom: 4px; }
.md-sub-toggle { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.md-sub-toggle .chev { transition: transform .25s ease; }
.md-sub.open .md-sub-toggle .chev { transform: rotate(180deg); }
.md-sub-list { display: none; flex-direction: column; padding-left: 12px; }
.md-sub.open .md-sub-list { display: flex; }
.md-sub-list a { color: rgba(255,255,255,.8); text-decoration: none; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.md-sub-list a:hover { color: var(--red-on-dark); }
.md-phone { color: var(--accent) !important; font-size: 18px !important; }
.md-cta { background: var(--accent); color: var(--white) !important; text-align: center; margin-top: 16px; border: 0 !important; padding: 16px !important; }
.md-cta:hover { filter: brightness(.92); color: var(--white) !important; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy);
}

main,
footer,
.mobile-drawer {
  overflow-wrap: break-word;
}

main > section > *,
.nav-dropdown-menu > * {
  min-width: 0;
}

@media (max-width: 1080px) {
  .nav-links { display: none !important; }
  .nav-dropdown-menu { display: none !important; }
  .nav-right .nav-phone, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .nav-container { height: 84px; padding: 0 18px; }
  .logo-link img { width: clamp(170px, 46vw, 210px) !important; }
}

/* ── Shared clipped section edges ─────────────────────────────────────── */
main > section {
  position: relative;
  box-shadow: none !important;
}

main > section:not(:last-of-type):not(.tj-clipped-edge),
.tj-clipped-edge {
  margin-bottom: calc(-1 * var(--tj-divider-depth));
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--tj-divider-depth)),
    64% calc(100% - var(--tj-divider-depth)),
    60% 100%,
    0 100%
  );
}

main > section:nth-of-type(1) { z-index: 20; }
main > section:nth-of-type(2) { z-index: 19; }
main > section:nth-of-type(3) { z-index: 18; }
main > section:nth-of-type(4) { z-index: 17; }
main > section:nth-of-type(5) { z-index: 16; }
main > section:nth-of-type(6) { z-index: 15; }
main > section:nth-of-type(7) { z-index: 14; }
main > section:nth-of-type(8) { z-index: 13; }
main > section:nth-of-type(9) { z-index: 12; }
main > section:nth-of-type(10) { z-index: 11; }
main > section:nth-of-type(11) { z-index: 10; }
main > section:nth-of-type(12) { z-index: 9; }
main > section:nth-of-type(13) { z-index: 8; }
main > section:nth-of-type(14) { z-index: 7; }
main > section:nth-of-type(15) { z-index: 6; }

@media (max-width: 820px) {
  :root {
    --tj-divider-depth: 10px;
  }

  [style*="background-attachment:fixed"],
  [style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
  }

  main > section:not(:last-of-type):not(.tj-clipped-edge),
  .tj-clipped-edge {
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - var(--tj-divider-depth)),
      68% calc(100% - var(--tj-divider-depth)),
      58% 100%,
      0 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: CanvasText;
    box-shadow: none;
  }

  header .btn,
  .md-cta {
    border: 1px solid ButtonText;
  }
}
