/* =========================================================
   TROYЕS IT SERVICES — MOBILE-FIRST WEBSITE
   External stylesheet
   ========================================================= */

:root {
  --navy: #03132c;
  --navy-2: #061c3b;
  --blue: #0755c9;
  --blue-2: #0a68ef;
  --green: #9bd31f;
  --green-2: #b8eb39;
  --ink: #10233f;
  --muted: #63738a;
  --line: #dce5ef;
  --soft: #f6f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 16px 45px rgba(4, 25, 55, .08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.section { padding: 78px 0; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  margin-bottom: 18px;
}

h2 span, h1 span { color: var(--blue-2); }

.eyebrow {
  margin-bottom: 12px;
  color: var(--green-2);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.eyebrow.dark { color: #61a5ff; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e8eef5;
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 150px;
  height: auto;
  mix-blend-mode: multiply;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .25s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 35px rgba(0,0,0,.08);
}

.main-nav.open { display: flex; }

.main-nav > a {
  padding: 12px 8px;
  font-size: .9rem;
  font-weight: 700;
}

.nav-cta {
  background: var(--navy);
  color: #fff;
  border-radius: 9px;
  text-align: center;
  margin-top: 6px;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 25%, rgba(10,104,239,.28), transparent 30%),
    linear-gradient(135deg, #020d1e, #031b39 62%, #04142a);
  min-height: 700px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(91,145,210,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,145,210,.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 80%, transparent);
}

.hero-inner {
  position: relative;
  padding: 62px 0 46px;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 9vw, 5.35rem);
}

