/* Base tokens (temporary, non-final design values) */
:root {
  --container-max: 1280px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --radius-1: 0.5rem;
  --radius-2: 0.75rem;
  --bg-page: #ffffff;
  --bg-muted: #f3f4f6;
  --text-main: #111827;
  --text-muted: #4b5563;
  --line: #e5e7eb;
  --btn-bg: #1f2937;
  --btn-text: #ffffff;
  --btn-coverage-bg: #d97706;
  --btn-coverage-text: #ffffff;
  --panel-bg: #f59e0b;
}

/* Minimal reset */
html {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

/* Base typography and layout */
body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

p,
ul,
ol {
  margin: 0 0 var(--space-4);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: min(var(--container-max), 100vw);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: #000;
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 0;
  border-radius: var(--radius-1);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  padding: 0.625rem 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.08);
}

.btn-coverage-check {
  background: var(--btn-coverage-bg);
  color: var(--btn-coverage-text);
}

/* Header + navigation */
.site-header {
  position: relative; /* already present, keep */
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  z-index: 50;
}

/* ===== Glass pill navbar container (use header-inner so content sits inside) ===== */

/* Let the pill be wider than the normal site container */
.site-header .container {
  max-width: none;
  padding-inline: 0;
}

/* Positioning of the whole pill on the page (Figma X/Y) */
.header-inner {
  /* Figma Y = 35px from top */
  margin-top: 35px;

  /* Figma W = 1430 with responsive fallback + ~35px side breathing room */
  width: min(1430px, calc(100vw - 70px));
  margin-inline: auto;

  /* Figma H = 96 */
  height: 96px;

  /* Put content inside the pill nicely */
  padding-inline: 28px;

  /* Your existing flex layout stays */
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Figma radius */
  border-radius: 25px;

  /* Figma fill: #FFF @ 10% */
  background: rgba(255, 255, 255, 0.10);

  /* Figma stroke: 1.5px ~55% opacity (approx) */
  border: 1.5px solid rgba(255, 255, 255, 0.55);

  /* Figma background blur */
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);

  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.875rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* ===== Logo sizing (match Figma 244x~48) ===== */

.brand img {
  width: clamp(140px, 34vw, 190px);
  height: auto;        /* maintain aspect ratio */
  max-width: 100%;
  display: block;
}

/* Burger Menu (mobile) */
.burger-menu {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: #111827;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile nav open/close animation (keep your current layout but animate it) */
@media (max-width: 1023px) {
  .primary-nav {
    display: block;              /* override old display:none */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .primary-nav.is-open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .burger-menu {
    display: none;
  }
  .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

.primary-nav {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.primary-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-list > li > a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: #111827;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
}

.dropdown-menu {
  display: none;
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  isolation: isolate;
  backface-visibility: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-main);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #fd602c;
  color: #ffffff;
}

.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

/* Desktop: open login menu on hover/focus */
@media (min-width: 1024px) {
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    display: block;
  }
}

/* ===== FIX: show nav inside pill + place pill over hero image ===== */

/* Put the header over the hero so the hero image is behind it */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 0;
  z-index: 50;
}

/* Ensure the hero isn't forced down by header spacing */
.hero {
  padding-top: 0; /* IMPORTANT: remove any spacing pushing hero down */
}

/* Hero */
.hero {
  position: relative;
  padding-top: 0;
}

/* White spacing above hero */
#main-content {
  padding-top: var(--space-4);
  padding-inline: var(--space-3);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.hero,
.hero-slider {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-slider {
  position: relative;
  margin-inline: auto;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  backface-visibility: hidden;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* sits above images */
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.25) 45%,
    rgba(15, 23, 42, 0.08) 100%
  );
}

.hero-slides {
  position: relative;
  aspect-ratio: 1440 / 560;
  min-height: 380px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease-in-out, visibility 180ms ease-in-out;
}

.hero-slide img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}

.hero-dot.is-active {
  background: rgba(255, 255, 255, 1);
}

/* Hero caption layout (mobile) */
.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* alignment */
  padding: 2rem 1.5rem; /* padding */
  gap: 1.5rem; /* spacing between */
  color: #fff;
}

.hero-caption-left {
  width: 100%; /* fill */
  max-width: 640px; /* constraint */
}

.hero-caption-left h1,
.hero-caption-left h2 {
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 4.2vw, 60px);
}

.hero-caption-left p {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 24px);
  line-height: 1.5;
  opacity: 0.95;
  max-width: 42ch;
}

.hero-caption-right {
  width: fit-content; /* hug */
}

.hero-caption-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* flow */
  gap: 0.5rem; /* spacing between */
}

