html {
  scroll-behavior: smooth;
}

body {
  background: var(--background-color);
  color: var(--default-color);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open,
body.mobile-nav-active {
  overflow: hidden;
}

.skip-link {
  background: var(--color-white);
  border-radius: var(--radius-pill);
  color: var(--heading-color);
  left: var(--space-2);
  padding: 12px 16px;
  position: absolute;
  top: -64px;
  transition: top var(--transition-fast);
  z-index: 1200;
}

.skip-link:focus {
  top: var(--space-2);
}

a {
  color: var(--accent-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-navy-900);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
iframe:focus-visible,
[tabindex]:focus-visible {
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-2);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p,
ul,
ol {
  margin-bottom: var(--space-2);
}

ul,
ol {
  padding-left: var(--space-3);
}

img,
video {
  max-width: 100%;
  height: auto;
}

.site-reading-width {
  max-width: var(--site-reading-width);
}

.site-eyebrow {
  color: var(--accent-color);
  display: inline-block;
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.site-lead {
  font-size: var(--font-size-body-lg);
  margin-bottom: var(--space-3);
}

.site-kicker {
  color: var(--heading-color);
  font-size: var(--font-size-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
}

.container,
.container-fluid,
.container-xl {
  width: min(100% - var(--space-4), var(--site-max-width));
  margin-inline: auto;
}

.container-fluid.container-xl {
  width: min(100% - var(--space-4), var(--site-max-width));
}

.main {
  padding-top: var(--header-height);
}

.header {
  background: rgba(11, 31, 58, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.18);
  color: var(--color-white);
  min-height: var(--header-height);
  padding: var(--space-2) 0;
  backdrop-filter: blur(10px);
}

.header .logo img {
  max-height: 52px;
  width: auto;
  filter: none;
}

.header .sitename {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navmenu ul {
  list-style: none;
}

.navmenu a,
.navmenu a:focus {
  align-items: center;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  font-family: var(--font-family-base);
  font-size: var(--font-size-small);
  font-weight: 600;
  gap: var(--space-1);
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.mobile-nav-toggle {
  color: var(--color-white);
}

@media (max-width: 1199px) {
  .navmenu ul {
    background: var(--color-white);
    border-radius: var(--radius-md);
    inset: 76px var(--space-2) auto var(--space-2);
    max-height: calc(100vh - 120px);
    padding: var(--space-2);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--heading-color);
    min-height: 44px;
    padding: 12px 14px;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    background: var(--surface-muted);
    color: var(--heading-color);
  }

  .mobile-nav-active .navmenu {
    background: rgba(11, 31, 58, 0.55);
  }
}

.section,
section {
  background: var(--background-color);
  padding: var(--section-padding-y) 0;
  scroll-margin-top: calc(var(--header-height) + var(--space-2));
}

.light-background {
  --background-color: var(--surface-muted);
  --surface-color: var(--color-white);
}

.dark-background {
  --background-color: var(--color-navy-900);
  --surface-color: rgba(255, 255, 255, 0.08);
  --default-color: rgba(255, 255, 255, 0.88);
  --heading-color: var(--color-white);
  --accent-color: #93C5FD;
}

.accent-background {
  --background-color: var(--color-navy-900);
  --surface-color: rgba(255, 255, 255, 0.08);
  --default-color: rgba(255, 255, 255, 0.92);
  --heading-color: var(--color-white);
  --accent-color: #93C5FD;
}

.section-title {
  margin: 0 auto var(--space-5);
  max-width: 760px;
  padding-bottom: 0;
  text-align: center;
}

.section-title h2 {
  font-size: var(--font-size-h2);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
  text-transform: none;
}

.section-title h2::after {
  display: none;
}

.section-title p {
  color: inherit;
  font-size: var(--font-size-body-lg);
  margin: 0;
}

.page-title {
  padding: calc(var(--space-6) + var(--space-5)) 0 var(--space-5);
  text-align: left;
}

.page-title::before {
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.08), rgba(11, 31, 58, 0.24));
}

.page-title .container {
  max-width: var(--site-narrow-width);
}

.page-title h1 {
  color: var(--heading-color);
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-2);
}

.page-title p {
  font-size: var(--font-size-body-lg);
  margin: 0;
  max-width: 46rem;
}

.page-title .breadcrumbs {
  margin-top: var(--space-2);
}

.hero {
  align-items: center;
  display: flex;
  min-height: min(68vh, 720px);
  padding: calc(var(--space-6) + var(--space-3)) 0 var(--space-6);
  position: relative;
}

.hero::before {
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.24), rgba(11, 31, 58, 0.58));
}

.hero img {
  filter: saturate(0.78) brightness(0.78);
}

.hero .container {
  display: grid;
  justify-items: center;
  max-width: var(--site-narrow-width);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: var(--space-5);
}

.hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  justify-items: center;
  width: 100%;
}

.hero-copy {
  display: grid;
  gap: var(--space-3);
  max-width: 38rem;
}

.hero-grid-single .hero-copy {
  align-items: center;
  margin-inline: auto;
  max-width: min(100%, 46rem);
  text-align: center;
}

