.home-page,
.services-page {
  --service-ink: #152b38;
  --service-muted: #4a5e66;
  --service-border: #dce7e6;
  --service-accent: #05736b;
  --service-accent-dark: #005a54;
  color: var(--service-ink);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  min-height: 390px;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1826;
  color: #fff;
}

.home-hero-copy {
  align-self: center;
  padding: clamp(32px, 4vw, 56px);
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.042em;
}

.home-hero h1 span {
  color: #93cdc3;
}

.home-hero p {
  max-width: 43ch;
  margin: 20px 0 26px;
  color: #d7e1e6;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.6;
}

.home-hero-media {
  display: block;
  min-width: 0;
  min-height: 0;
}

.home-service-card > picture {
  display: block;
}

.home-hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 48% center;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.service-button-primary {
  background: var(--service-accent);
  color: #fff;
}

.service-button-primary:hover {
  background: var(--service-accent-dark);
  color: #fff;
}

.service-button-light {
  border-color: #91a3ae;
  color: #fff;
}

.service-button-light:hover {
  background: #233747;
  color: #fff;
}

.service-button:focus-visible,
.home-service-card:focus-visible,
.home-service-rail a:focus-visible {
  outline: 3px solid #2b968c;
  outline-offset: 3px;
}

.home-services {
  display: grid;
  grid-template-columns: minmax(195px, .7fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 45px);
  margin: clamp(34px, 6vw, 72px) 0;
}

.home-service-rail {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--service-border);
  border-radius: 10px;
  background: #fff;
}

.home-service-rail h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.home-service-rail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-service-rail li + li {
  border-top: 1px solid var(--service-border);
}

.home-service-rail a {
  display: block;
  padding: 9px 0;
  color: var(--service-accent-dark);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.home-service-rail a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.home-section-header h2,
.service-cta h2 {
  margin: 0;
  font-size: clamp(1.52rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.026em;
}

.home-section-header a {
  color: var(--service-accent-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.home-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--service-border);
  border-radius: 10px;
  background: #fff;
  color: var(--service-ink);
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.home-service-card:hover {
  border-color: #77a99f;
  box-shadow: 0 6px 18px #0b182611;
}

.home-service-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-service-card img,
.service-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e7eeee;
}

.home-service-card div {
  padding: 15px;
}

.home-service-card h3,
.service-items h3 {
  margin: 0 0 6px;
  color: var(--service-ink);
  font-size: 1.09rem;
  line-height: 1.25;
  letter-spacing: -.012em;
}

.home-service-card p,
.service-items p {
  margin: 0;
  color: var(--service-muted);
  font-size: .95rem;
  line-height: 1.48;
}

.service-cta,
.services-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-cta {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #d4e6e2;
  border-radius: 12px;
  background: #eaf3f0;
}

.service-cta p,
.services-intro p {
  margin: 8px 0 0;
  color: var(--service-muted);
}

.services-intro {
  padding: clamp(22px, 5vw, 55px) 0;
}

.services-intro h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5.5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -.05em;
}

.services-intro p {
  font-size: 1.11rem;
}

.services-list {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.service-group {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--service-border);
  border-radius: 12px;
  background: #fff;
}

.service-group > h2 {
  margin: 0 0 17px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -.024em;
}

.service-group-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  align-items: start;
  gap: clamp(20px, 4vw, 40px);
}

.service-photo {
  border-radius: 7px;
}

.service-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-group,
.service-items article {
  scroll-margin-top: 20px;
}

.service-group:target {
  border-color: #77a99f;
}

.service-items article:target {
  border-radius: 4px;
  outline: 6px solid #eaf3f0;
  background: #eaf3f0;
}

.network-service-copy {
  color: var(--service-muted);
  font-size: .95rem;
}

.network-service-copy p { margin: 0 0 10px; }
.network-service-copy ul { margin: 0; padding-left: 1.13rem; }
.network-service-copy li + li { margin-top: 4px; }