.hero-caption-right li {
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 24px);
  line-height: 1.4;
}

/* Shared section spacing */
.internet-works,
.services,
.explore-different {
  padding-block: var(--space-6);
}

/* Internet section (Figma-style split card) */
.internet-works {
  padding-inline: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.internet-works-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;

  background: #f4f7fa;
  border-radius: 30px;
  overflow: hidden; /* ensures rounded corners clip the image */
  isolation: isolate;
  backface-visibility: hidden;
}

/* Match Internet-works section width to hero banner width */
.internet-works .container {
  max-width: none;       /* stop constraining to --container-max */
  padding-inline: 0;     /* remove container side padding so widths truly match */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.internet-works-grid {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.internet-media {
  min-width: 0;
  overflow: hidden;
}

.internet-media-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.internet-content {
  min-width: 0;
  padding: 2.25rem 2.5rem;
  isolation: isolate;
  backface-visibility: hidden;
}

.internet-works-copy {
  margin: 0;
}

.internet-works-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: #111827;
}

.internet-works-copy p {
  margin: 0 0 1rem;
  font-size: 1.125rem; /* ~18px */
  line-height: 1.7;
  color: #4b5563;
}

.internet-works-copy strong {
  font-weight: 700;
  color: #111827;
}

.internet-works-cta {
  width: 100%;
  margin-top: 2rem;
}

.internet-works-callout {
  background: #e9f2f9;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.internet-works-callout-label {
  margin: 0 0 0.25rem;
  color: #4b5563;
  font-size: 1rem;
}

.internet-works-callout-strong {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.45;
}

.internet-works-actions {
  display: flex;
  align-items: center;
  gap: 20px;          /* slightly more breathing room */
  flex-wrap: wrap;
}

.btn-primary {
  background: #FD602C;
  color: #ffffff;
  border-radius: 52px;
  height: 60px;
  padding: 0 30px;        /* matches Figma horizontal padding 30 */
  font-weight: 700;
  display: inline-flex;    /* ensure height + centering are respected */
  align-items: center;
  justify-content: center;
  gap: 10px;               /* matches Figma gap 10 (text ↗) */
  line-height: 1;
}

.internet-works-swirl {
  width: 95px;        /* matches Figma width ~94.96 */
  height: auto;
  display: block;
  margin-left: 40px;
}

/* Services */
.section-header {
  margin-bottom: var(--space-4);
}

.services .section-header {
  text-align: center;
}

.services #services-heading {
  font-size: 55px;
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  background: #e5e7eb;
  border-radius: 999px;
  padding: 0.4rem;
  overflow-x: visible;
}

.service-tab {
  border: 0;
  background: transparent;
  color: #9ca3af;
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  text-align: center;
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 0;
}

.service-tab:hover {
  cursor: pointer;
}

.service-tab.is-active {
  background: #FD602C;
  color: #fff;
}

.service-panel[hidden] {
  display: none;
}

.service-panel {
  display: grid;
  gap: var(--space-4);
}

#panel-wisp,
#panel-mdu,
#panel-commercial,
#panel-rv-park-services {
  grid-template-columns: 1fr;
  justify-content: stretch;
}

#panel-wisp .service-tile,
#panel-mdu .service-tile,
#panel-commercial .service-tile,
#panel-rv-park-services .service-tile {
  width: 100%;
  max-width: 420px;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  margin-inline: auto;
}

#panel-wisp .service-tile {
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-wisp .service-tile:hover {
  border-color: #fd602c;
  box-shadow: 0 0 0 1px #fd602c;
  outline: none;
}

#panel-mdu .service-tile,
#panel-commercial .service-tile,
#panel-rv-park-services .service-tile {
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#panel-mdu .service-tile:hover,
#panel-commercial .service-tile:hover,
#panel-rv-park-services .service-tile:hover {
  border-color: #fd602c;
  box-shadow: 0 0 0 1px #fd602c;
  outline: none;
}

#panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 322px;
  max-width: calc(100% - 20px);
  height: 73px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.08);
  isolation: isolate;
  backface-visibility: hidden;
}

#panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox {
  width: 340px;
  max-width: calc(100% - 16px);
  height: auto;
  min-height: 88px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  align-items: flex-start;
}

#panel-wisp .service-tile:nth-child(-n + 5)::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #ffffff;
  z-index: 2;
}

#panel-wisp .service-tile:first-child::before {
  background-color: #ffffff;
  background-image: url("../images/internet.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56px 56px;
}

#panel-wisp .service-tile:nth-child(2)::before {
  background-color: #ffffff;
  background-image: url("../images/signal-tower.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56px 56px;
}

