/* ============================================
   National Flagging Solutions
   Shared stylesheet
   ============================================ */

:root {
  /* Primary brand palette: deep navy + safety red, with amber as a
     secondary accent that keeps us distinct from look-alike sites. */
  --navy: #1c2b59;
  --navy-dark: #111d3f;
  --red: #ec1c24;
  --red-dark: #c20f17;
  --amber: #ffb43a;
  /* Legacy aliases — older markup referenced these names. */
  --orange: var(--red);
  --orange-dark: var(--red-dark);
  --yellow: var(--amber);
  --light: #f5f7fb;
  --white: #ffffff;
  --gray: #5c6677;
  --border: #dde2ec;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(17, 29, 63, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cdd5e4;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--yellow); text-decoration: none; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-badge {
  width: 46px;
  height: 46px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-text strong {
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  display: block;
  white-space: nowrap;
}
.logo-text span {
  color: var(--yellow);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav.main-nav a {
  color: #e8ecf5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav.main-nav a:hover { color: var(--yellow); }
nav.main-nav a.active { color: var(--orange); border-color: var(--orange); }
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn.btn-amber { background: var(--amber); color: var(--navy-dark); }
.btn.btn-amber:hover { background: #f0a423; }
.btn.btn-nav { padding: 10px 20px; font-size: 0.9rem; }
.btn.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.7rem;
  cursor: pointer;
}

/* ---------- Hero (parallax) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
  padding: 110px 0;
}
.parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -25%;
  height: 150%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.hero .parallax-bg {
  background-image:
    linear-gradient(105deg, rgba(13,23,48,0.92) 30%, rgba(13,23,48,0.45)),
    url("images/hero-road.webp");
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 640px; }
.hero .kicker {
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.12;
  margin: 14px 0 18px;
}
.hero p { font-size: 1.12rem; color: #d4dbe8; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.alt { background: var(--light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker {
  color: var(--orange-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
}
.section-head h2 { font-size: 2.1rem; margin: 8px 0 12px; }
.section-head p { color: var(--gray); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0;
}
.stats .grid { text-align: center; }
.stat strong { font-size: 2.4rem; color: var(--orange); display: block; }
.stat span { color: #c3cbdc; font-size: 0.95rem; }

/* ---------- Parallax band ---------- */
.parallax-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}
.parallax-band .parallax-bg {
  background-image:
    linear-gradient(rgba(13,23,48,0.78), rgba(13,23,48,0.78)),
    url("images/parallax-barricades.webp");
}
.parallax-band .container { position: relative; z-index: 1; }
.parallax-band .kicker {
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
}
.parallax-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 12px 0; }
.parallax-band p { color: #d4dbe8; font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }

@media (prefers-reduced-motion: reduce) {
  .parallax-bg { transform: none !important; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(100deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 10px; }
.cta-banner p { margin-bottom: 24px; font-weight: 500; }
.cta-banner .btn { background: var(--navy); color: var(--white); }
.cta-banner .btn:hover { background: var(--navy-dark); }

/* ---------- Get-certified callout (apply page) ---------- */
.cert-cta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff7e8;
  border: 1px solid #f3ddb0;
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 26px;
}
.cert-cta-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.cert-cta h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--navy); }
.cert-cta p { color: var(--gray); font-size: 0.95rem; margin-bottom: 14px; }
.cert-cta .btn { background: var(--navy); }
.cert-cta .btn:hover { background: var(--navy-dark); }

/* ---------- Pay-rate strip ---------- */
.pay-strip {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 34px 0;
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
}
.pay-strip .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #cdd6ea;
}
.pay-strip .amount {
  display: block;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
  margin-top: 6px;
}
.pay-strip .sub {
  display: block;
  margin-top: 8px;
  color: #cdd6ea;
  font-size: 0.95rem;
}
.cta-banner .big-pay {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 800;
  margin: 4px 0 10px;
  color: var(--white);
}

/* ---------- Two-column about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split h2 { font-size: 2rem; margin-bottom: 16px; }
.split p { color: var(--gray); margin-bottom: 14px; }
.checklist { list-style: none; margin-top: 10px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
}
.checklist li::before {
  content: "✔";
  color: var(--orange-dark);
  position: absolute;
  left: 0;
}
.about-art {
  background:
    linear-gradient(rgba(13,23,48,0.25), rgba(13,23,48,0.25)),
    repeating-linear-gradient(-45deg, var(--orange) 0 34px, var(--navy) 34px 68px);
  border-radius: var(--radius);
  min-height: 340px;
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.contact-grid .card { text-align: center; }
.contact-grid a { color: var(--orange-dark); font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #aab4c8;
  padding: 50px 0 26px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
footer h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
footer a { color: #aab4c8; text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid #243353;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* ============================================
   APPLY PAGE
   ============================================ */
