/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

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

/* ===== COLORS ===== */
:root {
  --primary: #1e56a0;
  --primary-dark: #143c73;
  --primary-light: #3b82f6;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-bg: #f0fdfa;
  --blue-bg: #eff6ff;
  --accent: #f59e0b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--primary-light));
  z-index: 9999; width: 0%;
  transition: width 0.1s linear;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
.text-highlight { color: var(--teal-light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  justify-content: center; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s;
}
.btn:hover::after { transform: translateX(100%) skewX(-15deg); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,86,160,0.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}
.top-bar-inner { display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar-inner span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-inner i { color: var(--teal-light); }
@media (max-width: 768px) { .top-bar-hide { display: none; } }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  font-size: 1.6rem; color: var(--primary);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(30,86,160,0.2)); }
  50%      { filter: drop-shadow(0 0 12px rgba(30,86,160,0.4)); }
}
.logo-text { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.logo-highlight { color: var(--teal); }

.nav-list { display: flex; gap: 2px; }
.nav-link {
  padding: 7px 10px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--gray-600); transition: var(--transition);
  position: relative; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 3px; left: 10px; right: 10px;
  height: 2px; background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-link:hover { background: var(--blue-bg); color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary); background: var(--blue-bg); }
.nav-link.active::after { transform: scaleX(1); }

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

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 22px; height: 2.5px;
  background: var(--gray-700); border-radius: 4px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1100px) {
  .nav {
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    padding: 20px; border-bottom: 1px solid var(--gray-200);
    transform: translateY(-110%); opacity: 0;
    transition: var(--transition); pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { padding: 12px 16px; display: block; font-size: 1rem; white-space: normal; }
  .nav-link::after { display: none; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.8rem; }
  .menu-toggle { display: flex; }
}
@media (max-width: 600px) {
  .header-actions .btn-sm { display: none; }
}

/* ===== PAGE HERO (shared for sub-pages) ===== */
.page-hero {
  position: relative; padding: 80px 0 60px;
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f3a5a 100%);
  overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(20,184,166,0.1), transparent);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .page-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: var(--teal-light); font-size: 0.8rem; font-weight: 500;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); color: #fff;
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.65); font-size: 1.05rem;
  max-width: 600px; margin: 0 auto;
}
.breadcrumb {
  display: flex; justify-content: center; gap: 8px; margin-top: 16px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb span { color: var(--teal-light); }

/* ===== MAIN HERO ===== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f3a5a 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 80%, rgba(20,184,166,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-particle {
  position: absolute; width: 4px; height: 4px;
  background: rgba(255,255,255,0.08); border-radius: 50%;
  animation: floatParticle 12s infinite;
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-40px) translateX(20px); opacity: 0.6; }
  50% { transform: translateY(-80px) translateX(-10px); opacity: 0.3; }
  75% { transform: translateY(-120px) translateX(30px); opacity: 0.5; }
}
.hero-overlay { 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.02'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 40px 0; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: var(--teal-light); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 24px; letter-spacing: 0.3px;
  animation: fadeSlideUp 0.8s ease;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
  color: #fff; margin-bottom: 20px; letter-spacing: -1px;
  animation: fadeSlideUp 0.8s ease 0.1s both;
}
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
  max-width: 620px; margin-bottom: 36px; line-height: 1.8;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}
.hero-actions .btn i { transition: transform 0.3s; }
.hero-actions .btn:hover i { transform: translateX(4px); }
.hero-stats {
  display: flex; gap: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeSlideUp 0.8s ease 0.4s both;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-num::after { content: '+'; color: var(--teal-light); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

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

/* ===== IMAGE SHOWCASE (hero image on homepage) ===== */
.hero-image-wrapper {
  position: relative; z-index: 2;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}
.hero-image-main {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); position: relative;
}
.hero-image-main img {
  width: 100%; height: 450px; object-fit: cover;
  transition: transform 0.6s;
  display: block;
}
.hero-image-main:hover img { transform: scale(1.04); }
.hero-image-accent {
  position: absolute; bottom: -16px; right: -16px;
  width: 120px; height: 120px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid #fff;
}
.hero-image-accent img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-dots {
  position: absolute; top: -16px; left: -16px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--teal-light) 2px, transparent 2px);
  background-size: 16px 16px; opacity: 0.3;
}

