/* UPNAC — Card & section text readability (light + dark theme) */

/* ─── Photo / image cards: solid readable body ─── */
.service-card-visual-body,
.home-bento-body,
.img-box-body,
.region-card-visual,
.intl-standard-card-visual,
.process-step-visual,
.marketing-card-visual {
  position: relative;
  z-index: 1;
  background: #fff;
}

.service-card-visual-body h3,
.service-card-visual-body h3 a,
.home-bento-body h3,
.img-box-body h3,
.region-card-visual h3,
.intl-standard-card-visual h3,
.process-step-visual h3,
.marketing-card-visual h3 {
  color: var(--navy-900, #0f172a);
}

.service-card-visual-body p,
.home-bento-body p,
.img-box-body p,
.region-card-visual p,
.intl-standard-card-visual p,
.process-step-visual p,
.marketing-card-visual p {
  color: var(--slate-600, #475569);
}

.service-card-visual-body .link-arrow,
.home-bento-tile .link-arrow,
.img-box-card .link-arrow {
  color: var(--blue-600, #2563eb);
}

/* Badge on image — not giant watermark */
.service-card-visual .card-num {
  top: 12px;
  right: 12px;
  left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  opacity: 1;
  letter-spacing: 0.06em;
  font-family: var(--font-display, 'Outfit', sans-serif);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.service-card-visual .service-visual-overlay,
.home-bento-shine,
.img-box-overlay {
  pointer-events: none;
}

/* Guarantee cards (dark section) */
.guarantee-card-visual {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guarantee-card-visual h3 {
  color: #f8fafc;
  padding-top: 0.25rem;
}

.guarantee-card-visual p {
  color: #94a3b8;
}

/* Standards icon overlap — keep title below icon */
.intl-standard-card-visual h3 {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

/* Global delivery steps on light sections */
.global-delivery-step {
  background: #fff;
  color: var(--navy-900, #0f172a);
}

.global-delivery-step h3 {
  color: var(--navy-900, #0f172a);
}

.global-delivery-step p {
  color: var(--slate-600, #475569);
}

/* VS cards — explicit text colors */
.vs-card {
  color: var(--navy-900, #0f172a);
}

.vs-card h3 {
  color: var(--navy-900, #0f172a);
}

.vs-card li {
  color: var(--slate-600, #475569);
}

.vs-others {
  background: #f1f5f9;
}

/* Dev metric cards */
.dev-metric-card {
  background: #fff;
}

.dev-metric-card h3,
.dev-metric-card p,
.metric-val {
  color: var(--navy-900, #0f172a);
}

.dev-metric-card p {
  color: var(--slate-500, #64748b);
}

/* Testimonials — only on dark sections */
.section-dark .testimonial-card,
.section-dark .testimonial-card-pro {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-dark .testimonial-card p {
  color: #e2e8f0;
}

.section-dark .testimonial-card footer strong {
  color: #f8fafc;
}

.section-dark .testimonial-card footer span {
  color: #94a3b8;
}

/* Homepage: don't wash out testimonial cards */
.page-home .section-dark .testimonial-card {
  background: rgba(15, 23, 42, 0.78);
}

/* ─── Blog cards (Latest Insights) on light background ─── */
.section:not(.section-dark) .blog-card.blog-card-pro,
.page-home .blog-card-pro,
.page-inner .blog-card-pro {
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  color: var(--navy-900, #0f172a);
}

.section:not(.section-dark) .blog-card-pro-body,
.page-home .blog-card-pro-body,
.page-inner .blog-card-pro-body {
  background: #fff;
}

.section:not(.section-dark) .blog-card-pro-body h2 a,
.page-home .blog-card-pro-body h2 a,
.page-inner .blog-card-pro-body h2 a {
  color: var(--navy-900, #0f172a);
}

.section:not(.section-dark) .blog-card-pro-body p,
.page-home .blog-card-pro-body p {
  color: var(--slate-600, #475569);
}

.section:not(.section-dark) .blog-card-pro .link-arrow,
.page-home .blog-card-pro .link-arrow {
  color: var(--blue-600, #2563eb);
}

.blog-card-pro-date {
  color: #fff !important;
  background: rgba(15, 23, 42, 0.85) !important;
}

/* Dark theme: blog on light sections stays readable */
[data-theme="dark"] .section:not(.section-dark) .blog-card.blog-card-pro,
[data-theme="dark"] .page-home .blog-card-pro {
  background: #fff;
  border-color: var(--slate-200, #e2e8f0);
  color: var(--navy-900, #0f172a);
}

[data-theme="dark"] .section:not(.section-dark) .blog-card-pro-body h2 a,
[data-theme="dark"] .page-home .blog-card-pro-body h2 a {
  color: var(--navy-900, #0f172a);
}

[data-theme="dark"] .section:not(.section-dark) .blog-card-pro-body p,
[data-theme="dark"] .page-home .blog-card-pro-body p {
  color: var(--slate-600, #475569);
}

/* ─── Dark theme: keep photo-card bodies light & readable ─── */
[data-theme="dark"] .service-card.service-card-visual,
[data-theme="dark"] .home-bento-tile,
[data-theme="dark"] .img-box-card.mosaic-tile,
[data-theme="dark"] .region-card-visual,
[data-theme="dark"] .intl-standard-card-visual,
[data-theme="dark"] .process-step-visual,
[data-theme="dark"] .marketing-card-visual {
  background: #fff;
  border-color: var(--slate-200, #e2e8f0);
  color: var(--navy-900, #0f172a);
}

[data-theme="dark"] .service-card-visual-body,
[data-theme="dark"] .home-bento-body,
[data-theme="dark"] .img-box-body {
  background: #fff;
}

[data-theme="dark"] .service-card-visual-body h3,
[data-theme="dark"] .service-card-visual-body h3 a,
[data-theme="dark"] .home-bento-body h3,
[data-theme="dark"] .img-box-body h3,
[data-theme="dark"] .region-card-visual h3,
[data-theme="dark"] .intl-standard-card-visual h3,
[data-theme="dark"] .process-step-visual h3,
[data-theme="dark"] .marketing-card-visual h3 {
  color: var(--navy-900, #0f172a);
}

[data-theme="dark"] .service-card-visual-body p,
[data-theme="dark"] .home-bento-body p,
[data-theme="dark"] .img-box-body p,
[data-theme="dark"] .region-card-visual p,
[data-theme="dark"] .intl-standard-card-visual p,
[data-theme="dark"] .process-step-visual p,
[data-theme="dark"] .marketing-card-visual p {
  color: var(--slate-600, #475569);
}

[data-theme="dark"] .global-delivery-step {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

[data-theme="dark"] .global-delivery-step h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .global-delivery-step p {
  color: #94a3b8;
}

[data-theme="dark"] .dev-metric-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dev-metric-card h3,
[data-theme="dark"] .metric-val {
  color: #f1f5f9;
}

[data-theme="dark"] .dev-metric-card p {
  color: #94a3b8;
}

[data-theme="dark"] .vs-card {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

[data-theme="dark"] .vs-card h3 {
  color: #f8fafc;
}

[data-theme="dark"] .vs-card li {
  color: #cbd5e1;
}

[data-theme="dark"] .vs-others {
  background: rgba(255, 255, 255, 0.03);
}
