/**
 * Content structure & readability — clearer hierarchy for visitors
 */

/* ─── Section headers (consistent placement) ─── */
.section-intro {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-intro--center {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-soft, #93c5fd);
  margin-bottom: 0.75rem;
}

.section-light .section-eyebrow {
  color: var(--primary, #3b82f6);
}

.section-intro h2 {
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  color: var(--text-on-dark-muted, #94a3b8);
}

.section-light .section-lead {
  color: var(--text-on-light-muted, #64748b);
}

/* ─── Page summary (replaces noisy Quick Answer cards) ─── */
.page-summary-section {
  padding-top: clamp(2rem, 4vw, 3rem) !important;
  padding-bottom: clamp(1.5rem, 3vw, 2rem) !important;
}

.page-summary-card,
.qa-premium-card.page-summary-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 16px !important;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem) !important;
  max-width: 52rem;
  margin: 0 auto !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

.page-summary-card::before,
.qa-premium-card.page-summary-card > div[style*='position: absolute'][style*='gradient(90deg'] {
  display: none !important;
}

.page-summary-card [style*='filter: blur(60px)'],
.qa-premium-card.page-summary-card [style*='filter: blur(60px)'] {
  display: none !important;
}

.page-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-soft, #93c5fd);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

.page-summary-text {
  color: var(--text-on-dark-subtle, #cbd5e1) !important;
  font-size: 1.1rem !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.page-summary-text strong {
  color: var(--text-on-dark, #fff);
  font-weight: 600;
}

/* ─── Readable body copy ─── */
.content-prose {
  max-width: 65ch;
  line-height: 1.75;
}

.content-prose p + p {
  margin-top: 1rem;
}

/* ─── Service / content sections rhythm ─── */
main > section.section {
  scroll-margin-top: 90px;
}

main .media-block {
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Card grids — equal visual weight */
.grid.grid-3 {
  align-items: stretch;
}

.grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid .card .card-text {
  flex: 1;
}

.grid .card .card-link {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Hero — tighter message hierarchy */
.hero .hero-text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  max-width: 32rem;
}

/* FAQ — clearer separation */
.accordion-item {
  margin-bottom: 0.75rem;
}

/* Insights / dynamic cards */
#latest-insights-grid .card,
#blog-grid .card {
  min-height: 100%;
}

/* Trust strip (homepage etc.) */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 2.5rem) 1rem;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  background: var(--surface-dark-elevated, #0c0c14);
}

.trust-strip-item {
  text-align: center;
  min-width: 120px;
}

.trust-strip-item strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-display, 'Outfit', sans-serif);
  color: var(--text-on-dark);
  line-height: 1.2;
}

.trust-strip-item span {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

/* ─── Auto-style common centered section headers (legacy markup) ─── */
.section-dark > .container > div[style*='text-align: center'] > h2,
.section-light > .container > div[style*='text-align: center'] > h2 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-dark > .container > div[style*='text-align: center'] > p,
.section-light > .container > div[style*='text-align: center'] > p:not(.section-lead) {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-on-dark-muted, #94a3b8);
}

.section-light > .container > div[style*='text-align: center'] > p {
  color: var(--text-on-light-muted, #64748b);
}

.section-dark > .container > div[style*='text-align: center'],
.section-light > .container > div[style*='text-align: center'] {
  margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

/* ─── Service / capability cards (about, expertise) ─── */
.grid .creative-card,
.grid.grid-3 .creative-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border-dark, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.section-light .creative-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.creative-card .icon-box {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--primary, #3b82f6);
  font-size: 1.25rem;
}

.section-light .creative-card .icon-box {
  background: rgba(59, 130, 246, 0.08);
}

.creative-card .card-title {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.creative-card .card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

@media (hover: hover) {
  .creative-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(255, 255, 255, 0.05);
  }

  .section-light .creative-card:hover {
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.1);
  }
}

/* ─── Service cards — consistent imagery ─── */
.card .card-image {
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem !important;
  overflow: hidden;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.2);
}

.card .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .card:hover .card-image img {
    transform: scale(1.05);
  }
}

a.card {
  text-decoration: none;
  color: inherit;
}

a.card .card-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
}

a.card .card-link {
  color: var(--primary, #3b82f6);
  font-size: 0.9rem;
}

/* ─── Media blocks (image + copy) ─── */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.media-block.reversed {
  direction: rtl;
}

.media-block.reversed > * {
  direction: ltr;
}

.media-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.media-image img {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.media-content .lead {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.media-content p {
  line-height: 1.75;
  color: var(--text-on-dark-muted, #94a3b8);
}

.section-light .media-content p {
  color: var(--text-on-light-muted, #64748b);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #3b82f6);
}

/* ─── FAQ layout ─── */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-intro h2 {
  text-align: left !important;
}

.faq-intro h2::after {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.faq-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted, #94a3b8);
}

.section-dark .accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.65rem !important;
}

.section-dark .accordion-header {
  padding: 1.1rem 1.25rem !important;
}

.section-dark .accordion-body {
  padding: 0 1.25rem 1.25rem !important;
}

.section-dark .accordion-body p {
  line-height: 1.7;
  font-size: 0.98rem;
}

/* ─── Testimonials ─── */
.testimonial-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-dark) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: none !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card p[style*='font-style: italic'] {
  flex: 1;
  font-style: normal !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: var(--text-on-dark-subtle, #cbd5e1) !important;
}

/* ─── Process / numbered steps ─── */
.section-dark .grid.grid-3 > .card h3[style*='#3b82f6'],
.section-dark .grid.grid-3 > .card h3[style*='color: #3b82f6'] {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.2rem;
}

/* ─── Service page: light “Quick Answer” callout ─── */
.section-light.theme-light > .container > div[style*='max-width: 800px'],
.section-light.theme-light > .container > div[style*='max-width:800px'] {
  max-width: 52rem !important;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.section-light .section-eyebrow,
.section-light span[style*='Quick Answer'] {
  /* badge already styled on dark; on light sections */
}

.section-light span[style*='Quick Answer'] {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--primary, #3b82f6) !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* ─── Final CTA presentation ─── */
.page-cta-banner .container,
.has-cta-bg .container {
  text-align: center;
}

.page-cta-banner h2,
.has-cta-bg h2 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.page-cta-lead {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Latest insights header row ─── */
.section-dark > .container > div[style*='justify-content: space-between'] {
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-dark > .container > div[style*='justify-content: space-between'] h2 {
  text-align: left;
  margin-bottom: 0.25rem;
}

.section-dark > .container > div[style*='justify-content: space-between'] h2::after {
  margin-left: 0;
  margin-right: auto;
}

/* ─── Container width rhythm ─── */
.container {
  width: min(100% - 2rem, 72rem);
  margin-left: auto;
  margin-right: auto;
}

/* Hide decorative orbs in summary cards (cleaner look) */
.page-summary-card > div[style*='blur(60px)'] {
  display: none !important;
}

@media (max-width: 992px) {
  .media-block,
  .media-block.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-intro--center {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .trust-strip {
    gap: 1.25rem 2rem;
  }

  .creative-card {
    padding: 1.35rem;
  }
}
