/* ============================================
   PV DENTAL & IMPLANT CENTRE — Enhanced Design
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Primary palette */
  --primary-50: hsl(199, 89%, 96%);
  --primary-100: hsl(199, 80%, 88%);
  --primary-200: hsl(199, 75%, 75%);
  --primary-300: hsl(199, 70%, 60%);
  --primary-400: hsl(199, 68%, 48%);
  --primary-500: hsl(199, 82%, 38%);
  --primary-600: hsl(201, 90%, 30%);
  --primary-700: hsl(203, 92%, 24%);
  --primary-800: hsl(205, 90%, 18%);
  --primary-900: hsl(207, 88%, 12%);

  /* Accent — warm coral */
  --accent-400: hsl(12, 85%, 58%);
  --accent-500: hsl(12, 80%, 50%);
  --accent-600: hsl(12, 75%, 42%);

  /* Neutrals */
  --neutral-0: #ffffff;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Semantic */
  --success: hsl(152, 60%, 45%);
  --warning: hsl(38, 90%, 55%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 50%, var(--primary-800) 100%);
  --gradient-hero: linear-gradient(135deg, hsl(199, 82%, 38%) 0%, hsl(210, 78%, 22%) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --fs-display: clamp(2.8rem, 5vw, 4.8rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 3vw, 2.8rem);
  --fs-h3: clamp(1.4rem, 2vw, 1.8rem);
  --fs-body: clamp(1rem, 1.2vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-py: clamp(60px, 8vw, 120px);
  --container-px: clamp(16px, 4vw, 40px);
  --container-max: 1240px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px 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.16);
  --shadow-glow: 0 0 30px rgba(14,165,233,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);
}

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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--neutral-600);
  background-color: var(--neutral-0);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
}

address { font-style: normal; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
  position: relative;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-50);
  color: var(--primary-500);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--neutral-800);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--neutral-500);
  max-width: 560px;
  font-size: var(--fs-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-smooth);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--neutral-0);
  box-shadow: 0 4px 20px rgba(14,165,233,0.3);
}

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

.btn-outline {
  border: 2px solid var(--primary-400);
  color: var(--primary-500);
  background: transparent;
}

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

.btn-accent {
  background: var(--gradient-accent);
  color: var(--neutral-0);
  box-shadow: 0 4px 20px rgba(234,88,12,0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(234,88,12,0.4);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-base);
}

.header-topbar {
  background: var(--primary-800);
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-xs);
  padding: 8px 0;
  display: none;
}

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

.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-300);
}

.topbar-item a:hover {
  color: var(--neutral-0);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--primary-200);
  transition: var(--transition-fast);
}

.topbar-social a:hover {
  background: var(--primary-400);
  color: var(--neutral-0);
}

.topbar-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.header-main {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-base);
}

.header.scrolled .header-main {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-700);
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--primary-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav {
  display: none;
}

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

.nav-link {
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--neutral-600);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-500);
  background: var(--primary-50);
}

.header-cta {
  display: none;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--neutral-0);
  box-shadow: var(--shadow-xl);
  padding: 100px 32px 40px;
  transition: var(--transition-base);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 998;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--neutral-700);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--primary-50);
  color: var(--primary-500);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 24px;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float-orb 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float-orb 10s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

/* Geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes .shape {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  animation: float-shape 15s linear infinite;
}

.hero-shapes .shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.hero-shapes .shape:nth-child(2) {
  width: 50px;
  height: 50px;
  top: 60%;
  right: 12%;
  animation-delay: -4s;
  animation-duration: 14s;
  border-radius: 50%;
}

.hero-shapes .shape:nth-child(3) {
  width: 120px;
  height: 120px;
  bottom: 10%;
  left: 35%;
  animation-delay: -8s;
  animation-duration: 22s;
}

@keyframes float-shape {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-40px) rotate(180deg); opacity: 0.6; }
  100% { transform: translateY(0) rotate(360deg); opacity: 0.3; }
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--primary-100);
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: var(--fs-small);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-smooth) both;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-200);
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-display);
  font-weight: 800;
  color: var(--neutral-0);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.15s both;
}

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

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.3s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.45s both;
}

.hero-actions .btn-primary {
  background: var(--neutral-0);
  color: var(--primary-600);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--neutral-0);
}

.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.6s both;
}

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

.hero-stat-value {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--neutral-0);
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image {
  display: none;
  position: relative;
  animation: fadeInRight 1s var(--ease-smooth) 0.3s both;
}

.hero-image img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(14,165,233,0.15);
  top: 8%;
  left: 8%;
  animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

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

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

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

/* ---------- About Section ---------- */
.about {
  background: var(--neutral-50);
}

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--gradient-primary);
  color: var(--neutral-0);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

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

.experience-badge .label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.about-content {
  text-align: center;
}

