/* ============================================================
   BUILDLYCODE DENTALCLINIC - Main Stylesheet
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #1D4ED8;
  --primary-dark: #1E40AF;
  --primary-light: #3B82F6;
  --secondary: #06B6D4;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;
  --text: #374151;
  --text-light: #6B7280;
  --border: #E2E8F0;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #1D4ED8 0%, #06B6D4 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-blue: 0 8px 32px rgba(29, 78, 216, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

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

html.preloader-active {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

html.preloader-active body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); outline: none; border: none; }

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

.section {
  padding: 90px 0;
}

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

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(29,78,216,0.1), rgba(6,182,212,0.1));
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(29,78,216,0.2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.4);
}

.btn-outline {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

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

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

.btn-booking {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-booking:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.5);
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: var(--dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  color: var(--white);
}

.tooth-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
  animation: toothBounce 1s ease-in-out infinite;
}

@keyframes toothBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin: 16px auto;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  background: var(--gradient);
  animation: preloadProgress 2s ease-in-out forwards;
}

@keyframes preloadProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.preloader-inner p {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

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

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
}

.nav-logo i {
  font-size: 1.8rem;
  color: var(--secondary);
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.5));
}

.nav-logo span { line-height: 1; }
.nav-logo em { color: var(--secondary); font-style: normal; font-weight: 400; display: block; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; }

#navbar.scrolled .nav-logo { color: var(--dark); }

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

.nav-link {
  padding: 8px 16px;
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

#navbar.scrolled .nav-link { color: var(--dark-3); }
#navbar.scrolled .nav-link:hover, #navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: rgba(29,78,216,0.08);
}

.nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
  box-shadow: var(--shadow-blue);
  padding: 10px 20px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,78,216,0.4);
  background: rgba(255,255,255,0.15) !important;
}

#navbar.scrolled .nav-cta {
  background: var(--gradient) !important;
  color: var(--white) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-phone:hover { color: var(--secondary); }
#navbar.scrolled .nav-phone { color: var(--dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

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

#navbar.scrolled .hamburger span { background: var(--dark); }

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

/* ---------- HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
}

.slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease, transform 1.2s ease;
  transform: scale(1.05);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(29, 78, 216, 0.45) 60%,
    rgba(6, 182, 212, 0.2) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  max-width: 750px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  width: fit-content;
}

.slide-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-title em {
  font-style: normal;
  background: linear-gradient(135deg, #06B6D4, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.75;
}

.slide-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}

.dot.active {
  width: 30px;
  border-radius: 6px;
  background: var(--secondary);
  border-color: var(--secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- STATS BANNER ---------- */
.stats-banner {
  background: var(--gradient-dark);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

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

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-item i {
  font-size: 2.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-item > div > span {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
}

.stat-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- SERVICES ---------- */
.services-section { background: var(--bg-light); }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  group: true;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

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

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

.service-icon {
  width: 70px; height: 70px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--clr) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--clr);
  transition: var(--transition);
}

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

.service-card:hover .service-icon i {
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-link i { transition: var(--transition); }

.service-link:hover { gap: 14px; color: var(--secondary); }

/* ============================================================
   BEFORE & AFTER 3D TRANSFORMATION SLIDER
   ============================================================ */
.ba-section {
  background: linear-gradient(160deg, #0a0f1e 0%, #0d1b3e 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.ba-section::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ba-section::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.ba-section .section-title { color: var(--white); }
.ba-section .section-title span { color: var(--secondary); }
.ba-section .section-tag {
  background: rgba(6,182,212,0.15);
  color: var(--secondary);
  border-color: rgba(6,182,212,0.3);
}
.ba-section .section-desc { color: rgba(255,255,255,0.65); }

/* --- Tabs --- */
.ba-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}

.ba-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.ba-tab i { font-size: 0.85rem; }

.ba-tab:hover {
  border-color: rgba(6,182,212,0.5);
  color: var(--white);
  background: rgba(6,182,212,0.1);
}

.ba-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(29,78,216,0.4);
}

/* --- Slider Item --- */
.ba-sliders-wrap { position: relative; }

.ba-item {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: baFadeIn 0.5s ease;
}

.ba-item.active { display: flex; }

@keyframes baFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- 3D Card --- */
.ba-card-3d {
  width: 100%;
  max-width: 860px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.07),
    0 0 60px rgba(29,78,216,0.15);
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  position: relative;
}