.hero h1 span { color: #fff; }

.hero-text {
  max-width: 580px;
  color: #d3dfef;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

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

.btn-primary {
  background: var(--green);
  color: #071628;
}

.btn-primary:hover { background: var(--green-2); }

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}

.btn-outline:hover { background: rgba(255,255,255,.08); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #b8c9dc;
  font-size: .74rem;
}

.hero-visual {
  position: relative;
  margin: 50px auto 20px;
  width: min(680px, 100%);
  min-height: 290px;
}

.dashboard {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 1px solid rgba(127,181,255,.28);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(8,29,58,.92);
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

.dash-top {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #91a9c5;
  font-size: .55rem;
}

.dash-top span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6883a0;
}

.dash-top b {
  margin-left: auto;
  font-weight: 600;
}

.dash-body { display: flex; min-height: 245px; }

.dash-side {
  width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.dash-side i {
  width: 12px;
  height: 12px;
  border: 1px solid #55789e;
  border-radius: 3px;
}

.dash-main { flex: 1; padding: 15px; }

.metric-row, .mini-row { display: flex; gap: 8px; }

.metric {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
}

.metric small, .metric strong, .metric em {
  display: block;
}

.metric small { color: #718da9; font-size: .52rem; }
.metric strong { font-size: .85rem; margin: 3px 0; }
.metric em { color: var(--green-2); font-style: normal; font-size: .5rem; }

.chart-card {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
}

.chart-label {
  display: flex;
  justify-content: space-between;
  color: #91a9c5;
  font-size: .52rem;
}

.chart-label b { font-weight: 500; }

.chart-card svg {
  width: 100%;
  height: 105px;
  margin-top: 5px;
}

.chart-card polyline {
  fill: none;
  stroke: #48a5ff;
  stroke-width: 3;
}

.chart-card .chart-soft {
  stroke: rgba(154,211,31,.7);
  stroke-width: 2;
}

.mini-row { margin-top: 8px; }
.mini-row div { flex: 1; height: 25px; background: rgba(255,255,255,.045); border-radius: 5px; }

.orbit {
  position: absolute;
  border: 1px solid rgba(91,165,255,.22);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 { width: 95%; height: 80%; left: 3%; top: 10%; }
.orbit-2 { width: 70%; height: 100%; left: 15%; top: -10%; }

.process-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 850px;
  margin: 28px auto 0;
  gap: 5px;
}

.process-strip > div {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 50px;
}

.process-strip b { color: var(--green-2); font-size: 12px; }
.process-strip span { font-size: 14px; font-weight: 800; }
.process-strip small { color: #7891ad; font-size: 11px; }
.process-strip > i { color: #4d75a0; font-style: normal; font-size: 16px; }

/* TRUST */
.trust { background: #fff; }
.trust-grid { display: grid; gap: 45px; }
.trust-intro h2 { max-width: 640px; }
.trust-intro > p:last-child { max-width: 600px; color: var(--muted); }
.trust-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.trust-facts div {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-facts strong { display: block; color: var(--blue); font-size: 1.15rem; }
.trust-facts span { color: var(--muted); font-size: .75rem; }

/* COMMON SECTION HEADINGS */
.section-heading.centered { text-align: center; }
.section-heading.centered h2 { max-width: 780px; margin-inline: auto; }

/* SERVICES */
.services { background: var(--soft); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-card {
  position: relative;
  padding: 24px;
  min-height: 225px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #bcd1ea;
}

.service-card.featured { border-top: 3px solid var(--blue-2); }

.service-number {
  position: absolute;
  right: 20px;
  top: 18px;
  color: #9cadc0;
  font-size: .62rem;
  font-weight: 800;
}

.service-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 20px;
}

.service-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .78rem; margin-bottom: 15px; }
.service-card a { color: var(--blue); font-size: .72rem; font-weight: 800; }

/* TECH */
.tech-band {
  padding: 55px 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 50%, rgba(8,104,239,.32), transparent 30%),
    var(--navy);
}

.tech-band h2 { max-width: 420px; font-size: 2rem; }
.tech-band h2 span { color: #fff; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 28px;
}

.tech-grid > div {
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.tech-grid b { display: block; color: var(--green-2); font-size: 1.4rem; }
.tech-grid strong { display: block; margin-top: 8px; font-size: 14px; }
.tech-grid span { display: block; margin-top: 4px; color: #8ca2bb; font-size: 12px; line-height: 1.5; }

/* SOLUTIONS */
.solution-layout { display: grid; gap: 35px; }
.solution-layout .section-heading > p:last-child { color: var(--muted); }
.solution-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.solution-grid article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.solution-grid article > span { color: var(--green); font-size: .62rem; font-weight: 800; }
.solution-grid small { display: block; color: var(--muted); margin-top: 16px; font-size: .63rem; font-weight: 700; }
.solution-grid h3 { margin: 5px 0 8px; font-size: 1.05rem; }
.solution-grid p { color: var(--muted); font-size: .76rem; }
.solution-grid a { color: #3c8e08; font-size: .7rem; font-weight: 800; }

/* PROCESS */
.process-section { background: var(--soft); }
.timeline { display: grid; gap: 12px; }
.timeline article {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.timeline article > b { color: var(--muted); font-size: .6rem; }
.timeline-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 10px 0 13px;
  border: 1px solid #cfe0f1;
  border-radius: 50%;
  color: var(--blue);
  font-weight: 800;
}
.timeline h3 { font-size: 1rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: .72rem; margin: 0; }

/* WHY */
.dark-section {
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(87,155,255,.16), transparent 28%),
    var(--navy);
}
.dark-section h2 span { color: #fff; }
.why-grid { display: grid; gap: 12px; margin-top: 35px; }
.why-grid article {
  padding: 25px 20px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.why-grid b { color: var(--green-2); font-size: .62rem; }
.why-grid h3 { font-size: 1rem; margin: 9px 0; }
.why-grid p { color: #9db0c7; font-size: .74rem; margin: 0; }

/* CTA */
.final-cta {
  padding: 70px 0;
  color: #fff;
  background:
    radial-gradient(circle at 75% 20%, rgba(75,164,255,.28), transparent 35%),
    linear-gradient(135deg, #0643a8, #0755c9);
}
.cta-inner { display: grid; gap: 25px; }
.final-cta h2 { max-width: 700px; }
.final-cta h2 span { color: #fff; }
.final-cta p:not(.eyebrow) { max-width: 650px; color: #d7e5fa; font-size: .86rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline.light { border-color: rgba(255,255,255,.65); }
.contact-card {
  display: grid;
  gap: 4px;
  width: fit-content;
  padding: 18px 20px;
  border-left: 2px solid var(--green);
  background: rgba(0,0,0,.12);
  font-size: .75rem;
}
.contact-card strong { font-size: .82rem; }

/* FOOTER */
.footer {
  padding: 55px 0 20px;
  color: #b0c1d6;
  background: #020d1d;
}
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 145px; mix-blend-mode: screen; }
.footer-brand p { max-width: 230px; font-size: .7rem; }
.footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.footer a, .footer span { display: block; margin: 5px 0; font-size: 14px; line-height: 1.5; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 45px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 12px;
}

/* TABLET */
@media (min-width: 600px) {
  .container { width: min(1180px, calc(100% - 56px)); }
  .section { padding: 95px 0; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

/* DESKTOP */
@media (min-width: 900px) {
  .menu-toggle { display: none; }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .main-nav > a {
    padding: 10px 12px;
    font-size: 18px;
    font-weight: 700;
  }

  .nav-cta {
    margin-left: 12px;
    padding: 12px 17px !important;
    color: #fff;
  }

  .hero { min-height: 760px; }
  .hero-inner {
    min-height: 760px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 50px;
    padding: 80px 0 70px;
  }

  .hero h1 { font-size: clamp(3.8rem, 5.3vw, 5.45rem); }
  .hero-visual { margin: 0; }
  .process-strip {
    position: absolute;
    right: 0;
    top: 80px;
    width: 650px;
    transform: translateY(-10px);
  }

  .trust-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }

  .trust-facts { grid-template-columns: repeat(4, 1fr); }

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

  .tech-grid { grid-template-columns: repeat(6, 1fr); }
  .tech-grid > div { min-height: 150px; }

  .solution-layout {
    grid-template-columns: .7fr 1.3fr;
    align-items: start;
  }

  .timeline {
    grid-template-columns: repeat(6, 1fr);
  }

  .timeline article {
    text-align: center;
    padding: 20px 12px;
  }

  .timeline-icon { margin-inline: auto; }

  .why-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .why-grid article { padding: 15px 18px; }

  .cta-inner {
    grid-template-columns: 1.25fr auto auto;
    align-items: center;
  }

  .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
}

/* LARGE DESKTOP */
@media (min-width: 1200px) {
  .hero h1 { font-size: 82px; }
}

/* ACCESSIBILITY */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   FINAL 1326px DESKTOP CALIBRATION
   ========================================================= */
@media (min-width: 1200px) {
  .main-nav > a {
    font-size: 16px;
    font-weight: 700;
  }

  .main-nav > a.nav-cta {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 78px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    min-height: 760px;
  }

  .process-strip b {
    font-size: 12px;
  }

  .process-strip span {
    font-size: 14px;
  }

  .process-strip small {
    font-size: 11px;
  }

  .tech-grid strong {
    font-size: 14px;
  }

  .tech-grid span {
    font-size: 12px;
  }

  .footer h4 {
    font-size: 14px;
  }

  .footer a,
  .footer span {
    font-size: 14px;
  }
}
