/* ==========================================================================
   CONNXX — Telecommunications Construction
   Design system: bold black "sticker" outlines, logo palette, Oswald + Inter
   ========================================================================== */

:root {
  --blue: #1B6FB8;
  --blue-dark: #0B4A82;
  --orange: #E86A1C;
  --orange-dark: #B23705;
  --lime: #8FC63E;
  --lime-dark: #6E9A2B;
  --silver: #C5CDD6;
  --ink: #111111;
  --body: #2B3138;
  --paper: #FFFFFF;
  --gray: #F2F4F7;
  --outline: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
}

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

a { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--blue-dark);
  border: var(--outline);
  padding: 4px 14px;
  margin-bottom: 20px;
}

.lead { font-size: 1.2rem; }

/* Rainbow ribbon — the four bands of the logo arch */
.ribbon {
  height: 14px;
  background:
    linear-gradient(to bottom,
      var(--silver) 0 25%,
      var(--orange) 25% 50%,
      var(--blue)   50% 75%,
      var(--lime)   75% 100%);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons — outlined sticker style
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--paper);
  background: var(--orange);
  border: var(--outline);
  box-shadow: var(--shadow-sm);
  padding: 12px 26px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--orange-dark);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-blue { background: var(--blue); }
.btn-blue:hover, .btn-blue:focus-visible { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.35);
}

:focus-visible {
  outline: 3px dashed var(--orange);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand { flex-shrink: 0; }
.brand img { width: 190px; height: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: var(--paper);
  padding: 8px 14px;
  border: 3px solid transparent;
  transition: border-color 0.12s ease;
}

.site-nav a:hover { border-color: var(--silver); }

.site-nav a[aria-current="page"] {
  border-color: var(--paper);
  background: var(--lime);
  color: var(--ink);
}

.header-cta {
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--silver);
}

.header-cta:hover,
.header-cta:focus-visible {
  box-shadow: 2px 2px 0 var(--silver);
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 3px solid var(--orange);
  box-shadow: 4px 4px 0 var(--silver);
  width: 48px;
  height: 44px;
  cursor: pointer;
  padding: 9px 10px;
}

.nav-toggle span {
  display: block;
  height: 4px;
  background: var(--ink);
  margin-bottom: 5px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:last-child { margin-bottom: 0; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background-color: var(--blue-dark);
  background-size: cover;
  background-position: center;
  color: var(--paper);
  border-bottom: var(--outline);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 30, 55, 0.92) 0%, rgba(11, 74, 130, 0.78) 55%, rgba(11, 74, 130, 0.45) 100%);
}

.hero-orange::before {
  background: linear-gradient(100deg, rgba(120, 37, 4, 0.92) 0%, rgba(178, 55, 5, 0.78) 55%, rgba(232, 106, 28, 0.45) 100%);
}

.hero-lime::before {
  background: linear-gradient(100deg, rgba(52, 76, 18, 0.92) 0%, rgba(110, 154, 43, 0.78) 55%, rgba(143, 198, 62, 0.45) 100%);
}

.hero-steel::before {
  background: linear-gradient(100deg, rgba(15, 20, 28, 0.92) 0%, rgba(58, 68, 84, 0.78) 55%, rgba(139, 150, 168, 0.45) 100%);
}

.hero-orange .eyebrow { background: var(--orange-dark); }
.hero-lime .eyebrow { background: var(--lime-dark); }
.hero-steel .eyebrow { background: #3a4454; }

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px 110px;
}

.hero h1 {
  color: var(--paper);
  max-width: 17ch;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero p {
  max-width: 56ch;
  margin: 24px 0 36px;
  font-size: 1.15rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }

.hero-page { text-align: left; }
.hero-page .hero-inner { padding: 72px 24px 84px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 76px 0; }
.section-gray { background: var(--gray); }
.section-blue { background: var(--blue-dark); color: var(--paper); }
.section-blue h2 { color: var(--paper); }
.section-orange { background: var(--orange); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }

.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--orange-dark);
  display: block;
  margin-bottom: 10px;
}

.section-blue .kicker { color: var(--lime); }

/* Callout / card — the outlined box language */
.card {
  background: var(--paper);
  color: var(--body);
  border: var(--outline);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card h3 { margin-bottom: 10px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-tab {
  position: relative;
  padding-top: 34px;
}

.card-tab::before {
  content: attr(data-tab);
  position: absolute;
  top: -3px;
  left: -3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border: var(--outline);
  padding: 2px 12px;
}

.card-tab.tab-orange::before { background: var(--orange); color: var(--paper); }
.card-tab.tab-blue::before { background: var(--blue); color: var(--paper); }

/* Service category blocks */
.svc-block {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border: var(--outline);
  box-shadow: var(--shadow);
  background: var(--paper);
  margin-bottom: 48px;
}

.svc-block:last-child { margin-bottom: 0; }

.svc-media {
  border-right: var(--outline);
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.svc-body { padding: 34px 38px; }

.svc-body .svc-flag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: var(--outline);
  padding: 3px 12px;
  margin-bottom: 16px;
}

.flag-orange { background: var(--orange); color: var(--paper); }
.flag-blue { background: var(--blue); color: var(--paper); }
.flag-lime { background: var(--lime); color: var(--ink); }

.svc-body ul {
  list-style: none;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

.svc-body li {
  padding-left: 26px;
  position: relative;
  font-weight: 500;
}

.svc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border: 2px solid var(--ink);
}

.svc-block.svc-blue .svc-body li::before { background: var(--blue); }
.svc-block.svc-lime .svc-body li::before { background: var(--lime); }

/* Expertise chip list */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  list-style: none;
}

.chip-grid li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--paper);
  border: var(--outline);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip-grid li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: var(--lime);
}

