* { box-sizing: border-box; }

:root {
  --navy: #082566;
  --navy-2: #16347a;
  --blue: #176bff;
  --cyan: #1ec9df;
  --green: #26cc67;
  --text: #173471;
  --muted: #4d6293;
  --line: #dfe7f0;
  --radius: 18px;
  --container: 1390px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.site-header {
  position: relative;
  z-index: 10;
  padding: 26px 0 8px;
  background: rgba(255,255,255,.96);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 318px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 61px;
  font-size: 17px;
  font-weight: 700;
  color: #092566;
}

.main-nav a {
  position: relative;
  padding: 16px 0 18px;
}

.main-nav a.active {
  color: #0a5bff;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: 7px;
  height: 2px;
  background: #0e67ff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
}

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

.services-hero {
  position: relative;
  min-height: 232px;
  padding: 42px 0 22px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.section-title {
  margin: 0;
  color: #1063ff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .02em;
}

.eyebrow-line {
  display: block;
  width: 224px;
  height: 2px;
  margin-top: 14px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, #176bff 0%, #24bfe0 58%, #2bd164 100%);
}

.lead {
  margin: 0;
  max-width: 700px;
  color: #264783;
  font-size: 18px;
  line-height: 1.58;
}

.services-list {
  position: relative;
  padding: 12px 0 46px;
}

.services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  min-height: 493px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.988);
  border: 1px solid #e7edf4;
  border-radius: var(--radius);
  box-shadow: 0 14px 31px rgba(21,47,87,.055);
}

.card-visual {
  position: relative;
  height: 238px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  margin: 0;
  padding-top: 0;
}

/* V0.5: these are direct WEB derivatives of the approved locked master.
   Do not independently redesign or re-compose them in CSS. */
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: none;
}

/* Keep the three master compositions on one optical baseline. */
.service-card--scan .card-visual img,
.service-card--reverse .card-visual img,
.service-card--qc .card-visual img {
  width: 100%;
  height: 100%;
  transform: none;
}

.card-line {
  width: 132px;
  height: 2px;
  margin: 0 0 16px;
  background: linear-gradient(90deg, #1068ff 0%, #18a5ee 56%, #25d15f 100%);
}

.service-card h2 {
  margin: 0;
  color: #08266b;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.service-card p {
  margin: 14px 0 0;
  color: #274782;
  font-size: 15px;
  line-height: 1.55;
}

.service-link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  color: #0b61ff;
  font-size: 16px;
  font-weight: 600;
}

.service-link span {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.contact-footer {
  padding: 4px 0 26px;
}

.contact-footer-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 78px;
  color: #fff;
  background: #17377f;
  border-radius: 17px;
}

.contact-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  white-space: nowrap;
  font-size: 18px;
}

.footer-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.72);
}

.footer-icon-master {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.footer-icon-www {
  transform: scale(.92);
  transform-origin: center;
}

@media (max-width: 1050px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .brand img { width: 265px; }
  .main-nav { gap: 34px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 28px;
  }
  .card-visual {
    grid-column: 1;
    grid-row: 1 / 5;
    height: 250px;
    margin: 0;
    padding-top: 0;
  }

  .card-visual img,
  .service-card--scan .card-visual img,
  .service-card--reverse .card-visual img,
  .service-card--qc .card-visual img {
    width: 100%;
    height: 100%;
    transform: none;
  }
  .card-line, .service-card h2, .service-card p, .service-link { grid-column: 2; }
  .card-line { margin-top: 20px; }
  .contact-footer-inner {
    padding: 0 34px;
    gap: 18px;
  }
  .contact-entry { font-size: 16px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--container)); }

  .site-header { padding-top: 15px; }
  .brand img { width: 220px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(18,45,85,.10);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 4px; }
  .main-nav a.active::after {
    left: 4px;
    right: auto;
    width: 46px;
    bottom: 6px;
  }

  .services-hero {
    min-height: 0;
    padding: 38px 0 30px;
  }

  .section-title { font-size: 25px; }
  .eyebrow-line {
    width: 170px;
    margin-top: 12px;
    margin-bottom: 18px;
  }
  .lead { font-size: 16px; }

  .services-list { padding-top: 4px; }

  .service-card {
    display: flex;
    min-height: 0;
    padding: 20px 20px 24px;
  }

  .card-visual {
    width: 100%;
    height: 225px;
    padding-top: 0;
  }

  .card-visual img,
  .service-card--scan .card-visual img,
  .service-card--reverse .card-visual img,
  .service-card--qc .card-visual img {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .card-line { margin-top: 0; }
  .service-card h2 { font-size: 25px; }
  .service-card p { font-size: 15px; }

  .contact-footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 24px;
  }

  .contact-entry {
    justify-content: flex-start;
    padding: 10px 0;
    font-size: 15px;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.25);
  }
}


/* ==========================================================
   V0.8 — LOCKED DESKTOP HEADER / NAV
   Source of truth: START.
   Same logo size, header height, container width, nav font,
   gaps, link padding and active underline on every page.
   ========================================================== */
@media (min-width: 761px) {
  .site-header {
    position: relative !important;
    z-index: 20 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .site-header .container {
    width: min(calc(100% - 52px), 1110px) !important;
    margin-inline: auto !important;
  }

  .header-inner {
    min-height: 92px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 48px !important;
  }

  .brand {
    width: 185px !important;
    display: block !important;
    flex: 0 0 185px !important;
  }

  .brand img {
    width: 100% !important;
    height: auto !important;
  }

  .main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 51px !important;
    color: #071f55 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: normal !important;
  }

  .main-nav a {
    position: relative !important;
    padding: 34px 0 29px !important;
  }

  .main-nav a::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 18px !important;
    width: 0 !important;
    height: 2px !important;
    background: #1769ee !important;
    transform: translateX(-50%) !important;
    transition: width .18s ease !important;
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 58px !important;
  }

  .menu-toggle {
    display: none !important;
  }
}
