/* ============================================================
   SERVICES.CSS — Dr. Imtiyaz Kazi  (Improved)
   Premium animations · Smooth hovers · Polished cards
   ============================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --navy:        #0D47A1;
  --navy-deep:   #082B6B;
  --navy-mid:    #1565C0;
  --navy-light:  #1976D2;
  --gold:        #F9A825;
  --gold-light:  #FFD740;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --border:      #e3e9f4;
  --text-dark:   #1A1A2E;
  --text-mid:    #444;
  --text-light:  #666;
  --shadow-sm:   0 2px 12px rgba(13,71,161,0.08);
  --shadow-md:   0 6px 28px rgba(13,71,161,0.13);
  --shadow-lg:   0 16px 48px rgba(13,71,161,0.18);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   22px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── PAGE ENTRY ANIMATION ───────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,71,161,0.18); }
  50%       { box-shadow: 0 0 0 10px rgba(13,71,161,0); }
}

/* ── HERO ───────────────────────────────────────────────── */
.svc-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.svc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.svc-hero:hover .svc-hero-bg {
  transform: scale(1);
}

.svc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8,20,55,0.72) 0%,
    rgba(8,20,55,0.42) 60%,
    rgba(13,71,161,0.22) 100%
  );
}

.svc-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 60px;
}

/* Glassmorphism Card */
.svc-glass-card {
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: var(--radius-lg);
  padding: 42px 44px;
  color: var(--white);
  max-width: 500px;
  width: 100%;
  box-shadow:
    0 8px 48px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);
  animation: fadeSlideUp 0.7s ease both;
}

.svc-glass-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  color: var(--white);
  letter-spacing: -0.3px;
}

.svc-hero-desc {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 22px;
  line-height: 1.75;
}

/* Hero List */
.svc-hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-hero-list li {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  letter-spacing: 0.2px;
  transition: background var(--transition), border-color var(--transition);
}

.svc-hero-list li:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.34);
}

/* Badge */
.slide-badge,
.svc-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.32);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* Pills */
.svc-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.svc-pill {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  transition: background var(--transition);
}

.svc-pill:hover {
  background: rgba(255,255,255,0.22);
}

/* Hero Buttons */
.svc-hero-btns,
.slide-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-solid,
.btn.btn-glass-solid {
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-hero-solid:hover,
.btn.btn-glass-solid:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.btn-hero-outline,
.btn.btn-glass-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}

.btn-hero-outline:hover,
.btn.btn-glass-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-3px);
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.svc-breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13.5px;
  color: #666;
  animation: fadeIn 0.5s ease both 0.2s;
}

.svc-breadcrumb a {
  color: var(--navy-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.svc-breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.svc-breadcrumb .sep,
.svc-breadcrumb span {
  margin: 0 8px;
  color: #bbb;
}

.svc-breadcrumb strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ── SECTION UTILITY ────────────────────────────────────── */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--off-white);
}

/* ── INTRO GRID ─────────────────────────────────────────── */
.svc-intro-grid,
.svc-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.svc-intro-text p,
.svc-overview-grid > div > p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 18px;
}

/* ── SECTION TITLES ─────────────────────────────────────── */
.svc-sec-title,
.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.svc-sec-title.left,
.section-title[style*="text-align:left"] {
  text-align: left;
}

.svc-sec-title h2,
.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.svc-sec-title p,
.section-title p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.svc-sec-title .bar,
.section-title .bar {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 2px;
  margin: 0 auto;
}

.svc-sec-title.left .bar,
.section-title[style*="text-align:left"] .bar {
  margin: 0;
}

/* ── HIGHLIGHT / ALERT BOX ──────────────────────────────── */
.svc-alert,
.svc-highlight-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, #e8f0fe, #eef4ff);
  border-left: 4px solid var(--navy-mid);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.svc-alert:hover,
.svc-highlight-box:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.svc-alert-icon,
.shb-icon {
  font-size: 30px;
  flex-shrink: 0;
  margin-top: 2px;
}

.svc-alert strong,
.svc-highlight-box strong {
  font-size: 16px;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

.svc-alert p,
.svc-highlight-box p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ── SIDE STACK / INFO CARDS ────────────────────────────── */
.svc-side-stack,
.svc-side-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.svc-side-card,
.svc-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.svc-side-card:hover,
.svc-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.svc-side-card h4,
.svc-info-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 18px;
  font-weight: 700;
}

