/* =============================================
   RK Physio - Professional Healthcare Design
   Clean, Medical-Grade, Authentic Look
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700&display=swap');

/* ============ ROOT VARIABLES ============ */
:root {
  --blue:        #1565C0;
  --blue-dark:   #0D47A1;
  --blue-mid:    #1976D2;
  --blue-light:  #E3F0FF;
  --teal:        #00838F;
  --teal-light:  #E0F5F7;
  --gold:        #B8962E;
  --gold-light:  #F5E6B8;
  --gold-bright: #D4AF37;
  --red:         #C62828;
  --green:       #2E7D32;
  --orange:      #E65100;

  --gray-900:    #111827;
  --gray-800:    #1F2937;
  --gray-700:    #374151;
  --gray-600:    #4B5563;
  --gray-500:    #6B7280;
  --gray-400:    #9CA3AF;
  --gray-300:    #D1D5DB;
  --gray-200:    #E5E7EB;
  --gray-100:    #F3F4F6;
  --gray-50:     #F9FAFB;
  --white:       #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --transition: all 0.25s ease;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.3;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); border-radius: 3px; }

/* ============ LOADER ============ */
#page-loader {
  position: fixed; inset: 0; background: var(--white);
  z-index: 99999; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-logo-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto 20px;
  animation: spin-slow 3s linear infinite;
}
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: pulse-text 1.5s ease infinite;
}
.loader-dots { display: flex; gap: 6px; justify-content: center; }
.loader-dots span {
  width: 8px; height: 8px; background: var(--blue-mid);
  border-radius: 50%; animation: dot-bounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============ TOPBAR ============ */
.topbar {
  background: var(--blue-dark);
  padding: 9px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.topbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left { display: flex; gap: 20px; }
.topbar-left span {
  display: flex; align-items: center; gap: 7px;
}
.topbar-left i { color: #90CAF9; font-size: 12px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.topbar-right a {
  width: 26px; height: 26px; border-radius: 4px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8); font-size: 11px;
  transition: var(--transition);
}
.topbar-right a:hover { background: var(--blue-mid); color: var(--white); }

/* ============ NAVBAR ============ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex; align-items: stretch;
  min-height: 78px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 0;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--gray-200);
  margin-right: 24px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo-img {
  height: 66px;
  width: 66px;
  object-fit: contain;
  display: block;
  /* Circular logo looks best with a subtle drop shadow */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  border-radius: 50%;
}
/* Fallback text brand (hidden when logo loads) */
.brand-name {
  display: none;
}

.navbar-nav {
  display: flex; align-items: center; flex: 1;
}
.nav-link {
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  display: flex; align-items: center;
  height: 100%;
  position: relative;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}
.dropdown-item i { color: var(--blue); font-size: 13px; width: 16px; }
.dropdown-item:hover { background: var(--blue-light); color: var(--blue); }

.nav-cta {
  margin-left: auto;
  display: flex; align-items: center;
  padding-left: 24px;
  border-left: 1px solid var(--gray-200);
  gap: 12px;
}
.btn-nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--gray-800);
}
.btn-nav-phone i { color: var(--blue); font-size: 13px; }
.btn-nav-appt {
  background: var(--blue-dark);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-nav-appt:hover {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* Mobile toggle */
.navbar-toggler {
  display: none;
  background: none; border: none;
  padding: 8px; margin-left: auto;
  flex-direction: column; gap: 5px;
}
.navbar-toggler span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: var(--transition);
}
.navbar-collapse { display: flex; flex: 1; align-items: stretch; }

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.hero-left {
  background: var(--blue-dark);
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.04);
  top: -100px; right: -80px;
}
.hero-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.04);
  bottom: -40px; left: 40px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.hero-eyebrow-line {
  width: 32px; height: 2px; background: #90CAF9;
}
.hero-eyebrow span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #90CAF9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
}
.hero-title .accent {
  color: #90CAF9;
  font-style: italic;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
  position: relative;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  position: relative;
  margin-bottom: 40px;
}
.btn-hero-primary {
  background: var(--white);
  color: var(--blue-dark);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
  border: none;
}
.btn-hero-primary:hover { background: var(--gray-100); }
.btn-hero-outline {
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: var(--transition);
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); color: var(--white); }

