/* =============================================
   GBM NURSING HOME — style.css
   Aesthetic: Refined Medical — Deep Teal + Warm White + Gold accents
   ============================================= */

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

:root {
  --teal: #0a6e6e;
  --teal-light: #0d9b8e;
  --teal-dark: #064e4e;
  --gold: #c8994a;
  --cream: #f8f4ef;
  --white: #ffffff;
  --dark: #0c1a1a;
  --mid: #3a5555;
  --light-bg: #f0f7f7;
  --card-bg: #ffffff;
  --border: rgba(10, 110, 110, 0.12);
  --shadow: 0 20px 60px rgba(10, 110, 110, 0.12);
  --shadow-sm: 0 4px 20px rgba(10, 110, 110, 0.08);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}

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

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

em {
  font-style: italic;
  color: var(--teal);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- PRELOADER ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--teal-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.pre-cross {
  width: 60px;
  height: 60px;
  position: relative;
  animation: spin 1.2s linear infinite;
  margin-bottom: 20px;
}

.pre-cross span {
  position: absolute;
  background: var(--gold);
  border-radius: 4px;
}

.pre-cross span:first-child {
  width: 8px;
  height: 60px;
  left: 26px;
  top: 0;
}

.pre-cross span:last-child {
  width: 60px;
  height: 8px;
  left: 0;
  top: 26px;
}

.pre-text {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 3px;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5
  }

  50% {
    opacity: 1
  }
}

/* ---- CUSTOM CURSOR ---- */
#cursor {
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: 0.12s ease-out;
  opacity: 0.5;
}

body.cursor-hover #cursor {
  width: 18px;
  height: 18px;
  background: var(--gold);
}

body.cursor-hover #cursor-follower {
  width: 50px;
  height: 50px;
  opacity: 0.3;
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 22px;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

#navbar:not(.scrolled) {
  background: transparent;
}

#navbar:not(.scrolled) .nav-logo strong,
#navbar:not(.scrolled) .nav-logo small,
#navbar:not(.scrolled) .nav-links li a {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

#navbar:not(.scrolled) .logo-cross {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

#navbar:not(.scrolled) .nav-links li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

#navbar:not(.scrolled) .nav-links li a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

#navbar:not(.scrolled) .hamburger span {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(10, 110, 110, 0.1);
  padding: 0 40px;
}

.nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  transition: opacity var(--transition);
}

.nav-logo>div {
  display: flex;
  flex-direction: column;
}

.nav-logo strong {
  display: block;
  font-size: clamp(1.35rem, 1.1vw, 1.6rem);
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: var(--teal);
}

.nav-logo small {
  display: block;
  font-size: clamp(0.75rem, 0.75vw, 0.9rem);
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--mid);
  font-family: var(--font-body);
  font-weight: 700;
}

/* Make brand more visible as a "badge" */
.nav-logo {
  padding: 10px 100px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
}

#navbar.scrolled .nav-logo {
  background: linear-gradient(135deg, rgba(10, 110, 110, 0.08), rgba(200, 153, 74, 0.08));
  border: 1px solid rgba(10, 110, 110, 0.18);
}

#navbar:not(.scrolled) .nav-logo {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.nav-logo:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.logo-cross {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #b8892a);
  box-shadow:
    0 10px 26px rgba(200, 153, 74, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  flex: 0 0 auto;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

#navbar.scrolled .logo-cross {
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  box-shadow:
    0 10px 26px rgba(10, 110, 110, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links li a {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover {
  color: var(--teal);
  background: rgba(10, 110, 110, 0.07);
}

.nav-links .nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-links .nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 110, 110, 0.3);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: white;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
  background: var(--light-bg);
  color: var(--teal);
}

.mobile-menu.open {
  display: flex;
}

/* ---- HERO ---- */
.nav-hero {
  position: relative;
  background-image: url("main building 2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.nav-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,
      rgba(6, 78, 78, 0.80) 0%,
      rgba(10, 92, 92, 0.55) 45%,
      rgba(13, 117, 117, 0.65) 100%);
  pointer-events: none;
  z-index: 0;
}

#hero {
  position: relative;
  z-index: 1;
}

#hero {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

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

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blob1 {
  width: 600px;
  height: 600px;
  background: var(--teal-light);
  top: -200px;
  right: -100px;
  animation: drift 12s ease-in-out infinite;
}

.blob2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -150px;
  left: -100px;
  animation: drift 16s ease-in-out infinite reverse;
}