.ba-card-3d:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-1deg) translateY(-4px);
  box-shadow:
    0 48px 100px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 80px rgba(29,78,216,0.2);
}

/* --- Comparison Container --- */
.ba-comparison {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}

.ba-comparison.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

/* --- Layers --- */
.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* After layer clips from left */
.ba-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0s;
}

/* --- Labels --- */
.ba-label {
  position: absolute;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  z-index: 5;
  text-transform: uppercase;
}

.ba-label-before {
  right: 16px;
  background: rgba(239,68,68,0.85);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.ba-label-after {
  left: 16px;
  background: rgba(16,185,129,0.85);
  color: var(--white);
  backdrop-filter: blur(6px);
}

/* --- Drag Handle --- */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  transition: left 0s;
}

.ba-handle-line {
  flex: 1;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--white), transparent);
  opacity: 0.9;
}

.ba-handle-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
  animation: handlePulse 2s ease-in-out infinite;
  border: 3px solid rgba(29,78,216,0.3);
}

.ba-handle-circle i {
  font-size: 1.2rem;
  color: var(--primary);
}

@keyframes handlePulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(29,78,216,0.3); }
  50%       { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 12px rgba(29,78,216,0); }
}

/* --- Info Bar --- */
.ba-info-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.ba-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}

.ba-info-item i {
  color: var(--secondary);
  font-size: 1rem;
}

.ba-info-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

.ba-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(29,78,216,0.35);
  margin-left: auto;
}

.ba-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,78,216,0.5);
}

/* --- Range Slider --- */
.ba-range-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 860px;
  margin-top: 20px;
  padding: 0 4px;
}

.ba-range-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  text-transform: uppercase;
}

/* Custom range input */
.ba-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right,
    var(--primary) 0%,
    var(--secondary) 50%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.15) 100%
  );
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  cursor: grab;
  border: 3px solid var(--primary);
  transition: transform 0.2s ease;
}

.ba-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.3); }
.ba-range::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  cursor: grab;
  border: 3px solid var(--primary);
}

/* Hint text */
.ba-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: hintBounce 2.5s ease-in-out infinite;
}

.ba-hint i { color: var(--secondary); font-size: 0.9rem; }

@keyframes hintBounce {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  30%       { transform: translateX(-6px); opacity: 1; }
  60%       { transform: translateX(6px); opacity: 1; }
}

/* CTA */
.ba-cta {
  text-align: center;
  margin-top: 52px;
  padding: 36px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.ba-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .ba-comparison { height: 280px; }
  .ba-handle-circle { width: 42px; height: 42px; }
  .ba-handle-circle i { font-size: 1rem; }
  .ba-info-bar { gap: 10px; padding: 14px 16px; }
  .ba-info-item { min-width: 90px; }
  .ba-book-btn { width: 100%; justify-content: center; margin-left: 0; }
  .ba-tabs { gap: 8px; }
  .ba-tab { padding: 9px 16px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .ba-comparison { height: 240px; }
  .ba-info-bar { flex-direction: column; align-items: flex-start; }
  .ba-cta { padding: 24px 16px; }
}

/* ---------- SERVICES PHOTO GRID (Reference Style) ---------- */
.services-section {
  background: var(--bg-light);
}

.svc-grid-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.svc-grid-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tabs */
.svc-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(6, 182, 212, 0.08));
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
  border: 1px solid rgba(29, 78, 216, 0.12);
}