@media (max-width: 1024px) {
  .hero { min-height: auto; padding: 80px 0; }
  .hero-image-wrapper { margin-top: 40px; }
  .hero-image-main img { height: 300px; }
}
@media (max-width: 900px) {
  .hero-content > div:first-child { grid-template-columns: 1fr !important; gap: 32px !important; }
  .hero-image-wrapper { order: -1; }
  .hero-image-main img { height: 260px; }
}
@media (max-width: 768px) {
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-image-main img { height: 220px; }
  .hero-image-accent { width: 90px; height: 90px; bottom: -12px; right: -12px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .hero-image-main img { height: 160px; }
  .hero-image-accent { width: 70px; height: 70px; bottom: -8px; right: -8px; }
}

/* ===== SECTION ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-50); }
.section-header {
  text-align: center; max-width: 700px; margin: 0 auto 56px;
}
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: var(--blue-bg); color: var(--primary);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gray-900); margin-bottom: 16px;
}
.section-desc { color: var(--gray-500); font-size: 1.05rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-box {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.about-image-box img {
  width: 100%; height: 420px; object-fit: cover;
  transition: transform 0.6s;
}
.about-image-box:hover img { transform: scale(1.04); }
.about-image-box::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent 40%);
}
.about-image-badge {
  position: absolute; bottom: 20px; left: 20px; z-index: 2;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 12px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
}
.about-image-badge i { color: var(--teal); font-size: 1.2rem; }
.about-image-badge span { font-weight: 600; color: var(--gray-800); font-size: 0.9rem; }

.about-text h3 {
  font-size: 1.1rem; color: var(--gray-800); margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.about-text h3 i { color: var(--teal); font-size: 1rem; }
.about-text p { color: var(--gray-500); margin-bottom: 20px; line-height: 1.7; }
.about-text .btn { margin-top: 12px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; padding: 32px 24px; border-radius: var(--radius);
  border: 1px solid var(--gray-200); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; border-radius: 50%; transform: rotateY(180deg); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--gray-800); }
.service-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ===== WHY CHOOSE ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.why-card {
  padding: 36px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--gray-200);
  transition: var(--transition); position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--teal);
  transition: height 0.4s;
}
.why-card:hover::before { height: 100%; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-num {
  font-size: 2rem; font-weight: 800; color: var(--gray-200);
  margin-bottom: 12px; line-height: 1;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--gray-800); }
.why-card p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.7; }

/* ===== FACILITIES ===== */
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.facility-card {
  display: flex; gap: 20px; padding: 28px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.facility-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-md); }
.facility-img {
  width: 60px; height: 60px; min-width: 60px; border-radius: 14px;
  background: var(--teal-bg); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; transition: var(--transition);
}
.facility-card:hover .facility-img { background: var(--teal); color: #fff; border-radius: 50%; }
.facility-body h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--gray-800); }
.facility-body p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.7; }

/* ===== PATIENT JOURNEY ===== */
.journey-steps { max-width: 720px; margin: 0 auto; }
.journey-step {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
  opacity: 0; transform: translateX(-20px);
  transition: all 0.6s ease;
}
.journey-step.visible { opacity: 1; transform: translateX(0); }
.journey-step:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  transition: var(--transition);
}
.journey-step:hover .step-num { background: var(--teal); transform: scale(1.1); box-shadow: 0 0 0 8px rgba(13,148,136,0.12); }
.step-content h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--gray-800); }
.step-content p { font-size: 0.9rem; color: var(--gray-500); }

/* ===== JOURNEY IMAGE SPLIT ===== */
.journey-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.journey-image-box {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.journey-image-box img {
  width: 100%; height: 500px; object-fit: cover;
  transition: transform 0.6s;
}
.journey-image-box:hover img { transform: scale(1.04); }
.journey-image-box .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: var(--transition); box-shadow: var(--shadow-lg);
}
.journey-image-box .play-btn:hover { background: #fff; transform: translate(-50%, -50%) scale(1.1); }
@media (max-width: 768px) { .journey-split { grid-template-columns: 1fr; gap: 32px; } }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%);
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(20,184,166,0.12), transparent 60%);
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff; margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1.1rem; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.testimonial-card {
  background: #fff; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition); position: relative;
}
.testimonial-card::after {
  content: '\201C'; position: absolute; top: 12px; right: 24px;
  font-size: 5rem; line-height: 1; color: var(--gray-100);
  font-family: Georgia, serif;
}
.testimonial-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-md); }
.testimonial-stars { margin-bottom: 14px; color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem; color: var(--gray-600);
  line-height: 1.8; margin-bottom: 20px; font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--gray-200);
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--gray-800); }
.testimonial-author span { font-size: 0.82rem; color: var(--gray-500); }

