/* Computer Network Services - cns-tx.com
   Single stylesheet (Website-Standards section 7). Brand: navy #0c2d5a, gold #f0c040, Montserrat.
   v1.0.0 2026-09-30 */

:root {
  --navy: #0c2d5a;
  --navy-2: #16427f;
  --navy-3: #0a2449;
  --gold: #f0c040;
  --gold-dk: #806010;   /* 5.4:1 on white and tint (WCAG AA small text) */
  --ink: #1b2430;
  --muted: #4a5563;
  --line: #e3e8ef;
  --paper: #ffffff;
  --tint: #f4f6f9;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy); border-radius: 4px; }  /* gold + navy ring shows on light and dark */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; font-weight: 700; z-index: 100; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 45, 90, .97);
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .3px; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, rgba(10, 36, 73, .94) 0%, rgba(12, 45, 90, .86) 50%, rgba(22, 66, 127, .72) 100%),
              url("../images/hero-bg.jpg") center/cover no-repeat,
              var(--navy);
  color: #fff;
  padding: 88px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .logo { width: min(360px, 78vw); margin: 0 auto 22px; }
.hero h1 { font-size: clamp(22px, 4.2vw, 40px); font-weight: 800; letter-spacing: clamp(3px, 1vw, 9px); line-height: 1.25; }
.hero .rule { width: min(640px, 86%); height: 3px; background: var(--gold); margin: 22px auto; border-radius: 2px; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); max-width: 720px; margin: 0 auto; color: #e6ecf5; }
.badge {
  display: inline-block; margin-top: 26px;
  font-size: 13px; font-weight: 800; letter-spacing: 3px; color: var(--navy);
  background: var(--gold); padding: 10px 20px; border-radius: 999px;
}
.cta-row { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 16px;
}
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd35a; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.since { margin-top: 26px; color: var(--gold); font-weight: 700; letter-spacing: 3px; font-size: 13px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.tint { background: var(--tint); }
.eyebrow { color: var(--gold-dk); font-weight: 800; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
h2 { color: var(--navy); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.2; margin: 8px 0 14px; }
.section-lede { color: var(--muted); max-width: 760px; font-size: 18px; }
.center { text-align: center; }
.center .section-lede { margin: 0 auto; }

/* Services grid */
.services-band { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius); margin-top: 36px; box-shadow: 0 10px 26px rgba(12, 45, 90, .14); }
@media (max-width: 560px) { .services-band { aspect-ratio: 16 / 9; } }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(12, 45, 90, .10); }
.card .ico { width: 46px; height: 46px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { color: var(--navy); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* How we work */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: stretch; }
.how-side { display: flex; flex-direction: column; gap: 18px; }
/* Photos fill whatever height the text beside them sets, so neither column leaves a gap */
.fill-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px rgba(12, 45, 90, .14); }
.fill-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.how-photo-wrap { flex: 1 1 0; min-height: 130px; }
.how-photo-wrap { background: #0c111e; }
.how-photo-wrap img { object-fit: contain; }
.about-photo-wrap { min-height: 300px; }
.owners { margin: 0; }
.owners img { object-position: 50% 22%; }
.owners figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; background: linear-gradient(transparent, rgba(10, 36, 73, .88)); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.owners figcaption::before { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-bottom: 8px; }
.checks { list-style: none; margin-top: 22px; }
.checks li { position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2d5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.how-photo { width: 100%; border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 10px 26px rgba(12, 45, 90, .14); }
.panel {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  border-radius: var(--radius); padding: 34px 30px; border-top: 4px solid var(--gold);
}
.panel h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.panel p { color: #dfe7f2; }
.panel .only { margin-top: 18px; font-weight: 800; letter-spacing: 2.4px; font-size: 13px; color: var(--gold); }
.panel .area { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; }
.panel .area b { color: var(--gold); display: block; font-size: 12px; letter-spacing: 2px; margin-bottom: 4px; }

/* About */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stat { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Testimonials */
.quotes-band { background: linear-gradient(150deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%); }
.on-dark { color: #fff; }
.eyebrow.on-dark { color: var(--gold); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.quote { margin: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { color: #eef3fa; font-size: 16.5px; line-height: 1.6; font-style: italic; }
.quote figcaption { margin-top: 18px; display: flex; flex-direction: column; }
.quote .who { color: var(--gold); font-weight: 800; font-size: 15px; letter-spacing: .4px; }
.quote .org { color: #c9d4e3; font-size: 13.5px; margin-top: 2px; }
@media (max-width: 960px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } }

/* Contact */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 38px; }
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; border-top: 4px solid var(--gold); text-align: center;
}
.person h3 { color: var(--navy); font-size: 24px; font-weight: 800; }
.person .row { margin-top: 12px; font-size: 17px; }
.person .row a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-block; padding: 8px 0; }
.person .row a:hover { color: var(--navy-2); text-decoration: underline; }
.person .row b { color: var(--gold-dk); font-size: 11px; letter-spacing: 1.6px; margin-right: 8px; }
.person .save { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; border: 1.5px solid var(--navy); border-radius: 8px; padding: 8px 16px; min-height: 44px; }
.person .save:hover { background: var(--navy); color: #fff; }
.person .save svg { width: 16px; height: 16px; }
.hours { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #c9d4e3; padding: 40px 0 30px; font-size: 14px; border-top: 3px solid var(--gold); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.site-footer svg { height: 34px; width: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.site-footer .links a { display: inline-block; padding: 10px 2px; }
.site-footer .legal { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #9fb0c7; text-align: center; }

/* ---------- Sticky call bar (phones only) ---------- */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy); border-top: 3px solid var(--gold);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 18px rgba(12, 45, 90, .25);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; background: var(--gold); color: var(--navy);
    font-weight: 800; font-size: 16px; text-decoration: none;
  }
  .call-bar a + a { background: #ffd35a; }
  .call-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: 60px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .about-photo-wrap { min-height: 0; aspect-ratio: 4 / 5; }
  .how-photo-wrap { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 71px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy); border-bottom: 3px solid var(--gold); display: none; padding: 8px 0 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; width: 100%; text-align: center; border-bottom: 0; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
}
@media (max-width: 420px) {
  .badge { font-size: 11px; letter-spacing: 1.6px; padding: 9px 14px; max-width: 100%; }
  .call-bar a { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