.chip-grid li:nth-child(3n+2)::before { background: var(--orange); }
.chip-grid li:nth-child(3n)::before { background: var(--blue); }

/* Safety award */
.award {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
}

.award-badge {
  background: var(--paper);
  border: var(--outline);
  box-shadow: var(--shadow);
  padding: 20px;
}

.award blockquote {
  border-left: 6px solid var(--lime);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
}

.award cite { font-style: normal; font-weight: 600; }

.award-badge-tall { max-width: 300px; }
.award-badge-tall img { display: block; margin: 0 auto; height: auto; }

.fact-strip-award { margin-top: 28px; }
.fact-strip-award .fact { color: var(--ink); font-size: 0.95rem; }
.fact-strip-award .fact strong { font-size: 1.5rem; }

/* Stat / fact strip */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fact {
  border: var(--outline);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  padding: 22px 24px;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

/* CTA band */
.cta-band { border-top: var(--outline); }

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--paper);
  border: var(--outline);
  box-shadow: var(--shadow);
  padding: 38px 42px;
}

.cta-box h2 { max-width: 22ch; }

.cta-phones { font-family: var(--font-display); text-transform: uppercase; }

.cta-phones a {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.cta-phones a:hover { color: var(--orange-dark); }

.cta-phones span { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--body); }

/* --------------------------------------------------------------------------
   Two-column prose blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split .card p + p,
.prose p + p { margin-top: 16px; }

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--blue-dark);
}

.tagline em { font-style: normal; color: var(--orange); }

figure.photo {
  border: var(--outline);
  box-shadow: var(--shadow);
}

figure.photo img { width: 100%; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field-full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.field .req { color: var(--orange-dark); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: var(--outline);
  padding: 11px 13px;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--orange-dark);
}

.field-error {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-dark);
  margin-top: 4px;
}

.field-error.show { display: block; }

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  border: var(--outline);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin-top: 22px;
  font-weight: 600;
}

.form-status.success { display: block; background: var(--lime); color: var(--ink); }
.form-status.error { display: block; background: var(--orange); color: var(--paper); }

.contact-info address { font-style: normal; }

.info-row { margin-bottom: 22px; }

.info-row h3 { font-size: 1.05rem; margin-bottom: 4px; }

.info-row a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.info-row a:hover { text-decoration: underline; }

.map-frame {
  border: var(--outline);
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* --------------------------------------------------------------------------
   Skyline + footer — signature treatment echoing the logo arch
   -------------------------------------------------------------------------- */

.skyline {
  height: 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 90' preserveAspectRatio='none'%3E%3Cpath fill='%23111111' d='M0 90 V52 h18 V38 h14 V52 h10 V26 h6 V20 h6 v6 h6 V52 h12 V44 h20 V90 Z M96 90 V34 h8 V12 h5 v-8 h4 v8 h5 v22 h8 V90 Z M132 90 V56 h26 V48 h8 V32 h12 V48 h8 V56 h12 V90 Z M204 90 V40 h10 V28 h22 V40 h10 V64 h8 V90 Z M262 90 V50 h30 V22 h6 v-10 h4 v10 h6 V50 h6 V90 Z M320 90 V60 h16 V36 h20 V60 h10 V90 Z M372 90 V30 h8 V18 h6 V6 h4 v12 h6 V30 h8 V90 Z M410 90 V58 h24 V46 h14 V58 h10 V90 Z M462 90 V42 h12 V34 h16 V42 h8 V66 h12 V90 Z M516 90 V52 h10 V24 h6 v-8 h4 v8 h6 V52 h14 V44 h18 V90 Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: bottom center;
}

.site-footer {
  background: var(--ink);
  color: #C9CFD6;
}

.site-footer .ribbon { border-color: var(--ink); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 44px;
  padding: 54px 0 40px;
}

.footer-grid h3 {
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.footer-brand img { width: 220px; margin-bottom: 16px; }

.footer-brand p { font-size: 0.95rem; max-width: 34ch; }

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 8px; }

.site-footer a { color: #C9CFD6; text-decoration: none; }

.site-footer a:hover { color: var(--lime); }

.footer-contact a { font-weight: 600; color: var(--paper); }

.footer-legal {
  border-top: 1px solid #33383F;
  padding: 18px 0;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .fact-strip { grid-template-columns: 1fr; gap: 18px; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-media { border-right: 0; border-bottom: var(--outline); min-height: 220px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; }
  .award-badge { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 3px solid var(--orange);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
  }

  .site-nav a {
    display: block;
    padding: 13px 12px;
    border: 3px solid transparent;
    border-bottom: 2px solid #33383F;
  }

  .header-cta { display: none; }

  .card-grid { grid-template-columns: 1fr; }
  .svc-body ul { grid-template-columns: 1fr; }
  .hero-inner { padding: 68px 24px 78px; }
  .section { padding: 56px 0; }
  .cta-box { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .skyline { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
