/* Visual enhancements for the homepage and interior pages. */
.site-header {
  box-shadow: 0 3px 20px #0c36530b;
}

.hero {
  background: #071b30;
  border-bottom: 1px solid #30637e;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, #06182d9e 0%, #06182d66 40%, #071b3020 76%),
    url("/assets/datastreamwallpaper.png") center 57% / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 37%, #157da33f, transparent 51%),
    linear-gradient(0deg, #06172c65, transparent 29%);
}

.hero-circuits {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid > .reveal {
  animation: hero-arrival .42s ease-out both;
}

@keyframes hero-arrival {
  from { translate: 0 8px; opacity: .9; }
  to { translate: 0 0; opacity: 1; }
}

.hero h1 {
  font-size: clamp(3.8rem, 6.3vw, 6rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero h1 em {
  color: #78e6f6;
}

.hero .local-service-label {
  display: inline-block;
  margin-bottom: 15px;
  letter-spacing: .09em;
}

.hero .lead {
  max-width: 36rem;
  color: #e0eef7;
}

.hero .hero-note {
  color: #c3dce9;
}

.hero-person {
  isolation: isolate;
}

.hero-person::before {
  position: absolute;
  inset: 29px -12px 14px 13px;
  z-index: -1;
  content: "";
  border: 1px solid #84daff62;
  border-radius: 22px;
}

.hero-photo.hero-portrait {
  border-color: #8bd6f372;
  box-shadow: 0 22px 70px #020c1b85;
}

.person-badge {
  box-shadow: 0 15px 36px #04132750;
}

.page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #093250;
  background-image:
    radial-gradient(ellipse at 88% 0, #1885af6b, transparent 55%),
    linear-gradient(100deg, #071e35, #0d3a59);
  border-bottom-color: #4c90ad;
}

.page-intro::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(#a1dbff12 1px, transparent 1px),
    linear-gradient(90deg, #a1dbff12 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
}

.page-intro > .wrap {
  position: relative;
  z-index: 1;
}

.page-intro .hero-circuits {
  opacity: .74;
  mask-image: linear-gradient(90deg, transparent 43%, #000 81%);
}

.page-intro h1 {
  text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
  .page-intro h1, .page-intro .lead {
    animation: hero-arrival .4s ease-out both;
  }

  .page-intro .lead {
    animation-delay: .06s;
  }
}

.home-gateways > .service-card {
  background: linear-gradient(145deg, #fff 32%, #f1faff 100%);
  border-top: 3px solid #4ab2cc;
}

.home-gateways > .service-card h3 {
  font-size: 1.42rem;
}

.reviews-flow .quote-card:not(.quote-feature) {
  background: #edf9fc;
  border: 1px solid #bddfeb;
  border-top: 3px solid #53bdd1;
  color: var(--ink);
}

.shop-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.shop-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #72aecb;
  border-radius: 8px;
  background: #113954;
  color: #effaff;
  font-weight: 700;
  font-size: .89rem;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.shop-quick-links a:first-child, .shop-quick-links a:hover {
  background: #9cebf5;
  border-color: #9cebf5;
  color: #0b3348;
}

.shop-quick-links a:focus-visible {
  outline: 2px solid #a7eaf6;
  outline-offset: 3px;
}

.shop-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
}

.shop-group {
  min-width: 0;
  padding: clamp(10px, 1.5vw, 18px);
  background: #eff9fd;
  border: 1px solid #c5e2ed;
  border-radius: 16px;
}

.shop-group h3 {
  margin: 2px 2px 12px;
  font-size: 1.18rem;
}

.shop-group .category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  border-color: #ccdfeb;
  border-radius: 10px;
  background: #fff;
}

.shop-group .category-card + .category-card {
  margin-top: 8px;
}

.shop-group .category-card::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-end: 3px;
  border: solid #126480;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: translate .18s ease;
}

.shop-group .category-card:hover::after {
  translate: 3px 0;
}

.shop-group .category-card h4 {
  margin: 0 0 3px;
  font-size: .95rem;
  line-height: 1.24;
}

.shop-group .category-card p {
  font-size: .8rem;
  line-height: 1.32;
}

.shop-group .category-card .icon {
  width: 34px;
  height: 34px;
  margin: 0;
}

.shop-directory + #all-products {
  margin-top: 42px;
  margin-bottom: 0;
}

.shop-tools .search-field {
  max-width: 650px;
}

.shop-search-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.shop-search-controls input {
  flex: 1;
  min-width: 0;
}

.shop-search-controls .search-clear {
  display: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.js .shop-search-controls .search-clear {
  display: inline-flex;
}

@media (max-width: 820px) {
  .shop-directory {
    grid-template-columns: 1fr;
  }

  .shop-group .category-card {
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-group .category-card:hover::after {
    translate: none;
  }
}

.service-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 12px;
}

.service-detail-links .text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #abcdd9;
  border-radius: 8px;
  background: #fff;
  color: #0b5068;
  text-decoration: none;
}

.service-detail-links .text-link:hover {
  border-color: #27839d;
  background: #e7f7fc;
  text-decoration: underline;
}

.service-card, .quote-card, .category-card, .product-card, .care-section .plan {
  box-shadow: 0 4px 16px #103b560c;
}

.service-card:focus-within, .category-card:focus-within,
.product-card:focus-within, .care-section .plan:focus-within {
  border-color: #147c99;
}

.main-nav a, .person-badge, .text-link .arrow, .care-section .plan,
.service-card, .contact-option, .product-card, .category-card,
.service-card .icon, .contact-option .icon, .category-card .icon {
  transition: background-color .18s ease, box-shadow .18s ease,
    border-color .18s ease, color .18s ease, transform .18s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .person-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 21px 42px #04132760;
  }

  .text-link .arrow {
    display: inline-block;
  }

  .text-link:hover .arrow {
    transform: translateX(4px);
  }

  .care-section .plan:hover {
    box-shadow: 0 11px 30px #103b5620;
    border-color: #268eaa;
  }

  main :is(.service-card, .contact-option, .category-card, .product-card):hover {
    transform: translateY(-3px);
    border-color: #82b8ca;
    box-shadow: 0 12px 28px #12385820;
  }

  :is(.service-card, .contact-option, .category-card):hover .icon {
    transform: translateY(-2px) scale(1.08);
    background-color: #cceffc;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main details[open] > summary ~ * {
    animation: detail-arrival .24s ease-out both;
  }
}

@keyframes detail-arrival {
  from { translate: 0 -3px; opacity: .88; }
  to { translate: 0 0; opacity: 1; }
}

@media (max-width: 860px) {
  .hero h1 {
    font-size: clamp(3.05rem, 7vw, 4.5rem);
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2.72rem, 10.8vw, 4.1rem);
  }

  .hero-person::before {
    inset-inline-end: -6px;
  }

  .page-intro .hero-circuits {
    opacity: .45;
  }
}

@media print {
  .hero-circuits, .hero::before, .hero::after, .hero-person::before,
  .page-intro::before {
    display: none;
  }

  .hero, .page-intro {
    background: white;
  }

  .reviews-flow .quote-card:not(.quote-feature) {
    background: white;
    color: black;
  }

  .hero h1 em, .hero .lead, .hero .hero-note, .hero .local-service-label,
  .page-intro h1, .page-intro .lead, .page-intro .eyebrow,
  .page-intro .breadcrumbs, .page-intro .breadcrumbs a {
    color: black;
  }
}