.hero-stats {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
  position: relative;
}
.hero-stat {
  padding: 0 32px 0 0;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  color: var(--white); line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-num span { color: #90CAF9; }
.hero-stat-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
}

.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-carousel { height: 100%; }
.hero-slide { display: none; height: 100%; }
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,71,161,0.3), transparent);
}
.carousel-nav {
  position: absolute;
  bottom: 24px; right: 24px;
  display: flex; gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--white);
  width: 24px; border-radius: 4px;
}

/* Carousel arrows */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark);
  cursor: pointer; z-index: 3;
  transition: var(--transition); font-size: 14px;
}
.hero-arrow:hover { background: var(--white); box-shadow: var(--shadow-md); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

/* ============ QUICK INFO BAR ============ */
.info-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.info-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.info-bar-item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px;
  border-right: 1px solid var(--gray-200);
  transition: var(--transition);
}
.info-bar-item:last-child { border-right: none; }
.info-bar-item:hover { background: var(--gray-50); }
.info-bar-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 15px;
}
.info-bar-text p {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 2px;
}
.info-bar-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* ============ SECTION UTILITIES ============ */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }

.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.section-label-line { width: 28px; height: 2px; background: var(--blue); }
.section-label span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}
.section-header-centered .section-label { justify-content: center; }
.section-header-centered .section-subtitle { margin: 0 auto; text-align: center; }
.section-header-centered .section-title { text-align: center; }

/* ============ CONTAINER ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-fluid { padding: 0 24px; }

/* Grid helpers */
.row { display: flex; flex-wrap: wrap; margin: 0 -14px; }
.col { flex: 1; padding: 0 14px; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 14px; }
.col-5  { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 14px; }
.col-6  { flex: 0 0 50%; max-width: 50%; padding: 0 14px; }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 14px; }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 14px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 14px; }

/* ============ ABOUT SECTION ============ */
.about-section { background: var(--white); }

.about-img-block { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-img-main img { width: 100%; height: 400px; object-fit: cover; }
.about-img-secondary {
  position: absolute;
  bottom: -30px; left: -30px;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid var(--white);
}
.about-img-secondary img { width: 100%; height: 150px; object-fit: cover; }
.about-badge {
  position: absolute;
  top: -20px; right: -20px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(21,101,192,0.35);
}
.about-badge .num {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  line-height: 1; display: block;
}
.about-badge .lab {
  font-size: 0.7rem; opacity: 0.85;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 4px; display: block;
}

.about-text { padding-left: 20px; }
.about-check-list { margin: 20px 0 28px; }
.about-check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem; color: var(--gray-700);
}
.about-check-list li:last-child { border-bottom: none; }
.about-check-list li i { color: var(--teal); font-size: 13px; margin-top: 3px; flex-shrink: 0; }

/* ============ SERVICES ============ */
.services-section { background: var(--gray-50); }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  height: 100%;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: var(--blue);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.svc-icon-wrap {
  width: 60px; height: 60px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.svc-icon-wrap i { font-size: 1.4rem; color: var(--blue); transition: var(--transition); }
.service-card:hover .svc-icon-wrap { background: var(--blue); }
.service-card:hover .svc-icon-wrap i { color: var(--white); }

.svc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 10px;
}
.svc-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 20px; }
.svc-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-link:hover { gap: 10px; }

