/* ==============================
   SANJIVANI HOSPITAL — MAIN CSS
   ============================== */

:root {
  --primary: #b94e33;
  --secondary: #f7d6bf;
  --bg-light: #fff9f5;
  --text: #3d2c2a;
  --accent: #e0f7fa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ==============================
   HEADER
   ============================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s ease;
}

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

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #f3f3f3;
}

.hero .btn {
  display: inline-block;
  margin-top: 25px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
  background: #8d3e28;
  transform: scale(1.05);
}

/* ==============================
   SERVICES SECTION
   ============================== */
.services {
  padding: 100px 40px;
  text-align: center;
  background: var(--white);
}

.services h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  border-radius: 12px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #5c4b47;
  font-size: 0.95rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about {
  max-width: 900px;
  margin: 120px auto;
  padding: 20px;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
}

/* ==============================
   CTA SECTIONS
   ============================== */
.cta {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 25px;
}

.cta-content .btn {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
  font-weight: 600;
}

.cta-content .btn:hover {
  background: #923d27;
  transform: scale(1.05);
}

/* ==============================
   CONTACT SECTION
   ============================== */
.contact-section {
  padding: 100px 40px;
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background: var(--secondary);
  text-align: center;
  padding: 25px;
  margin-top: 60px;
  color: var(--text);
  font-size: 0.95rem;
}
/* ==============================
   RESPONSIVE DESIGN
   ============================== */
@media (max-width: 768px) {
  header {
    padding: 15px 25px;
  }

  nav ul {
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .services, .about, .contact-section {
    padding: 80px 20px;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }
}
