:root {
  --hospital-bg: #f5efe8;
  --primary-teal: #2b6c62;
  --soft-blue: #e8f3f0;
  --calm-sky: #dcefe9;
  --accent-coral: #c96d43;
  --accent-green: #3f725d;
  --neutral-white: #fffcf8;
  --text-dark: #15222b;
  --text-soft: #4d5a66;
  --surface-alt: #f7f0e7;
  --shadow-sm: 0 24px 50px -28px rgba(21, 34, 43, 0.28);
  --border-soft: rgba(21, 34, 43, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --display-font: 'Playfair Display', Georgia, serif;
  --body-font: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at top left, rgba(201, 109, 67, 0.16) 0%, transparent 32%),
    linear-gradient(135deg, #f7efe7 0%, #f3f0ea 45%, #eef6f3 100%);
  color: var(--text-dark);
  font-family: var(--body-font);
  line-height: 1.75;
  font-size: 16px;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(21, 34, 43, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 34, 43, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.2), transparent 80%);
  pointer-events: none;
  z-index: -1;
}
.team-img {
  width: 100%;
  height: 100%;
  max-width: 132px;
  max-height: 132px;
  object-fit: cover;
  border-radius: 50%;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  letter-spacing: -0.02em;
}

a { transition: color 0.2s ease, transform 0.2s ease; }
a:hover { text-decoration: none; }
::selection {
  background: rgba(201, 109, 67, 0.24);
  color: var(--text-dark);
}

.navbar,
.footer {
  background: rgba(255, 252, 248, 0.95) !important;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 18px 36px -24px rgba(21, 34, 43, 0.22);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: var(--display-font);
  font-weight: 700;
  color: var(--primary-teal) !important;
  letter-spacing: -0.04em;
  font-size: 1.45rem;
}

.nav-link {
  color: var(--text-soft) !important;
  font-weight: 600;
  position: relative;
  padding-inline: 0.15rem;
  margin-inline: 0.3rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-teal) !important;
}

.btn-hospital,
.btn-outline-hospital,
.btn-teal,
.btn-outline-teal {
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-hospital,
.btn-teal {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-coral) 100%);
  color: white;
  border: none;
  padding: 0.65rem 1.85rem;
  box-shadow: 0 16px 26px -18px rgba(201, 109, 67, 0.45);
}
.btn-hospital:hover,
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 28px -18px rgba(201, 109, 67, 0.52);
  color: white;
}

.btn-outline-hospital,
.btn-outline-teal {
  background-color: transparent;
  border: 1.5px solid var(--primary-teal);
  color: var(--primary-teal);
  padding: 0.6rem 1.75rem;
}
.btn-outline-hospital:hover,
.btn-outline-teal:hover {
  background-color: var(--primary-teal);
  color: white;
  transform: translateY(-1px);
}

.hero,
.hero-about,
.hero-services,
.hero-premise {
  background: linear-gradient(135deg, #fcfaf6 0%, #f4eee6 46%, #ebf3ef 100%);
  padding: 5.2rem 0 3.8rem;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero-about::before,
.hero-services::before,
.hero-premise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 109, 67, 0.08) 100%);
  pointer-events: none;
}
.hero .img-fluid {
  border: 1px solid rgba(21, 34, 43, 0.1);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.4deg);
  border-radius: 2rem;
}

.badge-hospital,
.badge-doctor,
.badge-service {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--calm-sky) 100%);
  color: var(--accent-green);
  font-weight: 700;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 108, 98, 0.14);
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.service-card,
.testimonial-card,
.management-card,
.feature-card,
.doctor-card,
.appointment-form-card,
.gallery-card,
.floorplan-card {
  background: linear-gradient(145deg, rgba(255, 252, 248, 0.98), rgba(247, 240, 231, 0.96));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
}
.service-card::before,
.testimonial-card::before,
.management-card::before,
.feature-card::before,
.doctor-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-coral) 0%, rgba(43, 108, 98, 0.2) 100%);
}
.service-card:hover,
.testimonial-card:hover,
.management-card:hover,
.feature-card:hover,
.doctor-card:hover,
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 42px -26px rgba(21, 34, 43, 0.28);
}

.icon-circle {
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--calm-sky) 100%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(43, 108, 98, 0.12);
}
.icon-circle i {
  font-size: 1.9rem;
  color: var(--primary-teal);
}

.section-title {
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}
.section-sub,
.section-subtitle,
.section-sub {
  color: var(--text-soft);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.03rem;
}

