/* ==========================================================================
   New Prem Ji Hospital — Stylesheet
   ========================================================================== */

:root {
  --color-primary: #0e6e7c;
  --color-primary-dark: #0a5560;
  --color-accent: #f2994a;
  --color-text: #1b2a3a;
  --color-text-light: #5b6b78;
  --color-bg: #ffffff;
  --color-bg-alt: #edf6f7; /* Upgraded to a soft, engaging medical background shade */
  --color-border: #e1e8ea;
  --shadow-soft: 0 10px 30px rgba(10, 85, 96, 0.08);
  --shadow-premium: 0 12px 35px rgba(14, 110, 124, 0.12); /* New interactive layer shadow */
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 70px 0; }
.section-alt { background: var(--color-bg-alt); border-top: 1px solid #e1eff2; border-bottom: 1px solid #e1eff2; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: #d67d2f; }

.btn-outline {
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--color-primary-dark); }

/* ---------------- Top bar ---------------- */
.topbar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; }
.topbar span { margin-right: 18px; }
.topbar span:last-child { margin-right: 0; }

/* ---------------- Header / Nav ---------------- */
header.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 55px; }

nav.main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
nav.main-nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius);
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--color-primary-dark);
  cursor: pointer;
}

/* ---------------- Hero / Slider ---------------- */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--color-primary-dark);
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero .slide.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,85,96,0.55), rgba(10,85,96,0.75));
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  max-width: 640px;
}
.hero-content .eyebrow {
  background: var(--color-accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}
.hero-content h1 {
  font-size: 40px;
  margin: 0 0 16px;
  line-height: 1.25;
}
.hero-content p { font-size: 16px; margin-bottom: 26px; color: #eaf4f5; }
.hero-actions { display: flex; gap: 14px; }

.page-banner {
  background: linear-gradient(180deg, rgba(10,85,96,0.85), rgba(14,110,124,0.85)), var(--color-primary-dark);
  color: #fff;
  padding: 70px 0 50px;
  text-align: center;
}
.page-banner h1 { margin: 0 0 8px; font-size: 34px; }
.page-banner .crumbs { color: #d7ecee; font-size: 14px; }
.page-banner .crumbs a { color: #fff; font-weight: 600; }

/* ---------------- Welcome / About block ---------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.welcome-grid img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.welcome-grid h2 { color: var(--color-primary-dark); font-size: 28px; margin-top: 0; }

/* ---------------- Why choose us (Upgraded Modern Layout) ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: #ffffff; /* Contrast beautifully against the new section background */
  border: 1px solid #dbe8ea;
  border-radius: var(--radius);
  padding: 32px 22px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 85, 96, 0.04);
}
.feature-card:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--shadow-premium); 
  border-color: var(--color-primary);
}
.feature-icon {
  width: 65px; height: 65px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(14, 110, 124, 0.1); /* Transparent tint matching brand colors */
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
  transition: background 0.3s ease;
}
.feature-card:hover .feature-icon {
  background: var(--color-primary);
  color: #fff;
}
.feature-card h3 { font-size: 18px; margin: 0 0 10px; color: var(--color-primary-dark); }
.feature-card p { font-size: 14px; color: var(--color-text-light); margin: 0; line-height: 1.5; }

/* ---------------- Services grid (Upgraded Modern Theme Layout) ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}
.service-card:hover { 
  box-shadow: var(--shadow-premium); 
  transform: translateY(-6px);
  border-color: var(--color-primary-dark);
}
.service-card .icon-wrap {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); /* Gorgeous colored header background */
  padding: 32px;
  text-align: center;
  font-size: 38px;
  color: #fff;
  transition: opacity 0.3s ease;
}
.service-card:hover .icon-wrap {
  opacity: 0.95;
}
.service-card .body { padding: 24px 22px 28px; background: #ffffff; }
.service-card h3 { font-size: 19px; margin: 0 0 12px; color: var(--color-primary-dark); font-weight: 700; }
.service-card p { font-size: 14px; color: var(--color-text-light); margin: 0 0 16px; line-height: 1.6; }
.service-card .read-more { 
  font-weight: 700; 
  color: var(--color-primary); 
  font-size: 13px; 
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.service-card .read-more:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* ---------------- Doctors ---------------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  max-width: 820px;
  margin: 0 auto;
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.doctor-card img { width: 100%; height: 320px; object-fit: cover; }
.doctor-card .info { padding: 22px; }
.doctor-card h3 { margin: 0 0 4px; color: var(--color-primary-dark); font-size: 20px; }
.doctor-card .qualification { color: var(--color-accent); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.doctor-card .specialist { color: var(--color-text-light); font-size: 14px; }

/* ---------------- Patient Testimonials Wrapper Coloring ---------------- */
.testimonials-slider-container {
  background: linear-gradient(180deg, #f9fdfd 0%, #ebf5f6 100%); /* Rich soft gradient theme background */
  border: 1px solid #d4e6e8;
  border-radius: var(--radius);
  padding: 25px !important;
  box-shadow: 0 6px 20px rgba(10, 85, 96, 0.04);
}

/* ---------------- CTA ---------------- */
.cta-strip {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-strip h2 { margin: 0; font-size: 22px; }
.cta-strip .btn-primary { background: var(--color-accent); }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 18px;
}
.contact-info-card h3 { color: var(--color-primary-dark); margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 14px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.map-wrap { border-radius: var(--radius); overflow: hidden; margin-top: 20px; box-shadow: var(--shadow-soft); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--color-primary-dark);
  color: #d7ecee;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; font-size: 16px; margin: 0 0 18px; }
.footer-grid p { font-size: 14px; color: #bcdadd; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--color-accent); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { background: var(--color-accent); }
.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 13px;
  color: #9ec7cb;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .welcome-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 10px 20px 20px; }
  .hero-content h1 { font-size: 28px; }
  .features-grid,
  .services-grid,
  .doctors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip .container { flex-direction: column; text-align: center; }
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-btn img {
  width: 100%;
  height: 100%;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}
/* Gives the Testimonial background the premium matching layout look */
.section-alt .testimonials-slider-container {
  background: #ffffff !important; /* Makes the inner review box clean white */
  border: 1px solid #dbe8ea;
  box-shadow: 0 4px 15px rgba(10, 85, 96, 0.04);
}
