/* A V IT CARE services dropdown and service-anchor enhancements */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 34px 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width .25s ease;
}

.nav-dropdown:hover > summary,
.nav-dropdown > summary:focus-visible,
.nav-dropdown.active > summary,
.nav-dropdown[open] > summary {
  color: var(--primary);
}

.nav-dropdown:hover > summary::after,
.nav-dropdown.active > summary::after,
.nav-dropdown[open] > summary::after {
  width: 100%;
}

.nav-dropdown > summary:focus-visible {
  outline: 3px solid rgba(8, 102, 255, .25);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-dropdown-arrow {
  font-size: 13px;
  transition: transform .2s ease;
}

.nav-dropdown[open] .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  z-index: 1400;
  width: 370px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  transform: translateX(-50%);
  animation: avitcare-nav-dropdown-in .16s ease;
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a[aria-current="page"] {
  background: #eaf2ff;
  color: var(--primary);
}

#digital-marketing,
#video-editing,
#graphic-design {
  scroll-margin-top: 120px;
}

#featured-remote-services .service-category-grid,
#technical-services .service-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#website-supporting-services .service-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
}

@keyframes avitcare-nav-dropdown-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 1100px) {
  .nav-dropdown > summary {
    font-size: 12px;
  }

  #featured-remote-services .service-category-grid,
  #technical-services .service-category-grid,
  #website-supporting-services .service-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-dropdown > summary {
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
  }

  .nav-dropdown > summary::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin: 0 0 7px;
    padding: 5px 0 5px 12px;
    border: 0;
    border-left: 2px solid #bfdbfe;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: none;
    transform: none;
    animation: none;
  }

  .nav-dropdown-menu a {
    padding: 9px 11px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-arrow,
  .nav-dropdown-menu,
  .nav-dropdown > summary::after {
    animation: none;
    transition: none;
  }
}

@media (max-width: 560px) {
  #featured-remote-services .service-category-grid,
  #technical-services .service-category-grid,
  #website-supporting-services .service-category-grid {
    grid-template-columns: 1fr;
  }
}

/* Landing-page alignment, icon system and lightweight motion */

.service-landing-hero,
.remote-services-hero {
  isolation: isolate;
  padding: 64px 0 76px;
}

.service-landing-hero .page-hero-content,
.remote-services-hero .page-hero-content {
  max-width: var(--container);
  text-align: left;
}

.service-landing-hero h1,
.remote-services-hero h1 {
  max-width: 940px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
}

.service-landing-hero p,
.remote-services-hero p {
  max-width: 800px;
  margin: 0;
}

.service-landing-hero .hero-actions,
.remote-services-hero .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.service-landing-hero .btn-light,
.remote-services-hero .btn-light {
  border-color: #bfdbfe;
  background: #fff;
  color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.service-landing-hero .btn-light:hover,
.remote-services-hero .btn-light:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff !important;
}

.btn-with-icon {
  gap: 9px;
}

.btn-symbol {
  display: inline-grid;
  min-width: 18px;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform .25s ease;
}

.btn-with-icon:hover .btn-symbol {
  transform: translateX(3px) scale(1.08);
}

.redesign-button:hover .btn-symbol {
  transform: rotate(150deg) scale(1.08);
}

.service-faq-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-icon {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: #dbeafe;
  color: var(--primary);
  font-size: 15px;
  line-height: 1;
}

.faq-card {
  overflow: hidden;
}

.service-detail-card .service-detail-icon {
  transition: transform .28s ease, box-shadow .28s ease;
}

.faq-card h3 {
  transition: color .25s ease;
}

.faq-card .faq-icon {
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(15, 23, 42, .08);
  transition: transform .28s ease, box-shadow .28s ease;
}

.faq-card:nth-child(6n + 1) .faq-icon {
  background: #e0f2fe;
  color: #0369a1;
}

.faq-card:nth-child(6n + 2) .faq-icon {
  background: #ede9fe;
  color: #6d28d9;
}

.faq-card:nth-child(6n + 3) .faq-icon {
  background: #dcfce7;
  color: #15803d;
}

.faq-card:nth-child(6n + 4) .faq-icon {
  background: #ffedd5;
  color: #c2410c;
}

.faq-card:nth-child(6n + 5) .faq-icon {
  background: #fce7f3;
  color: #be185d;
}

.faq-card:nth-child(6n + 6) .faq-icon {
  background: #fef3c7;
  color: #a16207;
}

.faq-card:hover h3 {
  color: var(--primary);
}

.faq-card:hover .faq-icon,
.service-detail-card:hover .service-detail-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.08);
  box-shadow: 0 13px 28px rgba(8, 102, 255, .16);
}

@keyframes avitcare-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avitcare-hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, -8px, 0); }
}

.service-landing-hero .eyebrow,
.remote-services-hero .eyebrow {
  animation: avitcare-rise-in .5s ease both;
}

.service-landing-hero h1,
.remote-services-hero h1 {
  animation: avitcare-rise-in .62s .08s ease both;
}

.service-landing-hero p,
.remote-services-hero p {
  animation: avitcare-rise-in .62s .16s ease both;
}

.service-landing-hero .hero-actions,
.remote-services-hero .hero-actions {
  animation: avitcare-rise-in .62s .24s ease both;
}

.service-landing-hero::after,
.remote-services-hero::after {
  animation: avitcare-hero-float 8s ease-in-out infinite;
}

@media (max-width: 720px) {
  .service-landing-hero,
  .remote-services-hero {
    padding: 52px 0 60px;
  }

  .service-landing-hero h1,
  .remote-services-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }
}

@media (max-width: 560px) {
  .service-landing-hero .hero-actions .btn,
  .remote-services-hero .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-landing-hero *,
  .remote-services-hero *,
  .service-landing-hero::after,
  .remote-services-hero::after,
  .faq-card .faq-icon,
  .btn-symbol {
    animation: none !important;
    transition: none !important;
  }
}
