/* =========================================================
   RankDigit — unified page & section theme (loads after style.css)
   ========================================================= */

.main-wrapper {
  background: var(--body);
  min-height: 100vh;
}

/* Single source of truth for inner page heroes (overrides duplicate rules) */
.page-banner {
  background: linear-gradient(180deg, var(--primary-subtle) 0%, var(--body) 100%) !important;
  border-bottom: 1px solid var(--border);
  padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 56px) !important;
}

.page-banner h1 {
  font-weight: var(--heading-weight);
}

/* Pre-footer CTA sits on body background, card uses brand gradient */
.contact-cta1 {
  padding: clamp(32px, 5vw, 56px) 0;
  background: var(--body);
}

.contact-cta1 .cta-box {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

/* Reusable section header (match service / home patterns) */
.theme-section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(32px, 4vw, 56px);
}

.theme-section-head p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.theme-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.theme-section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
  color: var(--heading);
}

.theme-section-head h2 .theme-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Industry / about hero alignment */
.industry-hero-section,
.blog-hero-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 137, 200, 0.08), transparent 38%),
    linear-gradient(180deg, var(--white) 0%, var(--body) 100%) !important;
  border-bottom: 1px solid var(--border);
  padding: clamp(72px, 9vw, 100px) 0 clamp(48px, 6vw, 72px) !important;
}

/* Cards sit on themed surfaces */
.contact-box,
.service-card,
.blog-card {
  background: var(--card-bg);
  border-color: var(--border);
}

/* Footer: ensure Bootstrap utilities don’t clash */
.footer-area .text-primary {
  color: var(--footer-accent) !important;
}

.footer-area ul li.active > a {
  color: var(--footer-link-hover);
  font-weight: 600;
}

/* =========================================================
   Alternating section surfaces (applied via JS: initSectionSurfaces)
   Hero + stats keep their own look; others: white → body → white …
   ========================================================= */

.main-wrapper > section.section-surface-white {
  background-color: var(--white) !important;
}

.main-wrapper > section.section-surface-muted {
  background-color: var(--body) !important;
}

.main-wrapper > section.stats-section {
  background: var(--gradient) !important;
}

/* =========================================================
   Blog & industry cards — smooth hover (no image zoom/jitter)
   ========================================================= */

.blog-card,
.industry-card {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.blog-card:hover,
.industry-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(22, 137, 200, 0.28);
  box-shadow: 0 14px 32px rgba(22, 137, 200, 0.1);
}

.blog-card-image,
.industry-card-image {
  overflow: hidden;
  line-height: 0;
  background: var(--section);
  isolation: isolate;
}

.blog-card-image img,
.industry-card-image img {
  transform: none !important;
  transition: none !important;
}

.blog-card:hover .blog-card-image img,
.industry-card:hover .industry-card-image img {
  transform: none !important;
}

.service-card {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(22, 137, 200, 0.28);
  box-shadow: 0 14px 32px rgba(22, 137, 200, 0.1);
}
