:root {
  --navy: #143a5a;
  --navy-dark: #0b263d;
  --blue-gray: #93a0aa;
  --slate: #566879;
  --ink: #111827;
  --muted: #5b6470;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --line: #d9dee3;
  --shadow: 0 22px 55px rgba(8, 28, 44, .18);
  --radius: 22px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6
}

a {
  color: inherit;
  text-decoration: none
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: #fff;
  padding: .7rem;
  z-index: 1000
}

.skip-link:focus {
  left: 1rem
}

.container {
  width: min(1180px, 92vw);
  margin: auto
}

.narrow {
  width: min(900px, 92vw)
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11, 38, 61, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.nav {
  height: 76px;
  width: min(1240px, 94vw);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .95rem
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  font-family: Arial, sans-serif
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: #fff;
  font: 700 .78rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em
}

.nav-links a {
  opacity: .88
}

.nav-links a:hover {
  opacity: 1
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, .55);
  padding: .75rem 1rem;
  border-radius: 999px
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  margin: 6px 0
}

.section {
  padding: 95px 0
}

.hero {
  min-height: 720px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(86, 104, 121, .72), rgba(147, 160, 170, .78)), radial-gradient(circle at center, #dce2e6, #7d8c98);
  color: #fff
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 38, 61, .65) 0 120px, transparent 120px)
}

.hero-content {
  position: relative;
  width: min(850px, 92vw);
  padding-top: 64px
}

.eyebrow {
  margin: 0 0 .8rem;
  font: 700 .78rem Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate)
}

.hero .eyebrow {
  color: #eef4f8
}

/* --- UPDATED HERO FONT SIZES --- */

.hero h1 {
  margin: 0;
  /* Reduced max font size from 5.7rem down to 3.8rem */
  font-size: clamp(2rem, 4vw, 3.8rem); 
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  font-weight: 400;
}

/* Reduces top space in the hero section */
.hero-content {
  position: relative;
  width: min(850px, 92vw);
  padding-top: 24px; /* Reduced from 64px */
}

/* Slightly increases space above buttons for better breathing room */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  font: 700 .82rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em
}

.button.primary {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow)
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, .75);
  color: #fff
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  margin: .2rem 0 1rem;
  color: var(--navy);
  font-weight: 400
}

.intro {
  text-align: center
}

.intro p:not(.eyebrow),
.clients p,
.licenses .section-heading p {
  font-size: clamp(1.08rem, 1.7vw, 1.35rem)
}

.section-heading {
  text-align: center;
  width: min(850px, 92vw);
  margin: 0 auto 3rem
}

.section-heading:before,
.intro .container:before,
.clients .container:before {
  content: "";
  display: block;
  width: min(520px, 68vw);
  height: 1px;
  background: var(--line);
  margin: 0 auto 2rem
}

.services {
  padding-bottom: 0
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 3.2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  transition: .35s ease;
  background: #fff
}

.service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: .35s ease;
  z-index: 0
}

.service-card:hover:before,
.service-card:focus-within:before {
  transform: scaleY(1)
}

.service-card>* {
  position: relative;
  z-index: 1;
  transition: .35s ease
}

.service-card:hover,
.service-card:focus-within {
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-8px)
}

.service-card:hover h3,
.service-card:hover .icon {
  color: #fff
}

.icon {
  font-size: 3.7rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 1.2rem
}

.service-card h3,
.license-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: .4rem 0 1rem
}

.service-card p {
  margin: 0;
  max-width: 330px
}

.question-strip {
  margin-top: 3rem;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 1.05rem;
  font: 700 .9rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em
}

.question-strip a {
  text-decoration: underline;
  text-underline-offset: 4px
}

.licenses {
  background: var(--soft)
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem
}

.license-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 1.6rem;
  box-shadow: 0 12px 30px rgba(8, 28, 44, .07)
}

.round-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 2.4rem
}

.license-card h3 {
  color: var(--slate);
  font-weight: 400;
  font-size: 1.25rem
}

.updates {
  background: linear-gradient(rgba(20, 58, 90, .42), rgba(20, 58, 90, .42)), var(--blue-gray);
  color: #fff
}

.updates h2,
.updates .eyebrow {
  color: #fff
}

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

.post-card {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.4rem;
  min-height: 180px;
  transition: .25s ease
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow)
}

.post-card span {
  font: 700 .75rem Arial, sans-serif;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .12em
}

.post-card h3 {
  margin: .6rem 0;
  font-size: 1.25rem;
  line-height: 1.25
}

.post-card time {
  color: var(--muted);
  font-size: .9rem
}

.clients {
  text-align: center
}

.contact-band {
  background: linear-gradient(rgba(147, 160, 170, .86), rgba(147, 160, 170, .86)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 4px);
  text-align: center;
  padding: 90px 0
}

.contact-band p {
  font-size: clamp(1.7rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.25;
  margin: 0 0 1.6rem
}

.footer {
  background: var(--navy);
  color: #dbe7f0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  padding: 3rem 0
}

.footer h2 {
  font: 700 1rem Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer li {
  margin: .55rem 0
}

.footer a {
  color: #dbe7f0
}

.footer a:hover {
  color: #fff
}

.footer address {
  font-style: normal
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1rem 4vw;
  color: #b9c8d3;
  font-size: .9rem
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--navy-dark);
  color: #fff;
  border-radius: 8px;
  font-size: 1.7rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: .2s
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

@media (max-width:980px) {
  .nav-toggle {
    display: block
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    background: var(--navy-dark);
    padding: 1rem 5vw;
    gap: 0;
    transform: translateY(-130%);
    transition: .25s ease
  }

  .nav-links.open {
    transform: translateY(0)
  }

  .nav-links a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12)
  }

  .nav-cta {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: 640px
  }
}

@media (max-width:640px) {
  .brand span:last-child {
    font-size: .75rem
  }

  .section {
    padding: 70px 0
  }

  .hero h1 {
    font-size: 2.25rem
  }

  .button {
    width: 100%
  }

  .service-grid,
  .license-grid,
  .post-grid {
    grid-template-columns: 1fr
  }

  .service-card {
    min-height: 260px;
    background: var(--navy);
    color: #fff
  }

  .service-card .icon,
  .service-card h3 {
    color: #fff
  }

  .footer-grid {
    padding: 2rem 0
  }

  .contact-band {
    padding: 70px 0
  }

  .hero-actions {
    gap: .7rem
  }
}