/* ============================================================
   RM3A Upgrade — Premium Cyber Agency Look  v1.1
   Conservative approach: enhance without breaking existing layout
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --rm3a-dark: #0a1628;
  --rm3a-dark-alt: #0f1f36;
  --rm3a-accent: #D74728;
  --rm3a-accent-glow: rgba(215, 71, 40, 0.45);
  --rm3a-blue: #1a8fff;
  --rm3a-text-light: #e2e8f0;
  --rm3a-text-muted: #94a3b8;
  --rm3a-radius: 14px;
  --rm3a-transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Global Typography ---------- */
body,
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif !important;
  letter-spacing: -0.03em;
  line-height: 1.15 !important;
}

h1, .elementor-widget-heading .elementor-heading-title.elementor-size-xxl,
.elementor-widget-heading .elementor-heading-title.elementor-size-xl {
  font-weight: 700 !important;
  font-size: clamp(2.5rem, 5vw, 3.8rem) !important;
}

h2, .elementor-widget-heading .elementor-heading-title.elementor-size-large,
.elementor-widget-heading .elementor-heading-title.elementor-size-lg {
  font-weight: 600 !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
}

h3, .elementor-widget-heading .elementor-heading-title.elementor-size-medium {
  font-weight: 500 !important;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important;
}

/* ---------- CTA Buttons — glow effect ---------- */
.elementor-button,
.elementor-widget-button .elementor-button {
  border-radius: 50px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: all var(--rm3a-transition) !important;
}

.elementor-button:hover,
.elementor-widget-button .elementor-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px var(--rm3a-accent-glow) !important;
}

/* ---------- Service Cards — subtle hover ---------- */
.elementor-widget-image-box .elementor-image-box-wrapper,
.elementor-widget-icon-box .elementor-icon-box-wrapper {
  transition: all var(--rm3a-transition) !important;
  border-radius: var(--rm3a-radius) !important;
}

.elementor-widget-image-box .elementor-image-box-wrapper:hover,
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
}

/* ---------- Navbar — solid on scroll ---------- */
.elementor-location-header,
header.elementor-location-header {
  transition: background var(--rm3a-transition), box-shadow var(--rm3a-transition) !important;
}

.elementor-location-header.rm3a-scrolled,
header.elementor-location-header.rm3a-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important;
}

/* ---------- Key Figures Bar ---------- */
.rm3a-stats-bar {
  background: var(--rm3a-dark);
  padding: 48px 0;
  border-bottom: 1px solid rgba(26,143,255,0.1);
}

.rm3a-stats-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.rm3a-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rm3a-stat__number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--rm3a-accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.rm3a-stat__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--rm3a-text-muted);
  font-weight: 500;
}

/* ---------- Testimonials Section ---------- */
.rm3a-testimonials {
  background: #f8fafc;
  padding: 80px 0;
}

.rm3a-testimonials__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  color: var(--rm3a-dark);
  margin-bottom: 48px;
  letter-spacing: -0.03em;
}

.rm3a-testimonials__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rm3a-testimonial-card {
  background: #ffffff;
  border-radius: var(--rm3a-radius);
  padding: 36px 32px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  transition: all var(--rm3a-transition);
}

.rm3a-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.rm3a-testimonial-card__quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--rm3a-accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  left: 24px;
}

.rm3a-testimonial-card__text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 24px;
}

.rm3a-testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rm3a-testimonial-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--rm3a-dark);
}

.rm3a-testimonial-card__role {
  font-size: 0.85rem;
  color: var(--rm3a-text-muted);
}

/* ---------- AOS overrides ---------- */
[data-aos] {
  transition-timing-function: cubic-bezier(.4,0,.2,1) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .rm3a-stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .rm3a-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rm3a-testimonial-card {
    padding: 28px 24px 24px;
  }

  .rm3a-stats-bar {
    padding: 32px 0;
  }

  .rm3a-testimonials {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .rm3a-stats-bar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .rm3a-stat__number {
    font-size: 2rem;
  }
}

/* ---------- Smooth scroll behavior ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Selection highlight ---------- */
::selection {
  background: var(--rm3a-accent);
  color: #fff;
}
