/* ============================================================
   RankMarkham Homepage — Dedicated Stylesheet
   White/light theme, enterprise-grade, zero build step.
   ============================================================ */

/* ------------------------------------------------------------------
   1. DESIGN TOKENS (scoped overrides on top of premium.css)
   ------------------------------------------------------------------ */
:root {
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-50:     #f1f5f9;
  --gray-100:    #e2e8f0;
  --gray-200:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gray-900:    #0f172a;

  --blue-50:     #eff6ff;
  --blue-100:    #dbeafe;
  --blue-500:    #3b82f6;
  --blue-600:    #2563eb;
  --blue-700:    #1d4ed8;
  --blue-900:    #1e3a8a;

  --purple-500:  #8b5cf6;
  --purple-600:  #7c3aed;
  --cyan-400:    #22d3ee;
  --cyan-500:    #06b6d4;
  --green-500:   #22c55e;
  --orange-500:  #f97316;
  --pink-500:    #ec4899;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.14);
  --shadow-blue: 0 8px 32px rgba(37,99,235,.25);

  --hp-radius:     12px;
  --hp-radius-lg:  20px;
  --hp-radius-xl:  32px;
  --hp-trans:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------
   2. BODY RESET FOR HOMEPAGE (override dark theme from premium.css)
   ------------------------------------------------------------------ */
body.home-page {
  background: var(--white);
  color: var(--gray-900);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------
   3. HEADER — override for light pages
   ------------------------------------------------------------------ */
body.home-page header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--gray-100);
}

body.home-page header .nav-logo {
  color: var(--blue-600);
}

body.home-page header .nav-link {
  color: var(--gray-700);
}
body.home-page header .nav-link:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

body.home-page header .dropdown-menu {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg);
}

body.home-page header .dropdown-item {
  color: var(--gray-700);
}
body.home-page header .dropdown-item:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

body.home-page header .nav-cta a[href^="tel"] {
  color: var(--gray-500);
}

/* ------------------------------------------------------------------
   4. HOMEPAGE CONTAINERS
   ------------------------------------------------------------------ */
.hp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-section {
  padding: 96px 0;
}

.hp-section-sm {
  padding: 64px 0;
}

/* ------------------------------------------------------------------
   5. SECTION LABELS / EYEBROWS
   ------------------------------------------------------------------ */
.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hp-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ------------------------------------------------------------------
   6. TYPOGRAPHY
   ------------------------------------------------------------------ */
.hp-h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

.hp-h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.hp-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

.hp-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--gray-500);
}

.hp-accent {
  background: linear-gradient(135deg, var(--blue-600), var(--purple-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ------------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------------ */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--hp-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--hp-trans);
  white-space: nowrap;
}

.hp-btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.hp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,99,235,.4);
}

.hp-btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.hp-btn-secondary:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hp-btn-ghost {
  background: transparent;
  color: var(--blue-600);
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.875rem;
}
.hp-btn-ghost:hover { gap: 12px; }
.hp-btn-ghost svg, .hp-btn-ghost .arrow { transition: transform var(--hp-trans); }
.hp-btn-ghost:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------
   8. HERO SECTION
   ------------------------------------------------------------------ */
