/* ============================================================
   CRO & UX ENHANCEMENT LAYER
   Conversion-optimised additions for scannability,
   mobile readability and recruiter/contractor trust.
   Applied globally across all pages.
   ============================================================ */

/* --- GLOBAL READABILITY IMPROVEMENTS --- */
body {
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
p { margin-bottom: 1.1em; }

/* --- MOBILE NAV: Premium Hamburger Toggle --- */
header .logo {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
  font-weight: 700;
  color: white;
}
header .logo span {
  color: var(--orange, #f5a623);
  font-weight: 400;
  font-size: 13px;
  display: block;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 8px 11px;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  z-index: 10000;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}
.nav-toggle:focus-visible {
  outline: 2px solid rgba(143,183,227,0.6);
  outline-offset: 2px;
}
.nav-toggle:active {
  transform: scale(0.94);
}
.nav-toggle.active {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

@media (max-width: 900px) {
  /* backdrop-filter on header creates a containing block that breaks
     position:fixed on the nav overlay — disable it on mobile */
  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgb(14,42,71) !important;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  header nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(10,32,56,0.98);
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 90px 28px 40px;
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    border-bottom: none;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  header nav.open {
    display: flex !important;
    animation: navMenuOpen 0.25s ease-out;
  }

  header nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    padding: 15px 24px;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    opacity: 1;
    transition: background 0.18s ease;
    letter-spacing: 0.1px;
    border: 1px solid transparent;
  }

  header nav a:hover,
  header nav a:focus-visible {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.06);
  }

  header nav a:focus-visible {
    outline: 2px solid rgba(143,183,227,0.5);
    outline-offset: -2px;
  }

  header nav a:active {
    background: rgba(255,255,255,0.12);
  }

  header nav a.nav-cta {
    background: rgba(245,166,35,0.15);
    border-color: rgba(245,166,35,0.2);
    color: #f5a623;
    margin-top: 6px;
  }
  header nav a.nav-cta:hover,
  header nav a.nav-cta:focus-visible {
    background: rgba(245,166,35,0.22);
    border-color: rgba(245,166,35,0.3);
  }

  /* Close indicator in the top-right of the overlay */
  header nav::before {
    content: "\2715";
    position: fixed;
    top: 18px;
    right: 20px;
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
    z-index: 10001;
  }
}

@keyframes navMenuOpen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- QUICK-SUMMARY (At a Glance / In Short / Key Benefits) --- */
.quick-summary {
  background: linear-gradient(135deg, #f4f8fd 0%, #eef3f9 100%);
  border: 1px solid #d6e1ef;
  border-left: 5px solid #154b80;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0 40px;
  max-width: 900px;
}
.quick-summary.agency-theme {
  border-left-color: #f5a623;
  background: linear-gradient(135deg, #fffbf2 0%, #fef6e6 100%);
}
.quick-summary.contractor-theme {
  border-left-color: #1f7a5a;
  background: linear-gradient(135deg, #f0faf5 0%, #e8f6ef 100%);
}
.quick-summary .qs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: #e6eef9;
  color: #154b80;
}
.quick-summary.agency-theme .qs-badge {
  background: #fdefd3;
  color: #8a5400;
}
.quick-summary.contractor-theme .qs-badge {
  background: #d4f0e4;
  color: #145c3e;
}
.quick-summary h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #0e2a47;
  font-weight: 700;
  line-height: 1.3;
}
.quick-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-summary ul li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 15.5px;
  color: #243447;
  line-height: 1.55;
}
.quick-summary ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 7px;
  color: #1f7a5a;
  font-weight: 700;
  font-size: 16px;
}
.quick-summary.agency-theme ul li::before {
  color: #f5a623;
}
.quick-summary p {
  margin: 0;
  font-size: 15.5px;
  color: #3a4b60;
  line-height: 1.6;
}

/* --- WHO THIS IS FOR --- */
.who-for {
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
  max-width: 900px;
}
.who-for .wf-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #154b80;
  margin-bottom: 10px;
}
.who-for ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.who-for ul li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: #243447;
  line-height: 1.5;
}
.who-for ul li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0;
  color: #154b80;
  font-weight: 700;
}

/* --- INFO CALLOUT BOXES (bordered, muted background) --- */
.info-callout {
  background: #f4f8fd;
  border: 1px solid #d6e1ef;
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
  font-size: 15.5px;
  color: #243447;
  line-height: 1.6;
}
.info-callout.warning {
  background: #fef9ef;
  border-color: #f0d7a7;
  border-left: 4px solid #f5a623;
}
.info-callout.success {
  background: #f0faf5;
  border-color: #c2e6d4;
  border-left: 4px solid #1f7a5a;
}
.info-callout strong {
  color: #0e2a47;
}
.info-callout .callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0e2a47;
  font-size: 16px;
  margin-bottom: 8px;
}