.stat-number,
.dynamic-counter {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-teal);
  letter-spacing: -0.03em;
}

.bg-soft-blue {
  background: linear-gradient(135deg, rgba(220, 239, 233, 0.92) 0%, rgba(247, 240, 231, 0.92) 100%);
}

footer,
.footer {
  background: linear-gradient(135deg, #172832 0%, #254b40 100%) !important;
  color: #f8f3ea;
}
footer h4,
footer h5,
footer h6,
.footer h4,
.footer h5,
.footer h6 { color: #fffdf8 !important; }
footer p,
.footer p { color: rgba(248, 243, 234, 0.84); }
footer hr,
.footer hr { border-color: rgba(255,255,255,0.16) !important; }
footer .text-secondary,
.footer .text-secondary { color: rgba(248, 243, 234, 0.84) !important; }
footer a,
.footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}
footer a:hover,
.footer a:hover {
  color: white;
  text-decoration: underline;
}

.toggle-details,
.toggle-desc,
.service-extra-toggle {
  cursor: pointer;
  color: var(--primary-teal);
  font-weight: 700;
  transition: color 0.2s ease;
}
.counter {
  font-weight: 700;
}
.toggle-details:hover,
.toggle-desc:hover,
.service-extra-toggle:hover {
  color: var(--accent-coral);
  text-decoration: underline;
}
.extra-content,
.extra-info,
.extra-details {
  display: none;
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(240, 247, 244, 0.95));
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  margin-top: 1rem;
  border-left: 4px solid var(--accent-coral);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.form-control,
.form-select {
  border-radius: 16px;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(43, 108, 98, 0.16);
  background-color: #fdfbf7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 4px rgba(43, 108, 98, 0.14);
  background-color: white;
}
.form-label {
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.info-chip {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: white;
  backdrop-filter: blur(6px);
}
.info-chip i {
  color: white;
  margin-right: 6px;
}

.doctor-img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(43, 108, 98, 0.16);
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 22px -14px rgba(43, 108, 98, 0.35);
}
.doctor-specialty {
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.doctor-word {
  background: linear-gradient(135deg, var(--soft-blue) 0%, #faf6ef 100%);
  padding: 1rem 1.15rem;
  border-radius: 20px;
  margin: 1.2rem 0 0.8rem;
  font-style: italic;
  position: relative;
  border-left: 4px solid var(--accent-coral);
  color: var(--text-soft);
}
.doctor-word i {
  color: var(--accent-coral);
  margin-right: 4px;
}

.gallery-img {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: #dcefe9;
  transition: transform 0.35s ease;
  position: relative;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.03);
}
.gallery-tag {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(4px);
  color: var(--primary-teal);
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  display: inline-block;
  margin: 1rem 0 0.5rem 1rem;
}
.premise-desc {
  padding: 1.25rem 1.1rem 1.4rem;
}
.premise-desc h4 {
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-dark);
}
.premise-desc p {
  color: var(--text-soft);
  margin-bottom: 0;
}
.amenity-item {
  background: linear-gradient(135deg, var(--soft-blue) 0%, #f8f0e3 100%);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  display: inline-block;
  margin: 0.25rem;
  color: var(--accent-green);
  font-weight: 600;
  border: 1px solid rgba(43, 108, 98, 0.12);
}

.carousel-item img {
  height: 62vh;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
  border-radius: 24px;
}
.carousel-caption {
  background: linear-gradient(90deg, rgba(0,0,0,0.47), rgba(0,0,0,0.16));
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  left: 1rem;
  right: auto;
  max-width: 65%;
}

.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.toggle-details:focus-visible,
.toggle-desc:focus-visible,
.service-extra-toggle:focus-visible {
  outline: 3px solid rgba(201, 109, 67, 0.24);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hero,
  .hero-about,
  .hero-services,
  .hero-premise { padding: 3.35rem 0 2.7rem; }
  .section-title { font-size: 1.8rem; }
  .service-card,
  .testimonial-card,
  .management-card,
  .feature-card,
  .doctor-card,
  .appointment-form-card,
  .gallery-card { border-radius: 22px; }
  .appointment-form-card { padding: 1.8rem 1.2rem; }
  .cta-section { border-radius: 24px; padding: 2.3rem 1.2rem; }
}

@media (max-width: 700px) {
  .carousel-item img { height: 46vh; }
  .carousel-caption { max-width: 90%; left: 0.75rem; right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
