/* =========================================================
   ELITE GROUP — INDEX (Services Hub)
   Fixes: perfect centering, equal cards, aligned buttons,
   red badges w/ white text, smooth spacing, responsive.
   ========================================================= */

:root{
  --bg0:#ffffff;
  --bg1:#f6f7fb;
  --ink:#0f172a;
  --muted:#556275;

  --line:#e7e9f0;
  --card:#ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow2: 0 10px 30px rgba(15, 23, 42, .08);

  --red:#ef233c;
  --red2:#ff3b30;

  --radius: 18px;
  --radius2: 24px;

  --fontH: "Chakra Petch", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fontB: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.2,.85,.2,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--fontB);
  color: var(--ink);
  background: radial-gradient(1200px 800px at 20% 0%, #ffe9ea 0%, transparent 55%),
              radial-gradient(900px 700px at 85% 5%, #e8f0ff 0%, transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* prevent weird horizontal drift on mobile */
.eg-landing{
  width:100%;
  overflow-x:hidden;
}

/* container is ALWAYS centered */
.eg-container{
  width:min(1100px, 100%);
  margin-inline:auto;
  padding-inline: 18px;
}

/* ---------------- HERO ---------------- */
.eg-hero{
  position:relative;
  padding: 34px 0 10px;
}
.eg-hero__bg{
  position:absolute; inset:0;
  pointer-events:none;
  background:
    radial-gradient(800px 520px at 12% 15%, rgba(239,35,60,.14), transparent 60%),
    radial-gradient(900px 520px at 88% 10%, rgba(37,99,235,.12), transparent 60%);
  filter: blur(0px);
}

.eg-hero__wrap{
  position:relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: var(--shadow);
}

.eg-kicker{
  display:flex; align-items:center; gap:10px;
  color: #5b6678;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size: 12px;
}
.eg-dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(239,35,60,.12);
}

.eg-h1{
  font-family: var(--fontH);
  margin: 14px 0 10px;
  line-height: 1.02;
  font-size: clamp(30px, 4.2vw, 54px);
  letter-spacing: -0.02em;
}
.eg-h1 span{
  color: #0b1224;
  background: linear-gradient(90deg, #0b1224, #4b5563);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.eg-lead{
  max-width: 62ch;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15.5px;
}

.eg-hero__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

/* buttons (hero) */
.eg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-decoration:none;
  font-weight:800;
  color: var(--ink);
  background:#fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  font-family: var(--fontB);
}
.eg-btn .material-symbols-rounded{ font-size: 20px; }

.eg-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  border-color: #dfe4ef;
}
.eg-btn--primary{
  border-color: rgba(239,35,60,.18);
  background: linear-gradient(135deg, var(--red), var(--red2));
  color:#fff;
  box-shadow: 0 16px 38px rgba(239,35,60,.22);
}
.eg-btn--primary:hover{
  box-shadow: 0 20px 48px rgba(239,35,60,.28);
}
.eg-btn--ghost{
  background:#fff;
}
.eg-btn--soft{
  background: rgba(255,255,255,.70);
}