/* --- COMMON CONCERNS ACCORDION --- */
.concerns-section {
  margin: 40px 0;
}
.concerns-section h3 {
  font-size: 22px;
  color: #0e2a47;
  margin: 0 0 18px;
  font-weight: 700;
}
.concern-accordion {
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(14,42,71,0.04);
}
.concern-accordion details {
  border-bottom: 1px solid #eef3f9;
}
.concern-accordion details:last-child {
  border-bottom: none;
}
.concern-accordion summary {
  cursor: pointer;
  padding: 18px 48px 18px 24px;
  font-weight: 600;
  font-size: 16px;
  color: #0e2a47;
  list-style: none;
  position: relative;
  line-height: 1.4;
  transition: background 0.15s;
}
.concern-accordion summary:hover {
  background: #f9fbfe;
}
.concern-accordion summary::-webkit-details-marker { display: none; }
.concern-accordion summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #154b80;
  font-weight: 400;
  line-height: 1;
}
.concern-accordion details[open] summary::after { content: "\2212"; }
.concern-accordion details[open] summary {
  background: #f4f8fd;
  border-bottom: 1px solid #e1e8f2;
}
.concern-accordion .concern-answer {
  padding: 16px 24px 20px;
  font-size: 15.5px;
  color: #3a4b60;
  line-height: 1.65;
}
.concern-accordion .concern-answer p {
  margin: 0 0 10px;
}
.concern-accordion .concern-answer p:last-child {
  margin-bottom: 0;
}

/* --- SECTION VISUAL SEPARATORS --- */
.section-sep {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  height: 0;
  overflow: visible;
}
.section-sep::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6e1ef 20%, #d6e1ef 80%, transparent);
}

/* --- CTA SECTION — VISUALLY DISTINCT --- */
.cta-distinct {
  text-align: center;
  padding: 48px 28px;
  background: linear-gradient(135deg, #f4f8fd 0%, #eef3f9 100%);
  border: 1px solid #d6e1ef;
  border-radius: 16px;
  margin: 40px 0;
  max-width: 880px;
}
.cta-distinct h3 {
  font-size: 24px;
  color: #0e2a47;
  margin: 0 0 10px;
  font-weight: 700;
}
.cta-distinct p {
  font-size: 16px;
  color: #3a4b60;
  margin: 0 0 22px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-distinct .btn {
  font-size: 16px;
  padding: 15px 30px;
}

/* --- PREMIUM BADGE / TRUST INDICATOR --- */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e6eef9;
  color: #154b80;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.premium-badge.amber {
  background: #fdefd3;
  color: #8a5400;
}
.premium-badge.green {
  background: #d4f0e4;
  color: #145c3e;
}

/* --- CONTENT ZONE LABELS --- */
.zone-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7a8fa5;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e1e8f2;
}

/* --- ICON CARD GRID --- */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.icon-card {
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(14,42,71,0.08);
}
.icon-card .ic-icon {
  width: 44px;
  height: 44px;
  background: #f4f8fd;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}
.icon-card h4 {
  font-size: 17px;
  color: #0e2a47;
  margin: 0 0 8px;
  font-weight: 700;
}
.icon-card p {
  margin: 0;
  font-size: 14.5px;
  color: #3a4b60;
  line-height: 1.55;
}

/* --- NUMBERED STEPS (standalone component) --- */
.num-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.num-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 18px 18px 18px 62px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  font-size: 15.5px;
  color: #243447;
  line-height: 1.55;
}
.num-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  background: #154b80;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.num-steps li strong {
  color: #0e2a47;
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

/* --- HIGHLIGHTED KEY POINTS --- */
.key-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: #f4f8fd;
  border-left: 4px solid #154b80;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 15.5px;
  color: #243447;
  line-height: 1.55;
}
.key-point.agency {
  border-left-color: #f5a623;
  background: #fffbf2;
}
.key-point.contractor {
  border-left-color: #1f7a5a;
  background: #f0faf5;
}
.key-point .kp-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: 1px;
}

/* --- TRANSITION COPY BEFORE CTAs --- */
.cta-transition {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 16px;
  color: #546a82;
  line-height: 1.6;
}

/* ============================================================
   MOBILE-FIRST OPTIMISATION
   ============================================================ */
@media (max-width: 900px) {
  body {
    line-height: 1.75;
  }

  .quick-summary {
    padding: 22px 20px;
    margin: 24px 0 32px;
  }

  .who-for ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .icon-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-distinct {
    padding: 36px 20px;
    margin: 28px 0;
  }
  .cta-distinct h3 {
    font-size: 20px;
  }

  .concern-accordion summary {
    padding: 16px 44px 16px 18px;
    font-size: 15px;
  }
  .concern-accordion .concern-answer {
    padding: 14px 18px 18px;
  }

  .num-steps li {
    padding: 16px 16px 16px 56px;
  }

  /* Improve tap target spacing */
  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Reduce visual fatigue on long pages */
  .section,
  [class*="section"] {
    scroll-margin-top: 20px;
  }

  /* Better paragraph width control */
  .section p,
  .compliance-block p,
  .how-block p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .icon-cards {
    grid-template-columns: 1fr;
  }

  .quick-summary {
    padding: 18px 16px;
  }

  .who-for {
    padding: 18px 16px;
  }
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
