/* ==========================================================================
   SHYAM HOSPITAL — Design System
   ========================================================================== */

:root {
  /* Colors */
  --navy: #101b4b;
  --primary: #1749d1;
  --bright-blue: #2859e8;
  --light-blue: #eef4ff;
  --very-light-blue: #f6f9ff;
  --white: #ffffff;
  --soft-green: #dff5ec;
  --green: #0e9f6e;
  --text-gray: #667085;
  --border: #e4eaf5;
  --navy-soft: rgba(16, 27, 75, 0.06);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", var(--font-body);

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 27, 75, 0.05);
  --shadow-sm: 0 4px 14px rgba(16, 27, 75, 0.06);
  --shadow-md: 0 10px 30px -8px rgba(23, 73, 209, 0.16);
  --shadow-lg: 0 24px 60px -18px rgba(16, 27, 75, 0.22);

  /* Layout */
  --container: 1280px;
  --container-pad: 24px;
  --header-h: 78px;

  /* Transitions */
  --t-fast: 0.18s ease;
  --t: 0.3s ease;
  --t-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================ RESET & BASE ============================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(23, 73, 209, 0.15);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(23, 73, 209, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ============================ UTILITIES ============================ */

.container {
  max-width: calc(var(--container) + var(--container-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 96px;
}

.section-title {
  font-size: clamp(30px, 3.2vw, 40px);
  margin-bottom: 16px;
}

.section-text {
  color: var(--text-gray);
  font-size: 17px;
  max-width: 560px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

/* Pill badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--light-blue);
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.pill-badge svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.pill-badge-dark {
  background: rgba(23, 73, 209, 0.1);
}

/* Links */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  padding: 8px 0;
  white-space: nowrap;
  position: relative;
}

.link-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 2px;
  width: 0;
  background: var(--primary);
  border-radius: var(--r-full);
  transition: width var(--t);
}

.link-more:hover::after {
  width: 100%;
}

.link-more span {
  transition: transform var(--t);
}

.link-more:hover span {
  transform: translateX(4px);
}

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  line-height: 1;
  transition: all var(--t);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bright-blue), var(--primary));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(40, 89, 232, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), #103aa8);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(40, 89, 232, 0.6);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: rgba(23, 73, 209, 0.32);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--light-blue);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--very-light-blue);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--light-blue);
}

.btn-sm {
  padding: 12px 18px;
  font-size: 14px;
  border-radius: var(--r-sm);
}

.btn-block {
  width: 100%;
}

/* ============================ HEADER ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bright-blue), var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -6px rgba(23, 73, 209, 0.5);
}

.brand-logo svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--primary);
}

.main-nav {
  margin-inline: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  color: #2c3560;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2.5px;
  border-radius: var(--r-full);
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--very-light-blue);
  transition: background var(--t-fast);
}

.nav-toggle:hover {
  background: var(--light-blue);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--t);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: block;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow);
  border-top: 1px solid transparent;
  background: var(--white);
}

.mobile-menu.open {
  max-height: 560px;
  border-top-color: var(--border);
}

.mobile-menu nav {
  padding: 10px var(--container-pad) 4px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-list a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  color: #2c3560;
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.mobile-nav-list a:last-child {
  border-bottom: none;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  color: var(--primary);
  padding-left: 10px;
}

.mobile-menu .btn-appointment {
  margin: 16px var(--container-pad) 24px;
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================ HERO ============================ */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--very-light-blue) 0%, #f2f7ff 55%, var(--white) 100%);
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.blob-1 {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(40, 89, 232, 0.2), transparent 70%);
}

.blob-2 {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -80px;
  background: radial-gradient(circle at 50% 50%, rgba(14, 159, 110, 0.12), transparent 70%);
}

.cross {
  position: absolute;
  color: rgba(23, 73, 209, 0.08);
  width: 140px;
  height: 140px;
}

.cross-1 {
  top: 120px;
  left: 6%;
}

.cross-2 {
  bottom: 40%;
  right: 4%;
  width: 90px;
  height: 90px;
  color: rgba(23, 73, 209, 0.06);
}

.cross-3 {
  bottom: 8%;
  left: 42%;
  width: 60px;
  height: 60px;
  color: rgba(40, 89, 232, 0.07);
}

.curve-line {
  position: absolute;
  color: rgba(40, 89, 232, 0.14);
  width: 420px;
  height: 210px;
}

.curve-line-1 {
  top: 190px;
  right: -90px;
  transform: rotate(6deg);
}

.curve-line-2 {
  bottom: 120px;
  left: -110px;
  transform: rotate(180deg);
  opacity: 0.8;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 130px;
}

