:root {
  --primary: #0878b8;
  --primary-dark: #03557f;
  --teal: #10a6a6;
  --accent: #f47b20;
  --green: #25a75b;
  --ink: #102033;
  --muted: #667085;
  --line: #d9e6ef;
  --soft: #eef8fb;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(3, 85, 127, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(96px, 14vh, 136px);
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: #fbfdff;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  --building-slide: 0px;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: -90px 0 auto 0;
  z-index: 0;
  height: min(720px, 78vh);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(251, 253, 255, 0.12) 0%,
      rgba(251, 253, 255, 0.45) 45%,
      rgba(251, 253, 255, 0.88) 82%,
      #fbfdff 100%
    ),
    url("../images/hospital-exterior-day.png") center top / cover no-repeat;
  content: "";
  opacity: 0.42;
  transform: translate3d(0, var(--building-slide), 0);
  transition: transform 0.08s linear;
}

body > * {
  position: relative;
  z-index: 1;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(16, 166, 166, 0.18), transparent 34%),
    linear-gradient(135deg, #f7fcff 0%, #e8f7fb 48%, #fff7ee 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.loader-done .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  display: grid;
  justify-items: center;
  width: min(360px, 100%);
  padding: 34px 28px;
  border: 1px solid rgba(8, 120, 184, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
}

.loader-logo {
  display: block;
  width: 108px;
  height: 108px;
  margin-bottom: 24px;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(8, 120, 184, 0.2);
  animation: loaderFloat 1.55s ease-in-out infinite;
}

.loader-pulse {
  position: relative;
  display: block;
  width: min(230px, 80%);
  height: 46px;
  margin-bottom: 18px;
  overflow: hidden;
}

.loader-pulse::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--teal), transparent);
  content: "";
  transform: translateY(-50%);
}

.loader-pulse::after {
  position: absolute;
  top: 7px;
  left: -45%;
  width: 48%;
  height: 32px;
  background:
    linear-gradient(135deg, transparent 0 18%, var(--accent) 18% 24%, transparent 24% 42%, var(--accent) 42% 48%, transparent 48% 68%, var(--accent) 68% 74%, transparent 74%);
  content: "";
  animation: pulseMove 1.15s linear infinite;
}

