/* =========================
   ABOUT PREVIEW
========================= */

.about-preview {
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
}

@media (min-width: 769px) {
  .about-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
  }
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-image {
    order: 1;
  }

  .about-content {
    order: 2;
  }

  .about-image img {
    max-height: none;
  }
}

/* =========================
   CORE SERVICES
========================= */

.core-services {
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Service card */
.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.service-card h3 {
  margin: 10px 0 6px;
  font-size: 1.15rem;
}

.service-tag {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* =========================
   CORE SERVICES – MOBILE FIX
========================= */

@media (max-width: 768px) {

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 22px 18px;
  }

  /* Hide extra text on mobile */
  .service-card p,
  .service-tag {
    display: none;
  }

  /* Service title emphasis */
  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  /* Icon spacing adjustment */
  .service-icon {
    margin-bottom: 10px;
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
  .service-card {
    border-radius: 14px;
  }
}


/* ===== RESPONSIVE GRID LOGIC ===== */

/* Laptops: 3 + 2 (centered) */
@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid .service-card:nth-last-child(2),
  .services-grid .service-card:nth-last-child(1) {
    justify-self: center;
  }
}

/* Tablets: 2 + 2 + 1 (centered) */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:last-child {
    grid-column: span 2;
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PANCHAKARMA
========================= */

.panchakarma {
  background: var(--bg-light);
  text-align: center;
}

.panchakarma-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 45px;
}

.pk-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pk-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.1);
}

.pk-number {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (max-width: 992px) {
  .panchakarma-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .panchakarma-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   TESTIMONIALS
========================= */

.testimonials {
  background: var(--bg-white);
  text-align: center;
}

.empty-note {
  margin-top: 18px;
  color: var(--text-muted);
}

/* =========================
   FLOATING ACTION BUTTONS
========================= */

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

/* Base FAB */
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  /* FIX */
  font-size: 20px;

  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


/* Optical centering for Font Awesome icons */
.fab i {
  line-height: 1;
  display: block;
}



.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}

/* Individual colors (MATCHES YOUR IMAGE) */
.fab-whatsapp {
  background: #25D366;
}

.fab-call {
  background: #e07a2f;
}

.fab-mail {
  background: #7FA650;
}

/* Mobile spacing tweak */
@media (max-width: 600px) {
  .floating-actions {
    right: 12px;
    bottom: 80px;
  }
}

/* === FORCE FIX FOR FLOATING ICON ALIGNMENT === */

.floating-actions .fab {
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.floating-actions .fab i {
  display: block !important;
  line-height: 1 !important;
  font-size: 20px !important;
}