.hero-copy .site-eyebrow,
.hero-copy .site-kicker {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0;
}

.hero-copy .site-lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 34rem;
}

.hero-grid-single .hero-copy .site-lead {
  margin-inline: auto;
  max-width: 46rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
  justify-self: end;
  max-width: 460px;
  padding: var(--space-4);
}

.hero-panel p:last-child {
  margin-bottom: 0;
}

.hero-panel h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.08;
  margin-bottom: var(--space-2);
  max-width: 12ch;
}

.hero-panel ul {
  margin: 0;
}

.hero-proof-list,
.hero-service-list {
  display: grid;
  gap: var(--space-2);
}

.hero-proof-list {
  margin-top: var(--space-2);
}

.hero-proof-item {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-2);
  grid-template-columns: auto 1fr;
  padding: var(--space-2);
}

.hero-proof-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.hero-proof-title {
  color: var(--color-white);
  font-size: var(--font-size-small);
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-proof-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--font-size-small);
  margin: 0;
}

.hero-service-list {
  color: rgba(255, 255, 255, 0.88);
  padding-left: var(--space-3);
}

.hero-service-list li + li {
  margin-top: 10px;
}

.hero h1,
.hero h2 {
  color: var(--color-white);
  font-size: clamp(3.2rem, 7vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-inline: auto;
  margin-bottom: var(--space-2);
  max-width: 12ch;
  text-wrap: balance;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-size-body-lg);
  letter-spacing: normal;
  margin: 0 auto var(--space-3);
  max-width: 40rem;
  text-transform: none;
}

.hero-actions,
.hero .hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.site-btn,
.btn-cta,
.cta-btn,
.btn-start-now,
.footer .footer-newsletter .newsletter-form input[type=submit],
.contact .php-email-form button[type=submit] {
  align-items: center;
  appearance: none;
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-pill);
  color: var(--contrast-color);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-btn:hover,
.btn-cta:hover,
.cta-btn:hover,
.btn-start-now:hover,
.footer .footer-newsletter .newsletter-form input[type=submit]:hover,
.contact .php-email-form button[type=submit]:hover {
  background: var(--color-navy-900);
  border-color: var(--color-navy-900);
  box-shadow: var(--shadow-sm);
  color: var(--color-white);
  transform: translateY(-1px);
}

.site-btn-secondary,
.btn-cta-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.site-btn-secondary:hover,
.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.btn-scroll {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.site-button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-grid-single .site-button-row {
  justify-content: center;
}

.site-flow {
  display: grid;
  gap: var(--space-3);
}

.site-grid {
  display: grid;
  gap: var(--space-3);
}

.site-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-check-list li {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.site-check-list li + li {
  margin-top: var(--space-2);
}

.site-check-list i {
  color: var(--accent-color);
  font-size: 1.125rem;
  line-height: 1.5;
}

.site-gallery-grid {
  display: grid;
  gap: var(--space-3);
}

.site-gallery-card {
  overflow: hidden;
}

.site-gallery-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.site-gallery-card .site-card-copy {
  padding: var(--space-3);
}

.site-card,
.stats-item,
.team-text-card,
.code-gov-panel,
.contact .info-wrap,
.contact .php-email-form,
.footer .footer-newsletter .newsletter-form,
.portfolio-details .portfolio-info,
.services-list,
.accordion-item,
.testimonial-item,
.faq .faq-item,
.info-wrap,
.newsletter-form {
  background: var(--surface-color);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stats .stats-item,
.testimonial-item,
.team-text-card,
.contact .info-wrap,
.contact .php-email-form,
.portfolio-details .portfolio-info,
.services-list {
  padding: var(--space-3);
}

.stats .stats-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-3);
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  display: block;
  font-size: clamp(2.5rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stats .stats-item p {
  color: var(--default-color);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: 1.55;
  margin: 0;
}

.stats .stats-item p strong {
  color: var(--heading-color);
  display: block;
  font-size: var(--font-size-small);
  font-weight: 700;
  margin-bottom: 10px;
}

.stats .stats-item p span {
  color: var(--default-color);
  display: inline;
  font-size: inherit;
  font-weight: 400;
  margin: 0;
}

.stats .stats-item p a {
  font-weight: 700;
}

.call-to-action {
  position: relative;
}

.call-to-action img {
  object-fit: cover;
}

.call-to-action::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.26));
  content: "";
  inset: 0;
  position: absolute;
}

.call-to-action .container {
  position: relative;
  z-index: 1;
}

.call-to-action .text-center {
  --heading-color: var(--color-navy-900);
  --default-color: var(--color-grey-700);
  --accent-color: var(--color-blue-700);
  --contrast-color: var(--color-white);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.call-to-action h3,
.call-to-action p {
  color: var(--heading-color);
}

.call-to-action p {
  margin-inline: auto;
  max-width: 48rem;
}

.call-to-action .cta-btn {
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-pill);
  color: var(--contrast-color);
  font-family: var(--font-family-base);
  font-weight: 700;
  letter-spacing: 0;
  min-height: 48px;
  padding: 12px 24px;
}