.hero-section {
  background: linear-gradient(170deg, #0d1b3e 0%, #0f172a 45%, #0d1b3e 100%);
  padding: 100px 0 0;
  overflow: hidden;
  position: relative;
  min-height: 700px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(37,99,235,.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,92,246,.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero Left */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.3);
  color: var(--cyan-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-trust-avatars {
  display: flex;
}

.hero-trust-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.3);
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.hero-trust-avatars .hero-trust-avatar:first-child { margin-left: 0; }

.hero-trust-text {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.hero-trust-text strong { color: rgba(255,255,255,.85); }

/* Hero Right — dashboard card stack */
.hero-visual {
  position: relative;
  height: 440px;
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--hp-radius-lg);
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  color: var(--white);
}

.hero-card-main {
  top: 0;
  right: 0;
  width: 340px;
  z-index: 3;
}

.hero-card-stat {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.hero-card-value {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-card-change {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-500);
}

.hero-sparkline {
  margin-top: 16px;
  height: 48px;
  overflow: hidden;
}

.hero-sparkline svg { width: 100%; height: 100%; }

/* Mini stat cards */
.hero-card-sm {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--hp-radius);
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.hero-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  z-index: 3;
}

.hero-card-sm .stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin-bottom: 4px;
}
.hero-card-sm .stat-val {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero-card-sm .stat-delta {
  font-size: 11px;
  color: var(--green-500);
  font-weight: 600;
  margin-top: 2px;
}

.hero-card-success {
  position: absolute;
  bottom: 10px;
  right: 0;
  width: 160px;
  z-index: 3;
}
.hero-card-success .stat-label { margin-bottom: 4px; }

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 280px; height: 280px;
  background: rgba(37,99,235,.25);
  top: -40px; right: -40px;
  z-index: 1;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  background: rgba(139,92,246,.2);
  bottom: 60px; right: 60px;
  z-index: 1;
}

/* Logos bar */
.hero-logos {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 28px 0;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.hero-logos-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin-bottom: 18px;
}

.hero-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-logo-item {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  letter-spacing: -0.01em;
  transition: color var(--hp-trans);
}
.hero-logo-item:hover { color: rgba(255,255,255,.7); }

.hero-logo-item.google  { color: rgba(255,255,255,.35); }
.hero-logo-item.msft    { font-size: 0.9375rem; }

/* ------------------------------------------------------------------
   9. STATS STRIP
   ------------------------------------------------------------------ */
.stats-strip {
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--gray-100);
}

.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--gray-100);
}

.stat-cell {
  padding: 40px 28px;
  border-right: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background var(--hp-trans);
}
.stat-cell:hover { background: var(--blue-50); }

.stat-cell-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-cell-num {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-cell-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 3px;
}

/* ------------------------------------------------------------------
   10. SERVICES SECTION
   ------------------------------------------------------------------ */
.services-section {
  background: var(--white);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--hp-radius-lg);
  padding: 32px 28px;
  transition: all var(--hp-trans);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-50), transparent);
  opacity: 0;
  transition: opacity var(--hp-trans);
}

.service-card:hover {
  border-color: var(--blue-200, #bfdbfe);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: gap var(--hp-trans);
}
.service-card-link:hover { gap: 10px; }

/* ------------------------------------------------------------------
   11. WHY CHOOSE US
   ------------------------------------------------------------------ */
.why-section {
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(37,99,235,.15) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.why-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,.75);
}

.why-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}

.why-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.why-feat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--hp-radius-lg);
  padding: 24px;
  transition: all var(--hp-trans);
}
.why-feat:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(37,99,235,.4);
  transform: translateY(-2px);
}

.why-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.why-feat-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.why-feat-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.why-satisfaction {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--hp-radius-lg);
  padding: 28px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.why-sat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}
.why-sat-pct { color: var(--green-500); }

.why-stars {
  display: flex;
  gap: 3px;
  font-size: 16px;
  margin-bottom: 4px;
  color: #fbbf24;
}

.why-sat-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* ------------------------------------------------------------------
   12. PROCESS SECTION
   ------------------------------------------------------------------ */
.process-section {
  background: var(--off-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(10% + 16px);
  right: calc(10% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--purple-500));
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--off-white), 0 4px 16px rgba(37,99,235,.2);
  transition: all var(--hp-trans);
}

.process-step:hover .process-num {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--off-white), 0 8px 24px rgba(37,99,235,.35);
  transform: scale(1.08);
}

.process-step-icon {
  font-size: 1.25rem;
}

.process-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: 0.8125rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   13. PORTFOLIO / CASE STUDIES
   ------------------------------------------------------------------ */