#panel-wisp .service-tile:nth-child(3)::before {
  background-color: #ffffff;
  background-image: url("../images/wireless-router.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56px 56px;
}

#panel-wisp .service-tile:nth-child(4)::before {
  background-color: #ffffff;
  background-image: url("../images/microphone.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56px 56px;
}

#panel-wisp .service-tile:nth-child(5)::before {
  background-color: #ffffff;
  background-image: url("../images/signal.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56px 56px;
}

#panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

#panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox p {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #374151;
}

#panel-mdu .service-tile .service-tile-textbox,
#panel-commercial .service-tile .service-tile-textbox,
#panel-rv-park-services .service-tile .service-tile-textbox {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 340px;
  max-width: calc(100% - 16px);
  height: auto;
  min-height: 88px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  align-items: flex-start;
}

#panel-mdu .service-tile .service-tile-textbox h3,
#panel-commercial .service-tile .service-tile-textbox h3,
#panel-rv-park-services .service-tile .service-tile-textbox h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

#panel-mdu .service-tile .service-tile-textbox p,
#panel-commercial .service-tile .service-tile-textbox p,
#panel-rv-park-services .service-tile .service-tile-textbox p {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #374151;
}

#panel-mdu .service-tile::before,
#panel-commercial .service-tile::before,
#panel-rv-park-services .service-tile::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: #ffffff;
  z-index: 2;
}

#panel-mdu .service-tile:nth-child(1)::before {
  background: #ffffff url("../images/mdu-computer-security.svg") no-repeat center / 56px 56px;
}

#panel-mdu .service-tile:nth-child(2)::before {
  background: #ffffff url("../images/https.png") no-repeat center / 64px 64px;
}

#panel-mdu .service-tile:nth-child(3)::before {
  background: #ffffff url("../images/mdu-property.svg") no-repeat center / 56px 56px;
}

#panel-mdu .service-tile:nth-child(4)::before {
  background: #ffffff url("../images/mdu-home-security.svg") no-repeat center / 56px 56px;
}

#panel-mdu .service-tile:nth-child(5)::before {
  background: #ffffff url("../images/mdu-24-hours.svg") no-repeat center / 56px 56px;
}

#panel-mdu .service-tile:nth-child(6)::before {
  background: #ffffff url("../images/mdu-account.svg") no-repeat center / 56px 56px;
}

#panel-mdu .service-tile:nth-child(7)::before {
  background: #ffffff url("../images/mdu-bandwidth.svg") no-repeat center / 56px 56px;
}

#panel-mdu .service-tile:nth-child(8)::before {
  background: #ffffff url("../images/mdu-password.svg") no-repeat center / 56px 56px;
}

#panel-commercial .service-tile:nth-child(1)::before {
  background: #ffffff url("../images/wireless-router.svg") no-repeat center / 56px 56px;
}

#panel-commercial .service-tile:nth-child(2)::before {
  background: #ffffff url("../images/signal.svg") no-repeat center / 56px 56px;
}

#panel-commercial .service-tile:nth-child(3)::before {
  background: #ffffff url("../images/mdu-computer-security.svg") no-repeat center / 56px 56px;
}

#panel-commercial .service-tile:nth-child(4)::before {
  background: #ffffff url("../images/mdu-account.svg") no-repeat center / 56px 56px;
}

#panel-commercial .service-tile:nth-child(5)::before {
  background: #ffffff url("../images/mdu-24-hours.svg") no-repeat center / 56px 56px;
}

#panel-commercial .service-tile:nth-child(6)::before {
  background: #ffffff url("../images/mdu-property.svg") no-repeat center / 56px 56px;
}

#panel-rv-park-services .service-tile:nth-child(1)::before {
  background: #ffffff url("../images/wireless-router.svg") no-repeat center / 56px 56px;
}

#panel-rv-park-services .service-tile:nth-child(2)::before {
  background: #ffffff url("../images/internet.svg") no-repeat center / 56px 56px;
}

#panel-rv-park-services .service-tile:nth-child(3)::before {
  background: #ffffff url("../images/increase-revenue.png") no-repeat center center / 80px 80px;
}

#panel-rv-park-services .service-tile:nth-child(4)::before {
  background: #ffffff url("../images/https.png") no-repeat center / 64px 64px;
}

#panel-rv-park-services .service-tile:nth-child(5)::before {
  background: #ffffff url("../images/mdu-home-security.svg") no-repeat center / 56px 56px;
}

#panel-rv-park-services .service-tile:nth-child(6)::before {
  background: #ffffff url("../images/signal-tower.svg") no-repeat center / 56px 56px;
}

#panel-wisp .service-tile:nth-child(6) .wisp-coverage-card {
  width: 247px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  height: auto;
  padding-top: 24px;
  padding-left: 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

