/* Urban City Telecom - static rebuild */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000 url("/images/header-bg.webp") 50% 0 / 100% auto no-repeat;
  color: #777;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  margin: 0;
  color: #1c1c1c;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 500;
}

.page {
  max-width: 1224px;
  margin: 0 auto;
  background: #fff;
}

.wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1224px;
  min-height: 110px;
  margin: 0 auto;
  padding: 14px 20px;
  background: #000 url("/images/header-bg.webp") 50% 0 / cover no-repeat;
}

.logo-link img {
  width: clamp(170px, 36vw, 290px);
  height: auto;
}

.globe {
  display: none;
  width: clamp(80px, 15vw, 122px);
  height: auto;
}

/* Mobile menu (CSS only, no JavaScript) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-button span {
  display: block;
  height: 3px;
  background: #00ff24;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  background: #111;
  border-top: 3px solid #00ff24;
}

.nav-toggle:checked ~ .main-nav { display: block; }
.nav-toggle:checked + .nav-button span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle:checked + .nav-button span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-button span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle:focus-visible + .nav-button { outline: 2px solid #00ff24; outline-offset: 2px; }

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid #333;
  color: #fff;
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}
.main-nav a[aria-current="page"] { color: #00ff24; }

/* Phone-only call bar */
.call-bar {
  margin: 0;
  padding: 12px 20px;
  background: #00ff24;
  color: #000;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
.call-bar a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero img { width: 100%; }

/* ---------- Home: intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 20px 50px;
}

.intro-box {
  padding: 30px 24px;
  background: #f2f2f2;
}
.intro-box h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.17;
}
.intro-box p {
  margin: 0 0 10px;
  color: #000;
}

.areas h3 {
  margin-bottom: 20px;
  color: #00c41c;
  font-size: 28px;
  line-height: 1.3;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  margin: 5px 0;
  padding-left: 37px;
  background: url("/images/check.webp") 1px 50% / 27px 25px no-repeat;
  color: #555;
  font-size: 18px;
  line-height: 36px;
}

.areas h5 {
  margin: 23px 0 30px;
  color: #00c41c;
  font-size: 18px;
  line-height: 25px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  background: #00ff24;
  border-radius: 5px;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s;
}
.btn:hover, .btn:focus { background: #00d61e; }

.map {
  width: 246px;
  margin: 30px auto 0;
}

/* ---------- Home: link tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 0 13px 30px;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 250px;
  padding: 25px;
  background: rgba(0, 0, 0, 0.3) 50% 50% / cover no-repeat;
  background-blend-mode: multiply;
  text-decoration: none;
}
.tile--services { background-image: url("/images/tile-services.webp"); }
.tile--about { background-image: url("/images/tile-about.webp"); }
.tile--testimonials { background-image: url("/images/tile-testimonials.webp"); }

.tile span {
  display: block;
  width: 100%;
  padding: 13px 22px;
  background: #00ff24;
  color: #000;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color .2s;
}
.tile:hover span, .tile:focus span { background: #fff; }

/* ---------- Home: certifications slider ---------- */
.certs {
  padding: 30px 0 50px;
  overflow: hidden;
}
.certs h2 {
  margin: 8px 0 30px;
  font-size: clamp(28px, 4.5vw, 36px);
  font-weight: 300;
  line-height: 1.17;
  text-align: center;
}
.certs h2 b { font-weight: 700; }

.cert-slider {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.cert-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: cert-scroll 36s linear infinite;
}
.cert-slider:hover .cert-track { animation-play-state: paused; }

.cert-track li { flex: 0 0 auto; padding: 0 22px; }
.cert-track img {
  width: auto;
  height: clamp(70px, 9vw, 100px);
}

/* The logo list is repeated once, so sliding by half loops seamlessly */
@keyframes cert-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cert-slider { -webkit-mask-image: none; mask-image: none; }
  .cert-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    animation: none;
    row-gap: 20px;
  }
  .cert-track li[aria-hidden="true"] { display: none; }
}

