/* ==========================================================================
   Sharp Blade Solutions — site-wide design system

   Owns everything that should look the same on every page: base elements,
   type, buttons, header, footer, section headings and the CTA band. Page
   stylesheets (inline <style> blocks) handle page-specific layout only and
   do not restyle these components.

   Loaded before each page's inline styles. No !important anywhere: if a rule
   here needs forcing, the fix belongs in the page stylesheet instead.
   ========================================================================== */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --navy-950: #070b16;
  --navy-900: #0a0f1e;
  --navy-800: #0f1729;
  --navy-700: #16213a;

  --blue-600: #006ced;
  --blue-700: #0058c2;
  --blue-300: #7cb8ff;

  --ink:      #0b1220;
  --ink-2:    #3b475c;
  --ink-3:    #5b6780;
  --line:     #e3e8f0;
  --line-dark: rgba(255, 255, 255, .1);

  --radius:    8px;
  --radius-lg: 12px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* keep anchor targets clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
}

/* ── Type scale ────────────────────────────────────────────────────────── */

.hero-title {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}
/* two-tone headlines were a template habit; headings are one colour */
.hero-title .accent { color: inherit; }

.hero-sub {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
}
#hero .hero-sub { color: rgba(255, 255, 255, .74); }

.hero-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.section-title, .services-title, .about-title, .faq-title, .why-title,
.contact-title, .areas-title {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.section-sub, .services-sub {
  font-size: 17px;
  line-height: 1.65;
}

/* Small overline above a section heading. Colour is set per section, since
   the same label sits on both light and dark backgrounds. */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}

/* ── Hero backdrop ─────────────────────────────────────────────────────── */

#hero { position: relative; overflow: hidden; color: #fff; }
.hero-content { position: relative; z-index: 2; }
.hero-title   { margin-bottom: 22px; }
.hero-sub     { max-width: 620px; }
/* #hero is a flex row on most templates; without this its .container child
   shrink-wraps and centres, pushing the headline off the page grid. */
#hero > .container { width: 100%; }

#hero {
  background:
    radial-gradient(1100px 480px at 50% -12%, rgba(0, 108, 237, .16), transparent 62%),
    var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* stacked hero buttons on phones: equal width reads as deliberate */
@media (max-width: 479px) {
  #hero .hero-actions     { flex-direction: column; align-items: stretch; }
  #hero .hero-actions > a { width: 100%; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn-primary, .btn-outline, .btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn-primary       { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }

/* outline sits on the dark hero */
.btn-outline       { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .5); }

/* white sits on the blue CTA band and panels */
.btn-white       { background: #fff; color: #0a2a5c; }
.btn-white:hover { background: #eaf2ff; }

/* long labels ("Request a Risk Assessment") must wrap rather than overflow on phones */
@media (max-width: 479px) {
  .btn-primary, .btn-outline, .btn-white { white-space: normal; text-align: center; padding: 12px 20px; line-height: 1.3; }
}

/* ── Header ────────────────────────────────────────────────────────────── */

#navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-900);   /* solid: translucency turns grey over a light page */
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav-logo      { display: flex; align-items: center; gap: 10px; }
.nav-logo img  { height: 30px; width: auto; flex-shrink: 0; }
.nav-logo-text { font-size: 15px; font-weight: 700; letter-spacing: .03em; color: #fff; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item  { position: relative; }

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  transition: color .15s, background-color .15s;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.nav-links > li > a.nav-cta {
  margin-left: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
}
.nav-links > li > a.nav-cta:hover { background: var(--blue-700); }

.nav-item .chev { transition: transform .15s; opacity: .7; }
.nav-item.has-mega:hover .chev,
.nav-item.has-mega:focus-within .chev { transform: rotate(180deg); }

/* services dropdown */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 210;
  width: min(640px, 90vw);
  padding: 14px;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.mega::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; } /* hover bridge */
.nav-item.has-mega:hover .mega,
.nav-item.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-inner   { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.mega-links   { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-links a { display: block; padding: 10px 12px; border-radius: var(--radius); transition: background-color .15s; }
.mega-links a:hover { background: rgba(255, 255, 255, .05); }
.mega-t { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.mega-d { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .56); }

.mega-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 140px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--navy-700);
  border: 1px solid var(--line-dark);
  color: #fff;
  transition: border-color .15s;
}
.mega-feature:hover { border-color: rgba(255, 255, 255, .24); }
.mf-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-300); }
.mf-title   { font-size: 16px; font-weight: 600; line-height: 1.3; }
.mf-sub     { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .66); }

/* mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  margin-right: -10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 4px 24px 20px;
  border-top: 1px solid var(--line-dark);
  background: var(--navy-900);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-mobile a.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
}
/* smallest phones: the wordmark plus a 44px tap target need a tighter row */
@media (max-width: 400px) {
  .nav-inner     { gap: 12px; }
  .nav-logo      { min-width: 0; }
  .nav-logo-text { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
}

/* ── CTA band ──────────────────────────────────────────────────────────── */

#cta { background: #0a55c9; padding: 72px 0; }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.cta-sub { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .86); margin: 0 auto 28px; }

/* ── Footer ────────────────────────────────────────────────────────────── */

#footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 28px;
  color: rgba(255, 255, 255, .62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr .9fr .9fr 1.1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }
@media (max-width: 767px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 479px)  { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.footer-brand    { display: flex; flex-direction: column; gap: 12px; }
.footer-logo img { height: 36px; width: auto; }
.footer-logo-fallback { display: none; font-size: 15px; font-weight: 700; letter-spacing: .03em; color: #fff; }
.footer-tagline  { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .66); max-width: 260px; }
.footer-copy     { font-size: 13px; color: rgba(255, 255, 255, .52); }

.footer-col-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.footer-links   { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, .62); transition: color .15s; }
.footer-links a:hover { color: #fff; }

.footer-contact-item   { font-size: 14px; margin-bottom: 8px; }
.footer-contact-item a { color: rgba(255, 255, 255, .62); transition: color .15s; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.footer-socials   { display: flex; gap: 10px; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .62);
  transition: color .15s, border-color .15s;
}
.footer-socials a:hover { color: #fff; border-color: rgba(255, 255, 255, .32); }

/* ── Client logo strip (hidden in markup until real logos exist) ───────── */

.logos-strip { padding: 40px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.logos-title { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 24px; }
.logo-row    { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px; }
.logo-row .logo-item { height: 36px; width: auto; opacity: .7; filter: grayscale(1) brightness(1.6); }
