/*
Theme Name: Generic Broadband Starter Template
Theme URI: https://example.com/
Author: Custom Template
Description: A WordPress-ready broadband contractor starter theme with generic images, video, sections, and service copy. Customize text, links, images, colors, and sections in the theme files or extend it with ACF/blocks.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: generic-broadband-template
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #020202;
  font-family: "Montserrat", Arial, sans-serif;
  background: #fff;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1110px, calc(100% - 40px));
  margin: 0 auto;
}

.top-strip {
  height: 28px;
  background: #0056b4;
}

.socials {
  width: min(1110px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.socials a {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 86px;
  padding: 0 max(20px, calc((100vw - 1110px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 14px rgba(0,0,0,.16);
}

.brand img {
  width: 240px;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #020202;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #0056b4;
  font-size: 18px;
}

.main-nav,
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 30px 0;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .active {
  color: #0056b4;
}

.main-nav .menu-item-has-children > a::after,
.has-menu > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 11px;
}

.main-nav .sub-menu,
.has-menu ul {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 190px;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s ease;
}

.main-nav li:hover > .sub-menu,
.has-menu:hover ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.main-nav .sub-menu a,
.has-menu li a {
  padding: 9px 18px;
  color: #212529;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: #020202;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--hero-fallback) center / cover no-repeat;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 178vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero::before,
.angled::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 0;
  border-bottom: 96px solid #fff;
  border-right: 34vw solid transparent;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 34px));
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 40px;
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.outline-button {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 0 42px;
  border: 4px solid #fff;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.intro {
  position: relative;
  padding: 96px 0 56px;
}

.intro h2,
.why h2,
.contact-card h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lead {
  max-width: 1010px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 20px;
  line-height: 1.82;
}

.service-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  text-align: center;
}

.service-icons a {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  color: #020202;
  font-size: 17px;
  font-weight: 700;
}

.service-icons img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  transition: transform .2s ease;
}

.service-icons a:hover img {
  transform: translateY(-4px);
}

.panel-band {
  padding: 54px 0 74px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.feature-panel {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  align-items: end;
  box-shadow: 0 22px 32px rgba(0,0,0,.2);
  color: #fff;
}

.feature-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,86,180,.06), rgba(0,0,0,.72));
}

.feature-panel span {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
}

.feature-panel strong {
  display: block;
  margin-bottom: 7px;
  font-size: 24px;
  text-transform: uppercase;
}

.feature-panel:hover img {
  transform: scale(1.05);
}

.why {
  position: relative;
  padding: 88px 0 100px;
  background: #edf4fb;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.76), rgba(255,255,255,.86)), var(--hero-fallback) center / cover fixed;
}

.why .container {
  position: relative;
}

.services {
  padding: 74px 0 88px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px 62px;
}

.service-list article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
}

.service-list img {
  width: 88px;
}

.service-list h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
}

.service-list p {
  margin: 0;
  color: #303030;
}

.contact-band {
  padding: 76px 0;
  background: #f5f7f8;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.contact-photo {
  min-height: 360px;
  background: var(--contact-image) center / cover no-repeat;
  box-shadow: 0 22px 32px rgba(0,0,0,.16);
}

.contact-card h2 {
  text-align: left;
}

.contact-card p {
  font-size: 20px;
}

.contact-card ul {
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.contact-card li {
  margin: 10px 0;
}

.contact-card a {
  color: #0056b4;
  font-weight: 700;
}

.license-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.license-list span {
  padding: 8px 12px;
  background: #fff;
  border-left: 4px solid #0056b4;
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  color: #fff;
  background: #111;
}

.footer-grid {
  padding: 58px 0 44px;
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 48px;
}

.footer-logo img {
  max-width: 330px;
  filter: brightness(0) invert(1);
}

.site-footer h4 {
  margin: 0 0 18px;
  font-size: 15px;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin: 0 0 14px;
}

.copyright {
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
}

@media (max-width: 980px) {
  .top-strip {
    display: none;
  }

  .nav-wrap {
    height: 58px;
    padding: 0 15px;
  }

  .brand img {
    width: 145px;
  }

  .brand-text {
    font-size: 20px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    display: none;
    padding: 8px 22px 18px;
    background: #fff;
    box-shadow: 0 18px 24px rgba(0,0,0,.16);
  }

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

  .main-nav a {
    padding: 11px 0;
  }

  .main-nav .sub-menu,
  .has-menu ul {
    position: static;
    opacity: 1;
    transform: none;
    box-shadow: none;
    pointer-events: auto;
    padding: 0 0 0 18px;
  }

  .hero {
    min-height: 372px;
  }

  .hero h1 {
    max-width: 330px;
    margin-inline: auto;
    margin-bottom: 32px;
  }

  .outline-button {
    width: min(260px, 100%);
    min-height: 54px;
    padding: 0 18px;
    border-width: 3px;
    font-size: 16px;
  }

  .intro {
    padding-top: 70px;
  }

  .lead {
    font-size: 17px;
  }

  .service-icons {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-list,
  .panel-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 30px, 1110px);
  }

  .intro h2,
  .why h2,
  .contact-card h2 {
    font-size: 34px;
  }

  .service-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
  }

  .service-icons img {
    width: 82px;
    height: 82px;
  }

  .feature-panel {
    min-height: 230px;
  }

  .service-list article {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }

  .service-list img {
    width: 64px;
  }

  .contact-photo {
    min-height: 260px;
  }

  .footer-logo img {
    max-width: 260px;
  }
}
