/* CT Detection — static site styles */
:root {
  --navy: #002960;
  --navy-dark: #000e49;
  --text: #00185b;
  --red: #ff0000;
  --crimson: #d60039;
  --grey-box: #e9ecef;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--crimson); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 10px; top: 10px;
  background: #fff; padding: 8px 12px; z-index: 100;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy) url("../assets/gearbg.jpg") center / cover no-repeat;
  color: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 130px;
  gap: 20px;
}
.logo img { width: 400px; max-width: 100%; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
.main-nav a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #cfe3ff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid #fff;
  border-radius: 40px;
  line-height: 1.3;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #c40000; }

/* ---------- Home hero ---------- */
.hero {
  background:
    linear-gradient(rgba(52, 152, 219, .07), rgba(52, 152, 219, .07)),
    url("../assets/feature-client-logo.jpg") left top / cover no-repeat;
  color: #fff;
  padding: 190px 0 210px;
}
.hero .tagline { margin: 0 0 4px; font-size: 16px; }
.hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h2 {
  margin: 12px 0 24px;
  font-size: 21px;
  font-weight: 500;
}
.hero .buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner page banner ---------- */
.page-banner {
  background:
    linear-gradient(rgba(128, 158, 173, .2), rgba(128, 158, 173, .2)),
    url("../assets/feature3.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 90px 20px;
}
.page-banner h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

/* ---------- Content ---------- */
.section { padding: 60px 0; }

.section-title {
  color: var(--crimson);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 20px;
}

.intro { text-align: center; max-width: 960px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.feature-grid img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }

.center { text-align: center; margin-top: 40px; }

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.content h4 { font-size: 16px; color: #303030; margin: 20px 0; }
.content img { margin-top: 20px; }

.sidebar-box {
  background: var(--grey-box);
  padding: 20px;
  margin-top: 20px;
}
.sidebar-box h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }

.contact-lines a { color: var(--text); text-decoration: none; }
.contact-lines strong { font-weight: 700; }

/* ---------- Form ---------- */
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid #c7ccd4;
  border-radius: 4px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy);
  border-color: var(--navy);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { border-color: var(--red); }
.form-thanks {
  display: none;
  margin: 12px 0 0;
  padding: 12px;
  background: #e6f6ec;
  color: #11602d;
  font-weight: 500;
}
.form-thanks.show { display: block; }
.form-sink { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  font-size: 14px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 20px;
}
.footer-widgets img { width: 300px; margin-bottom: 20px; }
.footer-widgets h2 {
  color: var(--red);
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.footer-widgets p { margin: 0 0 14px; }
.footer-widgets a { color: #fff; text-decoration: none; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 20px;
  text-align: center;
}
.footer-bar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bar img { width: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .three-col { grid-template-columns: 1fr 1fr; }
  .three-col .logo-col { grid-column: 1 / -1; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .logo { flex: 1 1 0; min-width: 0; }
  .logo img { width: 300px; }

  .nav-toggle-label {
    display: block;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    position: relative;
  }
  .nav-toggle-label span::before,
  .nav-toggle-label span::after { content: ""; position: absolute; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .nav-toggle-label span { top: 8px; }

  .main-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .15); }

  .hero {
    padding: 80px 0 60px;
    background:
      linear-gradient(rgba(0, 24, 91, .45), rgba(0, 24, 91, .45)),
      url("../assets/feature-client-logo.jpg") 72% center / cover no-repeat;
  }
  .hero h1 { font-size: 30px; }
  .hero h1 br { display: none; }
  .hero h2 { font-size: 18px; }

  .page-banner { padding: 60px 20px; }
  .page-banner h1 { font-size: 28px; }

  .section { padding: 40px 0; }
  .feature-grid,
  .two-col,
  .three-col,
  .footer-widgets { grid-template-columns: 1fr; }
  .feature-grid { gap: 20px; }
  .sidebar .logo-img { max-width: 300px; }
}

@media (max-width: 400px) {
  .hero .buttons .btn { width: 100%; text-align: center; }
}
