/* Services Page - Visual Rich Cards */
.srv-section { 
  background: var(--navy-dark); 
  padding: 4rem 0; 
  position: relative;
}
.srv-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.srv-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 35%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.srv-grid { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 2rem; }

.srv-card {
  cursor: pointer;
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: linear-gradient(160deg, rgba(15,25,65,0.9), rgba(8,12,36,0.95));
  border-radius: 20px; overflow: hidden;
  border: 1.5px solid rgba(96,165,250,0.25);
  transition: all 0.35s; position: relative; cursor: pointer;
}
.srv-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: var(--accent); border-radius: 20px 0 0 20px;
}
.srv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 30px rgba(59,130,246,0.2);
  border-color: var(--accent);
}
.srv-card:nth-child(even) { grid-template-columns: 1fr 320px; }
.srv-card:nth-child(even) .srv-img-wrap { order: 2; }
.srv-card:nth-child(even)::before { left: auto; right: 0; border-radius: 0 20px 20px 0; }

.srv-img-wrap { position: relative; overflow: hidden; }
.srv-img-wrap img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; transition: transform 0.5s; }
.srv-card:hover .srv-img-wrap img { transform: scale(1.06); }

.srv-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.srv-body h3 { font-size: 1.5rem; font-weight: 800; color: #F0F4FF; margin-bottom: 0.8rem; }
.srv-body > p { font-size: 1rem; color: #94A3B8; line-height: 1.7; margin-bottom: 1.2rem; }
.srv-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
.srv-body li {
  font-size: 0.88rem; color: #94A3B8; padding-left: 1.2rem; position: relative; line-height: 1.5;
}
.srv-body li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

@media (max-width: 900px) {
  .srv-card, .srv-card:nth-child(even) { grid-template-columns: 1fr; }
  .srv-card:nth-child(even) .srv-img-wrap { order: 0; }
  .srv-img-wrap img { min-height: 200px; }
  .srv-body { padding: 1.5rem; }
  .srv-body ul { grid-template-columns: 1fr; }
}


/* Mobile responsive for service cards */
@media (max-width: 768px) {
  .srv-section { padding: 2rem 0; }
  .srv-grid { padding: 0 1rem; gap: 1.5rem; }
  .srv-card, .srv-card:nth-child(even) { grid-template-columns: 1fr; }
  .srv-card:nth-child(even) .srv-img-wrap { order: 0; }
  .srv-img-wrap img { min-height: 180px; height: 180px; }
  .srv-body { padding: 1.5rem; }
  .srv-body h3 { font-size: 1.2rem; }
  .srv-body ul { grid-template-columns: 1fr; }
}


/* ============================================
   SERVICE MODAL STYLES
   ============================================ */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 2rem 1rem;
  animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
  position: relative;
  background: var(--navy-dark, #0f172a);
  max-width: 1000px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  margin: auto;
  animation: modalSlideUp 0.4s ease;
}

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

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

/* Modal Hero */
.modal-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #7c3aed 100%);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
}

.modal-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-hero h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.modal-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Modal Stats */
.modal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 2.5rem;
  background: rgba(37, 99, 235, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Modal Sections */
.modal-section {
  padding: 2.5rem;
}

.modal-section-alt {
  background: rgba(148, 163, 184, 0.03);
}

.modal-section h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.75rem;
  text-align: center;
}

/* Challenge Grid */
.challenge-grid,
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.challenge-card,
.solution-card {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.challenge-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-4px);
}

.solution-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
  background: rgba(37, 99, 235, 0.08);
}

.challenge-icon,
.solution-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.challenge-card h4,
.solution-card h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.challenge-card p,
.solution-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Guarantee List */
.guarantee-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
}

.guarantee-item strong {
  color: #fff;
}

.guarantee-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Modal CTA */
.modal-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  padding: 3rem 2.5rem;
  text-align: center;
}

.modal-cta h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.modal-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-hero { padding: 2.5rem 1.5rem 2rem; }
  .modal-hero h2 { font-size: 1.5rem; }
  .modal-hero p { font-size: 1rem; }
  .modal-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding: 1.5rem; }
  .stat-number { font-size: 1.6rem; }
  .modal-section { padding: 1.75rem 1.5rem; }
  .modal-section h3 { font-size: 1.3rem; }
  .challenge-grid,
  .solution-grid { grid-template-columns: 1fr; }
  .guarantee-list { grid-template-columns: 1fr; }
  .modal-cta { padding: 2.5rem 1.5rem; }
  .modal-cta h3 { font-size: 1.35rem; }
  .service-modal { padding: 0; }
  .modal-content { border-radius: 0; min-height: 100vh; }
}


/* ============================================
   ICON-BASED SERVICE DETAIL CARDS (dedicated pages)
   Cards that use .srv-icon instead of an image get a clean,
   consistent icon-panel layout (not the alternating image layout).
   ============================================ */
.srv-card:has(.srv-icon) { grid-template-columns: 150px 1fr; }
.srv-card:has(.srv-icon):nth-child(even) { grid-template-columns: 150px 1fr; }
.srv-card:has(.srv-icon):nth-child(even) .srv-body { order: 0; }
.srv-card .srv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: rgba(96, 165, 250, 0.06);
  border-right: 1px solid rgba(96, 165, 250, 0.15);
}
@media (max-width: 900px) {
  .srv-card:has(.srv-icon),
  .srv-card:has(.srv-icon):nth-child(even) { grid-template-columns: 1fr; }
  .srv-card .srv-icon {
    border-right: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.15);
    padding: 1.25rem 0;
  }
}