.svc-tab {
  padding: 10px 32px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-light);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font);
}

.svc-tab.active {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.svc-tab:hover:not(.active) { color: var(--primary); }

/* Photo Grid */
.svc-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.svc-photo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.svc-photo-card[data-category="aesthetic"] { display: none; }

.svc-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.svc-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.svc-photo-card:hover .svc-photo-wrap img { transform: scale(1.08); }

.svc-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.svc-photo-card:hover .svc-photo-overlay { opacity: 1; }

.svc-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.svc-photo-card:hover .svc-view-btn {
  background: var(--gradient);
  color: var(--white);
}

.svc-photo-name {
  display: block;
  text-align: center;
  padding: 12px 8px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(29, 78, 216, 0.35);
  transition: var(--transition);
  background: var(--bg-light);
}

.svc-photo-card:hover .svc-photo-name { color: var(--primary); }

/* Fade animation for tab filter */
.svc-photo-card { transition: opacity 0.3s ease, transform 0.3s ease; }
.svc-photo-card.hide { opacity: 0; pointer-events: none; transform: scale(0.97); }
.svc-photo-card.show { opacity: 1; pointer-events: auto; transform: scale(1); }

/* ---------- SERVICE CARD GRID (with descriptions) ---------- */
.svc-section-header {
  text-align: center;
  margin-bottom: 52px;
}

.svc-section-desc {
  font-size: 1rem;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

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

/* Card */
.svc-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

/* Homepage service gallery: image-first tiles without descriptions */
.svc-card-grid .svc-card {
  height: 290px;
  border: none;
  background: var(--dark);
}

.svc-card-grid .svc-card-img-wrap {
  height: 100%;
  flex: 1;
}

.svc-card-grid .svc-card-body,
.svc-card-grid .svc-card-badge,
.svc-card-grid .svc-card-price {
  display: none;
}

.svc-image-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px 22px;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(to top, rgba(8, 15, 35, 0.9) 0%, rgba(8, 15, 35, 0.15) 52%, transparent 72%);
}

.svc-image-link span {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.svc-image-link i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.svc-image-link:hover i,
.svc-image-link:focus-visible i {
  transform: translateX(4px);
  background: var(--secondary);
}

.svc-image-link:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: -3px;
}

.svc-card[data-category="aesthetic"] { display: none; }

.svc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(29,78,216,0.13);
}

/* Card image */
.svc-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.svc-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.svc-card:hover .svc-card-img-wrap img { transform: scale(1.07); }

/* Badge */
.svc-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 1;
}

