/* eWEB TEC layout restore — 14 Aug 2026
 *
 * Tailwind v4 purged .my-8 / .my-6 / .mt-8 / .space-y-2 / .pt-28 from
 * index-DD2G7zBw.css. The SEO content pass used those classes, so citable
 * cards sat flush on hero CTAs and AI pages collapsed into a document dump.
 *
 * This file restores the original service-page rhythm (gaps, cards, tables)
 * without deleting any of the new copy.
 */

/* ---------- purged utilities the content pass still uses ---------- */
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.pt-28 { padding-top: 7rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* ---------- citable / answer cards never touch buttons ---------- */
.seo-direct-answer,
.seo-key-facts {
  margin-top: 1.75rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
}

.seo-key-facts + .flex,
.seo-key-facts + div.flex,
.seo-direct-answer + .flex,
.seo-hero-ctas {
  margin-top: 0.25rem;
}

/* Service heroes: facts sit under the original CTA row */
.seo-hero-after-cta,
.flex.flex-col.sm\:flex-row.gap-4.justify-center + .seo-key-facts {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* ---------- AI / article lead: two columns on desktop ---------- */
.seo-lead-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 2.75rem;
  align-items: stretch;
}
.seo-lead-grid > .seo-direct-answer,
.seo-lead-grid > .seo-key-facts {
  margin: 0;
  height: 100%;
}
@media (min-width: 900px) {
  .seo-lead-grid {
    grid-template-columns: 1.25fr 0.85fr;
  }
}

/* ---------- comparison tables: stop "Start here if" wrapping ---------- */
.overflow-x-auto {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}
.overflow-x-auto table {
  min-width: 36rem;
  border-collapse: collapse;
}
.overflow-x-auto table th,
.overflow-x-auto table td {
  padding: 0.9rem 1.1rem;
  vertical-align: top;
  line-height: 1.45;
}
.overflow-x-auto table th:first-child,
.overflow-x-auto table td:first-child {
  white-space: nowrap;
  min-width: 8.5rem;
  font-weight: 600;
  color: #f8fafc;
}
.overflow-x-auto table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- article / AI service pages: original section rhythm ---------- */
.page-article {
  max-width: 68rem !important;
}
.page-article > h1 {
  letter-spacing: -0.02em;
}
.page-article > h2,
.page-article section > h2 {
  margin-top: 3.25rem;
  margin-bottom: 1.15rem;
  padding-top: 0.25rem;
}
.page-article > h2:first-of-type {
  margin-top: 2.25rem;
}
.page-article > p,
.page-article > ul,
.page-article > ol {
  max-width: 48rem;
}
.page-article > ul.list-disc,
.page-article > ol.list-decimal {
  margin-bottom: 1.75rem;
}
.page-article > ul.list-disc > li,
.page-article > ol.list-decimal > li {
  margin-top: 0.55rem;
  line-height: 1.6;
}
.page-article .grid {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.page-article figure {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}
.page-article .p-6.bg-card,
.page-article .p-6.rounded-2xl {
  padding: 1.75rem;
}

/* Hero CTAs on AI pages — same size as original service heroes */
.seo-hero-ctas a {
  min-height: 3.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Mid-page CTA cards keep the original p-8 rounded-2xl feel */
.page-article section.p-8,
.page-article section[aria-labelledby^="cta-"] {
  margin-top: 2.75rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
}

/* Related cluster + FAQ breathing room */
.seo-related-cluster {
  margin-top: 3rem;
}
.page-article [itemtype*="FAQPage"] > div,
article [itemtype*="FAQPage"] > div {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Blog articles: restore list gaps the purge removed */
article.container ul.list-disc > li,
article.container ol.list-decimal > li {
  margin-top: 0.5rem;
  line-height: 1.6;
}
article.container h2 {
  margin-top: 2.5rem;
}

/* Breadcrumb strip that used purged pt-28 */
main > .container.pt-28 {
  padding-top: 7rem;
}

/* Working FAQ accordion (native <details> — no React/Radix) */
.faq-list {
  max-width: 48rem;
}
.faq-item {
  border-bottom: 1px solid hsl(var(--border));
}
.faq-item > summary.faq-q,
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-right: 2px solid hsl(var(--muted-foreground));
  border-bottom: 2px solid hsl(var(--muted-foreground));
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.2s ease;
}
.faq-item[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}
.faq-item > summary:hover { color: hsl(var(--primary)); }
.faq-item .faq-a,
.faq-item p[itemprop="text"] {
  padding-bottom: 1rem;
  line-height: 1.65;
}
