:root {
  --color-primary: #1e3a8a;
  --color-primary-strong: #1d4ed8;
  --color-secondary: #0ea5a4;
  --color-accent: #f59e0b;
  --color-text: #1f2937;
  --color-muted: #4b5563;
  --color-bg: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.62);
  --color-surface-strong: rgba(255, 255, 255, 0.82);
  --color-line: rgba(148, 163, 184, 0.22);
  --color-dark: #0f172a;
  --shadow-sm: 0 14px 32px rgba(30, 58, 138, 0.08);
  --shadow-md: 0 26px 60px rgba(15, 23, 42, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(30, 58, 138, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 164, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  background: rgba(15, 23, 42, 0.88);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.topbar-inner,
.nav-inner,
.footer-grid,
.appointment-grid,
.about-grid,
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.topbar-inner {
  grid-template-columns: 1.6fr auto;
  align-items: center;
  padding: 0.85rem 0;
}

.topbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.topbar-right a {
  color: #fff;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
}

.brand img {
  border-radius: 50%;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  font-weight: 600;
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  transform-origin: center;
}

.btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px rgba(30, 58, 138, 0.22);
}

.btn:active {
  transform: translateY(-1px) scale(1.01);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 58, 138, 0.46) 48%, rgba(14, 165, 164, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 5rem 0;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.05;
  max-width: 10ch;
}

.hero-copy,
.hero-content p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section,
.gallery-section {
  padding: clamp(4.5rem, 9vw, 6.75rem) 0;
}

.feature-band {
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

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

.feature-grid article,
.service-item,
.dept-panel,
.doctor-card,
.appointment-form,
.about-media img,
.about-content {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.feature-grid article,
.service-item,
.dept-panel,
.doctor-card,
.about-content {
  padding: 1.6rem;
}

.feature-grid article,
.service-item,
.dept-panel,
.doctor-card,
.appointment-form,
.about-content,
.tab,
.gallery-item,
.lightbox-close {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature-grid p,
.service-item p,
.dept-panel p,
.doctor-card p,
.about-content p,
.footer p,
.footer li,
.form-status {
  color: var(--color-muted);
}

.section-head {
  margin-bottom: 2.2rem;
  max-width: 720px;
}

.section-head h2,
.about-content h2,
.appointment-copy h2,
.gallery-header h2,
.footer h3,
.feature-grid h3,
.service-item h3,
.dept-panel h3,
.doctor-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Outfit", sans-serif;
}

.section-head h2,
.about-content h2,
.appointment-copy h2,
.gallery-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

.services-grid,
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-item {
  border: 1px solid rgba(30, 58, 138, 0.08);
}

.service-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.feature-grid article:hover,
.service-item:hover,
.dept-panel:hover,
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-item:hover img,
.about-media:hover img,
.doctor-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.about-meta article {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(30, 58, 138, 0.08);
}

.about-meta article h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.checklist {
  margin: 1.4rem 0 2rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--color-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.departments {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.07) 0%, rgba(14, 165, 164, 0.06) 100%);
}

.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: transparent;
}

.dept-panel {
  display: none;
  border: 1px solid rgba(30, 58, 138, 0.12);
}

.dept-panel.active {
  display: block;
}

.appointment-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.appointment-copy {
  padding-top: 1rem;
}

.appointment-form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.appointment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14);
}

.gallery-header {
  margin-bottom: 1.5rem;
}

.impact-strip {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.impact-item {
  padding: 1.35rem 1rem;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.08), rgba(14, 165, 164, 0.05));
  border: 1px solid rgba(30, 58, 138, 0.08);
}

.impact-item strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.impact-item span {
  color: var(--color-muted);
  font-weight: 600;
}

.partners {
  padding-bottom: 2rem;
}

.partners-head {
  text-align: center;
  margin-inline: auto;
}

.partners-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 138, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.media-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(30, 58, 138, 0.08);
  box-shadow: var(--shadow-sm);
}

.media-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-family: "Outfit", sans-serif;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gallery-controls button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(30, 58, 138, 0.22);
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.gallery-item {
  flex: 0 0 min(320px, 80vw);
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md);
  filter: saturate(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.8);
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

#lightboxImg {
  max-width: min(100%, 1000px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.doctor-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.footer {
  background: #0b1220;
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  padding-bottom: 2rem;
  gap: 40px;
}

.footer-brand,
.footer-links,
.footer-contact {
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.footer-brand:hover,
.footer-links:hover,
.footer-contact:hover {
  transform: none;
}

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

.footer-brand p,
.footer-contact span,
.footer-links a,
.copyright {
  color: rgba(226, 232, 240, 0.8);
}

.footer h3 {
  color: #ffffff;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.08rem;
}

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.footer-social a,
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-2px) scale(1.06);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.38), rgba(14, 165, 164, 0.28));
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(14, 165, 164, 0.22);
}

.footer-social i,
.footer-icon i {
  font-size: 0.95rem;
}

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

.footer-links a,
.footer-contact li {
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  padding: 0.15rem 0;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #a5f3fc;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer li + li {
  margin-top: 0.85rem;
}

.newsletter-status {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: rgba(224, 231, 255, 0.78);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 1rem;
  max-width: 100%;
}

.newsletter-form input {
  flex: none;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.newsletter-form input:focus {
  border-color: rgba(165, 243, 252, 0.45);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.18), 0 8px 20px rgba(14, 165, 164, 0.12);
  transform: translateY(-1px);
}

.newsletter-form .btn {
  white-space: nowrap;
  box-shadow: none;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-bottom-bar {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.copyright {
  padding: 0;
  margin: 0;
  color: rgba(224, 231, 255, 0.68);
}

.footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  color: rgba(224, 231, 255, 0.68);
}

.footer-meta-links a {
  position: relative;
  color: rgba(226, 232, 240, 0.82);
}

.footer-meta-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-meta-links a:hover::after {
  transform: scaleX(1);
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 980px) {
  .feature-grid,
  .services-grid,
  .doctor-grid,
  .about-grid,
  .media-grid,
  .impact-grid,
  .partners-row,
  .appointment-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .topbar {
    display: none;
  }

  .nav-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .desktop-cta {
    display: none;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--color-line);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 0.85rem 0.25rem;
  }

  .feature-grid,
  .services-grid,
  .doctor-grid,
  .media-grid,
  .impact-grid,
  .partners-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 72vh;
  }
}

@media (max-width: 560px) {
  .section,
  .gallery-section {
    padding: 4rem 0;
  }

  .hero-content {
    padding: 4rem 0;
  }

  .gallery-controls {
    justify-content: center;
  }

  .gallery-item {
    flex-basis: 86vw;
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