/* stats */
.eg-statGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.eg-stat{
  display:flex; gap:10px; align-items:center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.eg-stat .material-symbols-rounded{
  width: 36px; height: 36px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(239,35,60,.08);
  color: var(--red);
}
.eg-stat strong{
  display:block;
  font-family: var(--fontH);
  letter-spacing: .02em;
}
.eg-stat span{
  display:block;
  color: var(--muted);
  font-size: 13px;
}

.eg-pills{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.eg-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: #2b3648;
  font-weight: 800;
  font-size: 13px;
}
.eg-pill .material-symbols-rounded{ font-size: 18px; color: var(--red); }
.eg-pill--accent{
  border-color: rgba(239,35,60,.22);
  background: rgba(239,35,60,.06);
}

/* ---------------- SECTION HEAD ---------------- */
.eg-section{
  padding: 18px 0 20px;
}
.eg-sectionHead{
  margin-top: 10px;
}
.eg-eyebrow{
  margin:0 0 8px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}
.eg-h2{
  font-family: var(--fontH);
  margin:0 0 8px;
  font-size: 26px;
}
.eg-sublead{
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------------- SERVICES GRID ---------------- */
/* THIS is what fixes your "one left, one right, one center" issue */
.eg-servicesGrid{
  margin-top: 14px;
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

/* card = flex column so actions always align bottom */
.eg-card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  padding: 14px;
  display:flex;
  flex-direction:column;
  min-height: 420px; /* equal heights on desktop */
  transform: translateZ(0);
}

.eg-card__top{
  display:grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items:start;
}

.eg-icon{
  width:54px; height:54px;
  border-radius: 16px;
  display:grid; place-items:center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.eg-icon .material-symbols-rounded{ font-size: 26px; color: var(--red); }

.eg-card__titles h3{
  margin: 2px 0 4px;
  font-family: var(--fontH);
  font-size: 18px;
}
.eg-card__titles p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13.5px;
}

.eg-badge{
  justify-self:end;
  align-self:start;
  background: linear-gradient(135deg, var(--red), var(--red2));
  color:#fff; /* white text */
  font-weight: 950;
  letter-spacing:.02em;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(239,35,60,.20);
  border: 1px solid rgba(239,35,60,.24);
  font-size: 12px;
}

/* features list */
.eg-features{
  margin-top: 12px;
  display:grid;
  gap: 10px;
  flex: 1; /* pushes actions to bottom */
}
.eg-feature{
  display:flex; align-items:center; gap:10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(248,250,252,.92);
  font-weight: 850;
  color: #1f2a3a;
}
.eg-feature .material-symbols-rounded{
  width: 32px; height: 32px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(239,35,60,.10);
  color: var(--red);
  font-size: 18px;
}

/* actions = always same layout */
.eg-card__actions{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.eg-btn2{
  height: 46px; /* identical height so they align perfectly */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  color: var(--ink);
  text-decoration:none;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.eg-btn2 .material-symbols-rounded{ font-size: 20px; }
.eg-btn2:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15,23,42,.10); }

.eg-btn2--primary{
  border-color: rgba(239,35,60,.18);
  background: rgba(239,35,60,.08);
}
.eg-btn2--ghost{
  background:#fff;
}

/* ---------------- CTA ---------------- */
.eg-cta{ padding-bottom: 26px; }
.eg-ctaCard{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.eg-ctaCard__text h3{
  margin:0 0 6px;
  font-family: var(--fontH);
}
.eg-ctaCard__text p{
  margin:0;
  color: var(--muted);
}
.eg-ctaCard__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* ---------------- Scroll Animations ---------------- */
[data-anim]{
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity .55s var(--ease),
    transform .55s var(--ease);
  will-change: transform, opacity;
}
[data-anim="left"]{ transform: translate3d(-18px, 10px, 0); }
[data-anim="right"]{ transform: translate3d(18px, 10px, 0); }
[data-anim="up"]{ transform: translate3d(0, 18px, 0); }

.is-in{
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}
@media (prefers-reduced-motion: reduce){
  [data-anim]{ opacity:1; transform:none; transition:none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 920px){
  .eg-servicesGrid{ grid-template-columns: 1fr; }
  .eg-card{ min-height: auto; }
  .eg-statGrid{ grid-template-columns: 1fr; }
  .eg-ctaCard{ flex-direction: column; align-items: stretch; }
}

/* Make hero buttons full width on narrow phones, clean spacing */
@media (max-width: 520px){
  .eg-hero__wrap{ padding: 18px; }
  .eg-hero__cta{ gap: 10px; }
  .eg-btn{ width: 100%; }
  .eg-ctaCard__actions .eg-btn{ width: 100%; }
}
