/* =========================================================================
   TekComp — shared stylesheet
   Style cues carried over from the existing site: white ground, Roboto in
   light weights, thin grey headings, corporate blue accent (#184890).
   ========================================================================= */

:root {
  --blue:        #184890;
  --blue-dark:   #0f3266;
  --blue-bright: #2f6fc4;
  --blue-tint:   #eef3fa;

  --ink:    #3f3f3f;
  --body:   #5c5c5c;
  --head:   #5a6472;
  --muted:  #8a919c;

  --line:   #e4e8ee;
  --bg:     #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark:#12233d;

  --maxw: 1140px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(18, 35, 61, .06);
  --shadow-lg: 0 12px 40px rgba(18, 35, 61, .12);

  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
body { overflow-wrap: break-word; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--head);
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 200; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 400; color: var(--ink); }
p  { margin: 0 0 1.1em; }
strong { font-weight: 500; color: var(--ink); }

/* ---------- layout helpers ---------- */
/* horizontal longhand only - a `padding` shorthand here would reset the
   vertical padding that .hero__grid / .hero__inner set at equal specificity */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #c9d3e0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink); font-weight: 300; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #6fa8e6; }
.measure { max-width: 720px; }
.measure-center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  /* <button> would otherwise fall back to the UA font and a shorter box */
  font-family: var(--sans);
  line-height: 1.7;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand__logo { display: block; height: 44px; width: auto; flex: 0 0 auto; object-fit: contain; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.32rem; font-weight: 500; color: var(--blue); letter-spacing: .04em; }
.brand__tag  { font-size: .68rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav__menu { display: flex; align-items: center; gap: 10px; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  /* 10px rather than 14px: seven items plus the brand and CTA need the room */
  padding: 10px 10px;
  font-size: .95rem;
  font-weight: 400;
  color: #5b5b5b;
  border-radius: 4px;
}
.nav__links a:hover { color: var(--blue); background: var(--blue-tint); }
.nav__links a.is-active { color: var(--blue); font-weight: 500; }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; cursor: pointer;
  padding: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 0 auto; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(47,111,196,.16), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  /* vertical only: .container owns the horizontal padding and the shorthand
     would wipe it out, since both rules have the same specificity */
  padding-top: 96px; padding-bottom: 96px;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6em; }
.hero__art {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, #123b78 55%, #0d2b57 100%);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero--sub { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero--sub .hero__inner { padding-top: 70px; padding-bottom: 60px; max-width: 760px; }
.hero--sub h1 { margin-bottom: .3em; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--blue); }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* split layouts that used to carry inline gap/alignment */
.grid--split   { gap: 56px; }
.grid--vcenter { align-items: center; }
.grid--vstart  { align-items: start; }

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d3dbe6; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  color: var(--blue);
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__link { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 500; }
.card__link::after { content: " \2192"; }

/* division cards on the home page */
.division {
  display: flex; flex-direction: column;
  border-top: 3px solid var(--blue);
}

/* ---------- feature rows (alternating) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.feature + .feature { margin-top: 72px; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media {
  aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #e9eef6, #dbe4f1);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.feature__media svg { width: 40%; height: 40%; color: var(--blue); opacity: .55; }
.feature h3 { color: var(--head); font-weight: 300; font-size: 1.5rem; }

/* ---------- list with ticks ---------- */
.ticklist { list-style: none; margin: 0; padding: 0; }
.ticklist li {
  position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line);
}
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 16px; height: 9px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.ticklist--plain li { border-bottom: none; padding-top: 5px; padding-bottom: 5px; }