/* ============ WHY CHOOSE US ============ */
.why-section {
  background: var(--blue-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background-image: url('../img/team.jpg');
  background-size: cover; background-position: center;
  opacity: 0.12;
}
.why-left { position: relative; z-index: 1; padding-right: 60px; }
.why-section .section-label-line { background: #90CAF9; }
.why-section .section-label span { color: #90CAF9; }
.why-section .section-title { color: var(--white); }
.why-desc { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; margin-bottom: 36px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.why-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.why-item:hover { background: rgba(255,255,255,0.1); }
.why-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(144,202,249,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #90CAF9; font-size: 14px;
}
.why-item strong { display: block; color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.why-item span { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

.why-right { position: relative; z-index: 1; }
.why-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.why-img img { width: 100%; height: 500px; object-fit: cover; }

/* ============ TEAM ============ */
.team-section { background: var(--white); }

.doctor-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}
.doctor-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow-xl); transform: translateY(-4px); }

.doctor-img {
  position: relative;
  overflow: hidden;
  height: 270px;
}
.doctor-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: all 0.5s ease;
}
.doctor-card:hover .doctor-img img { transform: scale(1.04); }

.doctor-socials {
  position: absolute;
  inset: 0;
  background: rgba(13,71,161,0.8);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: var(--transition);
}
.doctor-card:hover .doctor-socials { opacity: 1; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  transform: translateY(10px);
}
.doctor-card:hover .social-btn { transform: translateY(0); }
.social-btn:hover { background: var(--white); color: var(--blue); }

.doctor-info {
  padding: 20px 22px 22px;
  border-top: 3px solid var(--blue);
}
.doctor-name {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 5px;
}
.doctor-cred {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ============ APPOINTMENT ============ */
.appt-section { background: var(--gray-50); }

.appt-info { padding-right: 40px; }
.appt-contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}
.appt-contact-row:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.appt-contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 15px;
}
.appt-contact-row p { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; margin-bottom: 2px; }
.appt-contact-row strong { font-size: 0.95rem; color: var(--gray-800); font-weight: 600; }

.appt-form-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.form-input::placeholder { color: var(--gray-400); }
textarea.form-input { resize: vertical; min-height: 100px; }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--blue-dark); }

/* ============ GALLERY ============ */
.gallery-section { background: var(--white); }
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}
.gallery-cell { position: relative; overflow: hidden; border-radius: var(--radius-md); cursor: pointer; }
.gallery-cell:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-cell:nth-child(5) { grid-column: span 2; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: all 0.4s ease; }
.gallery-cell:hover img { transform: scale(1.06); }
.gallery-cell-overlay {
  position: absolute; inset: 0;
  background: rgba(13,71,161,0.7);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.gallery-cell-overlay i { color: var(--white); font-size: 1.5rem; }
.gallery-cell:hover .gallery-cell-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: none; color: var(--white);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: var(--blue); }