.portfolio-section {
  background: var(--white);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--gray-500);
  transition: all var(--hp-trans);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--gray-900);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--hp-trans), box-shadow var(--hp-trans);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.portfolio-card-bg {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.portfolio-card-body {
  padding: 24px 28px;
}

.portfolio-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.portfolio-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.portfolio-card-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.portfolio-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.portfolio-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.portfolio-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ------------------------------------------------------------------
   14. INDUSTRIES SECTION
   ------------------------------------------------------------------ */
.industries-section {
  background: var(--off-white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.industry-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--hp-radius-lg);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  transition: all var(--hp-trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.industry-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: var(--blue-50);
}

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 4px;
}

.industry-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
}

.industry-sub {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ------------------------------------------------------------------
   15. TESTIMONIALS
   ------------------------------------------------------------------ */
.testimonials-section {
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 20% 50%, rgba(37,99,235,.12) 0%, transparent 60%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
  z-index: 2;
}

.testi-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--hp-radius-lg);
  padding: 32px 28px;
  transition: all var(--hp-trans);
}
.testi-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(37,99,235,.3);
  transform: translateY(-3px);
}

.testi-quote {
  font-size: 2rem;
  color: var(--blue-500);
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.testi-text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testi-stars {
  display: flex;
  gap: 3px;
  font-size: 14px;
  margin-bottom: 20px;
  color: #fbbf24;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
}

.testi-role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
}

/* ------------------------------------------------------------------
   16. BLOG PREVIEW
   ------------------------------------------------------------------ */
.blog-section {
  background: var(--white);
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--hp-trans);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--blue-200, #bfdbfe);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
}

.blog-meta {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* ------------------------------------------------------------------
   17. CTA BANNER
   ------------------------------------------------------------------ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-700), var(--purple-600));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 8px;
}

.cta-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.cta-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 340px;
}

.cta-input {
  padding: 14px 18px;
  border-radius: var(--hp-radius);
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 0.9375rem;
  outline: none;
  transition: background var(--hp-trans);
  backdrop-filter: blur(8px);
}
.cta-input::placeholder { color: rgba(255,255,255,.5); }
.cta-input:focus { background: rgba(255,255,255,.22); }

/* ------------------------------------------------------------------
   18. FOOTER — light override
   ------------------------------------------------------------------ */
body.home-page footer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,.06);
}

body.home-page footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ------------------------------------------------------------------
   19. ANIMATIONS
   ------------------------------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease both;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.hp-float { animation: float 4s ease-in-out infinite; }

/* ------------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-grid          { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual        { height: 320px; }
  .hero-card-main     { position: relative; width: 100%; top: auto; right: auto; }
  .hero-card-row      { position: relative; bottom: auto; right: auto; width: 100%; }
  .hero-card-success  { position: relative; bottom: auto; right: auto; width: auto; }
  .stats-strip-inner  { grid-template-columns: repeat(3, 1fr); }
  .services-grid      { grid-template-columns: repeat(2, 1fr); }
  .industries-grid    { grid-template-columns: repeat(4, 1fr); }
  .blog-grid          { grid-template-columns: repeat(2, 1fr); }
  .process-steps      { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .cta-inner          { grid-template-columns: 1fr; }
  .cta-form           { min-width: 0; }
  .why-grid           { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .hp-section         { padding: 64px 0; }
  .stats-strip-inner  { grid-template-columns: repeat(2, 1fr); }
  .services-grid      { grid-template-columns: 1fr; }
  .portfolio-grid     { grid-template-columns: 1fr; }
  .industries-grid    { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .blog-grid          { grid-template-columns: 1fr; }
  .why-features-grid  { grid-template-columns: 1fr; }
  .services-header    { grid-template-columns: 1fr; }
  .portfolio-header   { flex-direction: column; align-items: flex-start; }
  .blog-header        { flex-direction: column; align-items: flex-start; }
  .hero-logos-row     { gap: 28px; }
  .process-steps      { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .industries-grid    { grid-template-columns: repeat(2, 1fr); }
  .hero-actions       { flex-direction: column; align-items: flex-start; }
  .hp-btn             { width: 100%; justify-content: center; }
  .stats-strip-inner  { grid-template-columns: 1fr 1fr; }
  .stat-cell          { padding: 24px 16px; }
}
