/* ==========================================================================
   Shared FAQ section for individual service detail pages.
   Markup: section.svc-faq > .svc-faq-inner > .svc-faq-head + .svc-faq-list
   Loaded after the page styles and responsive.css so every service page
   renders the same FAQ on desktop, tablet and mobile.
   ========================================================================== */

.svc-faq {
  --svc-faq-navy: var(--mrn-navy-800, #1e1b4b);
  --svc-faq-orange: var(--mrn-orange-600, #ea580c);
  --svc-faq-muted: #475569;
  --svc-faq-pad-x: 26px;
  --svc-faq-pad-y: 22px;

  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 24px;
  background: transparent;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.svc-faq *,
.svc-faq *::before,
.svc-faq *::after {
  box-sizing: border-box;
}

.svc-faq .svc-faq-inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
}

/* ---------- Heading ---------- */
.svc-faq .svc-faq-head {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0;
  text-align: center;
}

.svc-faq .svc-faq-title {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: var(--mrn-type-section, 1.85rem);
  font-weight: 700;
  line-height: var(--mrn-leading-title, 1.22);
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--svc-faq-navy);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.svc-faq .svc-faq-subtitle {
  max-width: 640px;
  margin: 12px auto 0;
  padding: 0;
  font-weight: 400;
  text-align: center;
  color: var(--svc-faq-muted);
}

/* ---------- Accordion ---------- */
.svc-faq .svc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.svc-faq .svc-faq-item {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 27, 75, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(30, 27, 75, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.svc-faq .svc-faq-item[open] {
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: 0 18px 42px rgba(30, 27, 75, 0.08);
}

.svc-faq .svc-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: var(--svc-faq-pad-y) var(--svc-faq-pad-x);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  color: var(--svc-faq-navy);
  cursor: pointer !important;;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.svc-faq .svc-faq-q::-webkit-details-marker {
  display: none;
}

.svc-faq .svc-faq-q::marker {
  content: "";
}

.svc-faq .svc-faq-q:focus-visible {
  outline: 2px solid var(--svc-faq-orange);
  outline-offset: -4px;
  border-radius: 16px;
}

/* Plus / minus toggle drawn in CSS so it does not depend on an icon font */
.svc-faq .svc-faq-q::after {
  content: "";
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.18);
  background-color: rgba(234, 88, 12, 0.1);
  background-image:
    linear-gradient(var(--svc-faq-orange), var(--svc-faq-orange)),
    linear-gradient(var(--svc-faq-orange), var(--svc-faq-orange));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 2px, 2px 14px;
  transition: transform 0.25s ease, background-size 0.25s ease;
}

.svc-faq .svc-faq-item[open] > .svc-faq-q::after {
  background-size: 14px 2px, 2px 0;
  transform: rotate(180deg);
}

.svc-faq .svc-faq-a {
  margin: 0;
  padding: 0 var(--svc-faq-pad-x) var(--svc-faq-pad-y);
  animation: svc-faq-open 0.3s ease both;
}

.svc-faq .svc-faq-a p {
  max-width: none;
  margin: 0;
  padding: 0;
  font-weight: 400;
  text-align: left;
  color: var(--svc-faq-muted);
}

.svc-faq .svc-faq-a p + p {
  margin-top: 12px;
}

.svc-faq .svc-faq-a a {
  color: var(--svc-faq-orange);
  font-weight: 600;
}

@keyframes svc-faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

/* ---------- Optional enquiry card under the questions ---------- */
/* !important + html body: the shared .service-enquiry-card rules in theme.css and
   responsive.css reset its margins with !important */
html body .svc-faq .svc-faq-cta {
  width: 100%;
  margin: 28px 0 0 !important;
}

.svc-faq .svc-faq-cta .svc-faq-cta-btn {
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.24);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .svc-faq .svc-faq-item:hover {
    border-color: rgba(234, 88, 12, 0.28);
  }

  .svc-faq .svc-faq-cta .svc-faq-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.3);
  }
}

/* Pages whose <main> adds its own 20px gutter below 1220px (Public Relations,
   Influencer Marketing): pull the section back out so its gutters match the rest. */
@media (max-width: 1220px) {
  /* max-width: theme.css caps every section at 100% on phones */
  html body .svc-faq.svc-faq--in-padded-main {
    width: auto;
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .svc-faq {
    padding: 64px 24px;
  }

  .svc-faq .svc-faq-head {
    margin-bottom: 32px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .svc-faq {
    --svc-faq-pad-x: 18px;
    --svc-faq-pad-y: 16px;
    padding: 44px 16px;
  }

  .svc-faq .svc-faq-head {
    margin-bottom: 24px;
  }

  .svc-faq .svc-faq-list {
    gap: 12px;
  }

  .svc-faq .svc-faq-item {
    border-radius: 14px;
  }

  .svc-faq .svc-faq-q {
    gap: 12px;
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .svc-faq .svc-faq-q::after {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    background-size: 12px 2px, 2px 12px;
  }

  .svc-faq .svc-faq-item[open] > .svc-faq-q::after {
    background-size: 12px 2px, 2px 0;
  }

  html body .svc-faq .svc-faq-cta {
    margin-top: 20px !important;
  }
}

@media (max-width: 380px) {
  .svc-faq {
    --svc-faq-pad-x: 14px;
    --svc-faq-pad-y: 14px;
    padding: 36px 12px;
  }

  .svc-faq .svc-faq-q {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-faq .svc-faq-a {
    animation: none;
  }

  .svc-faq .svc-faq-item,
  .svc-faq .svc-faq-q::after,
  .svc-faq .svc-faq-cta .svc-faq-cta-btn {
    transition: none;
  }
}
