/* ==========================================================================
   SEO Services — Page-specific Styles
   ========================================================================== */

/* --- SEO Pillars Grid --- */
.pillars {
  padding: var(--space-16) 0;
}

.pillars__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.pillars__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.pillars__desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.pillars__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
}

.pillars__grid > * {
  flex: 0 0 calc(33.333% - var(--space-6) * 2 / 3);
  min-width: 280px;
}

/* --- AEO / GEO Explainer Sections --- */
.explainer-section {
  padding: var(--space-16) 0;
}

.explainer-section--reversed .explainer-section__grid {
  direction: rtl;
}

.explainer-section--reversed .explainer-section__grid > * {
  direction: ltr;
}

.explainer-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.explainer-section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.explainer-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.explainer-section__text {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.explainer-section__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.explainer-section__list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-ink);
  padding: var(--space-2) 0;
}

.explainer-section__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.explainer-section__visual {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

/* --- Stat Cards (inside explainer visuals) --- */
.explainer-section__stat-card {
  text-align: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.explainer-section__stat-card:last-child {
  border-bottom: none;
}

.explainer-section__stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.explainer-section__stat-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* --- Tools Showcase --- */
.tools-section {
  padding: var(--space-16) 0;
}

.tools-section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.tools-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-8);
}

.tools-section__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.tool-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: box-shadow var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card__icon {
  font-size: 28px;
  margin-bottom: var(--space-2);
}

.tool-card__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
}

.tool-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #FEF2F2;
  color: var(--color-primary);
  margin-top: var(--space-2);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .pillars__grid > * {
    flex: 0 0 calc(50% - var(--space-6) / 2);
    min-width: 240px;
  }

  .tools-section__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .explainer-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .explainer-section--reversed .explainer-section__grid {
    direction: ltr;
  }
}

@media (max-width: 639px) {
  .pillars__grid > * {
    flex: 0 0 100%;
  }

  .tools-section__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
