/* =========================================================
   Technology Xperts — styles
   Palette: navy, brand blue, cyan and silver from the logo
   ========================================================= */

:root {
  /* Colors taken from the Technology Xperts logo */
  --navy: #050F24;       /* dark sections */
  --panel: #0B1A36;      /* raised surfaces on navy */
  --rule-dark: #1D3155;  /* borders on navy */
  --blue: #0A6CF5;       /* primary brand blue (the X, XPERTS) */
  --blue-hover: #2B85FF;
  --cyan: #14C3F7;       /* swoosh highlight, accents on navy */
  --blue-ink: #0656C4;   /* blue for text/icons on light backgrounds */
  --silver: #A7A8AD;     /* the T and TECHNOLOGY */
  --ink: #0C1526;        /* text on light */
  --paper: #F1F4F8;
  --white: #FFFFFF;
  --text-light: #BFC9D9; /* body text on navy */
  --text-muted: #4B5568; /* secondary text on light */

  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 90px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 15px 26px; font-size: 1.0625rem; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }

.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--rule-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: .975rem;
}
.site-nav a:not(.btn):hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 26px; height: 3px;
  margin: 0 auto;
  background: var(--white);
  position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--navy);
    border-bottom: 1px solid var(--rule-dark);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-dark);
    font-size: 1.125rem;
  }
  .nav-call { margin-top: 18px; }
}