/* ============ FAQ ============ */
.faq-section { background: var(--gray-50); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item.open { border-color: var(--blue); }
.faq-trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer;
  gap: 16px; user-select: none;
  font-weight: 600; font-size: 0.9rem; color: var(--gray-800);
}
.faq-toggle {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 12px;
  transition: var(--transition);
}
.faq-item.open .faq-toggle { background: var(--blue); color: var(--white); transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-body { max-height: 400px; }
.faq-body p { padding: 0 22px 20px; font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; }

/* ============ PAGE HEADER ============ */
.page-header {
  background: var(--blue-dark);
  padding: 80px 0 52px;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../old/img/header-page.jpg');
  background-size: cover; background-position: center;
  opacity: 0.07; pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  color: #90CAF9; padding: 5px 14px;
  border-radius: var(--radius-full); font-size: 0.78rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; list-style: none;
}
.breadcrumb li { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.breadcrumb li a { color: rgba(255,255,255,0.7); }
.breadcrumb li a:hover { color: var(--white); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.4; }
.breadcrumb li.active { color: #90CAF9; }

/* ============ CONTACT SECTION ============ */
.contact-section { background: var(--white); }
.contact-panel {
  background: var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  height: 100%;
}
.contact-panel h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.contact-panel > p { color: rgba(255,255,255,0.65); font-size: 0.875rem; margin-bottom: 32px; line-height: 1.7; }
.contact-detail {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 22px;
}
.contact-detail-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(144,202,249,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #90CAF9; font-size: 14px;
}
.contact-detail strong { display: block; color: var(--white); font-size: 0.85rem; margin-bottom: 3px; }
.contact-detail span { color: rgba(255,255,255,0.55); font-size: 0.825rem; }
.panel-socials { display: flex; gap: 10px; margin-top: 28px; }
.panel-social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 13px;
  transition: var(--transition);
}
.panel-social:hover { background: var(--blue-mid); color: var(--white); border-color: var(--blue-mid); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px; margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ============ FOOTER ============ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 50%;
  /* White bg to make circular logo pop on dark footer */
  background: var(--white);
  padding: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.footer-brand-name { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-brand-name span { color: var(--gold-bright); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 13px;
  transition: var(--transition);
}
.footer-social:hover { background: var(--blue-mid); color: var(--white); border-color: var(--blue-mid); }

.footer-col h5 {
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--white);
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); transform: translateX(3px); }
.footer-links i { font-size: 10px; color: #90CAF9; }

.footer-contact-list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; font-size: 0.85rem;
}
.footer-contact-list i { color: #90CAF9; margin-top: 2px; flex-shrink: 0; font-size: 12px; }

.footer-newsletter p {
  font-size: 0.825rem; line-height: 1.6;
  margin-bottom: 14px; font-style: italic;
}
.newsletter-row {
  display: flex;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.newsletter-row input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: none; padding: 11px 14px;
  color: var(--white); font-family: var(--font-body);
  font-size: 0.85rem; outline: none;
}
.newsletter-row input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-row button {
  background: var(--blue-mid); border: none;
  padding: 11px 18px; color: var(--white);
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.newsletter-row button:hover { background: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom a { color: #90CAF9; }

/* ============ FLOATING BUTTONS ============ */
.whatsapp-fab {
  position: fixed; bottom: 84px; right: 24px;
  width: 46px; height: 46px;
  background: #25D366; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 900; transition: var(--transition);
  animation: wa-pulse 2.5s ease infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); color: var(--white); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

#backToTop {
  position: fixed; bottom: 26px; right: 24px;
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px;
  box-shadow: var(--shadow-md);
  z-index: 900; border: none; cursor: pointer;
  opacity: 0; transform: translateY(12px);
  transition: var(--transition);
}
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--blue-dark); }

/* ============ AOS ============ */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos="fade-up"]    { transform: translateY(32px); }
[data-aos="fade-right"] { transform: translateX(-32px); }
[data-aos="fade-left"]  { transform: translateX(32px); }
[data-aos="zoom-in"]    { transform: scale(0.85); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* Utility */
.text-blue { color: var(--blue); }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 36px; }
.gap-24 { gap: 24px; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem;
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--blue);
  padding: 10px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--blue); cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ============ STATS BAR ============ */
.stats-bar { background: var(--blue); padding: 40px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; gap: 0;
}
.stat-item { padding: 0; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 700;
  color: var(--white); line-height: 1;
  margin-bottom: 6px;
}
.stat-num sup { font-size: 1.2rem; }
.stat-lbl { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ TESTIMONIAL ============ */
.testimonial-section { background: var(--gray-50); }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 20px; right: 28px;
  font-size: 5rem; color: var(--blue-light);
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-stars i { color: #F59E0B; font-size: 14px; }
.testimonial-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-light); display: flex;
  align-items: center; justify-content: center;
  color: var(--blue); font-weight: 700; font-size: 1rem;
}
.testimonial-author strong { display: block; font-size: 0.875rem; color: var(--gray-800); }
.testimonial-author span { font-size: 0.78rem; color: var(--gray-500); }

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

/* ---- Tablet 1024px ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery-masonry { grid-template-columns: repeat(3, 1fr); }
  .gallery-cell:nth-child(5) { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.15); }
  .stat-item { padding: 16px 0; }

  /* Team: 4 → 2 columns on tablet */
  .team-section .row > [style*="25%"],
  .team-section .row > [style*="flex:0 0 25"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* Doctor profile: side-by-side → stacked */
  .doc-profile { flex-direction: column; }
  .doc-profile-img { width: 100%; height: 260px; }
}

/* ---- Mobile 768px ---- */
@media (max-width: 768px) {
  /* Topbar hidden */
  .topbar { display: none; }

  /* Navbar */
  .navbar-brand { padding-right: 16px; border-right: none; margin-right: 0; }
  .navbar-toggler { display: flex; }
  .navbar-collapse {
    display: none; flex-direction: column;
    align-items: flex-start; padding: 16px 0;
    border-top: 1px solid var(--gray-200); width: 100%;
  }
  .navbar-collapse.open { display: flex; }
  .navbar-nav { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-link { padding: 12px 0 !important; height: auto; border-bottom: 1px solid var(--gray-100); width: 100%; }
  .nav-link::after { display: none; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; border-radius: 0; }
  .nav-cta { border-left: none; padding-left: 0; margin-top: 16px; flex-direction: column; gap: 8px; }
  .btn-nav-phone { display: none; }
  .btn-nav-appt { width: 100%; justify-content: center; }
  .nav-inner { flex-wrap: wrap; }

  /* Hero */
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 48px 20px; }
  .hero-right { height: 280px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 16px; margin-right: 0; }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }

  /* Info bar */
  .info-bar-inner { grid-template-columns: 1fr 1fr; }
  .info-bar-item:nth-child(2) { border-right: none; }
  .info-bar-item:nth-child(3) { border-top: 1px solid var(--gray-200); }

  /* Sections */
  .section { padding: 56px 0; }

  /* Grid columns → full width */
  .col-4, .col-5, .col-6, .col-7, .col-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* ★ DOCTOR CARDS — CRITICAL FIX ★
     Override inline styles that force 25% on doctor cards */
  .team-section .row > div[style],
  .row > [style*="max-width:25%"],
  .row > [style*="max-width: 25%"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* About */
  .about-text { padding-left: 0; margin-top: 80px; }
  .about-img-secondary { bottom: -20px; left: -10px; width: 160px; }
  .about-badge { top: -10px; right: -10px; }

  /* Appointment */
  .appt-info { padding-right: 0; margin-bottom: 32px; }
  .appt-form-box { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Why */
  .why-left { padding-right: 0; margin-bottom: 32px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-img img { height: 280px; }

  /* Doctor profile page */
  .doc-profile { flex-direction: column !important; }
  .doc-profile-img { width: 100% !important; height: 240px; }
  .doc-profile-body { padding: 24px; }

  /* Gallery */
  .gallery-masonry { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-cell:nth-child(1) { grid-column: span 2; }
  .gallery-cell:nth-child(5) { grid-column: span 2; }
  .gallery-full { grid-template-columns: 1fr 1fr !important; }
  .gallery-full .gallery-cell img { height: 180px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Page header */
  .page-header-inner { padding: 48px 20px 40px; }
  .page-header-inner h1 { font-size: 1.8rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.15); }

  /* Service detail */
  .svc-detail-head { flex-direction: column; gap: 12px; }
  .svc-detail .row { flex-direction: column; }
  .svc-detail .col-6 { flex: 0 0 100%; max-width: 100%; padding-left: 14px !important; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Animated logo: scale down on very narrow */
  .brand-logo-img { height: 54px; width: 54px; }
  .animated-logo .logo-letter-r,
  .animated-logo .logo-letter-k { font-size: 1.5rem; }
  .ecg-svg { width: 70px; }
}

/* ---- Small Mobile 480px ---- */
@media (max-width: 480px) {
  .hero-left { padding: 40px 16px; }
  .info-bar-inner { grid-template-columns: 1fr; }
  .info-bar-item { border-right: none; border-bottom: 1px solid var(--gray-200); }

  /* Doctor cards: 2 col → 1 col on very small phones */
  .team-section .row > div[style],
  .row > [style*="max-width:25%"],
  .row > [style*="max-width: 25%"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .doctor-card { max-width: 320px; margin: 0 auto; }
  .doctor-img { height: 240px; }

  /* Gallery */
  .gallery-masonry { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-cell:nth-child(1), .gallery-cell:nth-child(5) { grid-column: span 1; }
  .gallery-full { grid-template-columns: 1fr !important; }
  .gallery-full .gallery-cell img { height: 200px !important; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .section-title { font-size: 1.4rem !important; }

  /* Page header smaller */
  .page-header-inner h1 { font-size: 1.5rem; }

  /* Why grid */
  .why-grid { grid-template-columns: 1fr; }

  /* Service cards: ensure full width */
  .col-4 { flex: 0 0 100% !important; max-width: 100% !important; }
}


