/* =============================================
   VANGUARD DENTAL CLINICS — MASTER STYLESHEET
   ============================================= */

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

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #1B4F72;
  --primary-dark: #154060;
  --primary-light: #2980B9;
  --accent: #1ABC9C;
  --accent-dark: #16a085;
  --accent-light: #A3E4D7;
  --bg: #F4F9FF;
  --white: #FFFFFF;
  --dark: #2C3E50;
  --gray: #7F8C8D;
  --light-gray: #ECF0F1;
  --gold: #F1C40F;
  --shadow: 0 4px 24px rgba(27, 79, 114, 0.12);
  --shadow-lg: 0 12px 40px rgba(27, 79, 114, 0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeInPage 0.5s ease forwards;
}

@keyframes fadeInPage {
  to { opacity: 1; }
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: 'Poppins', sans-serif; }

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  background: rgba(26, 188, 156, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(26, 188, 156, 0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 188, 156, 0.45);
}

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

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

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(27, 79, 114, 0.3);
}
.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(27, 79, 114, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(27, 79, 114, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

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

.nav-logo-text span:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.nav-logo-text span:last-child {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(26, 188, 156, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3) !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1100;
}

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

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  display: flex;
  opacity: 1;
}

.mobile-overlay a {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: var(--transition);
  width: 260px;
  text-align: center;
}

.mobile-overlay a:hover,
.mobile-overlay a.active {
  background: rgba(255,255,255,0.12);
  color: var(--accent-light);
}

.mobile-overlay .mobile-cta {
  margin-top: 16px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ---- HERO SECTION ---- */
.hero {
  background: linear-gradient(135deg, #0D2E4A 0%, #1B4F72 50%, #1a6b9a 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(26, 188, 156, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(163, 228, 215, 0.06) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 188, 156, 0.15);
  border: 1px solid rgba(26, 188, 156, 0.3);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: slideInLeft 0.6s ease both;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: slideInLeft 0.7s ease 0.1s both;
}

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

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  animation: slideInLeft 0.8s ease 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: slideInLeft 0.9s ease 0.3s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  align-self: center;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: slideInLeft 1s ease 0.4s both;
}

.hero-image-wrap {
  position: relative;
  animation: slideInRight 0.8s ease 0.2s both;
}

.hero-image-wrap img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  object-fit: cover;
  height: 480px;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hero-badge-text span:first-child {
  display: block;
  font-size: 0.7rem;
  color: var(--gray);
}

.hero-badge-text strong {
  font-size: 0.9rem;
  color: var(--primary);
}

.hero-badge-top {
  bottom: auto;
  top: 24px;
  right: -20px;
  left: auto;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--primary);
  padding: 36px 0;
}

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

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  margin-top: 4px;
}

/* ---- ABOUT SECTION ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(26, 188, 156, 0.4);
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(27, 79, 114, 0.06);
  transition: var(--transition);
}

.about-feature:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(26, 188, 156, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.about-feature-text span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

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

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

.service-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.service-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.service-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(26, 188, 156, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
}

.service-card .btn {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* ---- BEFORE/AFTER SLIDER ---- */
.ba-sliders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ba-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
}

.ba-slider .after,
.ba-slider .before {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.ba-slider .after img,
.ba-slider .before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .after img {
  filter: brightness(1.2) contrast(1.15) saturate(1.1);
}

.ba-slider .before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  z-index: 2;
}

.ba-slider .before img {
  filter: sepia(0.9) brightness(0.65);
}