@media (max-width: 480px) {
  :root { --header-h: 70px; }
  .brand img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(90% 70% at 85% 100%, #0B2550 0%, var(--navy) 65%);
  color: var(--white);
  padding-top: clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.hero-copy { padding-bottom: clamp(56px, 8vw, 110px); }

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 17ch;
}

.hero-lead {
  margin-top: 28px;
  max-width: 54ch;
  font-size: 1.1875rem;
  color: var(--text-light);
}

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

.hero-art { margin: 0; align-self: end; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* Hero illustration parts */
.hero-art .block { fill: #0F1F3D; stroke: #2A426E; stroke-width: 1.5; }
.hero-art .slots rect { fill: #030914; }
.hero-art .contacts path { stroke: var(--cyan); stroke-width: 2; fill: none; }
.hero-art .pin-numbers text {
  fill: #6F82A3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-anchor: middle;
}
.hero-art .w,
.hero-art .s { fill: none; stroke-width: 8; stroke-linecap: butt; }
.hero-art .c-white  { stroke: #EEF2F7; }
.hero-art .c-blue   { stroke: var(--blue); }
.hero-art .c-gray1  { stroke: var(--cyan); }
.hero-art .c-gray2  { stroke: #7C8799; }
.hero-art .c-gray3  { stroke: #B4BAC4; }
.hero-art .s { stroke-dasharray: 16 12; }
.hero-art .s-blue   { stroke: var(--blue); }
.hero-art .s-gray1  { stroke: var(--cyan); }
.hero-art .s-gray2  { stroke: #7C8799; }
.hero-art .s-gray3  { stroke: #B4BAC4; }
.hero-art .jacket { fill: #1A2C4E; stroke: #2E4775; stroke-width: 1.5; }
.hero-art .jacket-print {
  fill: #8EA0BF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .12em;
}

/* One orchestrated moment: conductors punch down in pin order,
   then the camera above switches on and starts watching */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .w {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: punch-down 1.1s cubic-bezier(.3, .7, .2, 1) forwards;
  }
  .hero-art .w2 { animation-delay: .08s; }
  .hero-art .w3 { animation-delay: .16s; }
  .hero-art .w4 { animation-delay: .24s; }
  .hero-art .w5 { animation-delay: .32s; }
  .hero-art .w6 { animation-delay: .40s; }
  .hero-art .w7 { animation-delay: .48s; }
  .hero-art .w8 { animation-delay: .56s; }
  .hero-art .stripes { opacity: 0; animation: show .4s ease-out 1.5s forwards; }
  .hero-art .contacts { opacity: .35; animation: show .3s ease-out 1.6s forwards; }
  .hero-art .cam-led { opacity: 0; animation: show .2s linear 1.8s forwards; }
  .hero-art .cam-cone { opacity: 0; animation: show .7s ease-out 1.9s forwards; }
}
@keyframes punch-down { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- Section basics ---------- */
.services,
.process,
.about,
.audience,
.contact { padding: var(--section-y) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2,
.about h2,
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 14px; font-size: 1.125rem; color: var(--text-muted); }

/* ---------- Services ---------- */
.services { background: var(--paper); }

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 72px);
}

.service {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 30px 0 34px;
  border-top: 2px solid var(--ink);
}

.service-icon {
  width: 52px; height: 52px;
  padding: 10px;
  background: linear-gradient(145deg, #0E2A5A, var(--navy));
  border-radius: 6px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon .fill { fill: var(--cyan); stroke: none; }
.service-icon .dot { stroke-width: 2.6; }

.service h3 { font-size: 1.35rem; }
.service h3 + p { margin-top: 8px; }
.service-detail {
  margin-top: 10px;
  font-size: .95rem;
  color: var(--text-muted);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span {
  padding: 2px 9px;
  border: 1.5px solid var(--blue-ink);
  color: var(--blue-ink);
  border-radius: 3px;
  font-size: .8125rem;
  font-weight: 600;
}

.services-note {
  margin-top: 28px;
  padding: 18px 0 18px 20px;
  border-left: 5px solid var(--blue);
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 70ch;
}

@media (max-width: 760px) {
  .service-list { grid-template-columns: 1fr; }
  .service { grid-template-columns: 44px 1fr; gap: 16px; }
  .service-icon { width: 44px; height: 44px; padding: 9px; }
}

/* ---------- Homes & businesses ---------- */
.audience { background: var(--navy); color: var(--white); }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.audience-col { display: flex; flex-direction: column; padding: 8px clamp(24px, 5vw, 64px); }
.audience-col > p { flex: 1; }
.audience-col:first-child { padding-left: 0; border-right: 3px solid var(--blue); }
.audience-col:last-child { padding-right: 0; }

.audience h3 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.audience-col > p { margin-top: 18px; color: var(--text-light); max-width: 52ch; }

.checks { list-style: none; margin: 26px 0 0; padding: 0; }
.checks li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--rule-dark);
  font-weight: 500;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  background: var(--cyan);
}

@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; gap: 48px; }
  .audience-col,
  .audience-col:first-child,
  .audience-col:last-child { padding: 0; border-right: 0; }
  .audience-col:last-child { padding-top: 40px; border-top: 3px solid var(--blue); }
}

/* ---------- Process ---------- */
.process { background: var(--white); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  counter-reset: step;
  position: relative;
}
/* the "cable run" connecting each step */
.steps::before {
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  background: var(--navy);
  color: var(--cyan);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 8px; color: var(--text-muted); font-size: 1rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 22px; right: auto; width: 4px; height: auto; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 22px; padding-bottom: 30px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
  .steps h3 { align-self: center; }
  .steps p { grid-column: 2; }
}

/* ---------- About ---------- */
.about { background: var(--paper); border-top: 1px solid #DCE3EC; }

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
}
.about-logo { width: 100%; max-width: 360px; margin: 0 0 32px -6px; }
.about-lead { margin-top: 18px; font-size: 1.1875rem; max-width: 46ch; }

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
  align-content: center;
}
.facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}
.facts dt::before {
  content: "";
  display: block;
  width: 36px; height: 5px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.facts dd { margin: 8px 0 0; color: var(--text-muted); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--white); color-scheme: dark; }

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-info > p { margin-top: 18px; color: var(--text-light); max-width: 44ch; }

.contact-phone {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1;
  color: var(--cyan);
  text-decoration: none;
}
.contact-phone:hover { color: var(--white); }

.contact-list { margin: 32px 0 0; }
.contact-list div { padding: 14px 0; border-top: 1px solid var(--rule-dark); }
.contact-list dt { font-size: .875rem; color: #8797B3; }
.contact-list dd { margin: 2px 0 0; font-weight: 500; }
.contact-list a { text-decoration-color: var(--cyan); text-underline-offset: 3px; }

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  border: 1px solid var(--rule-dark);
  border-top: 5px solid var(--blue);
  border-radius: 6px;
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .9375rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #030A1A;
  border: 1.5px solid #2E4570;
  border-radius: 4px;
  color: var(--white);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(20, 195, 247, .3);
}
.field [aria-invalid="true"] { border-color: #FF5C5C; }

.contact-form .btn { width: 100%; margin-top: 6px; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }

.form-status { margin-top: 14px; font-weight: 500; min-height: 1.6em; }
.form-status.is-success { color: #7EE2A0; }
.form-status.is-error { color: #FF8A8A; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #8797B3;
  border-top: 1px solid var(--rule-dark);
  padding: 32px 0;
  font-size: .9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-inner img { width: 200px; height: auto; }
.footer-inner a { color: var(--white); }
