:root {
  --navy: #14283c;
  --navy-deep: #0d1c2c;
  --blue: #5d8dca;
  --blue-dark: #3f72b2;
  --silver: #a5a7aa;
  --ink: #172638;
  --muted: #607083;
  --surface: #f5f7fa;
  --white: #ffffff;
  --border: rgba(20, 40, 60, 0.13);
  --shadow: 0 24px 70px rgba(13, 28, 44, 0.15);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #7ab2ff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding-block: 18px;
}

.brand {
  display: flex;
  width: 184px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover {
  color: var(--blue-dark);
}

.primary-nav .nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
}

.primary-nav .nav-cta:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    url("../assets/images/hero.jpg")
    center 48% / cover no-repeat;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 30, 48, 0.92) 0%, rgba(15, 39, 62, 0.8) 48%, rgba(14, 38, 62, 0.48) 100%);
}

.hero-inner {
  padding-block: 90px;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a9cbff;
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue-dark);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.65rem, 5.4vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.03rem, 1.7vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(93, 141, 202, 0.28);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-services span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
}

.section {
  padding-block: 105px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2,
.section-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading p:last-child,
.section-copy p,
.help-content p {
  color: var(--muted);
}

.services-section {
  background: var(--white);
}

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

.service-card {
  position: relative;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(93, 141, 202, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 14%, rgba(93, 141, 202, 0.10), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f6f9fd 100%);
  box-shadow: 0 18px 46px rgba(20, 40, 60, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 141, 202, 0.34);
  box-shadow: 0 24px 58px rgba(20, 40, 60, 0.13);
}

.service-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: 58px;
  width: 160px;
  height: 160px;
  border: 22px solid rgba(93, 141, 202, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.service-card-top {
  position: relative;
  z-index: 1;
  min-height: 180px;
}

.service-index {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-width: 42px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(93, 141, 202, 0.10);
  color: var(--blue-dark);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.service-graphic {
  position: absolute;
  right: -2px;
  bottom: 0;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(63, 114, 178, 0.13));
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  max-width: 190px;
  color: var(--navy);
  font-size: 1.38rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.25fr);
  gap: clamp(50px, 8vw, 100px);
  align-items: center;
}

.about-brand-card {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.about-icon-panel {
  width: min(230px, 72%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.about-icon-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-brand-card > span:last-child {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-copy {
  max-width: 680px;
}

.section-lead {
  margin-top: 26px;
  font-size: 1.22rem;
}

.help-section {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 0%, rgba(93, 141, 202, 0.32), transparent 36%),
    var(--navy-deep);
}

.help-heading h2 {
  color: var(--white);
}

.help-content {
  max-width: 950px;
}

.help-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.79);
}

.help-content a:not(.button) {
  color: #bcd7ff;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}

.text-cta {
  text-decoration: none;
  color: var(--white) !important;
  font-weight: 800;
}

.contact-section {
  position: relative;
  color: var(--white);
  background:
    url("../assets/images/contact-background.jpg")
    center 58% / cover no-repeat;
  isolation: isolate;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 29, 44, 0.95), rgba(18, 46, 73, 0.72));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy > p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-lead {
  margin-top: 25px;
  font-size: 1.18rem;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.contact-details > div {
  padding-left: 16px;
  border-left: 3px solid var(--blue);
}

.detail-label {
  display: block;
  margin-bottom: 2px;
  color: #abcfff;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details address {
  font-style: normal;
}

.contact-details a {
  color: var(--white);
}

.form-shell {
  padding: clamp(25px, 4vw, 42px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 19px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--navy);
  font-size: 0.87rem;
  font-weight: 800;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ccd5df;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition:
    border 0.18s ease,
    box-shadow 0.18s ease;
}

.form-group input {
  min-height: 54px;
  padding: 0 15px;
}

.form-group textarea {
  min-height: 155px;
  padding: 14px 15px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(93, 141, 202, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8a97a5;
}

.submit-button {
  width: fit-content;
  min-width: 175px;
}

.form-help {
  margin: -2px 0 0;
  color: #768493;
  font-size: 0.82rem;
}

.site-footer {
  padding: 64px 0 24px;
  background: #091522;
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr 1fr auto;
  gap: 56px;
  align-items: start;
}

.footer-brand {
  width: 172px;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.footer-grid strong {
  display: block;
  margin-bottom: 11px;
  color: var(--white);
}

.footer-grid address {
  margin-bottom: 8px;
  font-style: normal;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-top {
  text-align: right;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
}

/* Thank-you page */
.thank-you-page {
  min-height: 100vh;
  background: var(--navy);
}

.thank-you-main {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    url("../assets/images/contact-background.jpg")
    center / cover no-repeat;
  isolation: isolate;
}

.thank-you-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 29, 45, 0.82);
}

.thank-you-card {
  width: min(100%, 720px);
  padding: clamp(34px, 6vw, 66px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.thank-you-brand {
  display: flex;
  width: min(280px, 78%);
  min-height: 72px;
  align-items: center;
  margin-bottom: 48px;
}

.thank-you-brand img {
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.thank-you-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.thank-you-card p:not(.eyebrow) {
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 1.12rem;
}

@media (max-width: 1080px) {
  .primary-nav {
    gap: 16px;
  }

  .primary-nav a {
    font-size: 0.84rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }

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

  .footer-top {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 92px;
    padding-block: 13px;
  }

  .brand {
    width: 168px;
  }

  .brand img {
    max-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 13px;
    border-radius: 9px;
  }

  .primary-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    min-height: 620px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-brand-card {
    min-height: 350px;
  }

  .contact-copy {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding-block: 76px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-inner {
    padding-block: 74px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12.5vw, 4rem);
  }

  .hero-actions,
  .help-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .help-links .button,
  .help-links .text-cta {
    width: 100%;
    text-align: center;
  }

  .service-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 235px;
  }

  .service-card-top {
    min-height: 135px;
  }

  .service-graphic {
    width: 118px;
    height: 118px;
  }

  .service-card h3 {
    margin-top: 14px;
  }

  .form-shell {
    padding: 24px 18px;
  }

  .submit-button {
    width: 100%;
  }

  .footer-brand {
    width: 220px;
  }

  .footer-brand img {
    width: 100%;
  }

  .thank-you-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Brand asset safety: preserve natural aspect ratio everywhere. */
.brand img,
.footer-brand img,
.thank-you-brand img,
.about-icon-panel img {
  aspect-ratio: auto;
  object-fit: contain;
}


/* Final logo and service asset safety */
.brand img,
.footer-brand img,
.thank-you-brand img,
.service-graphic {
  aspect-ratio: auto;
  object-fit: contain;
}
