:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --text: #142433;
  --muted: #5a6775;
  --primary: #00305a;
  --primary-strong: #001f3c;
  --accent: #ffde13;
  --border: #d9e1ea;
  --shadow: 0 18px 40px rgba(0, 31, 60, 0.12);
  --radius: 18px;
  --container: 1180px;
}

/* Shared KGB live theme pieces used by the homepage and subpages */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  font-weight: 400;
}

@media (max-width: 767px) {
  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span,
  .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    font-size: 13px;
  }
}

.logo-image,
.logo-image-phone {
  height: 70px;
}

#sp-header {
  color: #00305a;
}

#sp-header a {
  color: #00305a;
}

#sp-header a:hover {
  color: #c4c4c4;
}

#sp-footer {
  background-color: #00305a;
  color: #fff;
  padding: 0;
}

#sp-footer a,
#sp-footer a:hover {
  color: #ffde13;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.page {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 225, 234, 0.85);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 130px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
}

.brand-text strong {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: flex-end;
  align-items: center;
  color: var(--primary);
  font-size: 0.95rem;
}

.header-contact a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--primary);
  color: #fff;
}

.hero {
  position: relative;
  color: #fff;
  background: var(--primary-strong);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 31, 60, 0.88) 0%, rgba(0, 31, 60, 0.75) 42%, rgba(0, 31, 60, 0.45) 100%),
    var(--hero-image) center/cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 7rem 0 6rem;
  max-width: 44rem;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 222, 19, 0.15);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero p,
.page-hero p {
  margin: 0;
  max-width: 40rem;
  font-size: 1.15rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.is-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

main section {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.services-grid,
.cards-grid,
.contact-grid,
.gallery-grid {
  display: grid;
  gap: 1.35rem;
}

.services-grid,
.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.card,
.service-card,
.contact-card,
.legal-card,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card,
.card,
.contact-card,
.legal-card {
  padding: 1.5rem;
}

.service-card h3,
.card h3,
.contact-card h2,
.contact-card h3,
.legal-card h2,
.legal-card h3 {
  margin: 0 0 0.75rem;
  color: var(--primary);
}

.service-card p,
.card p,
.contact-card p,
.legal-card p,
.legal-card li {
  margin: 0;
  color: var(--muted);
}

.service-card .eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.split img,
.gallery-item img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), #0b4a82);
  color: #fff;
}

.highlight h2,
.highlight h3,
.highlight p,
.highlight a {
  color: #fff;
}

.highlight .cta-box {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.contact-list,
.legal-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.contact-list li,
.legal-card li {
  margin-bottom: 0.55rem;
}

.gallery-item figcaption {
  padding-top: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.homepage-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 31, 60, 0.92) 0%, rgba(0, 48, 90, 0.8) 40%, rgba(0, 48, 90, 0.35) 100%),
    url("images/home-hero.jpg") center/cover no-repeat;
}

.homepage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 31, 60, 0.35) 100%);
}

.homepage-hero .container {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: end;
  min-height: 680px;
  padding: 6rem 0 5rem;
}

.hero-panel {
  max-width: 43rem;
}

.hero-panel h1 {
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.hero-lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.hero-side-card {
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.hero-side-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-side-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.services-band {
  margin-top: -3.25rem;
  position: relative;
  z-index: 2;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-tile {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-tile .eyebrow {
  margin-bottom: 0.65rem;
}

.service-tile h3 {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 1.15rem;
}

.service-tile p {
  margin: 0;
  color: var(--muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.strategy-panel {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.strategy-stack {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.strategy-stack span {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strategy-panel p {
  color: rgba(255, 255, 255, 0.88);
}

.projects-panel {
  display: grid;
  gap: 1.4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.projects-grid figure {
  margin: 0;
}

.projects-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.projects-grid figcaption {
  padding-top: 0.7rem;
  color: var(--primary);
  font-weight: 700;
}

.industry-band {
  background:
    linear-gradient(90deg, rgba(0, 48, 90, 0.94) 0%, rgba(0, 48, 90, 0.84) 60%, rgba(0, 48, 90, 0.74) 100%),
    url("images/home-secondary.jpg") center/cover no-repeat;
  color: #fff;
}

.industry-band .section-heading h2,
.industry-band .section-heading p,
.industry-band p {
  color: #fff;
}

.industry-box {
  max-width: 42rem;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.client-strip img {
  max-height: 48px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}

.contact-band {
  background: #dfe4ea;
}

.contact-band-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.contact-band-art {
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-band-art img {
  width: min(100%, 280px);
  margin: 0 auto;
}

.contact-band-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-band-copy .card {
  height: 100%;
}

.visit-band {
  background: var(--primary);
  color: #fff;
}

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.visit-band h2,
.visit-band p {
  color: #fff;
}

.visit-address {
  text-align: right;
}

.page-hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 31, 60, 0.88) 0%, rgba(0, 31, 60, 0.62) 100%),
    var(--page-hero-image) center/cover no-repeat;
}

.page-hero .container {
  padding: 5.5rem 0 4.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: var(--primary);
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.form-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-wrapper {
  display: grid;
  gap: 1.5rem;
}

.legal-card h1 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.legal-card h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 0.9rem;
}

.legal-card ul {
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 3rem;
  background: var(--primary);
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-meta,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 980px) {
  .split,
  .contact-grid,
  .cards-grid,
  .services-grid,
  .gallery-grid,
  .form-grid,
  .hero-layout,
  .showcase-grid,
  .projects-grid,
  .service-tiles,
  .client-strip,
  .contact-band-layout,
  .contact-band-copy,
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    padding: 1rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-contact,
  .visit-address {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-layout {
    min-height: auto;
  }

  .services-band {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .hero-content,
  .page-hero .container {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 110px;
  }

  main section {
    padding: 3.5rem 0;
  }
}
