/* Optical Cabling Systems — shared styles for every page */
:root {
  --blue: #00AADC;        /* logo blue: accents, rules, icons */
  --blue-ink: #00729A;    /* darker blue: text, links, buttons (passes contrast) */
  --blue-ink-hover: #005F80;
  --ink: #12181D;
  --text: #1F2933;
  --muted: #4B5863;
  --bg: #FFFFFF;
  --bg-alt: #F2F6F9;
  --line: #DCE4EA;
  --dark: #0F1A22;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
ul { list-style: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 14px 0;
}
.logo img { height: 84px; width: auto; }
nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 0.35rem 0;
}
nav a:hover { color: var(--blue-ink); }
nav a[aria-current="page"] { color: var(--blue-ink); box-shadow: inset 0 -2px 0 var(--blue); }
nav .phone-btn {
  background: var(--blue-ink); color: #fff; padding: 0.75rem 1.3rem;
  border-radius: 6px; font-weight: 600; white-space: nowrap;
}
nav .phone-btn:hover { background: var(--blue-ink-hover); color: #fff; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  font-size: 1.6rem; line-height: 1; padding: 0.5rem 0.75rem; cursor: pointer; color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.85rem 1.4rem; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: var(--blue-ink-hover); }
.btn-outline { border-color: var(--blue-ink); color: var(--blue-ink); background: #fff; }
.btn-outline:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E6F4FA; }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Home hero: photo with dark overlay so text stays readable */
.hero {
  color: #fff; padding: 3.5rem 0;
  /* fill the screen below the header so only the hero shows before scrolling */
  min-height: calc(100vh - 113px);
  min-height: calc(100svh - 113px);
  display: flex; align-items: center;
  background:
    linear-gradient(100deg, rgba(10,20,28,0.92) 0%, rgba(10,20,28,0.80) 55%, rgba(10,20,28,0.55) 100%),
    url('../images/hero_floor.jpg') center 45% / cover no-repeat;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.025em; max-width: 16em; margin-bottom: 1.1rem;
}
.hero h1 .highlight {
  color: #4FD0F5;
  white-space: nowrap;
}
@media (max-width: 420px) { .hero h1 .highlight { white-space: normal; } }
.hero .lead { font-size: 1.15rem; max-width: 38rem; margin-bottom: 2rem; color: #E3ECF1; }
.hero .btn-row { margin-bottom: 2.5rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem;
  font-size: 0.92rem; font-weight: 500; color: #E3ECF1;
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.25rem;
}
.trust-row li { display: flex; align-items: center; gap: 0.5rem; }
.trust-row li::before { content: ""; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
.trust-row a { color: #fff; }

/* Inner page hero */
.page-hero { background: var(--bg-alt); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.5rem;
}
.page-hero p { color: var(--muted); max-width: 42rem; font-size: 1.1rem; }

/* Sections */
section { padding: 4rem 0; }
.alt { background: var(--bg-alt); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.75rem;
}
h3 { color: var(--ink); }
.intro { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; font-size: 1.05rem; }
.prose p { max-width: 46rem; margin-bottom: 1.1rem; font-size: 1.04rem; }
.section-link { margin-top: 2rem; }

/* Proof points (stats) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--blue); }
.stat { padding: 1.5rem 1.5rem 0.5rem 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat strong {
  display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.4rem;
}
.stat p { color: var(--muted); font-size: 0.95rem; }

/* Two-column text + aside */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.check-list li { padding: 0.55rem 0 0.55rem 1.75rem; border-bottom: 1px solid var(--line); position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-ink); font-weight: 800; }

/* Capability cards: always 3 columns on desktop */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cap-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: 4px; padding: 1.35rem 1.35rem 1.25rem;
}
.cap-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cap-card p { font-size: 0.93rem; color: var(--muted); }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.photo-strip figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }

/* Connector table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.not-tooled { color: #8A4B00; }
.table-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }

/* Market cards */
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.market-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; padding: 1.5rem; }
.market-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.market-card p { color: var(--muted); }

/* Nationwide band */
.serving { background: var(--dark); color: #fff; padding: 3.5rem 0; }
.serving-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.serving-copy { flex: 1 1 280px; }
.serving h2 { color: #fff; }
.serving p { color: #C4D0D8; max-width: 32rem; }
.serving-map { width: min(240px, 50vw); }

/* CTA band */
.cta-band { background: var(--blue-ink); color: #fff; padding: 3.25rem 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { color: #E3F3FA; max-width: 36rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.contact-card p { line-height: 1.8; }
.contact-card a { font-weight: 600; }
.small-label { color: var(--muted); font-size: 0.9rem; }
.quote-box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px; padding: 2rem; }

/* Footer */
footer { background: var(--dark); color: #B8C5CE; padding: 3rem 0 1.5rem; font-size: 0.93rem; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem; }
.footer-logo img { height: 72px; width: auto; margin-bottom: 0.85rem; }
footer h3 { color: #fff; font-size: 0.95rem; margin-bottom: 0.6rem; }
footer li { padding: 0.15rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem;
}

/* Tablet */
@media (max-width: 960px) {
  nav { gap: 1.25rem; }
  nav a { font-size: 0.98rem; }
  .logo img { height: 70px; }
  .cap-grid, .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: none; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
}
/* Mobile */
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 1rem 4%; gap: 0.9rem; border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; }
  .logo img { height: 60px; }
  nav { padding: 1.25rem 4%; gap: 1.1rem; }
  .hero { padding: 2.5rem 0; min-height: calc(100vh - 89px); min-height: calc(100svh - 89px); }
  section { padding: 3rem 0; }
  .market-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cap-grid, .photo-strip, .stats, .contact-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 1.25rem 0 0.25rem; border-left: none; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* Product lists (fiber / copper) */
.products-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.products-grid h3 { font-size: 1.15rem; padding-bottom: 0.5rem; margin-bottom: 0.5rem; border-bottom: 3px solid var(--blue); }
.products-grid ul { columns: 2; column-gap: 2rem; }
.products-grid > div:last-child ul { columns: 1; }
.products-grid li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 0.97rem; }
@media (max-width: 800px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid ul { columns: 1; }
}
.contact-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .contact-grid.two { grid-template-columns: 1fr; } }
.about-split { grid-template-columns: 1.5fr 1fr; }
.about-photo { margin: 0; position: sticky; top: 130px; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.about-photo figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 960px) { .about-split { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 520px; } .about-photo img { aspect-ratio: 4 / 3; } }
.page-hero .hero-statement { color: var(--blue-ink); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.6rem; }
