/* ai-aeo.css — shared AEO/AI-ready section styles for Oshun site-v2.
   Pattern matches about.html (2026-05-04 redesign) and rolls across all 46 service pages.
   Palette uses Oshun tokens: navy #0d1e43 / blue #1e3a8a / gold #C4975C / cream #fef7f0.
   Source-of-truth: AI_Solutions/Oshun/site-v2/about.html (2026-05-03 baseline).
*/

.ai-section { padding: 4rem 1.5rem; }
.ai-section:nth-of-type(odd)  { background: #fef7f0; }
.ai-section:nth-of-type(even) { background: #fff; }
.ai-section.ai-section--alt   { background: #f9fafb; }
.ai-section .container { max-width: 980px; margin: 0 auto; padding: 0; }

.ai-section h2 {
  font-family: 'Playfair Display', serif; font-size: 2rem; color: #1e3a8a;
  margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.ai-section h2::after {
  content: ''; display: block; width: 48px; height: 3px; background: #C4975C;
  margin-top: 0.85rem; margin-bottom: 1.5rem;
}
.ai-intro-lead {
  font-size: 1.08rem; color: #334155; max-width: 760px; line-height: 1.75;
}

/* Specs table — clean replacement for inline-styled .specs-table.service-details */
.ai-specs-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 2rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 30, 67, 0.04);
}
.ai-specs-table caption {
  caption-side: top; text-align: left; padding: 1rem 1.25rem; font-size: 0.85rem;
  font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.06em;
  background: #fafaf7; border-bottom: 1px solid #e5e7eb;
}
.ai-specs-table th, .ai-specs-table td {
  padding: 0.95rem 1.25rem; text-align: left; vertical-align: top;
}
.ai-specs-table th {
  font-family: 'Inter', sans-serif; font-weight: 600; color: #0d1e43; width: 32%;
  border-bottom: 1px solid #f1f5f9; background: #fcfaf6;
}
.ai-specs-table td {
  color: #334155; border-bottom: 1px solid #f1f5f9;
}
.ai-specs-table tr:last-child th, .ai-specs-table tr:last-child td { border-bottom: 0; }

/* Differentiator card grid (Why Choose / USPs) */
.ai-card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.ai-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.ai-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #C4975C; transform: scaleY(0.4); transform-origin: top;
  transition: transform 0.3s;
}
.ai-card:hover {
  transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13, 30, 67, 0.08);
  border-color: #C4975C;
}
.ai-card:hover::before { transform: scaleY(1); }
.ai-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #0d1e43;
  margin-bottom: 0.6rem; line-height: 1.3;
}
.ai-card p { color: #475569; line-height: 1.7; font-size: 0.97rem; }

/* Use-case grid (Ideal For) */
.ai-use-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem;
}
.ai-use-card {
  background: #faf7f3; border: 1px solid #ecdec9; border-left: 3px solid #C4975C;
  border-radius: 6px; padding: 1.5rem 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ai-use-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 30, 67, 0.06);
}
.ai-use-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #0d1e43;
  margin-bottom: 0.5rem; line-height: 1.35;
}
.ai-use-card .ai-use-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; color: #C4975C;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.ai-use-card p {
  color: #475569; line-height: 1.7; font-size: 0.94rem; margin: 0;
}

/* FAQ accordion list (replaces inline-styled .faq-item) */
.ai-faq-list { margin-top: 2rem; }
.ai-faq-item {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin: 0.85rem 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-faq-item:hover { border-color: #C4975C; }
.ai-faq-item[open] {
  border-color: #C4975C; box-shadow: 0 4px 12px rgba(13, 30, 67, 0.05);
}
.ai-faq-item summary {
  list-style: none; padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 600;
  color: #0d1e43; font-size: 1rem; position: relative; padding-right: 3rem;
  transition: color 0.2s;
}
.ai-faq-item summary::-webkit-details-marker { display: none; }
.ai-faq-item summary::after {
  content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem; line-height: 1.4rem; text-align: center;
  color: #C4975C; font-size: 1.5rem; font-weight: 300; transition: transform 0.25s;
}
.ai-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ai-faq-item summary:hover { color: #C4975C; }
.ai-faq-content {
  padding: 0 1.4rem 1.3rem; color: #475569; line-height: 1.75; font-size: 0.97rem;
  max-width: 760px;
}
.ai-faq-content a { color: #C4975C; font-weight: 600; }

/* Patient-Stories empty state */
.ai-stories-card {
  max-width: 720px; margin: 2rem auto 0; padding: 2.5rem 2rem; text-align: center;
  background: #fff; border: 1px dashed #C4975C; border-radius: 12px;
}
.ai-stories-card .ai-stories-icon {
  font-size: 1.8rem; color: #C4975C; margin-bottom: 0.5rem;
}
.ai-stories-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #0d1e43;
  margin-bottom: 0.75rem;
}
.ai-stories-card p {
  color: #475569; line-height: 1.75; max-width: 560px; margin: 0 auto 1.5rem;
}
.ai-stories-card .ai-stories-cta {
  display: inline-block; background: #C4975C; color: #fff; padding: 0.85rem 1.75rem;
  border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em; transition: background 0.2s;
}
.ai-stories-card .ai-stories-cta:hover { background: #b8863f; }

/* Scroll-fade reveal */
.ai-reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ai-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 720px) {
  .ai-card-grid, .ai-use-grid { grid-template-columns: 1fr; }
  .ai-section { padding: 3rem 1.25rem; }
  .ai-section h2 { font-size: 1.6rem; }
  .ai-specs-table th { width: 42%; }
  .ai-faq-item summary { padding: 1rem 1.2rem; padding-right: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-reveal { opacity: 1; transform: none; transition: none; }
  .ai-card, .ai-use-card, .ai-faq-item { transition: none; }
}
