/* Shared accessibility and motion controls for all pages */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 110;
  padding: 0.625rem 0.875rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-170%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

#main-content {
  scroll-margin-top: 6.5rem;
}

.service-faq-section {
  margin: 4.5rem calc(50% - 50vw) 0;
  padding: 5.5rem max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem)) 4.75rem;
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.service-faq-inner {
  max-width: 74rem;
  margin: 0 auto;
}

.service-faq-eyebrow {
  margin: 0 0 1rem;
  color: #0284c7;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.service-faq-title {
  margin: 0 0 4.25rem;
  color: #0f172a;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.08;
  scroll-margin-top: 8rem;
  text-align: center;
}

.service-faq-list {
  max-width: 74rem;
  margin: 0 auto;
}

.service-faq-item {
  border-bottom: 1px solid #dbe4ee;
}

.service-faq-item summary {
  display: flex;
  min-height: 6.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 0;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.service-faq-item summary::-webkit-details-marker {
  display: none;
}

.service-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #0284c7;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.service-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.service-faq-question {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.service-faq-item p {
  max-width: 60rem;
  margin: -0.25rem 4rem 0 0;
  padding: 0 0 1.75rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .skip-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  a[href="index.html#services"],
  a[href="index.html#sectors"],
  a[href="index.html#about"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #site-nav a[aria-label="Go to homepage"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  a[href="#contact"],
  a[href="index.html#contact"],
  a[href^="mailto:"],
  a[href^="tel:"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #mobile-menu a[href^="mailto:"],
  #mobile-menu a[href^="tel:"] {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }

  footer a[href*="privacy-policy"],
  footer a[href*="terms-conditions"],
  footer a[href*="us.charlestaylor.com"],
  footer a[href^="mailto:"],
  footer a[href^="tel:"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  footer a[aria-label="LinkedIn"],
  footer a[aria-label="Instagram"],
  footer a[aria-label^="Follow us"] {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bio-toggle-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .service-faq-section {
    margin-top: 3rem;
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .service-faq-title {
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
  }

  .service-faq-item summary {
    min-height: 5rem;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .service-faq-question {
    font-size: 1.05rem;
  }

  .service-faq-item summary::after {
    font-size: 1.65rem;
  }

  .service-faq-item p {
    margin-right: 0;
    padding-bottom: 1.35rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Disable fade-in animations on mobile for smooth scrolling */
@media (max-width: 767px) {
  .animate-fade-in-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile "Call Now" button in the fixed header */
.mobile-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.5rem;
  padding: 0.5rem 0.85rem;
  min-height: 40px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: background-color 0.2s ease;
}

/* Make room for the call button next to the logo on small phones */
@media (max-width: 480px) {
  #navbar a[aria-label="Go to homepage"] img {
    height: 1.625rem;
  }
}

@media (max-width: 400px) {
  #navbar a[aria-label="Go to homepage"] img {
    height: 1.5rem;
  }

  .mobile-call-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.65rem;
    gap: 0.3rem;
  }
}

/* Icon-only call button on the narrowest screens */
@media (max-width: 350px) {
  .mobile-call-btn span {
    display: none;
  }

  .mobile-call-btn {
    padding: 0.55rem;
  }

  .mobile-call-btn svg {
    width: 1.1rem;
    height: 1.1rem;
  }
}

.mobile-call-btn:hover,
.mobile-call-btn:focus {
  background: #0369a1;
  color: #ffffff;
}

.mobile-call-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mobile-call-btn {
    display: none;
  }
}
