/* =============================================
   DENTAL CLINIC - LANDING PAGE CSS
   ============================================= */

/* -------  CSS Variables  ------- */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --secondary: #06b6d4;
  --accent: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;

  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-blue-light: #f0f9ff;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-blue: 0 10px 40px rgba(14, 165, 233, 0.25);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

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

body {
  font-family: "Cairo", sans-serif;
  color: var(--text-medium);
  background: var(--bg-white);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* -------  Utility  ------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

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

/* -------  Buttons  ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-blue);
}

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

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

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

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

/* ========================
   HEADER
======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 0.7rem 0;
}

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

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

.header.scrolled .logo {
  color: var(--text-dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  object-fit: contain;
  padding: 5px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.main-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .main-nav a {
  color: var(--text-medium);
}

.header.scrolled .main-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: white !important;
  color: var(--primary) !important;
  padding: 0.55rem 1.4rem !important;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  background: var(--primary) !important;
  color: white !important;
}

.header.scrolled .nav-cta {
  background: var(--primary) !important;
  color: white !important;
}

.btn-mobile-nav {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.header.scrolled .btn-mobile-nav {
  color: var(--text-dark);
}

#icon-close {
  display: none;
}

/* ========================
   HERO
======================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2c4a 0%, #0ea5e9 50%, #06b6d4 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(99, 102, 241, 0.3) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(6, 182, 212, 0.3) 0%,
      transparent 60%
    );
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  color: #fbbf24;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-buttons .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Visual */
.hero-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.hero-img-bg {
  position: absolute;
  top: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: pulse-ring 3s ease-in-out infinite;
}

.hero-img-bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.hero-img-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-visual-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  z-index: 2;
}

.doctor-photo-circle {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.doctor-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doctor-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 310px;
}

.doctor-info {
  flex: 1;
}

.doctor-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
}

.doctor-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.doctor-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #f59e0b;
  font-weight: 700;
}

.hero-features {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  animation: float 3s ease-in-out infinite;
}

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

.badge-top {
  top: -47px;
  right: -18px;
  animation-delay: 0s;
}

.badge-bottom {
  bottom: 97px;
  left: -100px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-tooth-icon {
  position: absolute;
  top: -60px;
  left: 20px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.15);
  animation: float 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

/* ========================
   SERVICES
======================== */
.services {
  padding: 6rem 0;
  background: var(--bg-light);
}

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

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  border-radius: 0 var(--radius-lg) 0 80px;
  transition: var(--transition);
}

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

.service-card:hover::before {
  width: 120px;
  height: 120px;
}

.service-card.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.service-card.featured h3,
.service-card.featured p {
  color: white;
}

.service-card.featured::before {
  display: none;
}

.service-card.featured:hover {
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.5);
  border-color: transparent;
}

