/* ===== Design tokens ===== */
:root {
  --navy: #12224e;
  --navy-dark: #0a1533;
  --navy-mid: #1c3266;
  --red: #d81f27;
  --red-dark: #ad171d;
  --ink: #1a1d29;
  --gray-700: #444a5a;
  --gray-500: #6b7280;
  --gray-300: #d7dae1;
  --gray-100: #f2f3f6;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --border: #e4e6ec;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(18, 34, 78, 0.08);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray-700); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}
.section-alt { background: var(--bg-alt); }
.section-navy {
  background: var(--navy);
  color: #fff;
}
.section-navy p { color: #c7ceE0; }

.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: auto;
  width: 190px;
  border-radius: 4px;
  display: block;
}
.logo-mark {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  color: var(--red);
  background: var(--navy);
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-text small {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}
.main-nav a { white-space: nowrap; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-color: var(--red); color: var(--navy); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background-color: var(--navy-dark);
  background-image:
    linear-gradient(155deg, rgba(10,21,51,.96) 0%, rgba(18,34,78,.94) 55%, rgba(28,50,102,.92) 100%),
    url("../assets/images/hero-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, contain;
  background-position: center, center center;
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 88px;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 1.15rem;
  color: #cdd4e6;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 22px 0;
}
.hero-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
}
.hero-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #dfe4f1;
}
.hero-strip li svg { color: var(--red); flex-shrink: 0; }

.page-hero {
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 100% at 80% 0%, black 30%, transparent 75%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.page-hero p { color: #c7ceE0; max-width: 620px; font-size: 1.05rem; margin: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: #9aa5c4;
  margin-bottom: 18px;
  font-weight: 600;
}
.breadcrumb a:hover { color: #fff; }

/* ===== Icon tiles ===== */
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(216,31,39,0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile.navy { background: rgba(18,34,78,0.08); color: var(--navy); }
.icon-tile-lg { width: 60px; height: 60px; }

/* ===== Cards / grids ===== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-link {
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card-link:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

.feature-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row h4 { margin-bottom: 4px; font-size: 1rem; }
.feature-row p { margin-bottom: 0; font-size: 0.92rem; }

.checklist li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.96rem;
  align-items: flex-start;
}
.checklist li svg { flex-shrink: 0; color: var(--red); margin-top: 3px; }

/* ===== Services page groups ===== */
.service-group {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.service-group:first-of-type { border-top: none; }
.service-group-top {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}
.service-group-photo {
  width: 320px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.service-group-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 780px;
}
.service-group-head .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(18,34,78,0.08);
  color: var(--navy);
  margin-bottom: 10px;
}
.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
}
.service-item h4 { font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.service-item p { font-size: 0.92rem; margin-bottom: 0; }

.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 22px 26px;
  margin-top: 28px;
}
.callout h4 { color: var(--navy); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* ===== Industries ===== */
.industry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.industry-card .bar {
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--navy));
}
.industry-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.industry-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.industry-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin: 14px 0 6px;
}
.industry-card p { font-size: 0.92rem; }

/* ===== About ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--navy);
  font-weight: 800;
}
.stat span { font-size: 0.85rem; color: var(--gray-500); font-weight: 600; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-alt);
}
.badge svg { color: var(--red); }

.brand-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.brand-tile {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}
.brand-tile img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-tile.text-only {
  flex-direction: column;
  gap: 2px;
}
.brand-tile.text-only strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-tile.text-only small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-strip.compact {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 0;
}
.brand-strip.compact .brand-tile { height: 88px; padding: 8px 14px; }
.brand-strip.compact .brand-tile.text-only strong { font-size: 0.82rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 { margin-bottom: 6px; }
.contact-info-card p { color: #c7ceE0; margin-bottom: 26px; }
.contact-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.contact-info-row:first-of-type { border-top: none; }
.contact-info-row strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-row a, .contact-info-row span.value { color: #dfe4f1; font-size: 0.92rem; }
.contact-info-row a:hover { color: #fff; }

form.request-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin: 0; }
.form-success {
  display: none;
  background: #eaf6ec;
  border: 1px solid #b7dfc0;
  color: #235c2e;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-success.visible { display: block; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; font-size: 1.6rem; }
.cta-band p { color: #c7ceE0; margin-bottom: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #b7bfd6;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  height: 46px;
  width: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 16px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-grid p { color: #9aa3c0; font-size: 0.9rem; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: #fff; }
.footer-contact { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8089a6;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .brand-strip.compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1040px) {
  .main-nav, .header-phone .label { display: none; }
  .nav-toggle { display: block; }
  .header-actions { gap: 10px; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 0;
    z-index: 50;
  }
  .main-nav.open a { padding: 14px 0; border-bottom: 1px solid var(--border); white-space: normal; }
  .main-nav.open a.mobile-cta {
    display: none;
    border-bottom: none;
    background: var(--red);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 13px 0;
    margin-top: 10px;
    font-weight: 700;
  }
}

@media (max-width: 460px) {
  .header-actions .btn-primary { display: none; }
  .main-nav.open a.mobile-cta { display: block; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section { padding: 52px 0; }
  .service-group-head { flex-direction: column; }
  .service-group-top { flex-direction: column; }
  .service-group-photo { width: 100%; height: 220px; }
}
