/* Service landing: speed + mobile UX (burger, FAQ, decorative photos). */

.page-template-service-php .hero-section > header {
  position: relative;
  z-index: 10002;
}

.page-template-service-php .menu-toggle {
  position: relative;
  z-index: 10003;
}

@media (max-width: 768px) {
  .page-template-service-php .header-nav {
    z-index: 10000;
  }

  .page-template-service-php #primary-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 88px 24px 32px;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  .page-template-service-php #primary-menu li a {
    color: #fff;
    font-size: 18px;
    padding: 12px 0;
  }

  .page-template-service-php #primary-menu.is-active {
    transform: translateX(0);
  }
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.menu-overlay.is-active {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* Decorative photos: CSS background on desktop, gone on mobile. */
.page-template-service-php .flex-image--bg {
  display: none;
}

@media (min-width: 769px) {
  .page-template-service-php .flex-image--bg {
    display: block;
    flex: 1 1 320px;
    max-width: 510px;
    min-height: 420px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

@media (max-width: 768px) {
  .page-template-service-php .flex-image,
  .page-template-service-php .contact-map {
    display: none !important;
  }

  .page-template-service-php .full-width-section {
    background-image: none !important;
    background-color: #f3f3f3;
  }

  .page-template-service-php .flex-row {
    gap: 16px;
  }

  .page-template-service-php .hero-slider,
  .page-template-service-php .hero-slide {
    height: auto;
    min-height: 0;
  }

  .page-template-service-php .hero-slide {
    align-items: flex-start;
    padding: 8px 0 36px;
  }

  .page-template-service-php .hero-title {
    font-size: 28px;
  }

  .page-template-service-php .hero-description {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 0;
  }

  .page-template-service-php .hero-content {
    max-width: 100%;
    gap: 20px;
    justify-content: flex-start;
  }

  .page-template-service-php #scrollTopBtn {
    bottom: 16px;
    right: 16px;
    z-index: 20;
  }
}

/* Native details accordion — works without JS on mobile. */
.page-template-service-php .faq-premium {
  width: 100%;
  gap: 12px;
}

.page-template-service-php .faq-premium .faq-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.page-template-service-php .faq-premium .faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 52px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  list-style: none;
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

.page-template-service-php .faq-premium .faq-question::-webkit-details-marker {
  display: none;
}

.page-template-service-php .faq-premium .faq-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #232323;
}

.page-template-service-php .faq-premium .faq-icon {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-right: 2px solid #1420b2;
  border-bottom: 2px solid #1420b2;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.page-template-service-php .faq-premium .faq-item[open] .faq-icon {
  transform: rotate(225deg);
}

.page-template-service-php .faq-premium .faq-answer {
  display: none;
  max-height: none !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
  grid-template-rows: none !important;
}

.page-template-service-php .faq-premium .faq-item[open] .faq-answer {
  display: block;
}

.page-template-service-php .faq-premium .faq-answer-inner {
  padding: 0 18px 18px;
  overflow: visible;
  color: #555;
  font-size: 16px;
  line-height: 1.5;
}

.page-template-service-php .faq-premium .faq-answer-inner p {
  margin: 0 0 10px;
}

.page-template-service-php .faq-premium .faq-answer-inner p:last-child {
  margin-bottom: 0;
}

@media (min-width: 769px) {
  .page-template-service-php .faq-premium .faq-title {
    font-size: 22px;
  }

  .page-template-service-php .faq-premium .faq-answer-inner {
    font-size: 18px;
    padding: 0 24px 24px;
  }
}