.ba-label {
  position: absolute;
  top: 12px;
  z-index: 5;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

.handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 100%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.handle-line {
  width: 2px;
  flex: 1;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.handle-btn {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  cursor: col-resize;
}

.ba-info {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ba-treatment {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.ba-info .btn {
  padding: 7px 16px;
  font-size: 0.75rem;
}

/* ---- TEAM CARDS ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.doctor-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.doctor-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.doctor-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,79,114,0.7), transparent);
}

.doctor-card-body {
  padding: 20px;
}

.doctor-badge {
  display: inline-block;
  background: rgba(26, 188, 156, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctor-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.doctor-card-role {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.doctor-card-body .btn {
  width: 100%;
  justify-content: center;
  padding: 9px;
  font-size: 0.82rem;
}

/* Doctor profile full cards (team page) */
.doctor-profile-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 280px 1fr;
}

.doctor-profile-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.doctor-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.doctor-profile-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-profile-creds {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.doctor-profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.doctor-profile-role {
  display: inline-block;
  background: rgba(27, 79, 114, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.doctor-profile-about {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.doctor-specializations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.spec-tag {
  background: var(--bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(27, 79, 114, 0.15);
}

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

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
  margin-bottom: 16px;
}

.review-text::before {
  content: '"';
  font-size: 2rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 4px;
  font-style: normal;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-author-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}

.review-author-info span {
  font-size: 0.75rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-source-icon {
  width: 12px;
  height: 12px;
  display: inline;
}

/* Rating Summary */
.rating-summary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.rating-summary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(26, 188, 156, 0.15), transparent 60%);
}

.rating-big {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.rating-stars-big {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin: 8px 0;
}

.rating-base {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.rating-count {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark), #0e8c6f);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--accent-dark);
  font-size: 1rem;
  padding: 15px 36px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.cta-banner .btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---- FOOTER ---- */
.footer {
  background: #0D2035;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.footer-logo-text span {
  color: var(--accent);
  font-size: 0.7rem;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.social-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(26, 188, 156, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.footer-contact-text strong {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* ---- FLOATING BUTTONS ---- */
.float-buttons {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 999;
}

.scroll-top-btn {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  position: relative;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.18); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--dark);
}

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

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0D2E4A 0%, #1B4F72 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(26, 188, 156, 0.1), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ---- FILTER TABS ---- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid rgba(27, 79, 114, 0.15);
  background: var(--white);
  color: var(--dark);
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 188, 156, 0.3);
}

/* ---- FAQ ---- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(27, 79, 114, 0.06);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 26px;
  height: 26px;
  background: rgba(26, 188, 156, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(26, 188, 156, 0.15), rgba(26, 188, 156, 0.05));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
}

.contact-info-sub {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 2px;
}

.appointment-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: #E74C3C;
  margin-left: 2px;
}

.form-control {
  padding: 12px 16px;
  border: 1.5px solid rgba(27, 79, 114, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--bg);
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.form-control.error {
  border-color: #E74C3C;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.error-msg {
  font-size: 0.75rem;
  color: #E74C3C;
  display: none;
}

.error-msg.show { display: block; }

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-submit-btn {
  width: 100%;
  padding: 15px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ---- GALLERY PAGE EXTRA ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ---- WHY US SECTION ---- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(26, 188, 156, 0.12), rgba(26, 188, 156, 0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.why-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- TEAM PAGE BOTTOM ---- */
.team-why {
  background: var(--primary);
  padding: 64px 0;
}

.team-why .section-title {
  color: var(--white);
}

.team-why .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.team-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.team-why-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.team-why-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.team-why-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.team-why-card h4 {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.team-why-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---- INSTAGRAM SECTION ---- */
.instagram-section {
  background: var(--white);
  padding: 60px 0;
}

.insta-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.insta-handle a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.insta-handle a:hover { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-wrap { display: none; }
  .hero { min-height: auto; padding: 80px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-profile-card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .ba-sliders-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-why-grid { grid-template-columns: 1fr 1fr; }
  .doctor-profile-card { grid-template-columns: 1fr; }
  .doctor-profile-img { min-height: 260px; width: 100%; }
  .hero-stats { gap: 12px; }
  .hero-divider { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-padding { padding: 56px 0; }
  .team-why-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .float-buttons { bottom: 20px; right: 16px; }
}