.about-text {
  color: var(--neutral-500);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--neutral-800);
}

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

.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--neutral-700);
  font-size: var(--fs-small);
}

.about-highlight-item svg {
  width: 20px;
  height: 20px;
  fill: var(--success);
  flex-shrink: 0;
}

/* ---------- Services Section ---------- */
.services {
  background: var(--neutral-0);
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header .section-desc {
  margin-inline: auto;
}

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

.service-card {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  transition: height 0.4s var(--ease-smooth);
  border-radius: 0 2px 2px 0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.service-card:hover::before {
  height: 100%;
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.service-card:hover .card-icon {
  background: var(--primary-400);
}

.service-card .card-icon img {
  width: 32px;
  height: 32px;
  transition: var(--transition-base);
}

.service-card:hover .card-icon img {
  filter: brightness(0) invert(1);
}

.service-card .card-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 6px;
}

.service-card .card-text {
  color: var(--neutral-500);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.services-image {
  display: none;
  position: relative;
}

.services-image img {
  border-radius: var(--radius-lg);
  margin-inline: auto;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  background: var(--neutral-50);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-header .section-desc {
  margin-inline: auto;
}

.testimonial-slider {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  min-height: 280px;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-smooth);
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.testimonial-inner {
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  text-align: center;
}

.testimonial-inner::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 30px;
  font-family: var(--ff-heading);
  font-size: 6rem;
  color: var(--primary-100);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--neutral-600);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-0);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--neutral-800);
  font-size: 1rem;
}

.testimonial-rating {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 20px;
}

.testimonial-rating svg {
  width: 18px;
  height: 18px;
  fill: var(--warning);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neutral-300);
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--primary-400);
  width: 28px;
  border-radius: 5px;
}

/* ---------- Gallery Section ---------- */
.gallery {
  background: var(--neutral-0);
}

.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-header .section-desc {
  margin-inline: auto;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
}

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

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: var(--neutral-0);
  font-family: var(--ff-heading);
  font-weight: 600;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 2;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Appointment Section ---------- */
.appointment {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.appointment::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
  top: -200px;
  right: -150px;
}

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

.appointment-info {
  text-align: center;
}

.appointment-info .section-label {
  background: rgba(255,255,255,0.12);
  color: var(--primary-200);
}

.appointment-info .section-label::before {
  background: var(--primary-200);
}

.appointment-info .section-title {
  color: var(--neutral-0);
}

.appointment-info .section-desc {
  color: rgba(255,255,255,0.7);
  margin-inline: auto;
}

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

.appointment-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-small);
}

.appointment-feature .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.appointment-feature svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-200);
}

/* Appointment Form */
.appointment-form-wrap {
  background: var(--neutral-0);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-xl);
}

.form-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 24px;
  text-align: center;
}

.appointment-form {
  display: grid;
  gap: 16px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  color: var(--neutral-800);
  transition: var(--transition-fast);
}

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

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

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

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

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

.form-note {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--neutral-400);
  margin-top: 12px;
}

.form-note svg {
  width: 14px;
  height: 14px;
  fill: var(--success);
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.5s var(--ease-smooth);
}

.form-success svg {
  width: 64px;
  height: 64px;
  fill: var(--success);
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--neutral-800);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--neutral-500);
}

/* ---------- Contact / Footer ---------- */
.footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  padding: 64px 0 40px;
}

.footer-main .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand .logo-text {
  color: var(--neutral-0);
}

.footer-brand .logo-text small {
  color: var(--primary-300);
}

.footer-desc {
  margin-top: 16px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-schedule {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-schedule-item .schedule-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-schedule-item svg {
  width: 16px;
  height: 16px;
  fill: var(--neutral-0);
}

.footer-col-title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neutral-0);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-small);
  transition: var(--transition-fast);
}

.footer-link svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-400);
  flex-shrink: 0;
}

.footer-link:hover {
  color: var(--neutral-0);
  transform: translateX(4px);
}

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

.footer-contact-item .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--neutral-0);
}

.footer-contact-item a:hover {
  color: var(--primary-300);
}

.footer-map {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.copyright {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.5);
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-400);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.7);
}

