/* ============================================
   HOME PAGE STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ---- GLOBAL RESET ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SKIP LINK (Accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  top: 0;
}

/* ---- SECTION STYLES ---- */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 12px 0 20px;
}

.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--radius-xl);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 82, 82, 0.4);
  outline: 3px solid var(--primary-light);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--secondary-dark);
  padding: 12px 30px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
  background: var(--secondary);
  color: var(--white);
  outline: 3px solid var(--secondary-light);
}

/* ---- STATS SECTION ---- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  font-weight: 500;
}

/* ---- DEPARTMENT CARDS ---- */
.dept-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--medium-gray);
  transition: var(--transition);
  height: 100%;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}

.dept-card:hover,
.dept-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  color: var(--text-dark);
  outline: 3px solid var(--primary-light);
}

.dept-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.dept-card:hover .dept-icon {
  background: var(--primary);
  color: var(--white);
}

.dept-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dept-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- DOCTOR CARDS ---- */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--medium-gray);
  transition: var(--transition);
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.doctor-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--light-gray);
}

.doctor-photo-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
}

.doctor-info {
  padding: 20px;
}

.doctor-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.doctor-dept {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctor-qual {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- TESTIMONIAL CARDS ---- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--medium-gray);
  position: relative;
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--primary-light);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.testimonial-text {
  color: var(--dark-gray);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonial-designation {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- NEWS CARDS ---- */
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--medium-gray);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--light-gray);
}

.news-card-body {
  padding: 20px;
}

.news-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.news-badge.news { background: var(--primary-light); color: var(--primary-dark); }
.news-badge.event { background: var(--secondary-light); color: var(--secondary-dark); }

.news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- GALLERY GRID ---- */
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(224, 82, 82, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
  opacity: 1;
}

/* ---- WHATSAPP BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  transform: scale(1.1);
  outline: 3px solid rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
  font-size: 1.6rem;
  color: var(--white);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- SCROLL BUTTONS ---- */
.scroll-btn {
  position: fixed;
  right: 24px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.scroll-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn { bottom: 145px; }
.scroll-bottom-btn { bottom: 195px; }

.scroll-btn:hover,
.scroll-btn:focus {
  background: var(--primary-dark);
  transform: scale(1.1);
  outline: 3px solid var(--primary-light);
}

/* ---- ABOUT SECTION ---- */
.about-section {
  background: var(--off-white);
}

.about-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-badge-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.about-badge-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- FEATURES LIST ---- */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-dark);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- APPOINTMENT CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  padding: 70px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  font-size: 1rem;
}

/* ---- FORM STYLES ---- */
.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
}

.form-control-custom:focus {
  border-color: var(--primary);
  outline: 3px solid var(--primary-light);
  box-shadow: none;
}

.form-label-custom {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .stats-section { padding: 40px 0; }
  .stat-item { padding: 12px; }
}

@media (max-width: 480px) {
  .scroll-btn, .whatsapp-float { right: 14px; }
  .whatsapp-float { bottom: 70px; }
  .scroll-top-btn { bottom: 130px; }
}