#panel-wisp .service-tile:nth-child(6) .tile-media {
  display: none;
}

#panel-wisp .service-tile:nth-child(6) {
  position: relative;
  background: #20211e;
  border-color: #20211e;
  overflow: hidden;
}

#panel-wisp .service-tile:nth-child(6)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 322px;
  height: 283px;
  background: url("../images/wisp-box6-signal.png") no-repeat right top / 322px 283px;
  mix-blend-mode: lighten;
  filter: brightness(1.12);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

#panel-wisp .service-tile:nth-child(6) .wisp-coverage-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: #ffffff;
}

#panel-wisp .service-tile:nth-child(6) .wisp-coverage-btn {
  width: 247px;
  min-height: 59px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.9rem 1.5rem;
  border-radius: 62px;
  background: #fd602c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

#panel-wisp .service-tile:nth-child(6) .wisp-coverage-btn-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  margin-left: 2px;
}

#panel-wisp .tile-media,
#panel-wisp .tile-media-slot,
#panel-mdu .tile-media,
#panel-mdu .tile-media-slot,
#panel-commercial .tile-media,
#panel-commercial .tile-media-slot,
#panel-rv-park-services .tile-media,
#panel-rv-park-services .tile-media-slot {
  height: auto;
}

#panel-wisp .tile-media-slot,
#panel-mdu .tile-media-slot,
#panel-commercial .tile-media-slot,
#panel-rv-park-services .tile-media-slot {
  aspect-ratio: 397 / 283;
}

.service-tile {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: var(--space-4);
  min-width: 0;
  isolation: isolate;
  backface-visibility: hidden;
}

.tile-media {
  min-width: 0;
}

.tile-media-slot {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  aspect-ratio: 16 / 9;
}

.tile-content {
  min-width: 0;
}

.tile-content ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

/* Explore (mirrors Internet section: image left, content right) */
.explore-different {
  padding-inline: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.explore-different .container {
  max-width: none;
  padding-inline: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.explore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  background: #fd602c;
  border-radius: 30px;
  overflow: hidden;
}

.explore-media {
  min-width: 0;
  overflow: hidden;
}

.explore-media-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.explore-content {
  min-width: 0;
  padding: 1.5rem 1.25rem;
  background: #fd602c;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.explore-copy {
  margin: 0;
}

.explore-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.explore-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 52ch;
}

.explore-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.explore-features li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
}

.explore-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-weight: 700;
  font-size: 1.1em;
  color: #fff;
}

.explore-cover-question {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.explore-actions {
  margin-top: 0.25rem;
}

.btn-explore-cta {
  background: #111827;
  color: #ffffff;
  border-radius: 52px;
  height: 60px;
  padding: 0 30px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-explore-cta:hover,
.btn-explore-cta:focus-visible {
  background: #1f2937;
  color: #ffffff;
}

.btn-explore-cta span {
  color: #ffffff;
}

/* Footer – same side padding as #main-content; slightly more inset so it matches middle sections visually */
.site-footer {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  box-sizing: border-box;
  overflow-x: hidden;
  padding-inline: var(--space-4);
}

.footer-image-wrap {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1470 / 609;
  isolation: isolate;
  backface-visibility: hidden;
}

.footer-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 55%;
  vertical-align: middle;
}

.footer-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(var(--space-6) + 5rem) var(--space-4) var(--space-6);
  /* No background – logo and nav sit directly on the image; extra top padding lowers the block */
}

.footer-band-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer-logo {
  display: block;
}

.footer-logo img {
  display: block;
  max-width: 244px;
  height: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.footer-nav {
  width: 100%;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
}

.footer-nav-list a {
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.footer-nav-list a:hover {
  color: #374151;
  text-decoration: underline;
}

.footer-login-dropdown {
  position: relative;
}

.footer-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.footer-dropdown-toggle:hover {
  color: #374151;
  text-decoration: underline;
}

.footer-dropdown-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  min-width: 10rem;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  isolation: isolate;
  backface-visibility: hidden;
}

.footer-dropdown-menu a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-main);
}

.footer-dropdown-menu a:hover,
.footer-dropdown-menu a:focus-visible {
  background: #fd602c;
  color: #ffffff;
}

.footer-login-dropdown.is-open .footer-dropdown-menu {
  display: block;
}

@media (min-width: 1024px) {
  .footer-login-dropdown:hover .footer-dropdown-menu,
  .footer-login-dropdown:focus-within .footer-dropdown-menu {
    display: block;
  }
}