.footer-social a:hover svg {
  fill: var(--neutral-0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--neutral-0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  z-index: 100;
  cursor: pointer;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 100;
  transition: var(--transition-base);
  animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-smooth);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s var(--ease-smooth);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s var(--ease-smooth);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive: 576px+ ---------- */
@media (min-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .appointment-features {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Responsive: 768px+ ---------- */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 0.8fr;
    text-align: left;
  }

  .hero-content {
    text-align: left;
  }

  .hero-subtitle {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-image {
    display: block;
  }

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

  .about-content {
    text-align: left;
  }

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

  .appointment .container {
    grid-template-columns: 1fr 1fr;
  }

  .appointment-info {
    text-align: left;
  }

  .appointment-info .section-desc {
    margin-inline: 0;
  }

  .appointment-form-wrap {
    padding: 44px 36px;
  }

  .footer-main .container {
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  }

  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Responsive: 992px+ ---------- */
@media (min-width: 992px) {
  .header-topbar {
    display: block;
  }

  .nav {
    display: block;
  }

  .header-cta {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

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

  .services-image {
    display: block;
  }

  .services-main {
    display: grid;
    grid-template-columns: 1fr 0.4fr;
    gap: 40px;
    align-items: start;
  }

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

/* ---------- Responsive: 1200px+ ---------- */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .services-main {
    grid-template-columns: 1fr;
  }
}

/* ---------- Service Card - Learn More ---------- */
.service-card[data-service] {
  cursor: pointer;
}

.card-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-500);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  margin-top: 12px;
  transition: var(--transition-fast);
}

.card-learn-more svg {
  transition: transform 0.3s var(--ease-smooth);
}

.service-card:hover .card-learn-more {
  color: var(--primary-600);
}

.service-card:hover .card-learn-more svg {
  transform: translateX(4px);
}

/* ---------- Service Detail Modal ---------- */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-smooth);
}

.service-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.service-modal {
  background: var(--neutral-0);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s var(--ease-smooth);
}

.service-modal-overlay.open .service-modal {
  transform: translateY(0) scale(1);
}

/* Custom scrollbar for modal */
.service-modal::-webkit-scrollbar {
  width: 6px;
}

.service-modal::-webkit-scrollbar-track {
  background: transparent;
}

.service-modal::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 3px;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-0);
  z-index: 10;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.modal-close svg {
  fill: currentColor;
}

/* Modal header */
.modal-header {
  background: var(--gradient-hero);
  padding: 48px 36px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.modal-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  bottom: -60px;
  left: -40px;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: modal-icon-appear 0.5s var(--ease-smooth) 0.15s both;
}

@keyframes modal-icon-appear {
  from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.modal-icon img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}

.modal-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--neutral-0);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.5s var(--ease-smooth) 0.2s both;
}

.modal-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-body);
  font-style: italic;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.5s var(--ease-smooth) 0.3s both;
}

/* Modal body */
.modal-body {
  padding: 32px 36px;
}

.modal-description {
  color: var(--neutral-600);
  line-height: 1.8;
  font-size: var(--fs-body);
  margin-bottom: 28px;
  animation: fadeInUp 0.5s var(--ease-smooth) 0.35s both;
}

.modal-section {
  margin-bottom: 28px;
  animation: fadeInUp 0.5s var(--ease-smooth) 0.4s both;
}

.modal-section:last-of-type {
  animation-delay: 0.45s;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 16px;
}

.modal-section-title svg {
  fill: var(--primary-500);
  flex-shrink: 0;
}

/* Benefits list */
.modal-benefits {
  display: grid;
  gap: 10px;
}

.modal-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--neutral-700);
  line-height: 1.5;
  transition: var(--transition-fast);
}

.modal-benefits li:hover {
  background: var(--primary-50);
  transform: translateX(4px);
}

.modal-benefits li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Procedure steps */
.modal-procedure {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.modal-procedure .step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-300);
  transition: var(--transition-fast);
}

.modal-procedure .step:hover {
  border-left-color: var(--primary-500);
  background: var(--primary-50);
}

.modal-procedure .step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--neutral-0);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-procedure .step-text {
  color: var(--neutral-600);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.modal-procedure .step-text strong {
  color: var(--neutral-800);
  display: block;
  margin-bottom: 2px;
}

/* Info bar */
.modal-info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 4px;
  animation: fadeInUp 0.5s var(--ease-smooth) 0.5s both;
}

.modal-info-item {
  text-align: center;
  padding: 16px 12px;
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-100);
}

.modal-info-item .info-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neutral-400);
  margin-bottom: 4px;
}

.modal-info-item .info-value {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-600);
}

/* Modal footer */
.modal-footer {
  padding: 0 36px 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.5s var(--ease-smooth) 0.55s both;
}

.modal-footer .btn {
  flex: 1;
  min-width: 160px;
}

.modal-footer .btn-outline {
  border-color: var(--neutral-300);
  color: var(--neutral-600);
}

.modal-footer .btn-outline:hover {
  border-color: var(--primary-400);
  color: var(--primary-500);
  background: var(--primary-50);
}

/* Modal responsive */
@media (max-width: 575px) {
  .service-modal {
    max-height: 95vh;
    border-radius: var(--radius-lg);
    margin: 0;
  }

  .modal-header {
    padding: 40px 24px 28px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-footer {
    padding: 0 24px 24px;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-icon {
    width: 64px;
    height: 64px;
  }

  .modal-icon img {
    width: 36px;
    height: 36px;
  }

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