/* ===== FAQS ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: #fff;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; text-align: left;
  font-weight: 600; font-size: 0.98rem; color: var(--gray-800);
  background: #fff; transition: var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question i {
  font-size: 0.8rem; color: var(--gray-400); transition: var(--transition);
  background: var(--gray-100); width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.faq-item.active .faq-question i { transform: rotate(180deg); color: #fff; background: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px; padding: 0 24px 18px;
}
.faq-answer p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.8; }

/* ===== APPOINTMENT ===== */
.appointment-form-wrapper {
  max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg);
  padding: 48px; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: 10px; font-size: 0.95rem; transition: var(--transition);
  background: #fff; color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,86,160,0.12);
  transform: translateY(-1px);
}
.form-group textarea { resize: vertical; }
.form-note { text-align: center; margin-top: 12px; font-size: 0.82rem; color: var(--gray-400); }
.form-note i { color: var(--teal); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .appointment-form-wrapper { padding: 28px 20px; } }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-card i {
  font-size: 1.4rem; color: var(--primary); margin-top: 2px; width: 32px;
  transition: var(--transition);
}
.contact-card:hover i { color: var(--teal); transform: scale(1.15); }
.contact-card h4 { font-size: 0.95rem; color: var(--gray-800); margin-bottom: 2px; }
.contact-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

.contact-map .map-placeholder {
  background: var(--gray-100); border-radius: var(--radius-lg);
  height: 100%; min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 40px 20px;
  border: 2px dashed var(--gray-300); position: relative; overflow: hidden;
}
.map-placeholder img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.15;
}
.map-placeholder > *:not(img) { position: relative; z-index: 1; }
.map-placeholder i { font-size: 3rem; color: var(--primary); margin-bottom: 8px; }
.map-placeholder p { color: var(--gray-500); font-size: 0.92rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--primary-dark);
  padding: 60px 0; text-align: center;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(20,184,166,0.08), transparent 60%);
}
.newsletter-content { position: relative; z-index: 1; }
.newsletter-content h3 { font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.newsletter-content p { color: rgba(255,255,255,0.65); margin-bottom: 24px; font-size: 0.95rem; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 14px 20px; border-radius: 50px; border: none;
  font-size: 0.95rem;
}
.newsletter-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(20,184,166,0.3); }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { margin-bottom: 16px; }
.footer .logo-text { color: #fff; }
.footer .logo-icon { color: var(--teal-light); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 0.9rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links a:hover { color: var(--teal-light); padding-left: 4px; }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact i { color: var(--teal-light); width: 16px; }
.footer-bottom {
  margin-top: 48px; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--teal-light); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: var(--transition); z-index: 999;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.fade-in-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

/* stagger children */
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* ===== 3D TILT ON CARDS ===== */
.tilt-card {
  transition: transform 0.1s ease;
  will-change: transform;
}

/* ===== IMAGE ZOOM ===== */
.img-zoom {
  overflow: hidden; border-radius: var(--radius);
}
.img-zoom img {
  transition: transform 0.6s;
}
.img-zoom:hover img { transform: scale(1.06); }

/* ===== SUCCESS TOAST ===== */
.toast {
  position: fixed; top: 100px; right: 20px; z-index: 9999;
  padding: 16px 24px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--teal);
  display: flex; align-items: center; gap: 12px;
  transform: translateX(120%); opacity: 0;
  transition: all 0.4s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left-color: var(--teal); }
.toast i { font-size: 1.2rem; color: var(--teal); }
.toast p { font-size: 0.92rem; color: var(--gray-700); }

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-transition {
  position: fixed; inset: 0; z-index: 99999;
  pointer-events: none;
  background: var(--primary);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-transition.active { transform: translateY(0); }

/* ===== COUNTER DIFFERENTIATION ===== */
.counter-row {
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
  padding: 40px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); margin-top: -60px; position: relative; z-index: 3;
}
.counter-item { text-align: center; }
.counter-item .num { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.counter-item .num::after { content: '+'; color: var(--teal); }
.counter-item .label { font-size: 0.9rem; color: var(--gray-500); margin-top: 2px; }
.counter-item .icon { font-size: 1.6rem; color: var(--teal); margin-bottom: 8px; }

/* ===== TEAM GRID (testimonials page) ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.team-card {
  text-align: center; padding: 28px 20px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card .avatar {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.05rem; color: var(--gray-800); }
.team-card .role { font-size: 0.85rem; color: var(--teal); font-weight: 500; margin-bottom: 8px; }
.team-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ===== PAGE HEADER IMAGE STRIP ===== */
.image-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  height: 280px; overflow: hidden; border-radius: var(--radius-lg);
}
.image-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.image-strip img:hover { transform: scale(1.05); }
@media (max-width: 900px) { .image-strip { grid-template-columns: repeat(2, 1fr); height: 200px; border-radius: var(--radius); } }
@media (max-width: 480px) { .image-strip { grid-template-columns: repeat(2, 1fr); height: 140px; gap: 2px; } }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .counter-row { margin-top: -40px; padding: 24px; gap: 24px; }
}