/* Dark variant */
.svc-side-card--dark,
.svc-info-card--blue {
  background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.svc-side-card--dark::before,
.svc-info-card--blue::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.svc-side-card--dark h4,
.svc-info-card--blue h4 {
  color: var(--white);
}

/* ── CHECK LIST ─────────────────────────────────────────── */
.svc-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-check-list li {
  font-size: 14.5px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s, padding-left 0.25s;
}

.svc-check-list li:last-child {
  border-bottom: none;
}

.svc-check-list li:hover {
  color: var(--navy);
  padding-left: 4px;
}

.svc-check-list li::before {
  content: '✓';
  color: var(--navy-mid);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  background: #e8f0fe;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}

.svc-check-list li:hover::before {
  background: var(--navy-mid);
  color: var(--white);
}

/* ── FACTS GRID ─────────────────────────────────────────── */
.svc-facts-grid,
.svc-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.svc-fact-item,
.svc-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}

.svc-fact-item:hover,
.svc-fact:hover {
  background: rgba(255,255,255,0.13);
}

.svc-fact-num,
.sf-num {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.svc-fact-label,
.sf-label {
  font-size: 11.5px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.3px;
}

/* ── PROCEDURES GRID ────────────────────────────────────── */
.svc-proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.svc-proc-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-top-color var(--transition);
  position: relative;
  overflow: hidden;
}

/* Subtle shine sweep on hover */
.svc-proc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
  transition: left 0.55s ease;
  pointer-events: none;
}

.svc-proc-card:hover::after {
  left: 160%;
}

.svc-proc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}

.spc-emoji,
.spc-icon {
  font-size: 38px;
  display: block;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.svc-proc-card:hover .spc-emoji,
.svc-proc-card:hover .spc-icon {
  transform: scale(1.15) rotate(-4deg);
}

.svc-proc-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
  transition: color var(--transition);
}

.svc-proc-card:hover h3 {
  color: var(--navy);
}

.svc-proc-card p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ── WHY CHOOSE GRID ────────────────────────────────────── */
.svc-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.svc-why-card,
.svc-why-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.svc-why-card::before,
.svc-why-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--navy-deep), var(--navy-light));
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-md);
}

.svc-why-card:hover,
.svc-why-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.svc-why-card:hover::before,
.svc-why-item:hover::before {
  opacity: 1;
}

.svc-why-icon,
.svc-why-card > span:first-child,
.svc-why-item > span:first-child {
  font-size: 42px;
  display: block;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.svc-why-card:hover .svc-why-icon,
.svc-why-card:hover > span:first-child,
.svc-why-item:hover > span:first-child {
  transform: scale(1.2);
}

.svc-why-card h4,
.svc-why-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.svc-why-card:hover h4,
.svc-why-item:hover h4 {
  color: var(--white);
}

.svc-why-card p,
.svc-why-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.78;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.svc-why-card:hover p,
.svc-why-item:hover p {
  color: rgba(255,255,255,0.84);
}

/* ── CTA SECTION ────────────────────────────────────────── */
.svc-cta,
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 60%, #1976D2 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.svc-cta::before,
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.svc-cta::after,
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.035);
  border-radius: 50%;
  pointer-events: none;
}

.svc-cta .container,
.cta-banner .container {
  position: relative;
  z-index: 1;
}

.svc-cta h2,
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.svc-cta p,
.cta-banner p {
  font-size: 17.5px;
  opacity: 0.86;
  max-width: 580px;
  margin: 0 auto 34px;
  line-height: 1.75;
}

.svc-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA Buttons */
.btn-cta-white,
.btn.btn-white {
  background: var(--white);
  color: var(--navy);
  padding: 15px 40px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.btn-cta-white:hover,
.btn.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  color: var(--navy);
}

.btn-cta-ghost,
.btn.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 15px 40px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}

.btn-cta-ghost:hover,
.btn.btn-outline-white:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.95);
  transform: translateY(-3px);
}

/* ── SCROLL REVEAL (add class via JS if desired) ────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .svc-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .svc-hero {
    height: auto;
    min-height: 520px;
  }

  .svc-hero-inner {
    justify-content: center;
    padding: 44px 20px;
  }

  .svc-glass-card {
    padding: 30px 26px;
    max-width: 100%;
  }

  .svc-glass-card h1 {
    font-size: 30px;
  }

  .svc-intro-grid,
  .svc-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .svc-proc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .svc-why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .svc-cta h2,
  .cta-banner h2 {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .svc-hero {
    min-height: 450px;
  }

  .svc-glass-card h1 {
    font-size: 26px;
  }

  .svc-hero-inner {
    padding: 32px 16px;
  }

  .svc-proc-grid {
    grid-template-columns: 1fr;
  }

  .svc-why-grid {
    grid-template-columns: 1fr;
  }

  .svc-facts-grid,
  .svc-facts {
    grid-template-columns: 1fr 1fr;
  }

  .svc-sec-title h2,
  .section-title h2 {
    font-size: 28px;
  }

  .svc-cta h2,
  .cta-banner h2 {
    font-size: 24px;
  }

  .svc-cta p,
  .cta-banner p {
    font-size: 15px;
  }

  .section {
    padding: 60px 0;
  }
}