.call-to-action .cta-btn:hover {
  background: var(--color-navy-900);
  border-color: var(--color-navy-900);
  color: var(--color-white);
}

.about-link {
  font-weight: 600;
}

.ellipse-image,
.team-image,
.services-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.team-text-card {
  padding: var(--space-4);
}

.team-names,
.team-names::after {
  color: var(--heading-color);
}

.team-names::after {
  background: var(--accent-color);
  height: 4px;
}

.code-gov-layout {
  align-items: stretch;
}

.code-gov-panel {
  height: 100%;
  padding: var(--space-4);
}

.code-gov-panel,
.code-gov-card {
  border-left: 4px solid var(--accent-color);
}

.code-gov-paragraph,
.accordion-body,
.portfolio-details .portfolio-description p {
  text-align: left;
}

.testimonial-item {
  height: 100%;
  position: relative;
}

.testimonials .testimonial-item p {
  background: transparent;
  padding: 0;
}

.faq .container {
  max-width: var(--site-narrow-width);
}

.faq .faq-item {
  margin: 0 0 var(--space-2);
  padding: var(--space-3);
}

.faq .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-item i,
.contact .info-item i {
  color: var(--accent-color);
}

.contact .info-item {
  margin-bottom: var(--space-3);
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea,
.footer .footer-newsletter .newsletter-form input[type=email] {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--default-color);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  min-height: 48px;
  padding: 12px 14px;
}

.contact .php-email-form textarea {
  min-height: 180px;
}

.footer {
  color: var(--default-color);
  font-size: var(--font-size-small);
}

.footer .footer-top {
  border-top: none;
  padding-top: var(--space-5);
}

.footer .footer-about .logo span,
.footer h4,
.footer .sitename {
  color: var(--heading-color);
}

.footer .footer-newsletter .newsletter-form {
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
}

.footer .footer-newsletter .newsletter-form input[type=email] {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  flex: 1 1 auto;
  min-width: 0;
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
  margin: 0;
  white-space: nowrap;
}

.footer .social-links a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
}

.footer .social-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3) 0;
}

.scroll-top {
  background: var(--accent-color);
  border-radius: var(--radius-pill);
  bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
  right: var(--space-2);
}

.scroll-top:hover {
  background: var(--color-navy-900);
}

.php-email-form .error-message {
  background: rgba(185, 28, 28, 0.12);
  border: 1px solid rgba(185, 28, 28, 0.24);
  border-radius: var(--radius-sm);
  color: var(--error-color);
}

.php-email-form .sent-message {
  background: rgba(21, 128, 61, 0.12);
  border: 1px solid rgba(21, 128, 61, 0.24);
  border-radius: var(--radius-sm);
  color: var(--success-color);
}

.php-email-form .loading {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
}

.accordion-item {
  overflow: hidden;
}

.accordion-button {
  background: var(--surface-color);
  color: var(--heading-color);
  font-weight: 700;
  min-height: 56px;
}

.accordion-button:not(.collapsed) {
  background: var(--surface-muted);
  color: var(--heading-color);
  box-shadow: none;
}

.accordion-body {
  padding: var(--space-3);
}

.responsive-embed,
.video-embed {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.responsive-embed-caption {
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  padding: var(--space-2);
}

.responsive-embed-shell {
  display: grid;
  gap: var(--space-2);
}

.hero-media-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-media-card .responsive-embed,
.hero-media-card .video-embed {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-media-card .responsive-embed-caption {
  background: var(--color-white);
}

.responsive-embed iframe,
.responsive-embed video,
.video-embed iframe,
.video-embed video {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  width: 100%;
}

@media (max-width: 767px) {
  .container,
  .container-fluid,
  .container-xl {
    width: min(100% - var(--space-3), var(--site-max-width));
  }

  .main {
    padding-top: 76px;
  }

  .header {
    min-height: 76px;
  }

  .section,
  section {
    padding: var(--section-padding-y-compact) 0;
  }

  .page-title {
    padding: calc(var(--space-6) + var(--space-3)) 0 var(--space-4);
  }

  .page-title p,
  .section-title p,
  .hero p {
    font-size: var(--font-size-body);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: var(--space-4);
  }

  .hero-panel {
    justify-self: stretch;
    max-width: none;
    padding: var(--space-3);
  }

  .hero-panel h2 {
    max-width: none;
  }

  .hero-proof-item {
    grid-template-columns: 1fr;
  }

  .hero-proof-icon {
    margin-bottom: var(--space-1);
  }

  .call-to-action .text-center,
  .team-text-card,
  .code-gov-panel,
  .contact .info-wrap,
  .contact .php-email-form {
    padding: var(--space-3);
  }

  .footer .footer-newsletter .newsletter-form {
    flex-direction: column;
  }

  .footer .footer-newsletter .newsletter-form input[type=submit] {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  }

  .hero-grid.hero-grid-single,
  .hero-grid-single {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .hero-grid-single .hero-copy {
    justify-self: center;
  }

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

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