.footer-copyright {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ZIP code checker modal */
.coverage-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.coverage-modal.is-open {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.coverage-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.coverage-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.coverage-modal-header {
  background: #FD602C;
  color: #fff;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.coverage-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.coverage-modal-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.coverage-modal-intro {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
}

.coverage-zip-input-group {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #fff;
}

.coverage-zip-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 0;
  outline: none;
  background: #fff;
}

.coverage-zip-input::placeholder {
  color: #9ca3af;
}

.coverage-zip-go-btn {
  padding: 0.75rem 1.25rem;
  background: #FD602C;
  color: #fff;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.coverage-zip-go-btn:hover {
  background: #e55520;
}

.coverage-zip-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  min-height: 2.5rem;
}

.coverage-zip-loading[hidden] {
  display: none !important;
}

.coverage-zip-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #FD602C;
  border-radius: 50%;
  animation: coverage-spin 0.8s linear infinite;
}

.coverage-zip-loading-text {
  font-size: 0.95rem;
  color: #6b7280;
}

@keyframes coverage-spin {
  to {
    transform: rotate(360deg);
  }
}

.coverage-zip-message {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.coverage-zip-message a {
  color: #FD602C;
  font-weight: 700;
  text-decoration: underline;
}

.coverage-zip-message a:hover {
  color: #e55520;
}


/* 480px */
@media (min-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  #main-content {
    padding-inline: var(--space-4);
  }

  .site-footer {
    padding-inline: var(--space-4);
  }
}

/* Mobile stacked: straight edge where image meets content (content overlaps image curve) */
/* Footer mobile: logo in sky (top center), nav/copyright below; touch-friendly */
@media (max-width: 767px) {
  .internet-content,
  .explore-content {
    margin-top: -48px; /* overlap enough to fully cover the 30px radius curve */
    border-radius: 0 0 30px 30px;
  }

  /* Internet section content needs solid background so overlap hides image curve */
  .internet-content {
    background: #f4f7fa;
  }

  /* Footer mobile: same side padding as main content (from 1024px block when applicable) */
  .site-footer {
    width: 100%;
  }

  /* WISP tile 6: ensure "Explore WISP Coverage Options" title is not cut off on narrow screens */
  #panel-wisp .service-tile:nth-child(6) .wisp-coverage-title {
    line-height: 1.15;
    padding-bottom: 0.25em;
  }

  .footer-image-wrap {
    border-radius: 16px;
  }

  .footer-band {
    position: static;
    background: #f9fafb;
    padding: var(--space-4) var(--space-3);
  }

  .footer-band-inner {
    padding-top: 0;
    padding-inline: var(--space-3);
    gap: var(--space-3);
  }

  .footer-logo {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

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

  .footer-nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-nav-list a {
    font-size: 1rem;
    padding: 0.4rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-dropdown-toggle {
    padding: 0.4rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-dropdown-menu a {
    padding: 0.35rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-copyright {
    font-size: 0.85rem;
    /* On mobile: on footer image just under logo, centered; high contrast */
    position: absolute;
    top: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
    text-align: center;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  /* WISP tile 6: buffer between "Check Coverage Area" button and bottom edge */
  #panel-wisp .service-tile:nth-child(6) .wisp-coverage-card {
    padding-bottom: 1.5rem;
  }
}

/* 768px – tablet: keep single-column stacking until 1024px; reduced side padding so content fits */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-4);
  }

  #main-content {
    padding-inline: var(--space-4);
  }

  .site-footer {
    padding-inline: var(--space-5);
  }
}

@media (max-width: 1023px) {
  .site-header .container {
    max-width: 100vw;
    padding-inline: var(--space-4);
    box-sizing: border-box;
    width: 100%;
  }
}