.hero-copy {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.07;
  margin-bottom: 22px;
}

.hero-title .title-break {
  display: block;
}

.highlight {
  color: var(--primary);
  position: relative;
}

.hero-sub {
  color: var(--text-gray);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.hero-img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(16, 27, 75, 0.18));
  pointer-events: none;
}

.hero-img-frame img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-chip svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  flex: none;
}

.hero-chip strong {
  font-family: var(--font-display);
  font-weight: 800;
}

.chip-top {
  top: 22px;
  right: 22px;
  animation: float 6s ease-in-out infinite;
}

.chip-top svg {
  background: var(--soft-green);
  color: var(--green);
  fill: var(--green);
}

.chip-bottom {
  bottom: 22px;
  left: 22px;
  animation: float 7s ease-in-out 1s infinite;
}

.chip-bottom svg {
  background: var(--light-blue);
  color: var(--primary);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================ STATS ============================ */

.stats-card {
  position: relative;
  z-index: 5;
  margin-top: -72px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(228, 234, 245, 0.7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 24px;
  gap: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 8px 16px;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: var(--border);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--icon-bg, var(--light-blue));
  color: var(--icon-color, var(--primary));
  margin-bottom: 10px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.stat-label {
  color: var(--text-gray);
  font-size: 13.5px;
  font-weight: 500;
}

/* ============================ ABOUT ============================ */

.section-about {
  background: var(--white);
  padding-top: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-frame img {
  width: 100%;
  aspect-ratio: 6 / 5.2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-frame:hover img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 22px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.about-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft-green);
  color: var(--green);
  flex: none;
}

.about-badge-icon svg {
  width: 24px;
  height: 24px;
}

.about-badge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}

.about-badge-label {
  font-size: 13px;
  color: var(--text-gray);
  max-width: 110px;
  line-height: 1.35;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-top: 34px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.35;
}

.feature-item strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--light-blue);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
  transition: all var(--t);
}

.feature-item:hover .feature-icon {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* ============================ SERVICES ============================ */

.section-services {
  background: var(--very-light-blue);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(23, 73, 209, 0.25);
}

.service-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 30px 18px 20px;
  position: relative;
}

.service-icon {
  position: absolute;
  top: -24px;
  left: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bright-blue), var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -6px rgba(23, 73, 209, 0.55);
  border: 3px solid var(--white);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.service-card-text {
  color: var(--text-gray);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ============================ DOCTORS ============================ */

.section-doctors {
  background: linear-gradient(160deg, var(--light-blue) 0%, #e3eeff 100%);
  border-radius: 0;
}

.doctors-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: center;
}

.doctors-copy .section-text {
  margin-bottom: 28px;
}

.doctors-slider {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}

.carousel-track {
  display: flex;
  transition: transform var(--t-slow);
}

.doctor-card {
  flex: 0 0 calc(100% / 2);
  padding: 10px;
  min-width: 0;
}

.doctor-card-inner {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}

.doctor-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.doctor-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.06;
}

.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  background: var(--light-blue);
}

.doctor-card:hover .doctor-img img {
  transform: scale(1.06);
}

.doctor-body {
  padding: 18px 20px 20px;
  text-align: center;
}

.doctor-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 2px;
}

.doctor-spec {
  color: var(--text-gray);
  font-size: 13.5px;
  margin-bottom: 10px;
}

.doctor-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--very-light-blue);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.doctor-rating svg {
  width: 14px;
  height: 14px;
  color: #f7a325;
  fill: #f7a325;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ============================ FACILITIES ============================ */

.section-facilities {
  position: relative;
  background:
    linear-gradient(160deg, rgba(16, 27, 75, 0.96) 0%, rgba(10, 20, 60, 0.985) 100%);
  color: #fff;
  overflow: hidden;
}

.section-facilities::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/10207623/pexels-photo-10207623.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
}

.section-facilities .section-title {
  color: #fff;
}

.section-facilities .section-text {
  color: rgba(255, 255, 255, 0.75);
}

.facilities-head {
  text-align: center;
  margin-bottom: 48px;
}

.facilities-head .pill-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.facilities-head .section-text {
  margin-inline: auto;
}

.facilities-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.facility-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t), box-shadow var(--t);
}

.facility-card:hover {
  transform: translateY(-8px);
}

.facility-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.facility-card:hover img {
  transform: scale(1.08);
}

.facility-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(16, 27, 75, 0.05) 30%, rgba(4, 10, 30, 0.88) 100%);
}

.facility-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  flex: none;
}

/* ============================ NEWS ============================ */

.section-news {
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.news-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.news-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.07);
}