@media (max-width: 1080px) {
  .home-hero {
    min-height: 340px;
  }
  .home-service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 730px) {
  .home-hero,
  .home-services,
  .service-group-body {
    grid-template-columns: 1fr;
  }
  .home-hero-copy {
    padding: 27px;
  }
  .home-hero-photo {
    max-height: 270px;
    aspect-ratio: 16 / 8;
    height: auto;
  }
  .home-service-rail nav > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .home-service-rail nav > ul > li {
    border-top: 1px solid var(--service-border);
  }
  .service-photo {
    max-height: 260px;
  }
}

@media (max-width: 460px) {
  .home-hero h1 {
    font-size: clamp(1.95rem, 7.9vw, 2.35rem);
  }
  .home-service-cards,
  .service-items {
    grid-template-columns: 1fr;
  }
  .service-cta,
  .services-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card {
    transition: none;
  }
}

.home-page:not(.contact-page) > .home-services {
  grid-template-areas: "directory featured";
}

.home-service-paths {
  grid-area: featured;
}

.home-page:not(.contact-page) > .home-services > .home-service-rail {
  grid-area: directory;
}

@media (max-width: 730px) {
  .home-page:not(.contact-page) > .home-services {
    grid-template-areas: "featured" "directory";
  }
}

.voip-service-art {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border-radius: 7px;
  background: radial-gradient(ellipse at 72% 30%, #155e60, #0b1826 78%);
  color: #b6e0d7;
  font: clamp(2.5rem, 7vw, 5.5rem) / 1 system-ui, sans-serif;
}

.network-service-copy .voip-service-link {
  margin: 14px 0 0;
  font-weight: 700;
}

.voip-breadcrumb {
  margin: 0 0 16px;
  color: var(--service-muted);
  font-size: .9rem;
}

.voip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(24px, 5vw, 58px);
  border-radius: 18px;
  background: #0b1826;
  color: #fff;
}

.voip-hero .voip-kicker {
  margin: 0 0 12px;
  color: #ace0d6;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.voip-hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 5vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.voip-hero p:not(.voip-kicker) {
  max-width: 54ch;
  color: #d8e6eb;
}

.voip-call-flow {
  padding: 18px 20px;
  border: 1px solid #3d6d73;
  border-radius: 12px;
  background: #122b3c;
}

.voip-call-flow p {
  margin: 0 0 10px;
  font-weight: 700;
}

.voip-call-flow ol {
  margin: 0;
  padding: 0 0 0 22px;
}

.voip-call-flow li {
  padding: 5px 0;
}

.voip-call-flow li::marker {
  color: #ace0d6;
  font-weight: 800;
}

.voip-section {
  margin-block: clamp(26px, 5vw, 52px);
}

.voip-section h2 {
  margin-top: 0;
}

.voip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.voip-grid article {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--service-border);
  border-radius: 10px;
  background: #fff;
}

.voip-grid h3 {
  margin: 0 0 7px;
}

.voip-grid p,
.voip-section.service-group p:last-child {
  margin: 0;
  color: var(--service-muted);
}

.voip-steps {
  padding-left: 22px;
}

.voip-steps li + li {
  margin-top: 9px;
}

.voip-faq {
  margin: 0;
  border-top: 1px solid var(--service-border);
}

.voip-faq dt {
  margin-top: 0;
  padding-top: 15px;
  font-weight: 750;
}

.voip-faq dd {
  margin: 3px 0 0;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--service-border);
  color: var(--service-muted);
}

@media (max-width: 730px) {
  .voip-hero,
  .voip-grid {
    grid-template-columns: 1fr;
  }

  .voip-service-art {
    aspect-ratio: 3 / 1;
  }
}

.related-services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-services a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--service-border);
  border-radius: 7px;
  background: #fff;
  font-weight: 650;
}

.service-group > h2 a,
.service-items h3 a {
  color: var(--service-ink);
  text-decoration-color: #79a99f;
  text-underline-offset: .19em;
}

.service-group > h2 a:hover,
.service-items h3 a:hover {
  color: var(--service-accent-dark);
}