/* two-column capability list */
.caps { columns: 2; column-gap: 48px; }
.caps .ticklist li { break-inside: avoid; }
@media (max-width: 640px) { .caps { columns: 1; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 200; color: #fff; line-height: 1.05; }
.stat__label { font-size: .9rem; color: #9fb0c6; margin-top: 8px; }

/* ---------- process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 1.05rem;
}
.step h3 { margin-bottom: .2em; }
.step p { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.info-block { margin-bottom: 26px; }
.info-block h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; margin-bottom: .4em; }
.info-block p { margin: 0; }
.map-embed {
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px;
}

form .field { margin-bottom: 18px; }
form label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
form input, form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid #cfd6e0; border-radius: 6px; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--blue-bright); outline-offset: 0; border-color: var(--blue-bright); }
form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: #9fb0c6; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: #c9d3e0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand__name { font-size: 1.2rem; color: #fff; font-weight: 500; letter-spacing: .04em; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #7f8ea3;
}

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue); font-size: .8rem; font-weight: 500;
  margin: 0 6px 6px 0;
}

/* ---------- remote support / download page ---------- */
.section--notop { padding-top: 0; }
.steps--spaced, .dl-grid { margin-top: 32px; }
/* never squeeze four fixed columns; fit as many >=250px cards as the row allows */
.dl-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* highlighted note asking customers to phone before installing */
.callout {
  border: 1px solid #cddcf0;
  border-left: 4px solid var(--blue);
  background: var(--blue-tint);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.callout h3 { margin-bottom: .3em; color: var(--blue-dark); }
.callout p:last-child { margin-bottom: 0; }

/* download cards: button pinned to the bottom so a row stays even */
.card--dl { display: flex; flex-direction: column; }
.card--dl h3 { margin-bottom: .25em; }
.card__meta { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.card__dl { margin-top: auto; text-align: center; }

/* the card matching the visitor's OS, marked up by main.js */
.card--suggested { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(24,72,144,.12); }
.card--suggested::before {
  content: "Recommended for you";
  display: inline-block; align-self: flex-start;
  margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.os-detected {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: .95rem; margin: 8px 0 0;
}

/* ---------- responsive ---------- */

/* --- the seven-item nav plus the brand and CTA need ~1100px; below that the
       links would crowd the logo, so the hamburger takes over --- */
@media (max-width: 1140px) {
  /* collapsible nav */
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav__menu { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 13px 10px; border-radius: 6px; }
  .nav__cta { margin: 10px 0 0; }
  .nav__cta .btn { display: block; text-align: center; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .hero__art { max-width: 460px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .grid--split { gap: 40px; }

  /* on the contact page the form matters more than the address block */
  .contact-grid > div:last-child { order: -1; }
}

/* --- phones --- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }

  /* one column: two columns below this width leaves ~250px of usable text */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid, .grid--split { gap: 24px; }

  .hero__grid { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .hero--sub .hero__inner { padding-top: 44px; padding-bottom: 38px; }
  .lead { font-size: 1.1rem; }

  /* purely decorative; on a phone it just pushes the buttons off-screen */
  .hero__art { display: none; }

  .card { padding: 26px 22px; }
  .card__icon { width: 40px; height: 40px; margin-bottom: 14px; }
  .card__link { padding: 6px 0; }

  .feature__media, .feature__media--square { aspect-ratio: 16 / 9; }
  .feature + .feature { margin-top: 44px; }

  .step { padding-left: 54px; }
  .step::before { width: 36px; height: 36px; font-size: .95rem; }

  .cta-band .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-band .btn { width: 100%; text-align: center; }

  /* 16px minimum stops iOS zooming the page on focus */
  form input, form textarea { font-size: 16px; padding: 13px 14px; }
  form textarea { min-height: 120px; }

  .site-footer { padding: 48px 0 24px; }
  .site-footer li a { display: inline-block; padding: 3px 0; }
  .map-embed { aspect-ratio: 3 / 2; }
}

/* --- small phones --- */
@media (max-width: 560px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 44px 0; }
  .brand__logo { height: 34px; }
  .nav { height: 66px; }
  .nav__menu { padding: 10px 18px 18px; max-height: calc(100vh - 66px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .card { padding: 22px 18px; }
  .btn { padding: 13px 20px; }
  /* full-width stacked buttons are easier to hit than side-by-side ones */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* --- landscape phones: don't let the open menu cover the whole screen --- */
@media (max-width: 1140px) and (max-height: 520px) {
  .nav__menu { max-height: calc(100vh - 66px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* hover lifts are meaningless on touch and leave cards stuck in hover state */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .btn-primary:hover { transform: none; }
}