.news-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-xs);
}

.news-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-gray);
  font-size: 12.5px;
  margin-bottom: 10px;
}

.news-meta svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.news-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.news-excerpt {
  color: var(--text-gray);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.news-read {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-read svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t);
}

.news-card:hover .news-read svg {
  transform: translateX(4px);
}

/* ============================ CTA ============================ */

.section-cta {
  background: var(--white);
  padding-top: 0;
  padding-bottom: 96px;
}

.cta-panel {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(16, 27, 75, 0.94) 0%, rgba(23, 73, 209, 0.88) 100%),
    url("https://images.pexels.com/photos/8809910/pexels-photo-8809910.jpeg?auto=compress&cs=tinysrgb&w=1600") center / cover no-repeat;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-title {
  color: #fff;
  font-size: clamp(32px, 3.6vw, 46px);
  margin-bottom: 14px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  margin-bottom: 26px;
}

.cta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.cta-pill svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.cta-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 38px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-card-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--light-blue);
  color: var(--primary);
  margin-bottom: 16px;
}

.cta-card-icon svg {
  width: 28px;
  height: 28px;
}

.cta-card-label {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.cta-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  transition: color var(--t-fast);
}

.cta-phone:hover {
  color: var(--primary);
}

.cta-card-sub {
  color: var(--text-gray);
  font-size: 13.5px;
  margin-bottom: 22px;
}

/* ============================ FOOTER ============================ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand .brand-logo {
  background: var(--bright-blue);
}

.footer-col h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-contact span,
.footer-contact a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: #7aa2ff;
  flex: none;
  margin-top: 2px;
}

.footer-contact a:hover {
  color: #fff;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--t-fast);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--t-fast);
}

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

/* ============================ MODAL ============================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 16, 40, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.97);
  transition: transform var(--t-slow);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.modal-title-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--light-blue);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}

.modal-icon svg {
  width: 22px;
  height: 22px;
}

.modal-title-wrap h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.modal-title-wrap p {
  color: var(--text-gray);
  font-size: 13.5px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-gray);
  background: var(--very-light-blue);
  transition: all var(--t-fast);
  flex: none;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-close:hover {
  background: #fdecef;
  color: #d1435b;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.form-field label span {
  color: var(--primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--very-light-blue);
  font-size: 14.5px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.form-field textarea {
  resize: vertical;
  min-height: 74px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aa4c2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(40, 89, 232, 0.12);
}

.form-field.invalid input,
.form-field.invalid select {
  border-color: #e02424;
  background: #fff7f7;
}

.field-error {
  font-size: 12.5px;
  color: #e02424;
  min-height: 0;
  display: none;
}

.form-field.invalid .field-error {
  display: block;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

/* Modal success */
.modal-success {
  text-align: center;
  padding: 24px 8px 8px;
}

.success-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--soft-green);
  color: var(--green);
  margin-bottom: 22px;
  animation: pop 0.5s var(--t-slow) both;
}

.success-check svg {
  width: 40px;
  height: 40px;
}

.modal-success h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.modal-success p {
  color: var(--text-gray);
  max-width: 400px;
  margin: 0 auto 26px;
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================ TOAST ============================ */

.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--t-slow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  width: 20px;
  height: 20px;
  color: #4ade80;
  flex: none;
}

/* ============================ REVEAL ANIMATIONS ============================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .nav-link {
    padding: 10px 10px;
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .header-actions .btn-appointment {
    display: none;
  }

  .doctors-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doctors-copy {
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
  }

  .doctors-copy .section-text {
    margin-inline: auto;
  }

  .doctor-card {
    flex: 0 0 calc(100% / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 40px;
  }

  .about-grid {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 120px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .stat-num {
    font-size: 26px;
  }

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

  .about-copy {
    max-width: 640px;
  }

  .facilities-scroll {
    grid-template-columns: repeat(5, 70%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: thin;
  }

  .facility-card {
    scroll-snap-align: start;
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  :root {
    --container-pad: 20px;
  }

  .section {
    padding-block: 72px;
  }

  .section-about {
    padding-top: 96px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    flex: 0 0 88%;
  }

  .stats-card {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
    padding: 28px 12px;
  }

  .stat + .stat::before {
    display: none;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
    padding-top: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-panel {
    padding: 44px 26px;
  }

  .cta-card {
    padding: 30px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom .container {
    justify-content: center;
    text-align: center;
  }

  .modal {
    padding: 28px 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card {
    max-width: 340px;
    margin-inline: auto;
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-chip {
    padding: 10px 12px;
    font-size: 12px;
  }

  .stat-num {
    font-size: 24px;
  }
}