.blob3 {
  width: 300px;
  height: 300px;
  background: #0ff;
  top: 40%;
  left: 40%;
  animation: drift 10s ease-in-out infinite 2s;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: clamp(50px, 3vw, 64px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-exp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg,
      rgba(200, 153, 74, 0.32) 0%,
      rgba(10, 110, 110, 0.18) 55%,
      rgba(200, 153, 74, 0.26) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 1.02rem;
  margin-bottom: 18px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(200, 153, 74, 0.25) inset;
  backdrop-filter: blur(10px);
  position: relative;
  transform: translateZ(0);
}

.hero-exp::before,
.hero-exp::after {
  content: "✦";
  color: rgba(200, 153, 74, 0.95);
  font-size: 0.95rem;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.hero-exp::after {
  opacity: 0.9;
}

.hero-exp:hover {
  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(200, 153, 74, 0.35) inset;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .hero-exp {
    font-size: 0.95rem;
    letter-spacing: 2.4px;
    padding: 11px 18px;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: white;
  margin-bottom: 24px;
}

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

.hero-title .accent-line {
  color: var(--gold);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: white;
  box-shadow: 0 8px 30px rgba(200, 153, 74, 0.4);
}

.btn-primary:hover {
  background: #b8892a;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(200, 153, 74, 0.5);
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 24px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat {
  text-align: left;
  padding: 0 20px;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat:first-child {
  padding-left: 0;
}

.stat-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  letter-spacing: -1px;
}

.stat span {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 800;
  margin-left: 2px;
}

.stat small {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-div {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Hero card */
.hero-card {
  position: absolute;
  left: 80%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
  width: 280px;
  z-index: 2;
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}

.hcard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid);
  margin-bottom: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e74c3c;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #e74c3c;
  animation: pulsate 1.5s ease-out infinite;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hcard-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}

.hcard-sub {
  font-size: 0.78rem;
  color: var(--mid);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hcard-btn {
  display: block;
  text-align: center;
  background: var(--teal);
  color: white;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.3s, transform 0.3s;
}

.hcard-btn:hover {
  background: var(--teal-dark);
  transform: scale(1.03);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8)
  }

  50% {
    opacity: 1;
    transform: scaleY(1)
  }
}

/* ---- ABOUT ---- */
#about {
  padding: 120px 0;
}

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

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 500px;
  border-radius: 24px;
  overflow: hidden;
}

.about-img-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--teal-light), var(--teal-dark));
  border-radius: 24px;
}

.about-img-bg::before {
  content: '🏥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  opacity: 0.15;
}

.about-tag {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: white;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-year {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--gold);
  color: white;
  padding: 16px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(200, 153, 74, 0.4);
}

.about-year strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1;
}

.about-year small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
}

.about-text p {
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.pillar {
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pillar strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 700;
}

.pillar span {
  display: block;
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 2px;
}

/* ---- TICKER ---- */
.ticker-wrap {
  background: var(--teal-dark);
  overflow: hidden;
  padding: 18px 0;
}

.ticker-track {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.ticker-track .dot {
  color: var(--gold);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---- SECTION SHARED ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(10, 110, 110, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-sub {
  margin: 0 auto;
}

/* ---- FACILITIES ---- */
#facilities {
  padding: 120px 0;
  background: var(--cream);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fac-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.fac-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.fac-card:hover::before {
  transform: scaleX(1);
}

.fac-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.fac-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.fac-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.fac-card p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ---- SPECIALITIES ---- */
#specialities {
  padding: 120px 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.spec-bg {
  position: absolute;
  top: 0;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 110, 110, 0.05), transparent 70%);
  pointer-events: none;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}

.spec-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition);
  cursor: default;
  position: relative;
}

.spec-item:nth-child(4n) {
  border-right: none;
}

.spec-item:nth-last-child(-n+4) {
  border-bottom: none;
}

.spec-item:hover {
  background: var(--light-bg);
}

.spec-item span {
  display: block;
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.spec-item strong {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 700;
}

.diag-row {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--border);
}

.diag-title {
  font-weight: 700;
  color: var(--dark);
  min-width: 160px;
  font-size: 1rem;
}

.diag-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.diag-tags span {
  background: white;
  color: var(--teal);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.diag-tags span:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* ---- INSURANCE ---- */
#insurance {
  padding: 120px 0;
  background: var(--cream);
}

.ins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ins-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.ins-card.govt {
  background: linear-gradient(145deg, #fff9f0, #fff4e0);
  border-color: rgba(200, 153, 74, 0.25);
}

.ins-card.private {
  background: linear-gradient(145deg, #f0f9f9, #e0f4f4);
  border-color: rgba(10, 110, 110, 0.2);
}

.ins-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ins-card.govt .ins-badge {
  background: rgba(200, 153, 74, 0.15);
  color: #a07030;
}

.ins-card.private .ins-badge {
  background: rgba(10, 110, 110, 0.1);
  color: var(--teal);
}

.ins-logo-wrap {
  margin-bottom: 20px;
}

.ins-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.ins-logo-wrap small {
  font-size: 0.8rem;
  color: var(--mid);
}

.ins-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.ins-pill {
  background: white;
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal);
}

.ins-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ---- CONTACT ---- */
#contact {
  padding: 120px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
}

