/* ========================================================================
   GEO SOLUTIONS — SERVICE DETAIL PAGES (shared template)
   Used by: /services/aeo, /services/seo, /services/paid-media,
            /services/organic-social, /services/ai-automations,
            /services/performance-creative, /services/web-engineering,
            /services/analytics-cro

   This file extends studio.css. Service detail pages load:
   tokens + base + components + layout + studio.css + this file.
   ======================================================================== */

/* ===== DEFINITION / WHY IT MATTERS — long-form section ===== */

.service-definition {
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

@media (max-width: 767px) {
  .service-definition {
    padding: var(--space-16) 0;
  }
}

.service-definition__head {
  max-width: 760px;
  margin-bottom: var(--space-8);
}

.service-definition__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin: var(--space-3) 0 0;
  color: var(--color-text-primary);
}

.service-definition__body {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.service-definition__body p {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ===== FAQ — copied from discovery-audit (single source via this file) ===== */

.service-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-8);
  max-width: 880px;
}

.service-faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.service-faq-item:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.service-faq-item__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-6) 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: inherit;
  color: var(--color-text-primary);
  font-size: var(--text-body-lg);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) var(--ease-default);
}

.service-faq-item__trigger:hover {
  color: var(--color-accent);
}

.service-faq-item__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}

.service-faq-item__icon::before,
.service-faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-text-secondary);
  transition: transform var(--duration-base) var(--ease-default);
}

.service-faq-item__icon::before {
  width: 100%;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.service-faq-item__icon::after {
  width: 1.5px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.service-faq-item__trigger[aria-expanded="true"] .service-faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.service-faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-default);
}

.service-faq-item__panel-inner {
  padding: 0 0 var(--space-6) 0;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 70ch;
}

.service-faq-item__trigger[aria-expanded="true"] + .service-faq-item__panel {
  max-height: 800px;
}