/* 1024px */
@media (min-width: 1024px) {
  /* Reserve space for scrollbar so left/right gaps stay equal on desktop */
  html {
    scrollbar-gutter: stable;
  }

  .site-header .container {
    max-width: none;
    padding-inline: 0;
  }

  /* Two-column layout for Internet and Explore only from 1024px up */
  .internet-works-grid,
  .explore-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
  }

  .internet-works-grid {
    min-height: 600px;
  }

  .internet-media-img,
  .explore-media-img {
    min-height: 500px;
    height: 100%;
    object-fit: cover;
  }

  .internet-content,
  .explore-content {
    margin-top: 0;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .explore-grid {
    min-height: 600px;
    /* Orange only on content column so no orange shows at image’s rounded edge */
    background: linear-gradient(to right, transparent 0%, transparent 50%, #fd602c 50%, #fd602c 100%);
  }

  .explore-content {
    justify-content: center;
    align-items: flex-start;
  }

  .explore-intro {
    max-width: 78ch;
  }

  .services #services-heading {
    white-space: nowrap;
  }

  .service-tabs {
    flex-wrap: nowrap;
  }

  .service-tab {
    flex: 1 1 0;
    font-size: 24px;
    padding: 0.7rem 1.2rem;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(244px, 1fr) auto 1fr;
    align-items: center;
    width: calc(100vw - 120px);
    margin-inline: auto;
    height: 108px;
    min-height: 108px;
    gap: var(--space-6);
    padding: 0.75rem 1.5rem;
  }

  .header-inner .brand {
    justify-self: start;
    min-width: 0;
  }

  .header-inner .primary-nav {
    grid-column: -1;
    justify-self: end;
  }

  .brand img {
    width: 244px;
    height: auto;
    max-width: 100%;
    min-width: 180px;
  }

  .burger-menu {
    display: none;
  }

  .primary-nav {
    display: flex;
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin-left: 0;
    justify-content: center;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
  }

  .nav-list > li > a,
  .nav-dropdown-toggle {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
  }

  .nav-dropdown-toggle {
    font-weight: 700;
  }

  .nav-list > li > a:hover,
  .nav-list > li > a:focus-visible,
  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:focus-visible {
    color: rgba(255, 255, 255, 0.94);
    text-decoration: underline;
  }

  .site-header .btn-coverage-check {
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: auto;
    right: 0;
    min-width: 10rem;
    z-index: 60;
    margin-top: 0;
  }

  .hero-dots {
    left: auto;
    right: var(--space-6);
    bottom: var(--space-5);
    transform: none;
  }

  .hero-slides {
    min-height: 620px;
  }

  .hero-slide img {
    object-position: 60% center;
  }

  /* Desktop auto-layout */
  .hero-caption {
    position: absolute;
    inset: auto;
    left: 3rem;
    right: 3rem;
    bottom: 3rem;
    z-index: 2;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;

    gap: clamp(0.75rem, 1.6vw, 2rem);
    padding: 0 clamp(0.75rem, 1.6vw, 2rem);
  }

  .hero-caption-left {
    width: auto; /* hug */
    flex: 1 1 58%;
    min-width: 0;
    max-width: 560px;
  }

  .hero-caption-right {
    margin-left: auto;
    text-align: right;
    flex: 1 1 45%;
    width: auto;
    min-width: 240px;
    max-width: 58%;
  }

  .hero-caption-right ul {
    max-width: 100%;
    color: #fff;
  }

  .hero-caption-right li {
    font-weight: 500;
    font-size: clamp(1rem, 1.6vw, 24px);
    line-height: 1.4;
    white-space: nowrap;
  }

  .service-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #panel-wisp,
  #panel-commercial,
  #panel-rv-park-services {
    grid-template-columns: repeat(3, 397px);
    justify-content: center;
  }

  #panel-mdu {
    grid-template-columns: repeat(4, 297px);
    justify-content: center;
  }

  #panel-wisp .service-tile,
  #panel-commercial .service-tile,
  #panel-rv-park-services .service-tile {
    width: 397px;
    height: 283px;
  }

  #panel-mdu .service-tile {
    width: 297px;
    height: 283px;
  }

  #panel-wisp .tile-media,
  #panel-wisp .tile-media-slot,
  #panel-mdu .tile-media,
  #panel-mdu .tile-media-slot,
  #panel-commercial .tile-media,
  #panel-commercial .tile-media-slot,
  #panel-rv-park-services .tile-media,
  #panel-rv-park-services .tile-media-slot {
    height: 100%;
  }

  #panel-wisp .tile-media-slot,
  #panel-mdu .tile-media-slot,
  #panel-commercial .tile-media-slot,
  #panel-rv-park-services .tile-media-slot {
    aspect-ratio: auto;
  }

  /* Desktop: keep tile copy below icons, left-aligned,
     and start from same inset as icon box */
  #panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox,
  #panel-mdu .service-tile .service-tile-textbox,
  #panel-commercial .service-tile .service-tile-textbox,
  #panel-rv-park-services .service-tile .service-tile-textbox {
    left: 24px;
    right: 24px;
    bottom: 16px;
    transform: none;
    width: auto;
    max-width: none;
    min-height: 132px;
    padding: 0.5rem 0 0.5rem 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    text-align: left;
  }

}

/* 1280px */
@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-6);
  }

  #main-content {
    padding-inline: var(--space-6);
  }

  .site-footer {
    padding-inline: var(--space-6);
  }

  .footer-band-inner {
    padding-inline: var(--space-6);
  }

  .hero-slides {
    min-height: 680px;
  }

}

