/* --- HEADER NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-wrapper img {
  height: 40px;
  width: auto;
}

.logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}

.hospital-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- HERO BANNER --- */
.hero {
  padding: 8rem 2rem 5rem 2rem;
  background: radial-gradient(circle at 85% 15%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%), var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 2;
  position: relative;
  border: 4px solid var(--bg-primary);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  background-color: var(--secondary-color);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  z-index: 1;
}

/* --- STATISTICS SECTION --- */
.stats-section {
  padding: 4rem 2rem;
  background-color: var(--bg-secondary);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background: white;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* --- SECTION GENERALS --- */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--on-primary, #ffffff);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
}

/* --- SERVICES CARD GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-photo {
  height: 220px;
  overflow: hidden;
  background-color: var(--secondary-color);
  position: relative;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-photo img {
  transform: scale(1.05);
}

.service-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1) 100%);
}

.service-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-body h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-body p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more-btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: gap var(--transition-fast);
}

.read-more-btn:hover {
  gap: 0.75rem;
}

/* --- DOCTOR INTRO SECTION --- */
.doctor-intro {
  background-color: var(--bg-secondary);
}

.doctor-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.doctor-photo-wrapper {
  position: relative;
}

.doctor-photo-wrapper img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 5px solid white;
}

.doctor-photo-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 150px;
  height: 150px;
  background-color: var(--secondary-color);
  border-radius: var(--radius-md);
  z-index: -1;
}

.doctor-details h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.doctor-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.doctor-bio {
  color: var(--text-medium);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.doctor-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.doctor-meta-item {
  display: flex;
  flex-direction: column;
}

.doctor-meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.doctor-meta-value {
  font-weight: 600;
  color: var(--text-dark);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.rating-stars {
  color: #fbbf24; /* Amber star colors */
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-medium);
  font-size: 0.95rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: var(--on-primary, #ffffff);
  object-fit: cover;
}

.author-details h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.author-details span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- FAQS ACCORDION --- */
.faqs {
  background-color: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--on-primary, #ffffff);
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-content {
  padding: 0 2rem 1.5rem 2rem;
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* --- CONTACT AND WORKING HOURS --- */
.contact-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-block {
  display: flex;
  gap: 1.25rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--on-primary, #ffffff);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.info-content p,
.info-content a {
  color: var(--text-medium);
  font-size: 0.95rem;
  text-decoration: none;
}

.info-content a:hover {
  color: var(--primary-color);
}

.emergency-callout {
  padding: 2rem;
  background-color: rgba(var(--emergency-rgb), 0.08);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--emergency-color);
}

.emergency-callout h3 {
  color: var(--emergency-color);
  margin-bottom: 0.5rem;
}

.maps-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  height: 450px;
}

.maps-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- FOOTER --- */
footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 5rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 3.5rem;
  margin-bottom: 2rem;
}

.footer-brand h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.footer-brand p {
  max-width: 320px;
  line-height: 1.7;
}

.footer-links h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.footer-socials a {
  color: #94a3b8;
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: white;
}

/* --- APPOINTMENT SECTION WIDGET --- */
.booking-section {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.3) 100%);
}

.booking-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 3.5rem 3rem;
  border: 1px solid var(--border-color);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.form-full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
}

.slot-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.slot-btn {
  padding: 0.75rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: white;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.slot-btn.selected {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.slot-btn:disabled {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.no-slots-msg {
  grid-column: span 4;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  padding: 1.5rem;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .doctor-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .doctor-photo-wrapper img {
    margin: 0 auto;
  }
  .doctor-meta-grid {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .services-grid,
  .testimonials-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  section {
    padding: 4rem 1.5rem;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.5rem;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-xl);
    align-items: flex-start;
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .services-grid,
  .testimonials-container {
    grid-template-columns: 1fr;
  }
  .booking-card {
    padding: 2.5rem 1.5rem;
  }
  .booking-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-full-width {
    grid-column: span 1;
  }
  .slot-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