.page-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.page-banner h1 { font-size: 2.3rem; }
.page-banner p { color: #c3cbdc; max-width: 620px; margin: 10px auto 0; }

.apply-wrap { padding: 50px 0 90px; background: var(--light); }

.form-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.form-tab {
  flex: 1 1 200px;
  background: #e6eaf2;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--gray);
  cursor: pointer;
  text-align: center;
  transition: background .2s, color .2s;
}
.form-tab small { display: block; font-weight: 500; font-size: 0.75rem; margin-top: 2px; }
.form-tab:hover { background: #f0f3f9; }
.form-tab.active {
  background: var(--white);
  color: var(--navy);
  border-top: 4px solid var(--orange);
}
.form-tab.locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.form-tab.locked:hover { background: #e6eaf2; }
.form-tab.done small { color: #1d6b3a; font-weight: 700; }

.tab-lock-msg {
  display: none;
  background: #fdebea;
  color: #94261e;
  border: 1px solid #f2c2bf;
  border-radius: 7px;
  padding: 10px 16px;
  margin: 10px 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.form-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-panel.active { display: block; }

.form-panel h2 { margin-bottom: 6px; }
.form-intro { color: var(--gray); margin-bottom: 28px; font-size: 0.95rem; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
}
legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 10px;
  font-size: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.field-row:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 6px;
}
.field label .req { color: #d33; }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fbfcfe;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

.choice-group { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.choice-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
}
.choice-group input { margin-top: 3px; accent-color: var(--orange-dark); }
.choice-group.stacked { flex-direction: column; }

.hint {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 5px;
}
.notice {
  background: #fff7e8;
  border: 1px solid #f3ddb0;
  border-left: 4px solid var(--orange);
  border-radius: 7px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #6b5421;
  margin-bottom: 26px;
}

.sign-box {
  background: var(--light);
  border: 1px dashed var(--gray);
  border-radius: var(--radius);
  padding: 22px;
}

.submit-row { text-align: center; margin-top: 10px; }
.submit-row .btn { min-width: 280px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}
.form-status.ok { display: block; background: #e7f6ec; color: #1d6b3a; border: 1px solid #b4dfc3; }
.form-status.err { display: block; background: #fdebea; color: #94261e; border: 1px solid #f2c2bf; }

.steps-note {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
}
.step-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.step-pill b { color: var(--orange-dark); }

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-parent .caret { font-size: 0.65rem; opacity: 0.8; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  color: var(--navy) !important;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: none !important;
}
.dropdown a:hover { background: var(--light); color: var(--red) !important; }

/* ============================================
   CONTENT-PAGE COMPONENTS
   ============================================ */
/* Sub-page hero (photo + breadcrumb) */
.page-banner { position: relative; overflow: hidden; }
.page-banner .parallax-bg {
  background-image:
    linear-gradient(rgba(17,29,63,0.86), rgba(17,29,63,0.78)),
    url("images/hero-road.webp");
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .kicker {
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 8px;
}
.breadcrumb { font-size: 0.82rem; color: #b6c0d8; margin-top: 14px; }
.breadcrumb a { color: var(--amber); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.6; margin: 0 6px; }

/* Lead paragraph + prose */
.prose { max-width: 760px; }
.prose p { color: var(--gray); margin-bottom: 16px; }
.lead { font-size: 1.18rem; color: var(--navy); font-weight: 500; line-height: 1.55; }

/* Reverse the two-column layout */
.split.reverse .feature-img { order: -1; }

/* Feature image blocks (photo or stripe) */
.feature-img {
  border-radius: var(--radius);
  min-height: 360px;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}
.feature-img.road { background-image: url("images/hero-road.webp"); }
.feature-img.cone { background-image: url("images/cone-closeup.webp"); }
.feature-img.barricades { background-image: url("images/parallax-barricades.webp"); }
.feature-img.stripes {
  background:
    linear-gradient(rgba(28,43,89,0.30), rgba(28,43,89,0.30)),
    repeating-linear-gradient(-45deg, var(--amber) 0 34px, var(--navy) 34px 68px);
}

/* Clickable industry/link cards */
a.link-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.link-card .arrow {
  margin-top: 16px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
}
a.link-card:hover .arrow { text-decoration: underline; }

/* Quote / contact form card */
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-info .info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info .info-row .ic {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.contact-info .info-row h4 { margin-bottom: 2px; font-size: 1rem; }
.contact-info .info-row p, .contact-info .info-row a { color: var(--gray); text-decoration: none; }
.contact-info .info-row a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
/* Switch to the hamburger menu before the desktop nav gets cramped. */
@media (max-width: 1100px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 5%;
    gap: 14px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 6px 0 6px 16px;
    min-width: 0;
  }
  .dropdown a { color: #cdd6ea !important; padding: 7px 0; }
  .dropdown a:hover { background: transparent; color: var(--amber) !important; }
  .split, .contact-split { grid-template-columns: 1fr; }
  .split.reverse .feature-img { order: 0; }
  .feature-img { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-panel { padding: 24px 18px; }
  .quote-card { padding: 24px 20px; }
  .hero { padding: 70px 0; }
}
