/* =============================================
   SLASHNEST — Polish Fixes v2
   ============================================= */

/* FIX 1 — Hero headline size — prevent overflow */
.hero h1 {
  font-size: clamp(36px, 5vw, 62px) !important;
  letter-spacing: -1.5px !important;
}

/* FIX 2 — Section headings across all pages */
.section-heading {
  font-size: clamp(26px, 3.5vw, 40px) !important;
  letter-spacing: -1px !important;
}

/* FIX 3 — Testimonials section top padding */
.testimonials-grid {
  margin-top: 40px !important;
}

.section-dark {
  padding: 80px 0 !important;
}

/* FIX 4 — Service detail headings — prevent awkward wrap */
.service-detail h2 {
  font-size: clamp(22px, 2.5vw, 32px) !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
}

/* FIX 5 — Service visual cards — more visual weight */
.service-visual {
  background: linear-gradient(135deg, #1A1A28 0%, #0F1117 60%, #1a1235 100%) !important;
  border: 1px solid rgba(83,74,183,0.25) !important;
  position: relative;
  overflow: hidden;
}

.service-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(83,74,183,0.2) 0%, transparent 70%);
  top: -40px;
  right: -40px;
  border-radius: 50%;
}

.service-visual::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(29,158,117,0.1) 0%, transparent 70%);
  bottom: -30px;
  left: -30px;
  border-radius: 50%;
}

.service-visual-inner {
  position: relative;
  z-index: 1;
}

.service-visual-icon {
  font-size: 52px !important;
  margin-bottom: 20px !important;
  display: block;
  filter: drop-shadow(0 0 20px rgba(83,74,183,0.4));
}

.service-visual h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: white !important;
}

.service-visual p {
  font-size: 13px !important;
  color: rgba(255,255,255,0.4) !important;
  letter-spacing: 0.05em;
}

/* FIX 6 — Service icon boxes on homepage */
.service-icon {
  font-size: 24px !important;
  border-radius: 10px !important;
}

/* FIX 7 — Process numbers on light bg more visible */
.process-num {
  color: rgba(83,74,183,0.15) !important;
  font-size: 52px !important;
}

/* FIX 8 — Testimonial card quote mark size */
.testimonial-card::before {
  font-size: 60px !important;
  opacity: 0.15 !important;
}

/* FIX 9 — Services page detail section spacing */
.service-detail {
  padding: 60px 0 !important;
}

/* FIX 10 — Page hero padding tighter */
.page-hero {
  padding: 140px 0 60px !important;
}

/* FIX 11 — Stats section on contact page */
.stats-section .stat-number {
  font-size: clamp(36px, 4vw, 56px) !important;
}

/* FIX 12 — Footer contact items line height */
.footer-contact-item {
  line-height: 1.5 !important;
  margin-bottom: 14px !important;
  align-items: center !important;
}

/* FIX 13 — Mobile hero fix */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px !important;
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 48px) !important;
    letter-spacing: -1px !important;
  }
  .hero-sub {
    font-size: 16px !important;
  }
  .section-heading {
    font-size: clamp(24px, 6vw, 36px) !important;
  }
  .service-detail {
    gap: 32px !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  .stat-number {
    font-size: 40px !important;
  }
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .case-study {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .values-grid {
    grid-template-columns: 1fr !important;
  }
  .about-story {
    grid-template-columns: 1fr !important;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .marquee-item {
    padding: 0 24px !important;
    font-size: 12px !important;
  }
  .nav-logo-mark {
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important;
  }
  .nav-logo {
    font-size: 18px !important;
  }
  .cta-section h2 {
    font-size: clamp(28px, 7vw, 42px) !important;
    letter-spacing: -1px !important;
  }
  .hero-trust {
    gap: 16px !important;
  }
  .trust-item {
    font-size: 12px !important;
  }
  .service-visual {
    min-height: 220px !important;
  }
  .contact-form-wrap {
    padding: 28px 20px !important;
  }
  .about-stats-mini {
    grid-template-columns: 1fr 1fr !important;
  }
  .mini-stat {
    padding: 18px !important;
  }
  .mini-stat-num {
    font-size: 28px !important;
  }
}

/* FIX 14 — Scrollbar hidden on mobile */
@media (max-width: 768px) {
  .marquee-section {
    overflow: hidden !important;
  }
}

/* FIX 15 — Nav CTA visible on tablet */
@media (min-width: 769px) and (max-width: 900px) {
  .nav-links {
    gap: 20px !important;
  }
  .nav-links a {
    font-size: 13px !important;
  }
  .nav-cta {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}

/* FIX 16 — Service includes list items */
.service-includes li {
  padding: 10px 0 !important;
}

/* FIX 17 — Contact detail icons center properly */
.contact-detail-icon {
  font-size: 16px !important;
  flex-shrink: 0 !important;
}

/* FIX 18 — Case study visuals */
.case-visual {
  min-height: 300px !important;
}

/* FIX 19 — Value cards on about page */
.value-card {
  padding: 28px !important;
}

/* FIX 20 — Button hover states sharper */
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(83,74,183,0.35) !important;
}

/* =============================================
   FIX 21 — TEXT / BACKGROUND CONTRAST
   Cause: ".section .section-sub" in style.css forced ALL sub-text
   to white (--white-70), making body text invisible on light/white
   sections. These rules restore correct contrast per background.
   ============================================= */

/* Light & white sections: dark heading, readable mid-tone body text */
.section-light .section-heading,
.section-white .section-heading { color: var(--text-dark) !important; }

.section-light .section-sub,
.section-white .section-sub { color: var(--text-mid) !important; }

/* Dark sections: keep headings + sub-text light */
.section-dark .section-heading { color: var(--white) !important; }
.section-dark .section-sub { color: var(--white-70) !important; }

/* Plain dark .section (no light/white modifier) headings stay light */
.section:not(.section-light):not(.section-white) .section-heading { color: var(--white) !important; }

/* Safety: CTA headline always light on its dark background */
.cta-section h2 { color: var(--white) !important; }