.svc-badge-teal  { background: linear-gradient(135deg, #0891b2, #06B6D4) !important; }
.svc-badge-green { background: linear-gradient(135deg, #059669, #10B981) !important; }
.svc-badge-orange{ background: linear-gradient(135deg, #d97706, #f59e0b) !important; }
.svc-badge-gold  { background: linear-gradient(135deg, #b45309, #f59e0b) !important; }

/* Price tag */
.svc-card-price {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 1;
}

/* Card body */
.svc-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta row */
.svc-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.svc-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.svc-card-meta i { color: var(--primary); font-size: 0.75rem; }

/* Title */
.svc-card-body h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Description */
.svc-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 18px;
}

/* Action buttons */
.svc-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.svc-btn-details,
.svc-btn-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  flex: 1;
  justify-content: center;
}

.svc-btn-details {
  background: var(--bg-light);
  color: var(--dark);
  border: 1px solid var(--border);
}

.svc-btn-details:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.svc-btn-book {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(29,78,216,0.25);
}

.svc-btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,78,216,0.35);
}

/* Responsive */
@media (max-width: 1100px) { .svc-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
  .svc-card-grid { grid-template-columns: 1fr; }
  .svc-card-grid .svc-card { height: 240px; }
  .svc-card-img-wrap { height: 200px; }
  .svc-tabs { flex-direction: row; }
}

.about-section { background: var(--white); }

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

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

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

.about-badge {
  position: absolute;
  bottom: 30px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: floatBadge 3s ease-in-out infinite;
}

.about-badge i {
  font-size: 1.8rem;
  color: var(--primary);
}

.about-badge strong { display: block; font-weight: 700; color: var(--dark); }
.about-badge span { font-size: 0.8rem; color: var(--text-light); }

.about-exp-badge {
  position: absolute;
  top: 30px;
  right: -24px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-blue);
  animation: floatBadge 3s ease-in-out infinite 1.5s;
}

.exp-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.exp-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.about-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.97rem;
}

.about-features li i {
  color: var(--success);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.about-btns {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------- WHY SECTION ---------- */
.why-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
}

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

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

.why-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-8px);
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.why-icon {
  width: 70px; height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--white);
  transition: var(--transition);
}

.why-card:hover .why-icon {
  transform: rotate(10deg) scale(1.1);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}

/* ---------- TEAM ---------- */
.team-section { background: var(--bg-light); }

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

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.team-img-wrap {
  background: var(--gradient);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-avatar {
  font-size: 5rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.team-card:hover .team-avatar { transform: scale(1.1); }

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.team-card:hover .team-img {
  transform: scale(1.1);
}

.team-social {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  transform: translateY(100%);
  transition: var(--transition);
}

.team-card:hover .team-social { transform: translateY(0); }

.team-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.team-social a:hover { background: var(--white); color: var(--primary); }

.team-info {
  padding: 24px 22px;
}

.team-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.team-info span {
  display: block;
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team-info p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-section { background: var(--white); overflow: hidden; }

.testimonials-slider {
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 380px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 30px;
  font-size: 5rem;
  color: var(--border);
  font-family: var(--font-serif);
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(29,78,216,0.2);
  transform: translateY(-4px);
}

.test-stars {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.test-text {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.test-avatar {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.test-author strong { display: block; font-weight: 700; color: var(--dark); font-size: 0.97rem; }
.test-author span { font-size: 0.82rem; color: var(--text-light); }

.test-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.test-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  color: var(--dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

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

.test-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.test-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ---------- ENQUIRY / BOOKING FORMS ---------- */
.enquiry-section {
  background: linear-gradient(135deg, #F0F7FF 0%, #E0F2FE 100%);
  position: relative;
  overflow: hidden;
}

.enquiry-section::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,0.06) 0%, transparent 70%);
}

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-wrapper {
  background: var(--white);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(29,78,216,0.08);
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
}

.booking-wrapper::before {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, rgba(29,78,216,0.1), rgba(6,182,212,0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--primary);
}

.booking-icon {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(239,68,68,0.1));
  color: var(--accent);
}

.form-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-light);
  font-size: 0.93rem;
}

.dental-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-3);
  letter-spacing: 0.3px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 0.9rem;
  pointer-events: none;
  transition: var(--transition);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: 0.93rem;
  transition: var(--transition);
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(29,78,216,0.08);
}

.input-wrap input:focus ~ i,
.input-wrap select:focus ~ i { color: var(--primary); }

.input-wrap:focus-within i { color: var(--primary); }

.textarea-wrap { align-items: flex-start; }
.textarea-wrap i { top: 14px; }

.input-wrap textarea { resize: vertical; min-height: 110px; }

.input-wrap select { appearance: none; }

.form-status {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  margin-top: 8px;
}

.form-status.success {
  display: block;
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}

.form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}

/* ---------- CONTACT ---------- */
.contact-section { background: var(--white); }

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(29,78,216,0.3);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}

.contact-icon {
  width: 46px; height: 46px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card p, .contact-card a {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-card a:hover { color: var(--primary); }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); }

.footer-top { padding: 72px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 0.93rem;
  line-height: 1.8;
  margin: 20px 0 24px;
  color: rgba(255,255,255,0.55);
}

