/* Chaitanya Multi-Speciality Hospital - Theme from logo */
:root {
  --blue-dark: #1a4a7a;
  --blue-mid: #2d6ba8;
  --blue-light: #5eb3e4;
  --green: #6bc96b;
  --green-light: #a8e6a8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #64748b;
  --gray-800: #1e293b;
  --shadow: 0 4px 20px rgba(26, 74, 122, 0.12);
  --shadow-lg: 0 12px 40px rgba(26, 74, 122, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Nunito', sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

/* Emergency bar */
.emergency-bar {
  background: linear-gradient(90deg, #c62828, #e53935);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.emergency-bar a {
  color: var(--white);
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue-dark);
}

.logo-link:hover {
  color: var(--blue-dark);
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.logo-text {
  display: none;
}

.logo-text strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--blue-light);
  font-weight: 600;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 5rem 1.5rem 2rem;
  transition: right var(--transition);
  z-index: 999;
}

.main-nav.open ul {
  right: 0;
}

.main-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--gray-800);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.nav-overlay.visible {
  display: block;
}

.header-cta .btn {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(45, 107, 168, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 107, 168, 0.5);
  color: var(--white);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
}

.btn-green:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 50%, var(--green) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 3rem 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-style: italic;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.stat-card i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--green-light);
}

.stat-card strong {
  display: block;
  font-size: 1.1rem;
}

.stat-card span {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--green-light);
}

.breadcrumb span {
  opacity: 0.7;
}

/* Sections */
section {
  padding: 4rem 0;
}

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

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-dark);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.bg-light {
  background: var(--gray-50);
}

.bg-gradient {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.card-icon.blue {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
}

.card-icon.green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
}

.card h3 {
  color: var(--blue-dark);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* About preview */
.about-preview {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--blue-light), var(--green));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  max-width: 280px;
}

.about-content h2 {
  color: var(--blue-dark);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.value-tag {
  background: linear-gradient(135deg, var(--blue-mid), var(--green));
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Services */
.service-card {
  text-align: center;
}

.service-card .card-icon {
  margin: 0 auto 1rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark), var(--green));
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

.gallery-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--blue-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--green-light);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.contact-form h3 {
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-800);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
}

/* Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand img {
  width: 80px;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.85;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--green-light);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--green-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Timeline / features */
.features-row {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-item i {
  color: var(--green);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

/* Department detail */
.dept-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.dept-detail:nth-child(even) {
  direction: ltr;
}

.dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-50);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-mid);
  margin-bottom: 1rem;
}

/* Doctors */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

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

.doctor-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.doctor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--green));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.doctor-name {
  color: var(--blue-dark);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.doctor-dept {
  display: inline-block;
  background: var(--gray-50);
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.doctor-qualifications {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.doctor-qualifications li {
  margin-bottom: 0.35rem;
  padding-left: 1.25rem;
  position: relative;
  list-style: none;
}

.doctor-qualifications li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.doctor-fellowship {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(26, 74, 122, 0.06), rgba(107, 201, 107, 0.1));
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--blue-dark);
  font-weight: 600;
}

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

.service-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.service-pill i {
  color: var(--green);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.dept-doctor-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 900;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
}

/* Responsive */
@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .logo-text {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav ul {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.5rem 0.85rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
  }

  .main-nav a.active {
    background: var(--gray-50);
  }

  .header-cta .btn {
    display: inline-flex;
  }

  .about-preview {
    grid-template-columns: 1fr 1.2fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-detail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