/* ---------- Inner pages ---------- */
.page-title {
  padding: 42px 20px;
  background: #00ff24;
  text-align: center;
}
.page-title h1 {
  color: #000;
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.content { padding: 45px 20px 55px; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 30px;
  max-width: 780px;
  margin: 0 auto;
}
.service-grid figure { margin: 0; }
.service-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-grid figcaption {
  margin-top: 16px;
  color: #1c1c1c;
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.3;
  text-align: center;
}

/* About */
.about {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.about h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.17;
}
.about h4 {
  margin: 10px 0 20px;
  font-size: 20px;
  line-height: 1.3;
}
.about p { margin: 0 0 22px; }

.photo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 345px;
  margin: 10px auto 36px;
}
.photo-row img { width: 100%; }

/* Contact */
.contact-intro {
  max-width: 900px;
  margin: 0 auto 36px;
  text-align: center;
}
.contact-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.17;
}

.contact-info {
  margin: 0 -20px;
  padding: 40px 20px;
  background: #f2f2f2;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 760px;
  margin: 0 auto;
}
.info h4 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 6px solid #e2e2e2;
  font-size: 18px;
}
.info svg { width: 28px; height: 28px; flex: 0 0 auto; color: #00d61e; }
.info p { margin: 0; font-size: 16px; }
.info a { color: #00c41c; text-decoration: none; overflow-wrap: anywhere; }
.info a:hover, .info a:focus { text-decoration: underline; }

.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
}
.form-wrap h3 {
  margin-bottom: 30px;
  color: #555;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

.contact-form { display: grid; grid-template-columns: 1fr; gap: 20px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-size: 13px;
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #f2f2f2;
  border-radius: 0;
  background: #f2f2f2;
  color: #222;
  font: inherit;
  font-size: 16px;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: #00d61e; background: #fff; }
.field textarea { min-height: 170px; resize: vertical; }

/* Hidden spam trap: real visitors never see or fill this */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  width: 100%;
  padding: 16px;
  border: 1px solid #000;
  background: #00ff24;
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s;
}
.submit:hover, .submit:focus { background: #00d61e; }

.form-note {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-left: 6px solid #00ff24;
  background: #f2f2f2;
  color: #222;
  font-size: 16px;
}

/* Testimonials */
.quotes {
  max-width: 760px;
  margin: 0 auto;
}
.quotes blockquote {
  position: relative;
  margin: 0;
  padding: 36px 0 36px 52px;
  border-top: 1px solid #e5e5e5;
}
.quotes blockquote:last-child { border-bottom: 1px solid #e5e5e5; }
.quotes blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: 22px;
  color: #ccc;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
}
.quotes p { margin: 0 0 14px; line-height: 26px; }
.quotes cite {
  color: #333;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-transform: capitalize;
}

.call-strip {
  margin: 40px 0 0;
  text-align: center;
  color: #1c1c1c;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
}
.call-strip a { color: #00c41c; font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  max-width: 1224px;
  margin: 0 auto;
  padding: 14px 20px;
  background: #00ff24;
  color: #000;
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { text-decoration: underline; }
.site-footer .fb img { width: 133px; height: auto; margin: 0 auto; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  transition: background-color .2s;
}
.back-to-top:hover, .back-to-top:focus { background: #000; }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .site-header { min-height: 159px; padding: 18px 30px; }
  .globe { display: block; }
  .nav-button { display: none; }

  .main-nav {
    position: static;
    display: block;
    align-self: flex-start;
    background: none;
    border: 0;
  }
  .main-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; max-width: 220px; }
  .main-nav a {
    padding: 0 0 1px;
    border-bottom: 1px solid transparent;
    font-size: 14px;
    line-height: 22px;
  }
  .main-nav a:hover,
  .main-nav a:focus,
  .main-nav a[aria-current="page"] { color: #fff; border-bottom-color: #00ff24; }

  .call-bar { display: none; }

  .intro { grid-template-columns: 1fr 1fr; gap: 15px; padding: 40px 20px 50px; }
  .intro-box { margin-left: 20px; padding: 36px; }
  .areas { padding-left: 15px; }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .photo-row { grid-template-columns: repeat(3, 1fr); max-width: none; }

  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-form { grid-template-columns: repeat(3, 1fr); }
  .field--full, .submit { grid-column: 1 / -1; }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
  .site-footer .credit { text-align: right; }
}

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
  .main-nav ul { max-width: none; gap: 18px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 300px; }
}

/* Lighter header background on smaller screens */
@media (max-width: 1024px) {
  body, .site-header { background-image: url("/images/header-bg-1024.webp"); }
}

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