/* iPad Pro (1024–1366): same header as smaller viewports – logo + Menu button only */
@media (min-width: 1024px) and (max-width: 1366px) {
  /* Header above hero so logo and menu are visible on all banners.
     position: relative + z-index so dropdown stacks above main. */
  .site-header {
    position: relative;
    z-index: 200;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 88px;
    height: auto;
    padding: 0.9rem 2rem;
    margin-inline: auto;
    border-radius: 0;
    border: 0;
    background: #ffffff;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-sizing: border-box;
    gap: var(--space-4);
    overflow: visible;
  }

  .header-inner .brand {
    min-width: 0;
    max-width: 60%;
    justify-self: auto;
  }

  .header-inner .brand img,
  .brand img {
    max-width: 100%;
    width: clamp(220px, 20vw, 260px);
    height: auto;
    min-width: 0;
  }

  .burger-menu {
    display: inline-flex;
    flex-shrink: 0;
  }

  .burger-menu span {
    background-color: #111827;
  }

  #main-content {
    padding-top: 0;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-2));
    left: auto;
    right: 2rem;
    width: 220px;
    min-width: 200px;
    padding: var(--space-2) 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
    margin-left: 0;
  }

  .primary-nav.is-open {
    display: block !important;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .nav-list > li > a,
  .nav-dropdown-toggle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    min-height: 2.5rem;
  }

  /* Keep Login label visible when MDU/WISP dropdown is open; position menu below it */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-toggle {
    flex-shrink: 0;
    display: inline-flex;
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 0.25rem;
    left: 0;
    right: auto;
    min-width: 10rem;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  }

  .nav-dropdown.is-open .nav-dropdown-toggle {
    visibility: visible;
    opacity: 1;
    color: var(--text-main);
    background: transparent;
  }

  /* Service tiles: same as smaller screens, but 2 columns instead of 1 */
  #panel-wisp,
  #panel-mdu,
  #panel-commercial,
  #panel-rv-park-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  #panel-wisp .service-tile,
  #panel-mdu .service-tile,
  #panel-commercial .service-tile,
  #panel-rv-park-services .service-tile {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin-inline: 0;
  }

  /* Revert 1024px desktop tile/media rules so tiles use same layout as small screens */
  #panel-wisp .tile-media,
  #panel-mdu .tile-media,
  #panel-commercial .tile-media,
  #panel-rv-park-services .tile-media,
  #panel-wisp .tile-media-slot,
  #panel-mdu .tile-media-slot,
  #panel-commercial .tile-media-slot,
  #panel-rv-park-services .tile-media-slot {
    height: auto;
  }

  #panel-wisp .tile-media-slot,
  #panel-mdu .tile-media-slot,
  #panel-commercial .tile-media-slot,
  #panel-rv-park-services .tile-media-slot {
    aspect-ratio: 397 / 283;
  }

  /* Revert 1024px desktop textbox positioning – use same as small screens (centered, bottom) */
  #panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox,
  #panel-mdu .service-tile .service-tile-textbox,
  #panel-commercial .service-tile .service-tile-textbox,
  #panel-rv-park-services .service-tile .service-tile-textbox {
    left: 50%;
    right: auto;
    bottom: 28px;
    transform: translateX(-50%);
    width: 340px;
    max-width: calc(100% - 16px);
    min-height: 88px;
    padding: 0.65rem 0.85rem;
  }

  /* Larger text so it fills the boxes better (1024×1366 only) */
  #panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox h3 {
    font-size: 1.625rem;
    line-height: 1.15;
  }

  #panel-wisp .service-tile:nth-child(-n + 5) .wisp-tile-textbox p {
    font-size: 1.0625rem;
    line-height: 1.35;
  }

  #panel-mdu .service-tile .service-tile-textbox h3,
  #panel-commercial .service-tile .service-tile-textbox h3,
  #panel-rv-park-services .service-tile .service-tile-textbox h3 {
    font-size: 1.625rem;
    line-height: 1.15;
  }

  #panel-mdu .service-tile .service-tile-textbox p,
  #panel-commercial .service-tile .service-tile-textbox p,
  #panel-rv-park-services .service-tile .service-tile-textbox p {
    font-size: 1.0625rem;
    line-height: 1.35;
  }

  #panel-wisp .service-tile:nth-child(6) .wisp-coverage-title {
    font-size: 2.75rem;
    line-height: 1.1;
  }

  #panel-wisp .service-tile:nth-child(6) .wisp-coverage-btn {
    font-size: 1.0625rem;
    margin-top: 1.25rem;
  }

  /* Services heading: wrap to 2 lines, center-aligned (override desktop nowrap) */
  .services .section-header {
    text-align: center;
  }
  .services #services-heading {
    white-space: normal;
    text-align: center;
    max-width: 22ch;
    margin-inline: auto;
  }
}

