@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary: #6878d6;
  --primary-dark: #4d61d6;
  --navy: #242a56;
  --text: #393a56;
  --pale: #eff2ff;
  --white: #fff;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 20px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 48px;
  line-height: 1.22;
}

h2 {
  font-size: 42px;
  line-height: 1.25;
}

h3 {
  font-size: 19px;
  line-height: 1.25;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  color: var(--white);
  background: var(--primary-dark);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 60px), var(--container));
  min-height: 102px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  width: 210px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #4d5eb1;
  font-size: 15px;
}

.site-nav > a:not(.nav-contact) {
  padding: 38px 0;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--navy);
}

.nav-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--primary);
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-contact {
  min-height: 46px;
  padding: 0 28px;
  border-radius: 28px;
  letter-spacing: 1.2px;
  text-transform: none;
}

.nav-contact:hover,
.nav-contact:focus-visible,
.button:hover,
.button:focus-visible {
  color: var(--white) !important;
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  min-height: 48px;
  padding: 14px 34px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 1px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

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

.hero,
.about {
  background: linear-gradient(180deg, #aeb9f0 0%, var(--pale) 62%);
}

.hero-inner {
  display: flex;
  min-height: 750px;
  padding: 200px 0 50px;
  align-items: flex-start;
}

.hero-copy,
.hero-image,
.about-image,
.about-copy {
  width: 50%;
}

.hero-copy {
  padding: 8px 50px 60px 10px;
}

.hero-copy h1 {
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-image img,
.about-image img,
.why-image img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

.hero-image img {
  box-shadow: 0 12px 28px rgba(36, 42, 86, 0.12);
}

.about {
  margin-top: -1px;
  padding: 120px 0 300px;
  background: var(--pale);
}

.about-inner {
  display: flex;
  align-items: center;
}

.about-copy {
  padding-left: 50px;
}

.about-copy h2 {
  margin-bottom: 25px;
}

.about-copy p:not(.eyebrow) {
  margin-bottom: 18px;
  font-size: 14px;
}

.about-copy .button {
  margin-top: 4px;
}

.banner-wrap {
  position: relative;
  z-index: 2;
  margin-top: -250px;
}

.banner-wrap img {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(36, 42, 86, 0.2);
}

.section {
  padding: 100px 0;
}

.services {
  padding-top: 105px;
}

.services h2,
.solutions > .container > h2 {
  max-width: 1120px;
}

.section-lead {
  margin-top: 22px;
  font-size: 14px;
}

.service-grid {
  display: grid;
  margin-top: 55px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--pale);
}

.service-card {
  min-height: 210px;
  padding: 52px 30px;
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
}

.service-card:nth-child(even) {
  border-right: 0;
}

.service-card:nth-child(n + 3) {
  border-bottom: 0;
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  margin: 0;
  font-size: 14px;
}

.why-us {
  background: var(--pale);
}

.why-intro {
  display: flex;
  align-items: center;
}

.why-copy,
.why-image {
  width: 50%;
}

.why-copy {
  padding: 0 70px 0 10px;
}

.why-copy h2 {
  margin-bottom: 28px;
}

.why-copy p:not(.eyebrow) {
  max-width: 530px;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  margin-top: 70px;
  grid-template-columns: repeat(3, 1fr);
  gap: 62px;
}

.feature-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  fill: var(--primary-dark);
}

.feature-card h3 {
  min-height: 48px;
  margin-bottom: 15px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
}

.solutions h2 {
  margin-bottom: 22px;
}

.solution-row {
  display: grid;
  margin-top: 54px;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.solution-copy h3 {
  margin-bottom: 18px;
}

.solution-copy p,
.check-list {
  font-size: 14px;
}

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

.check-list li {
  position: relative;
  margin-bottom: 18px;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 0.16em;
  left: 0;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
  content: "✓";
}

.contact {
  padding: 100px 0;
  background: var(--pale);
}

.contact-inner {
  display: flex;
  align-items: flex-start;
  gap: 90px;
}

.contact-copy,
.contact-form {
  width: 50%;
}

.contact-copy h2 {
  margin-bottom: 25px;
  color: var(--primary);
}

.contact-copy > p:not(.eyebrow) {
  font-size: 14px;
}

.contact-address {
  margin-top: 30px;
}

.contact-address img {
  width: 180px;
  margin-bottom: 6px;
}

.contact-address address {
  color: var(--navy);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.contact-form {
  min-height: 465px;
  padding: 50px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(36, 42, 86, 0.05);
}

.contact-form iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

.site-footer {
  color: var(--white);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  min-height: 120px;
  padding: 22px 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.footer-inner a {
  color: var(--primary);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
}

.legal-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.legal-page .legal-main {
  flex: 1;
}

.legal-main {
  padding: 100px 0 145px;
}

.legal-document h1 {
  margin-bottom: 26px;
}

.legal-document .effective-date {
  margin-bottom: 25px;
  font-style: italic;
}

.legal-document section {
  margin-bottom: 22px;
}

.legal-document section h2 {
  margin-bottom: 18px;
  font-size: 20px;
  line-height: 1.25;
}

.legal-document section p,
.legal-document address,
.effective-date {
  font-size: 16px;
}

.legal-document section p {
  margin: 0;
}

.legal-document address {
  margin-top: 30px;
  font-style: normal;
}

@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 35px; }
  .site-nav { gap: 20px; }
  .hero-inner { min-height: 570px; padding-top: 85px; }
  .why-intro { gap: 40px; }
  .contact-inner { gap: 50px; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 80px; }
  .site-logo img { width: 160px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 80px;
    right: 30px;
    left: 30px;
    display: none;
    padding: 10px 22px 22px;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 16px 36px rgba(36, 42, 86, 0.14);
    flex-direction: column;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.nav-contact) { padding: 14px 2px; border-bottom: 1px solid var(--pale); }
  .nav-contact { margin-top: 16px; }
  .hero-inner { min-height: 500px; padding-top: 65px; }
  .hero-copy { padding-right: 0; }
  .hero-image { align-self: center; }
  .about { padding-top: 90px; }
  .about-inner { gap: 30px; }
  .feature-grid { gap: 30px; }
  .contact-inner { gap: 30px; }
  .contact-form { padding: 30px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .container { width: min(calc(100% - 40px), var(--container)); }
  .header-inner { width: calc(100% - 40px); }
  .site-nav { right: 20px; left: 20px; }
  .hero-inner,
  .about-inner,
  .why-intro,
  .contact-inner { flex-direction: column; }
  .hero-copy,
  .hero-image,
  .about-image,
  .about-copy,
  .why-copy,
  .why-image,
  .contact-copy,
  .contact-form { width: 100%; }
  .hero-inner { padding-top: 60px; padding-bottom: 70px; gap: 30px; }
  .hero-copy { padding: 0; }
  .hero-image img,
  .about-image img,
  .why-image img { height: 250px; aspect-ratio: auto; }
  .about { padding: 65px 0 150px; }
  .about-image { margin-bottom: 10px; }
  .about-copy { padding: 0; }
  .why-copy { padding: 0; }
  .banner-wrap { margin-top: -110px; }
  .banner-wrap img { height: 200px; }
  .section { padding: 65px 0; }
  .services { padding-top: 60px; }
  .service-grid { margin-top: 38px; grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(even),
  .service-card:nth-child(n + 3) { min-height: 0; padding: 35px 24px; border-right: 0; border-bottom: 1px solid var(--white); }
  .service-card:last-child { border-bottom: 0; }
  .why-intro { gap: 35px; }
  .feature-grid { margin-top: 50px; grid-template-columns: 1fr; gap: 42px; }
  .feature-card h3 { min-height: 0; }
  .solution-row { margin-top: 42px; grid-template-columns: 1fr; gap: 8px; }
  .contact-inner { gap: 35px; }
  .contact-form { min-height: 390px; padding: 20px; }
  .footer-inner { min-height: 130px; }
  .legal-main { padding: 55px 0 75px; }
  .legal-document h1 { margin-bottom: 32px; }
  .legal-document section h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
