/* RGV Technical Solutions: static site
   Service lines follow T568B pair colors: blue, orange, green, brown. */

:root {
  --paper: #f5f7f6;
  --ink: #15212b;
  --muted: #4d5a64;
  --line: #d3dad8;
  --blue: #1d5fae;
  --orange: #d9711a;
  --green: #2b8448;
  --brown: #7a5131;
  --wire: var(--blue);
  --wrap: 72rem;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

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

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

.w-blue   { --wire: var(--blue); }
.w-orange { --wire: var(--orange); }
.w-green  { --wire: var(--green); }
.w-brown  { --wire: var(--brown); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.mark { text-decoration: none; display: flex; align-items: center; gap: .75rem; padding: .35rem 0; }
.mark-logo { display: block; height: 7rem; width: auto; }
.mark-long { font-weight: 700; font-stretch: 87%; font-size: 1.05rem; line-height: 1.15; max-width: 9rem; }
.top nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-call { font-weight: 700; background: var(--ink); color: var(--paper); padding: .45rem .8rem; border-radius: 3px; }
.top nav a.nav-call:hover { text-decoration: none; background: var(--blue); }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 0; }
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-stretch: 75%;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.015em;
  max-width: 17ch;
  margin: 0 0 1.25rem;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40ch; margin: 0 0 2.5rem; }

.hero-phone { display: inline-flex; flex-direction: column; text-decoration: none; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-phone-label { font-size: .95rem; color: var(--muted); }
.hero-phone-number {
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.hero-phone:hover .hero-phone-number { color: var(--blue); }

/* The cable: four pairs running full width */
.cable { display: grid; grid-template-rows: repeat(4, 7px); gap: 3px; }
.cable span { background: var(--wire); }
.cable span:nth-child(odd) {
  background: repeating-linear-gradient(90deg, var(--wire) 0 46px, #fff 46px 62px);
}

/* Service index */
.index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2.5rem; margin-bottom: 1rem; }
.ix {
  text-decoration: none;
  padding: 1rem 1.25rem 1.1rem 0;
  border-top: 6px solid var(--wire);
  margin-right: 1.25rem;
}
.ix strong { display: block; font-size: 1.15rem; font-stretch: 87%; }
.ix span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.4; margin-top: .2rem; }
.ix:hover strong { color: var(--wire); }

/* Service sections */
.svc { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.svc-head {
  border-left: 8px solid var(--wire);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 48rem;
}
.svc-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-stretch: 75%;
  font-weight: 750;
  line-height: 1.05;
  margin: 0 0 .6rem;
}
.svc-head p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2rem 2.5rem;
}
.g h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--wire);
}
.g ul { list-style: none; margin: 0; padding: 0; }
.g li { padding: .3rem 0; color: #2b3842; font-size: .98rem; line-height: 1.4; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-stretch: 75%; font-weight: 750; margin: 0 0 .5rem; }
.contact p { margin: 0 0 1.5rem; color: #b9c4c9; font-size: 1.1rem; }
.contact-phone {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
  text-decoration: none;
  border-bottom: 6px solid var(--orange);
}
.contact-phone:hover { color: #fff; border-color: var(--blue); }
.contact a:focus-visible { outline-color: #fff; }

/* Footer */
.foot { border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.foot p { margin: 0; }
.foot a { text-decoration: none; }

/* Small screens */
@media (max-width: 52rem) {
  .index { grid-template-columns: repeat(2, 1fr); }
  .mark-long { display: none; }
}
@media (max-width: 34rem) {
  .index { grid-template-columns: 1fr; }
  .ix { margin-right: 0; }
  .top nav a:not(.nav-call) { display: none; }
  .mark-logo { height: 5rem; }
}
