/* ================================================================
   MIC Solutions — Brand Design System
   Color Psychology:
     Navy Blue  #0D2461  → Trust · Professionalism · Authority
     Orange     #F97316  → Action · Energy · Conversion
     White      #FFFFFF  → Clarity · Space · Modernity
   ================================================================ */

/* ── Google Font ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  /* Brand palette */
  --navy:          #0D2461;
  --navy-dark:     #091a48;
  --navy-mid:      #1a3a7a;
  --navy-light:    #1e4db7;
  --navy-ghost:    rgba(13, 36, 97, 0.06);
  --navy-ghost-md: rgba(13, 36, 97, 0.12);

  --orange:        #F97316;
  --orange-dark:   #e05d00;
  --orange-light:  #fb923c;
  --orange-ghost:  rgba(249, 115, 22, 0.08);
  --orange-shadow: rgba(249, 115, 22, 0.30);

  --white:         #FFFFFF;
  --off-white:     #F8FAFF;
  --surface:       #F1F5FD;
  --border:        rgba(13, 36, 97, 0.10);
  --text-primary:  #0D2461;
  --text-body:     #374151;
  --text-muted:    #6B7280;

  /* Typography */
  --font:          'Inter', 'Segoe UI', Arial, sans-serif;

  /* Spacing rhythm */
  --section-py:    96px;
  --card-radius:   18px;
  --btn-radius:    12px;

  /* Shadows */
  --shadow-sm:     0 2px 12px rgba(13,36,97,0.07);
  --shadow-md:     0 8px 30px rgba(13,36,97,0.10);
  --shadow-lg:     0 20px 50px rgba(13,36,97,0.13);
  --shadow-orange: 0 6px 22px var(--orange-shadow);
}

/* ── Global reset / base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0;
}

h1 { font-size: clamp(2rem,   5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem);  font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-body); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ── CTA Buttons (ORANGE — action trigger) ───────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-cta:hover, .btn-cta:focus {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249,115,22,0.40);
  text-decoration: none;
}

.btn-cta:active { transform: translateY(0); }

.btn-cta-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 14px;
}

/* Outline variant — navy border, navy text, orange on hover */
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-cta-outline:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  text-decoration: none;
}

/* Ghost white (for dark backgrounds) */
.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--btn-radius);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-cta-ghost:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Override Bootstrap .btn-primary site-wide → orange */
.btn-primary {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-orange) !important;
  border-radius: var(--btn-radius) !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--orange-dark) !important;
  border-color: var(--orange-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(249,115,22,0.40) !important;
}

/* Override .btn-outline-primary → navy outline */
.btn-outline-primary {
  color: var(--navy) !important;
  border-color: var(--navy) !important;
  background: transparent !important;
  font-weight: 600 !important;
  border-radius: var(--btn-radius) !important;
}

.btn-outline-primary:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  box-shadow: var(--shadow-orange) !important;
}

/* ── Section layout helpers ───────────────────────────────────── */
.section-white  { background: var(--white);     padding: var(--section-py) 0; }
.section-off    { background: var(--off-white);  padding: var(--section-py) 0; }
.section-surface{ background: var(--surface);    padding: var(--section-py) 0; }
.section-navy   { background: var(--navy);       padding: var(--section-py) 0; }

/* ── Pill badge / label ───────────────────────────────────────── */
.badge-navy {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--navy-ghost);
  border: 1px solid var(--navy-ghost-md);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-orange {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--orange-ghost);
  border: 1px solid rgba(249,115,22,0.2);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Cards ───────────────────────────────────────────────────── */
.ds-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.ds-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249,115,22,0.25);
}

/* Service card icon tile */
.ds-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-ghost);
  border: 1px solid var(--navy-ghost-md);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 18px;
  transition: background 0.2s, color 0.2s;
}

.ds-card:hover .ds-card-icon {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* Stat card */
.ds-stat-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ds-stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.ds-stat-number span { color: var(--orange); }

.ds-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Trust badge strip ───────────────────────────────────────── */
.ds-trust-strip {
  background: var(--navy);
  padding: 20px 0;
}

.ds-trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.ds-trust-strip .trust-item i {
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ds-trust-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

/* ── Feature check list ──────────────────────────────────────── */
.ds-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-body);
}

.ds-check-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Navy info panel ─────────────────────────────────────────── */
.ds-navy-panel {
  background: var(--navy);
  border-radius: var(--card-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.ds-navy-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.ds-navy-panel::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(249,115,22,0.08);
}

/* ── Divider with text ───────────────────────────────────────── */
.ds-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 28px 0;
}

.ds-divider::before,
.ds-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Testimonial card ────────────────────────────────────────── */
.ds-testi-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.ds-testi-card .stars { color: var(--orange); font-size: 0.85rem; margin-bottom: 12px; }

.ds-testi-card blockquote {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0 0 16px;
  font-style: italic;
}

.ds-testi-card cite {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  font-style: normal;
}

/* ── CTA banner strip ────────────────────────────────────────── */
.ds-cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ds-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(249,115,22,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ds-cta-banner h2 { color: #fff; }
.ds-cta-banner p  { color: rgba(255,255,255,0.75); }

/* ── Input / form ────────────────────────────────────────────── */
.ds-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.925rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.ds-input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(13,36,97,0.10);
}

.ds-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .ds-navy-panel { padding: 28px 22px; }
  .ds-cta-banner { padding: 40px 24px; }
  .btn-cta-lg { padding: 14px 28px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  :root { --section-py: 48px; }
}

/* ================================================================
   Services Section — Fade-In Slide-Up Animation
   Pure CSS @keyframes, Intersection Observer triggered,
   staggered delays: card 1 → 0s, 2 → 0.2s, 3 → 0.4s, 4 → 0.6s
   ================================================================ */

/* ── Keyframe definition ──────────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Base state: cards start invisible and shifted down ───────── */
.svc-card-anim {
  opacity: 0;
  transform: translateY(40px);
  /* no transition here — animation takes over once .is-visible fires */
}

/* ── Triggered state: card becomes visible ────────────────────── */
.svc-card-anim.is-visible {
  animation: fadeSlideUp 0.6s ease-out forwards;
}

/* ── Staggered delays ─────────────────────────────────────────── */
.svc-card-anim.delay-1 { animation-delay: 0s;   }
.svc-card-anim.delay-2 { animation-delay: 0.2s; }
.svc-card-anim.delay-3 { animation-delay: 0.4s; }
.svc-card-anim.delay-4 { animation-delay: 0.6s; }

/* ── Reduced-motion: respect user accessibility preference ─────── */
@media (prefers-reduced-motion: reduce) {
  .svc-card-anim,
  .svc-card-anim.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