.footer-brand .nav-logo { color: var(--white); margin-bottom: 4px; }

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

.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

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

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--secondary);
}

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

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

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
  color: var(--secondary);
}

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

.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
  flex-shrink: 0;
}

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

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

/* ---------- FLOATING BUTTONS ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: waPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  animation: none;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7); }
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float:hover .wa-tooltip { opacity: 1; }

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95rem;
  z-index: 900;
  box-shadow: var(--shadow-blue);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.scroll-top:hover { transform: translateY(-4px) scale(1.1); }

/* ============================================================
   RESPONSIVE — Full Device Coverage
   Breakpoints: 1400, 1200, 1024, 900, 768, 600, 480, 375
   ============================================================ */

/* ---- LARGE DESKTOPS (≤ 1400px) ---- */
@media (max-width: 1400px) {
  .container { max-width: 1160px; }
}

/* ---- DESKTOPS / LAPTOPS (≤ 1200px) ---- */
@media (max-width: 1200px) {
  .container { padding: 0 32px; }

  .nav-container { padding: 0 32px; }

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

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

  .about-grid { gap: 50px; }
  .about-img { height: 460px; }

  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { padding: 20px 20px; }

  .slide-content { padding: 0 48px; }
}

/* ---- TABLETS LANDSCAPE / SMALL LAPTOPS (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .nav-container { padding: 0 28px; }

  /* Navbar */
  .nav-phone { font-size: 0.8rem; }
  .nav-menu ul { gap: 2px; }
  .nav-link { padding: 8px 12px; font-size: 0.85rem; }

  /* Hero */
  .slide-content { padding: 0 40px; max-width: 640px; }
  .slide-title { font-size: clamp(1.9rem, 4vw, 3rem); }
  .slide-sub { font-size: 1rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 28px 24px;
  }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }

  /* Services */
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .service-card { padding: 30px 24px; }

  /* About */
  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-img { height: 420px; }
  .about-exp-badge { right: -10px; }
  .about-badge { left: -10px; }

  /* Why */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Testimonials */
  .testimonial-card { min-width: 340px; }

  /* Forms */
  .forms-grid { gap: 28px; }
  .form-wrapper { padding: 36px 30px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 32px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Section spacing */
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
}

