:root {
  --navy: #12366c;
  --deep: #003a6a;
  --text: #666666;
  --ink: #1c1c1c;
  --bg: #f7f7f7;
  --white: #ffffff;
  --wrap: 1170px;
  --font: "Montserrat", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 300 17px/1.8 var(--font); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2873df; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; height: 152px; }
.logo img { display: block; width: 184px; height: 92px; object-fit: cover; }
.nav { display: flex; gap: clamp(32px, 9vw, 140px); }
.nav a { color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
.nav a:hover { color: var(--navy); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  min-height: max(640px, calc(100svh - 152px));
  padding: 56px 0 200px;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #ffffff 40%, #eef4fa 100%);
}
.hero h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  line-height: 1.4;
}
.pillars { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 56px; list-style: none; margin: 64px 0 36px; padding: 0; }
.pillars li { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 112px; color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.pillars img {
  box-sizing: content-box; width: 56px; height: 56px; padding: 22px; object-fit: contain;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 54, 108, .12), inset 0 0 0 1px rgba(18, 54, 108, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillars li:hover img { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(18, 54, 108, .2), inset 0 0 0 1px rgba(18, 54, 108, .08); }
.wave { display: block; width: min(600px, 100%); aspect-ratio: 6 / 1; height: auto; margin: 0 auto; }
.intro { max-width: 560px; margin: 28px auto 0; font-size: 18px; line-height: 1.7; }
.intro b { font-weight: 600; color: #444; }
.mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; display: block; }

/* Service rows */
.services { background: var(--bg); padding: 80px 0 100px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 40px 0; }
.row-flip .row-copy { order: 2; text-align: right; }
.row-flip { grid-template-columns: 7fr 5fr; }
.row h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(32px, 4vw, 50px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.row p { margin: 0; font-size: 17px; line-height: 1.95; }
.row p b { font-weight: 600; color: #444; }
.row-art { display: block; width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px; padding: 12px 26px;
  border-radius: 4px; background: var(--navy); color: var(--white);
  font-size: 12px; font-weight: 700; text-transform: uppercase; text-decoration: none; line-height: 1.6;
  transition: background-color .2s;
}
.btn::after { content: ""; width: 14px; height: 10px; background: currentColor; clip-path: polygon(0 45%, 75% 45%, 55% 10%, 62% 0, 100% 50%, 62% 100%, 55% 90%, 75% 55%, 0 55%); }
.btn:hover { background: #2873df; }

/* Our Services carousel */
.our-services {
  position: relative; padding: 90px 0 110px; text-align: center;
  background: var(--white) url("../img/dashboard-bg.png") center / cover no-repeat;
}
.our-services::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .9); }
.our-services .wrap { position: relative; }
.our-services h2 { margin: 0 0 48px; color: var(--navy); font-size: clamp(30px, 3.5vw, 42px); font-weight: 700; }

.carousel { position: relative; padding: 0 70px; }
.track {
  --gap: 24px;
  display: flex; gap: var(--gap); list-style: none; margin: 0; padding: 10px 0 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track li { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); scroll-snap-align: start; }
.track a {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  padding: 28px 20px 26px; border-radius: 8px; background: var(--white);
  box-shadow: 0 6px 20px rgba(18, 54, 108, .1); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.track a:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(18, 54, 108, .18); }
.track img { width: auto; height: 150px; max-width: 90%; object-fit: contain; margin-bottom: 20px; }
.track b { color: var(--navy); font-weight: 700; font-size: 17px; line-height: 1.4; }
.track span { color: var(--text); font-size: 15px; font-weight: 500; }

.arrow {
  position: absolute; top: 50%; transform: translateY(-60%);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--navy); color: var(--white); cursor: pointer;
}
.arrow:hover { background: #2873df; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow-prev { left: 0; }
.arrow-next { right: 0; }

/* Footer */
.footer { background: var(--navy); color: var(--white); padding: 56px 0; }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: 32px; align-items: start; }
.footer-logo { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 17px; text-decoration: none; }
.footer-logo img { width: 98px; height: 98px; }
.footer h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.footer .wrap > div { display: flex; flex-direction: column; font-size: 15px; font-weight: 400; line-height: 1.8; }
.footer .wrap > div a { text-decoration: none; }
.footer .wrap > div a:hover { text-decoration: underline; }

/* Entrance animation, as on the original */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 991px) {
  .masthead .wrap { height: 100px; }
  .logo img { width: 128px; height: 64px; }
  .nav { gap: 32px; }
  .nav a { font-size: 15px; }
  .row, .row-flip { grid-template-columns: 1fr; gap: 24px; }
  .row-flip .row-copy { order: 0; text-align: left; }
  .track li { flex-basis: calc((100% - var(--gap)) / 2); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); }
  .nav {
    display: none; position: absolute; top: 100px; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 20px; background: var(--white);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
  }
  .nav.open { display: flex; }
  .hero { min-height: 0; padding: 40px 0 130px; }
  .hero h1 { letter-spacing: .2em; }
  .pillars { flex-wrap: nowrap; gap: 6px; margin-top: 40px; }
  .pillars li { width: auto; flex: 1 1 0; font-size: 10px; letter-spacing: .04em; gap: 10px; }
  .pillars img { width: 30px; height: 30px; padding: 13px; }
  .intro { font-size: 16px; }
  .mountains { height: 90px; }
  .carousel { padding: 0; }
  .track li { flex-basis: 85%; }
  .arrow { display: none; }
  .footer .wrap { grid-template-columns: 1fr; }
}