/* ===== Mobile Header + Hero collision fix (final override) ===== */
@media (max-width: 1023px) {
  /* Header sits above hero (not over it) so logo and menu are always visible.
     Use position: relative + z-index so the dropdown stacks above main content. */
  .site-header {
    position: relative;
    z-index: 200;
  }

  .header-inner {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 88px;
    padding: 0.9rem 0.75rem;
    border-radius: 0;
    border: 0;
    background: #ffffff;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
  }

  .header-inner .brand {
    min-width: 0;
    max-width: 60%;
  }

  .header-inner .brand img {
    max-width: 100%;
  }

  .burger-menu {
    flex-shrink: 0;
  }

  .burger-menu span {
    background-color: #111827;
  }

  .brand img {
    width: clamp(132px, 34vw, 170px);
    height: auto;
    max-width: 100%;
  }

  /* Force nav dropdown to show when open – override any base display:none */
  .primary-nav {
    display: block !important;
    z-index: 1000;
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    right: 0;
    width: 100%;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  }

  .primary-nav.is-open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* No gap between header bar and hero on mobile */
  #main-content {
    padding-top: 0;
  }
}

/* Tablet (768–1023px): larger logo and better section sizing (must follow 1023px so it wins) */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header .container {
    padding-inline: var(--space-6);
  }

  /* Compact dropdown panel like iPad Pro – right-aligned, fixed width */
  .primary-nav {
    left: auto;
    right: 1.5rem;
    width: 220px;
    min-width: 200px;
    max-width: 220px;
    padding: var(--space-2) 0;
    margin-left: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .nav-list > li > a,
  .nav-dropdown-toggle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    min-height: 2.5rem;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-toggle {
    flex-shrink: 0;
    display: inline-flex;
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 0.25rem;
    left: 0;
    right: auto;
    min-width: 10rem;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  }

  .nav-dropdown.is-open .nav-dropdown-toggle {
    visibility: visible;
    opacity: 1;
    color: var(--text-main);
    background: transparent;
  }

  /* Stacked layout: content block overlaps image rounded corners (same as mobile) */
  .internet-content,
  .explore-content {
    margin-top: -48px;
    border-radius: 0 0 30px 30px;
  }

  .internet-content {
    background: #f4f7fa;
  }

  .brand img {
    width: clamp(180px, 24vw, 220px);
    height: auto;
    max-width: 100%;
  }

  .hero-slides {
    min-height: 520px;
    aspect-ratio: 1440 / 560;
  }

  .hero-caption {
    padding: 2rem 2.5rem;
  }

  .hero-caption-left h1,
  .hero-caption-left h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .internet-works-grid,
  .explore-grid {
    min-height: 520px;
  }

  .internet-media-img,
  .explore-media-img {
    min-height: 400px;
  }

  .internet-content,
  .explore-content {
    padding: 2.75rem 2.5rem;
  }

  .internet-works-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
  }

  .explore-copy h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  }

  .services #services-heading {
    font-size: clamp(2rem, 5vw, 48px);
  }

  .service-tab {
    padding: 0.65rem 1rem;
    font-size: 18px;
  }

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

  /* Footer band: logo and nav closer to top of image at this breakpoint */
  .footer-band {
    padding-top: calc(var(--space-5) + 1.5rem);
    padding-bottom: var(--space-5);
  }

  /* WISP tile 6: buffer between "Check Coverage Area" button and bottom of tile (same as mobile) */
  #panel-wisp .service-tile:nth-child(6) .wisp-coverage-card {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-slides {
    aspect-ratio: auto;
    min-height: 580px;
  }

  .hero-caption {
    justify-content: flex-start;
    padding-top: 8.5rem;   /* keeps text below logo/menu area */
    padding-bottom: 5.25rem;
  }

  .hero-dots {
    bottom: 1rem;
  }
}

/* ===== iPad / tablet (768×1024 etc): force site to fit viewport width – no overflow ===== */
/* Use identical padding for header, main, and footer so all sections share the same width/inset */
@media (max-width: 1024px) {
  html,
  body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto;
  }

  #main-content {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-inline: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .container {
    max-width: 100vw !important;
    padding-inline: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .site-header .container {
    max-width: 100vw !important;
    padding-inline: 0.75rem !important;
  }

  .site-footer {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding-inline: 0.75rem !important;
  }

  /* Expand only Internet and Explore to match hero width; keep hero constrained to main padding */
  .internet-works,
  .explore-different {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: -0.75rem !important;
    box-sizing: border-box !important;
  }

  .hero-slider,
  .hero {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .internet-works .container,
  .explore-different .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .internet-works-grid,
  .explore-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