.loader-card strong {
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.loader-card small {
  color: var(--muted);
  font-weight: 800;
}

@keyframes loaderFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes pulseMove {
  to {
    left: 100%;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  padding: 92px 0;
}

.soft-section {
  background:
    radial-gradient(circle at top left, rgba(16, 166, 166, 0.12), transparent 34%),
    linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px 16px;
  color: var(--white);
  background: linear-gradient(90deg, var(--primary-dark), var(--teal));
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.top-strip a {
  color: #fff4d6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 30px rgba(16, 32, 51, 0.08);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8, 120, 184, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
}

.brand small {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #21364f;
  font-weight: 700;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 8px 0;
}

.nav-links a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active:not(.btn)::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), #ff9f1c);
  box-shadow: 0 12px 28px rgba(244, 123, 32, 0.28);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  box-shadow: 0 16px 34px rgba(244, 123, 32, 0.34);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn-map-outline {
  border-color: rgba(8, 120, 184, 0.22);
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(8, 120, 184, 0.14);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #053c67 0%, #0878b8 48%, #10a6a6 100%);
}

.hero.hero-slider {
  overflow: visible;
}

.hero.hero-slider::after {
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.page-hero {
  padding: 92px 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-slider {
  min-height: 720px;
}

.slides {
  position: relative;
  min-height: 630px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: clamp(118px, 14vh, 150px) 0 120px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(38px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-slider .hero-grid {
  width: min(1160px, calc(100% - 32px));
  align-self: center;
  padding-top: 4px;
}

.slider-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  min-width: 64px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  z-index: 5;
  bottom: 122px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.slider-dots button.active {
  width: 34px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-trust {
  position: absolute;
  right: 0;
  bottom: 38px;
  left: 0;
  z-index: 3;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff4bd;
}

.hero h1,
.section-copy h2,
.section-heading h2,
.doctor-info h2 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-copy h2,
.section-heading h2,
.doctor-info h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--ink);
}

.hero p,
.section-copy p,
.section-heading p,
.doctor-info p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.section-copy p,
.section-heading p,
.doctor-info p {
  color: var(--muted);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-row div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 1.8rem;
  line-height: 1;
}

.trust-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.hero-media {
  position: relative;
}

.photo-card,
.facility-card,
.doctor-card,
.appointment-form,
.quick-info article,
.faq-item {
  box-shadow: var(--shadow);
}

.photo-card {
  min-height: 520px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
}

.photo-card img,
.facility-card img,
.gallery-item img,
.doctor-photo img,
.image-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 120, 184, 0.9), rgba(16, 166, 166, 0.82)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 30%);
}

.image-fallback img {
  position: relative;
  z-index: 1;
}

.image-fallback img[src=""],
.image-fallback img:not([src]) {
  display: none;
}

.logo-fallback {
  background: #ffffff;
}

.exterior-fallback {
  background: linear-gradient(135deg, #04476f, #0878b8 45%, #ff7f2a);
}

.reception-fallback {
  background: linear-gradient(135deg, #eef8fb, #0878b8);
}

.doctor-fallback {
  background: linear-gradient(135deg, #e7f6ff, #0878b8);
}

.patient-fallback,
.ward-fallback {
  background: linear-gradient(135deg, #f4fbff, #0d8ac1);
}

.nicu-fallback,
.incubator-fallback {
  background: linear-gradient(135deg, #f7fbff, #10a6a6);
}

.floating-card {
  position: absolute;
  right: -18px;
  bottom: 34px;
  padding: 18px 22px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-card span,
.floating-card strong {
  display: block;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -52px;
  position: relative;
  z-index: 3;
}

.service-detail-grid,
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-card {
  padding: 26px;
  border: 1px solid rgba(8, 120, 184, 0.12);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(16, 32, 51, 0.08);
}

.detail-card h3 {
  margin: 0 0 10px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
}

.detail-card a {
  color: var(--primary-dark);
  font-weight: 900;
}

.gallery-page-grid .gallery-item {
  height: 310px;
}

.quick-info article {
  min-height: 176px;
  padding: 24px;
  border: 1px solid rgba(8, 120, 184, 0.12);
  border-radius: 22px;
  background: var(--white);
}

.quick-info span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-info strong {
  display: block;
  margin: 8px 0;
  font-size: 1.2rem;
}

.quick-info p {
  margin: 0;
  color: var(--muted);
}

.quick-info a {
  color: var(--primary-dark);
  font-weight: 800;
}

.split-grid,
.appointment-grid,
.faq-grid,
.map-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.map-card {
  min-height: 420px;
  overflow: hidden;
  border: 10px solid var(--white);
  border-radius: 30px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.image-stack {
  position: relative;
}

.image-stack .photo-card {
  min-height: 430px;
  border-color: #ffffff;
}

.mini-logo {
  position: absolute;
  right: 20px;
  bottom: -34px;
  width: min(260px, 70%);
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list p {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: #f6fbff;
}

.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.department-card {
  padding: 24px;
  border: 1px solid rgba(8, 120, 184, 0.1);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(16, 32, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.department-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.department-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--teal));
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.department-card h3,
.facility-card h3,
.timing-card h3,
.site-footer h3 {
  margin: 0 0 10px;
}

.department-card p,
.facility-card p {
  margin: 0;
  color: var(--muted);
}

.doctor-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
  padding: 28px;
  border: 1px solid rgba(8, 120, 184, 0.12);
  border-radius: 34px;
  background: var(--white);
}

.doctor-photo {
  min-height: 480px;
  border-radius: 26px;
}

.doctor-title {
  color: var(--primary-dark) !important;
  font-weight: 800;
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.doctor-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #e6f5fb;
  font-size: 0.9rem;
  font-weight: 800;
}

.timing-card {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5fbff, #fff7ef);
}

.timing-card p {
  margin: 8px 0;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.facility-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
}

.facility-card .image-fallback {
  height: 260px;
}

.facility-card h3,
.facility-card p {
  padding: 0 22px;
}

.facility-card h3 {
  padding-top: 22px;
}

.facility-card p {
  padding-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  height: 250px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.12);
}

.appointment-section {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #053c67, #0878b8 48%, #10a6a6);
}

.appointment-section .section-copy h2,
.appointment-section .section-copy p {
  color: var(--white);
}

.appointment-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 120, 184, 0.12);
}

.form-status {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(8, 120, 184, 0.12);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-item span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
}

.faq-item span::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
}

.faq-item p {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
}

.faq-item.active span::after {
  content: "-";
}

.faq-item.active p {
  display: block;
}

.site-footer {
  color: #dbeeff;
  background: #082337;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 56px 0;
}

.footer-brand {
  width: 230px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
}

.site-footer p {
  color: #b8d3e5;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #eaf8ff;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 28, 43, 0.88);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 980px);
  max-height: 82vh;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 14px;
    font-size: 0.93rem;
  }

  .hero-grid,
  .split-grid,
  .appointment-grid,
  .faq-grid,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .quick-info,
  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .service-detail-grid,
  .contact-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .top-strip {
    flex-direction: column;
    gap: 4px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 123px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px !important;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-slider {
    min-height: auto;
  }

  .slides {
    min-height: 790px;
  }

  .hero-slide {
    align-items: flex-start;
    padding: clamp(88px, 12vw, 112px) 0 120px;
  }

  .hero-slider .hero-grid {
    align-self: stretch;
  }

  .slider-arrow {
    top: auto;
    bottom: 64px;
    transform: none;
  }

  .slider-prev {
    left: calc(50% - 78px);
  }

  .slider-next {
    right: calc(50% - 78px);
  }

  .slider-dots {
    bottom: 22px;
  }

  .hero-trust {
    position: static;
    padding-bottom: 32px;
  }

  .photo-card {
    min-height: 360px;
  }

  .quick-info,
  .department-grid,
  .facility-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-grid,
  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .quick-info {
    margin-top: 28px;
  }

  .floating-card {
    right: 12px;
    bottom: 18px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .section-pad {
    padding: 64px 0;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .doctor-card,
  .appointment-form {
    padding: 18px;
    border-radius: 22px;
  }

  .doctor-photo,
  .image-stack .photo-card {
    min-height: 330px;
  }

  .map-card,
  .map-card iframe {
    min-height: 340px;
    height: 340px;
  }

  .mini-logo {
    position: static;
    width: 100%;
    margin-top: 16px;
  }
}
