/* ========================================
   RAVIKIRAN DENTAL CLINIC - Premium CSS
   Design System & Full Stylesheet
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #0EA5A8;
  --primary-dark: #0B8B8E;
  --primary-light: #12C4C8;
  --primary-glow: rgba(14, 165, 168, 0.25);
  --secondary: #ffffff;
  --accent: #1F2937;
  --accent-light: #374151;
  --soft-bg: #F8FAFC;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 4px 30px rgba(14, 165, 168, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', 'Poppins', sans-serif;
  --container-max: 1200px;
  --section-padding: 100px 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--soft-bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
  outline: none;
}

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14, 165, 168, 0.08);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(14, 165, 168, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14, 165, 168, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--accent);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  font-size: 0.88rem;
}

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

.btn i {
  font-size: 1.1em;
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* stagger children */
.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; }
.fade-up-delay-6 { transition-delay: 0.6s; }
.fade-up-delay-7 { transition-delay: 0.7s; }
.fade-up-delay-8 { transition-delay: 0.8s; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.navbar-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.navbar-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.navbar-logo .logo-text span {
  color: var(--primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.navbar-links a:hover {
  color: var(--primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-cta .btn {
  padding: 12px 28px;
  font-size: 0.88rem;
}

.navbar-cta .btn-phone {
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 165, 168, 0.1);
  color: var(--primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.navbar-cta .btn-phone:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 4px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f0fdfd 0%, var(--soft-bg) 50%, #f0f9ff 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14, 165, 168, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 168, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 168, 0.08);
  border: 1px solid rgba(14, 165, 168, 0.15);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge i {
  font-size: 0.9rem;
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease 0.4s both;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Floating stats cards */
.floating-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.floating-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.floating-card .fc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.floating-card .fc-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}

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

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 4px;
}

.about-content .section-subtitle {
  margin-bottom: 40px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-highlight-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--soft-bg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.about-highlight-card:hover {
  border-color: rgba(14, 165, 168, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.about-highlight-card .ahc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.about-highlight-card h4 {
  margin-bottom: 6px;
  color: var(--accent);
}

.about-highlight-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   TREATMENTS SECTION
   ========================================== */
.treatments {
  padding: var(--section-padding);
  background: var(--soft-bg);
}

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

.treatment-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 168, 0.2);
}

.treatment-card .tc-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 165, 168, 0.08), rgba(14, 165, 168, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.treatment-card:hover .tc-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: scale(1.05);
}

.treatment-card h4 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.treatment-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.treatment-card .learn-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-base);
}

.treatment-card:hover .learn-more {
  gap: 12px;
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-us {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--accent) 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 168, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.why-us .section-badge {
  background: rgba(14, 165, 168, 0.15);
}

.why-us .section-title {
  color: white;
}

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

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.why-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition-base);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  border-color: rgba(14, 165, 168, 0.4);
  box-shadow: 0 8px 40px rgba(14, 165, 168, 0.15);
}

.why-card .wc-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 168, 0.2), rgba(14, 165, 168, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary-light);
  font-size: 1.6rem;
  transition: all var(--transition-base);
}

.why-card:hover .wc-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.why-card h4 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.why-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ==========================================
   DOCTOR SECTION
   ========================================== */
.doctor {
  padding: var(--section-padding);
  background: white;
}

.doctor-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.doctor-photo-wrapper {
  position: relative;
}

.doctor-photo-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid rgba(14, 165, 168, 0.2);
  border-radius: var(--radius-xl);
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

.doctor-info h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.doctor-designation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.doctor-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.doctor-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

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

.doctor-stat .ds-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.doctor-stat .ds-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  padding: var(--section-padding);
  background: var(--soft-bg);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

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

.testimonial-card {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 4rem;
  color: rgba(14, 165, 168, 0.15);
  font-family: Georgia, serif;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  padding: 0;
  transition: all var(--transition-base);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* ==========================================
   BEFORE & AFTER GALLERY
   ========================================== */
.gallery {
  padding: var(--section-padding);
  background: white;
}

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

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.gallery-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-card .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 165, 168, 0.8), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity var(--transition-base);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================
   APPOINTMENT SECTION
   ========================================== */
.appointment {
  padding: var(--section-padding);
  background: var(--soft-bg);
  position: relative;
}

.appointment-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.appointment-info {
  padding-right: 20px;
}

.appointment-info .section-subtitle {
  margin-bottom: 32px;
}

.appointment-perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.appointment-perk {
  display: flex;
  align-items: center;
  gap: 16px;
}

.appointment-perk .ap-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 165, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.appointment-perk .ap-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.appointment-perk .ap-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.appointment-form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.appointment-form-card h3 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--soft-bg);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 168, 0.1);
  background: white;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.appointment-form-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ==========================================
   CLINIC INFO SECTION
   ========================================== */
.clinic-info {
  padding: var(--section-padding);
  background: white;
}

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

.info-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--soft-bg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 168, 0.3);
}

.info-card .ic-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(14, 165, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  font-size: 1.3rem;
  transition: all var(--transition-base);
}

.info-card:hover .ic-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card a {
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================
   MAP SECTION
   ========================================== */
.map-section {
  padding: 80px 0 0;
  background: var(--soft-bg);
}

.map-section .section-header {
  margin-bottom: 40px;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0f7f8, #f0fdfd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.map-placeholder p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq {
  padding: var(--section-padding);
  background: white;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(14, 165, 168, 0.3);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

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

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-question .faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.active .faq-toggle {
  background: var(--primary);
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--accent);
  color: white;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-brand .logo-text span {
  color: var(--primary-light);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-column h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}

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

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-column ul li a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-bottom span {
  color: var(--primary-light);
}

/* ==========================================
   FLOATING ELEMENTS
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-base);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.55), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* Mobile sticky book button */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .floating-cards {
    max-width: 500px;
    margin: 48px auto 0;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .doctor-wrapper {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }

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

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

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

  .navbar-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1000;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }

  .hero {
    padding: 100px 0 80px;
  }

  .floating-cards {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

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

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

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .doctor-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-photo-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .doctor-stats {
    justify-content: center;
  }

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

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

  .appointment-form-card {
    padding: 32px 24px;
  }

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

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

  .map-container {
    height: 320px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

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

  .testimonial-inner {
    padding: 32px 24px;
  }

  .mobile-sticky-cta {
    display: block;
  }

  .whatsapp-float {
    bottom: 88px;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

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

  .slider-controls {
    gap: 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