.featured-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.icon-white {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.icon-green {
  background: #d1fae5;
  color: #059669;
}

.icon-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.icon-orange {
  background: #ffedd5;
  color: #ea580c;
}

.icon-teal {
  background: #ccfbf1;
  color: #0d9488;
}

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

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

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

.service-card.featured .service-link {
  color: rgba(255, 255, 255, 0.9);
}

.service-link:hover {
  gap: 0.7rem;
}

/* ========================
   WHY US
======================== */
.why-us {
  padding: 6rem 0;
  background: white;
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-us-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-us-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.why-us-list li:hover .why-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.why-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.why-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.why-us-visual {
  position: relative;
  height: 450px;
}

.visual-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.main-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0369a1 100%);
  color: white;
  padding: 2.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  text-align: center;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.main-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.main-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.card-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cbadge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cbadge i {
  color: #86efac;
}

.floating-card {
  background: white;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.floating-card strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
}

.floating-card span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.card-1 {
  top: 30px;
  right: -20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 30px;
  left: -20px;
  animation-delay: 1.5s;
}

/* ========================
   PROCESS
======================== */
.process {
  padding: 6rem 0;
  background: var(--bg-light);
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.step {
  flex: 1;
  text-align: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.step:hover .step-number {
  color: var(--primary);
}

.step-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-arrow {
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ========================
   GALLERY
======================== */
.gallery {
  padding: 6rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  grid-auto-rows: 220px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
}

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

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

.gallery-item-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  padding: 2rem;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: min(92vw, 980px);
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #0f172a;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(14, 165, 233, 0.95);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-prev {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ========================
   TESTIMONIALS
======================== */
.testimonials {
  padding: 6rem 0;
  background: var(--bg-blue-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

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

.stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.female-avatar {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========================
   CONTACT
======================== */
.contact {
  padding: 6rem 0;
  background: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-title {
  text-align: right;
}

.contact-info > p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 1rem 0 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form-wrapper {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: "Cairo", sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  outline: none;
}

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

.form-group textarea {
  resize: vertical;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.form-note i {
  color: var(--success);
}

.form-success {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}

.form-success p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================
   FOOTER
======================== */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.7rem;
}

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

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

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--primary);
  width: 16px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 1rem;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

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

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

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

  50% {
    box-shadow:
      0 4px 30px rgba(37, 211, 102, 0.7),
      0 0 0 8px rgba(37, 211, 102, 0.1);
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  z-index: 999;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

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

/* ========================
   RESPONSIVE
======================== */

/* ---- Large Tablets / Small Desktops (max 1200px) ---- */
@media (max-width: 1200px) {
  .hero-container {
    gap: 2.5rem;
  }

  .hero-img-wrapper {
    height: 420px;
  }

  .hero-img-bg {
    width: 320px;
    height: 320px;
  }

  .why-us-content {
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

/* ---- Tablets (max 1024px) ---- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery-item-tall,
  .gallery-item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .hero-container {
    gap: 2rem;
  }

  .hero-img-wrapper {
    height: 380px;
  }

  .hero-img-bg {
    width: 380px;
    height: 380px;
  }

  .why-us-content {
    gap: 3rem;
  }

  .contact-wrapper {
    gap: 3rem;
  }

  .process-steps {
    gap: 1rem;
  }

  .step {
    padding: 1.5rem 1rem;
  }
}

/* ---- Small Tablets (max 900px) ---- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-image {
    display: flex;
    justify-content: center;
  }

  .hero-img-wrapper {
    height: 360px;
  }

  .hero-img-bg {
    width: 280px;
    height: 280px;
  }

  .doctor-photo-circle {
    width: 240px;
    height: 240px;
  }

  .doctor-card {
    max-width: 260px;
    padding: 0.85rem 1rem;
  }

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

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

  .hero-badge {
    display: inline-flex;
  }

  .why-us-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .why-us-visual {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .contact-info .section-title {
    text-align: center;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .services {
    padding: 5rem 0;
  }

  .why-us {
    padding: 5rem 0;
  }

  .process {
    padding: 5rem 0;
  }

  .gallery {
    padding: 5rem 0;
  }

  .testimonials {
    padding: 5rem 0;
  }

  .contact {
    padding: 5rem 0;
  }
}

/* ---- Mobile (max 768px) ---- */
@media (max-width: 768px) {
  /* Nav - RTL Mobile Drawer (full screen overlay) */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    height: 100vh;
    width: 100%;
    background: white;
    padding: 5rem 2rem 2rem;
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .main-nav a {
    color: var(--text-medium) !important;
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    display: block;
    text-align: center;
  }

  .main-nav a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
  }

  .nav-cta {
    background: var(--primary) !important;
    color: white !important;
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-cta:hover {
    background: var(--primary-dark) !important;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 1001;
    position: relative;
  }

  /* Hero */
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-image {
    display: flex;
    justify-content: center;
  }

  .hero-img-wrapper {
    height: 320px;
  }

  .hero-img-bg {
    width: 250px;
    height: 250px;
  }

  .doctor-photo-circle {
    width: 210px;
    height: 210px;
  }

  .doctor-card {
    max-width: 300px;
    padding: 0.75rem 0.9rem;
  }

  .hero-features {
    display: block;
  }

  .feature-badge {
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

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

  .badge-top {
    top: -22px;
    right: -6px;
  }

  .badge-bottom {
    bottom: 80px;
    left: -56px;
  }

  .hero-tooth-icon {
    display: block;
    top: -30px;
    left: 10px;
    font-size: 2.3rem;
  }

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

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

  .hero-buttons .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

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

  /* Why Us */
  .why-us-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-us-visual {
    display: none;
  }

  /* Process */
  .process-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .step-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  /* Team */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item-tall,
  .gallery-item-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info .section-title {
    text-align: center;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

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

  .footer-top {
    padding: 3rem 0 2rem;
  }

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

  .section-header {
    margin-bottom: 2.5rem;
  }
}

/* ---- Small Mobile (max 600px) ---- */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1.2rem;
  }

  .hero {
    padding: 6rem 0 3.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .services {
    padding: 4rem 0;
  }

  .why-us {
    padding: 4rem 0;
  }

  .process {
    padding: 4rem 0;
  }

  .gallery {
    padding: 4rem 0;
  }

  .testimonials {
    padding: 4rem 0;
  }

  .contact {
    padding: 4rem 0;
  }

  .service-card {
    padding: 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  .btn-full {
    padding: 0.9rem 1.4rem;
  }

  .whatsapp-float {
    bottom: 1.2rem;
    left: 1.2rem;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
  }

  .gallery-grid {
    gap: 1rem;
    grid-auto-rows: 210px;
  }
}

/* ---- Extra Small Mobile (max 480px) ---- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 5.5rem 0 3rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .stat-divider {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .feature-badge {
    padding: 0.5rem 0.65rem;
    font-size: 0.68rem;
  }

  .badge-top {
    top: -18px;
    right: -3px;
  }

  .badge-bottom {
    bottom: 94px;
    left: -38px;
  }

  .hero-tooth-icon {
    top: -24px;
    left: 8px;
    font-size: 2rem;
  }

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

  .why-us-list {
    gap: 1rem;
  }

  .step {
    padding: 1.2rem 1rem;
  }

  .step-number {
    font-size: 2.2rem;
  }

  .contact-form-wrapper {
    padding: 1.2rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

/* ---- Very Small Screens (max 360px) ---- */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.8rem;
  }

  .main-nav {
    width: 100%;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .doctor-card {
    padding: 1rem 1.2rem;
  }

  .doctor-avatar {
    width: 50px;
    height: 50px;
  }
}