.contact-item a {
  color: var(--teal);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-map {
  background: var(--light-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-placeholder {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---- FOOTER ---- */
#footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
}

#footer .nav-logo strong {
  color: white;
}

#footer .nav-logo small {
  color: rgba(255, 255, 255, 0.5);
}

#footer .logo-cross {
  font-size: 1.8rem;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer-links-col strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-links-col a,
.footer-links-col span {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- ANIMATIONS ---- */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  transform: translateY(0);
  opacity: 0;
}

.reveal.visible {
  opacity: 1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .hero-card {
    display: none;
  }

  #hero {
    padding: 120px 40px 100px;
  }

  .about-grid {
    gap: 50px;
  }

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

@media (max-width: 900px) {
  .nav-logo {
    padding: 10px 10px;
  }

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

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

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

  .about-visual {
    display: none;
  }

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

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

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  #navbar {
    padding: 0 20px;
  }

  .container {
    padding: 0 20px;
  }

  #hero {
    padding: 100px 20px 80px;
  }

  .hero-content {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .nav-logo {
    padding: 10px 10px;
  }

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

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

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

  .hero-stats {
    gap: 0;
    flex-wrap: wrap;
  }

  .diag-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #cursor,
  #cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* =============================================
   FACILITIES PAGE STYLES
   ============================================= */

.facilities-page {
  background: var(--white);
}

.page-header {
  padding: 180px 0 80px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: white;
  text-align: center;
}

.facilities-page .page-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--dark));
}

.page-header .section-label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.page-header .section-heading {
  color: white;
  margin-bottom: 24px;
}

.page-header .section-sub {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
}

/* Category Sticky Nav */
.category-sticky {
  position: sticky;
  top: 80px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
  /* Firefox */
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--light-bg);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.cat-pill:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* Fac Sections */
.fac-section {
  padding: 100px 0;
}

.fac-section.alt-bg {
  background: var(--light-bg);
}

.fac-info {
  margin-bottom: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.fac-info h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--teal-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.fac-info h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 50px;
  height: 3px;
  background: var(--gold);
  transform: translateX(-50%);
}

.fac-info p {
  color: var(--mid);
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1/1;
}

@media (max-width: 768px) {
  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .fac-info h2 {
    font-size: 2rem;
  }

  .page-header {
    padding: 140px 0 60px;
  }
}

/* CTA Card */
.fac-cta {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 60px;
  border-radius: 30px;
  text-align: center;
  color: white;
  box-shadow: 0 30px 60px rgba(10, 110, 110, 0.2);
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 15px;
}

.cta-card p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

@media (max-width: 600px) {
  .cta-card {
    padding: 40px 20px;
  }

  .cta-card h2 {
    font-size: 2.2rem;
  }

  .cta-btns {
    flex-direction: column;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--gold);
}

#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 15px 0;
  font-family: var(--font-body);
}

/* =============================================
   SPECIALTIES PAGE STYLES
   ============================================= */

.specialties-hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, rgba(6, 78, 78, 0.85) 0%, rgba(10, 110, 110, 0.85) 100%), url('images/specialist.png') center/cover no-repeat;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.specialties-hero::before {
  content: '✚';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20rem;
  opacity: 0.05;
  pointer-events: none;
}

.specialties-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.specialties-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.specialties-filter {
  position: sticky;
  top: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(10, 110, 110, 0.05);
  transition: top 0.4s;
}

#navbar.scrolled+main .specialties-filter {
  top: 80px;
}

.filter-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 0 15px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--light-bg);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(10, 110, 110, 0.2);
}

.specialty-section {
  padding: 80px 0 40px;
  scroll-margin-top: 160px;
}

.specialty-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.specialty-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.doctor-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(10, 110, 110, 0.12);
  border-color: rgba(10, 110, 110, 0.2);
}

.dr-image-wrap {
  position: relative;
  aspect-ratio: 4/4.5;
  overflow: hidden;
  background: #f8fcfc;
}

.dr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.doctor-card:hover .dr-image-wrap img {
  transform: scale(1.08);
}

.dr-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dr-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.dr-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.dr-qual {
  font-size: 0.88rem;
  color: var(--mid);
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.dr-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dr-reg {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dr-reg::before {
  content: 'ID:';
  opacity: 0.5;
  font-size: 0.65rem;
}

.dr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--light-bg);
  color: var(--teal);
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.doctor-card:hover .dr-cta {
  background: var(--teal);
  color: white;
}

.nurse-card {
  border: 1px solid rgba(200, 153, 74, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
}

.nurse-card .dr-badge {
  color: var(--gold);
}

.nurse-card .dr-reg::before {
  content: 'ROLE:';
}

@media (max-width: 900px) {
  .specialties-filter {
    top: 80px;
  }

  .specialty-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .specialty-section {
    padding: 60px 0 30px;
  }

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

  .specialty-title {
    font-size: 1.5rem;
  }
}