/* ---- TABLETS PORTRAIT (≤ 900px) ---- */
@media (max-width: 900px) {
  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 560px; margin: 0 auto; }
  .about-img { height: 400px; }
  .about-exp-badge { right: 10px; top: 20px; }
  .about-badge { left: 10px; bottom: 20px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

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

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-map iframe { height: 300px; }

  /* Forms */
  .forms-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Testimonials */
  .testimonial-card { min-width: 320px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Section spacing */
  .section { padding: 70px 0; }
}

/* ---- TABLETS SMALL / LARGE PHONES (≤ 768px) ---- */
@media (max-width: 768px) {
  /* ---------- NAVBAR MOBILE ---------- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--dark);
    padding: 90px 28px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
    overflow-y: auto;
  }

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

  /* Overlay when menu open */
  .nav-menu.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    left: min(-300px, -85vw);
    width: 100vw;
    z-index: -1;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .nav-link {
    color: rgba(255,255,255,0.75) !important;
    width: 100%;
    padding: 13px 16px !important;
    border-radius: 12px;
    font-size: 1rem !important;
    display: block;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255,255,255,0.08) !important;
    color: var(--white) !important;
  }

  .nav-cta {
    background: var(--gradient) !important;
    color: var(--white) !important;
    margin-top: 10px;
    text-align: center;
    justify-content: center;
  }

  .hamburger { display: flex; }
  .nav-phone { display: none; }

  #navbar { padding: 14px 0; }

  /* ---------- HERO SLIDER MOBILE ---------- */
  .hero-slider { height: 100svh; min-height: 580px; }

  .slide-content {
    padding: 0 24px;
    max-width: 100%;
    justify-content: flex-end;
    padding-bottom: 110px;
  }

  .slide-badge { font-size: 0.78rem; padding: 6px 14px; }

  .slide-title {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    margin-bottom: 14px;
  }

  .slide-sub {
    font-size: 0.93rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-btns { gap: 12px; }
  .slide-btns .btn { padding: 12px 22px; font-size: 0.9rem; }

  .slider-btn { width: 42px; height: 42px; font-size: 0.9rem; }
  .slider-btn.prev { left: 14px; }
  .slider-btn.next { right: 14px; }

  .slider-dots { bottom: 80px; }
  .scroll-indicator { display: none; }

  /* ---------- STATS ---------- */
  .stats-banner { padding: 36px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    padding: 20px 16px;
    gap: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-num { font-size: 1.9rem; }
  .stat-item i { font-size: 1.7rem; }

  /* ---------- SECTIONS ---------- */
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-desc { font-size: 0.97rem; }

  /* ---------- SERVICES ---------- */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; display: flex; align-items: flex-start; gap: 20px; }
  .service-icon { width: 58px; height: 58px; margin-bottom: 0; flex-shrink: 0; }
  .service-icon i { font-size: 1.5rem; }
  .service-card-body { flex: 1; }
  .service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
  .service-card p { font-size: 0.9rem; margin-bottom: 12px; }

  /* ---------- ABOUT ---------- */
  .about-section .section { padding: 60px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img-wrap { max-width: 100%; }
  .about-img { height: 300px; border-radius: 18px; }
  .about-badge {
    left: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }
  .about-badge i { font-size: 1.4rem; }
  .about-exp-badge {
    right: 16px;
    top: 16px;
    padding: 14px 18px;
  }
  .exp-num { font-size: 2.2rem; }
  .about-features li { font-size: 0.93rem; }
  .about-btns { flex-direction: column; gap: 12px; }
  .about-btns .btn { width: 100%; justify-content: center; }

  /* ---------- WHY ---------- */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-card { padding: 28px 20px; }
  .why-icon { width: 58px; height: 58px; font-size: 1.3rem; }
  .why-card h3 { font-size: 1rem; }
  .why-card p { font-size: 0.88rem; }

  /* ---------- TEAM ---------- */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-img-wrap { height: 180px; }
  .team-avatar { font-size: 4rem; }
  .team-info { padding: 18px 16px; }
  .team-info h3 { font-size: 0.97rem; }

  /* ---------- TESTIMONIALS ---------- */
  .testimonial-card { min-width: calc(100vw - 48px); padding: 28px 24px; }
  .test-text { font-size: 0.93rem; }

  /* ---------- FORMS ---------- */
  .enquiry-section { padding: 60px 0; }
  .forms-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-wrapper { padding: 28px 20px; border-radius: 18px; }
  .form-header h2 { font-size: 1.35rem; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .dental-form { gap: 14px; }
  .input-wrap input,
  .input-wrap select,
  .input-wrap textarea { padding: 12px 14px 12px 40px; font-size: 0.9rem; }
  .btn-full { padding: 14px 20px; font-size: 0.95rem; }

  /* ---------- CONTACT ---------- */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { padding: 18px 20px; }
  .contact-map iframe { height: 260px; border-radius: 14px; }

  /* ---------- FOOTER ---------- */
  .footer-top { padding: 52px 0 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { font-size: 0.9rem; }
  .footer-links h4, .footer-contact h4 { font-size: 0.95rem; }

  /* ---------- FLOATS ---------- */
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 80px; right: 20px; }
  .scroll-top { width: 42px; height: 42px; font-size: 0.85rem; right: 20px; bottom: 20px; }
}

/* ---- PHONES (≤ 600px) ---- */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav-container { padding: 0 18px; }

  /* Hero */
  .hero-slider { min-height: 560px; }
  .slide-content { padding: 0 18px; padding-bottom: 100px; }
  .slide-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .slide-badge { font-size: 0.72rem; }
  .slide-sub { font-size: 0.88rem; -webkit-line-clamp: 2; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.7rem; }
  .stat-item > div > span { font-size: 1.5rem; }

  /* Services - single column stacked */
  .services-grid { grid-template-columns: 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-card { padding: 22px 16px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-img-wrap { height: 160px; }
  .team-avatar { font-size: 3.2rem; }

  /* Testimonials */
  .testimonial-card { min-width: calc(100vw - 36px); padding: 24px 20px; }
  .testimonial-card::before { font-size: 3.5rem; top: 12px; right: 18px; }

  /* Forms */
  .form-wrapper { padding: 24px 16px; border-radius: 16px; }
  .form-icon { width: 58px; height: 58px; font-size: 1.5rem; }

  /* Section */
  .section { padding: 52px 0; }
  .section-header { margin-bottom: 36px; }

  /* Buttons */
  .btn { padding: 12px 22px; font-size: 0.9rem; }

  /* Section tag */
  .section-tag { font-size: 0.78rem; letter-spacing: 1.5px; }
}

/* ---- SMALL PHONES (≤ 480px) ---- */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .container { padding: 0 16px; }
  .nav-container { padding: 0 16px; }

  /* Navbar */
  .nav-logo { font-size: 1.2rem; }
  .nav-logo i { font-size: 1.5rem; }
  #navbar { padding: 12px 0; }

  /* Hero */
  .hero-slider { min-height: 540px; height: 100svh; }
  .slide-content { padding: 0 16px; padding-bottom: 90px; }
  .slide-title { font-size: clamp(1.4rem, 8vw, 1.85rem); line-height: 1.2; }
  .slide-badge { display: none; }
  .slide-sub { font-size: 0.86rem; margin-bottom: 20px; }
  .slide-btns { flex-direction: column; gap: 10px; }
  .slide-btns .btn { width: 100%; justify-content: center; padding: 13px 20px; }
  .slider-btn { width: 36px; height: 36px; font-size: 0.8rem; }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .slider-dots { bottom: 68px; gap: 7px; }
  .dot { width: 8px; height: 8px; }
  .dot.active { width: 22px; }

  /* Stats */
  .stats-banner { padding: 28px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 18px 12px; gap: 10px; flex-direction: column; text-align: center; }
  .stat-num { font-size: 1.6rem; }
  .stat-item i { font-size: 1.5rem; }
  .stat-item p { font-size: 0.75rem; }

  /* Services */
  .service-card { flex-direction: column; padding: 24px 20px; }
  .service-icon { margin-bottom: 16px; }

  /* About */
  .about-img { height: 250px; }
  .about-badge { padding: 10px 14px; }
  .about-badge i { font-size: 1.2rem; }
  .about-badge strong { font-size: 0.9rem; }
  .about-badge span { font-size: 0.72rem; }
  .about-exp-badge { padding: 12px 14px; }
  .exp-num { font-size: 1.8rem; }
  .exp-text { font-size: 0.68rem; }
  .about-content p { font-size: 0.93rem; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 24px 20px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Testimonials */
  .testimonial-card { min-width: calc(100vw - 32px); }
  .test-text { font-size: 0.88rem; }

  /* Section spacing */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 30px; }
  .section-title { font-size: clamp(1.4rem, 7vw, 1.9rem); }

  /* Forms */
  .form-wrapper { padding: 22px 14px; }
  .form-header h2 { font-size: 1.25rem; }
  .form-header p { font-size: 0.85rem; }
  .input-wrap input,
  .input-wrap select,
  .input-wrap textarea { font-size: 0.88rem; padding: 11px 12px 11px 38px; }
  .input-wrap i { left: 12px; }

  /* Contact */
  .contact-card { padding: 16px; gap: 14px; }
  .contact-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 0.9rem; }
  .contact-card h4 { font-size: 0.82rem; }
  .contact-card p { font-size: 0.88rem; }
  .contact-map iframe { height: 240px; }

  /* Footer */
  .footer-top { padding: 44px 0 28px; }
  .footer-grid { gap: 24px; }
  .footer-links ul { gap: 8px; }
  .footer-contact p { font-size: 0.87rem; }
  .footer-bottom p { font-size: 0.8rem; }

  /* Floating buttons */
  .whatsapp-float { width: 46px; height: 46px; font-size: 1.3rem; right: 16px; bottom: 72px; }
  .scroll-top { width: 40px; height: 40px; font-size: 0.82rem; right: 16px; bottom: 16px; }
  .wa-tooltip { display: none; }
}

/* ---- EXTRA SMALL PHONES (≤ 375px) ---- */
@media (max-width: 375px) {
  html { font-size: 14px; }

  .container { padding: 0 14px; }
  .nav-container { padding: 0 14px; }

  /* Hero */
  .slide-title { font-size: 1.35rem; }
  .slide-sub { font-size: 0.84rem; }

  /* Stats */
  .stat-item { padding: 14px 8px; }
  .stat-num { font-size: 1.4rem; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; }
  .team-img-wrap { height: 200px; }

  /* About img */
  .about-img { height: 220px; }

  /* Forms */
  .form-wrapper { padding: 18px 12px; border-radius: 14px; }

  /* Section */
  .section { padding: 42px 0; }
  .section-title { font-size: 1.4rem; }

  /* Footer */
  .footer-grid { gap: 20px; }
  .footer-social a { width: 36px; height: 36px; border-radius: 8px; }

  /* Nav */
  .nav-logo span { font-size: 1.1rem; }
}

/* ---- LANDSCAPE PHONES ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slider { height: 100lvh; min-height: 400px; }
  .slide-content { padding-bottom: 70px; justify-content: center; }
  .slide-title { font-size: 1.6rem; margin-bottom: 8px; }
  .slide-sub { display: none; }
  .slide-badge { display: none; }
  .slide-btns { gap: 10px; flex-direction: row; }
  .slide-btns .btn { padding: 10px 18px; font-size: 0.85rem; width: auto; }
  .slider-dots { bottom: 16px; }
  .scroll-indicator { display: none; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { padding: 14px 12px; border-bottom: none; }
}

/* ---- PRINT MEDIA ---- */
@media print {
  #navbar,
  .hero-slider,
  .whatsapp-float,
  .scroll-top,
  #preloader { display: none !important; }
  .section { padding: 20px 0; }
  body { font-size: 12pt; color: #000; }
}

/* ---- ACCESSIBILITY: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide { transition: none !important; }
}

/* ========== NEWSLETTER POPUP ========== */
.newsletter-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}
.newsletter-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.newsletter-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.newsletter-overlay.active .newsletter-modal {
  transform: translateY(0) scale(1);
}
.newsletter-close {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #333;
  transition: var(--transition);
}
.newsletter-close:hover {
  background: var(--accent);
  color: #fff;
}
.newsletter-image {
  flex: 1;
  max-width: 45%;
}
.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.newsletter-content {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.newsletter-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.newsletter-content p {
  color: var(--text);
  margin-bottom: 24px;
  font-size: 1rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-form input {
  padding: 14px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
.newsletter-form input:focus {
  border-color: var(--primary);
}
.newsletter-form button {
  width: 100%;
  border-radius: 30px;
}
.newsletter-disclaimer {
  font-size: 0.8rem !important;
  color: #888 !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  text-align: center;
}
@media (max-width: 768px) {
  .newsletter-modal {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  .newsletter-image {
    max-width: 100%;
    height: 200px;
  }
  .newsletter-content {
    padding: 30px 20px;
  }
}

