:root {
  --ivory: #fafaf8;
  --white: #ffffff;
  --navy: #0d1b2a;
  --navy-light: #1a2e42;
  --steel: #4a6fa5;
  --steel-light: #6b8fc7;
  --sky: #c8ddef;
  --sky-pale: #ebf3fa;
  --gold: #b8975a;
  --gold-light: #d4b07a;
  --mist: #f0f4f8;
  --gray-text: #5c6b7a;
  --gray-light: #8a9bad;
  --border: #dde5ed;
  --shadow-sm: 0 2px 16px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 8px 40px rgba(13, 27, 42, 0.1);
  --shadow-lg: 0 20px 60px rgba(13, 27, 42, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", sans-serif;
  --font-arabic: "Noto Naskh Arabic", serif;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

body.ar {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* ─── LANGUAGE VISIBILITY ─── */
.lang-content {
  display: none;
}
body.tr .lang-tr {
  display: block;
}
body.tr .lang-tr-inline {
  display: inline;
}
body.tr .lang-tr-flex {
  display: flex;
}
body.en .lang-en {
  display: block;
}
body.en .lang-en-inline {
  display: inline;
}
body.en .lang-en-flex {
  display: flex;
}
body.ar .lang-ar {
  display: block;
}
body.ar .lang-ar-inline {
  display: inline;
}
body.ar .lang-ar-flex {
  display: flex;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--mist);
}
::-webkit-scrollbar-thumb {
  background: var(--steel-light);
  border-radius: 3px;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(221, 229, 237, 0.6);
  transition: var(--transition);
}
header.scrolled {
  height: 68px;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--steel);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
nav a:hover {
  color: var(--steel);
}
nav a:hover::after {
  transform: scaleX(1);
}
body.ar nav a::after {
  transform-origin: right;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--mist);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  background: transparent;
  color: var(--gray-text);
  cursor: pointer;
  border-radius: 16px;
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}

.btn-header-cta {
  padding: 9px 22px;
  background: var(--steel);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-header-cta:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav a:hover {
  color: var(--steel);
}
.mobile-nav .mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 80px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fafaf8 0%, #ebf3fa 40%, #f0f4f8 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(107, 143, 199, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatBg 8s ease-in-out infinite;
}
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(184, 151, 90, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatBg 10s ease-in-out infinite reverse;
}

@keyframes floatBg {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

.hero-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: visible;
}
.hero-decor-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--sky-pale) 0%, var(--sky) 100%);
  border-radius: 0;
}
.hero-decor-lines {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(
      0deg,
      transparent 49%,
      rgba(74, 111, 165, 0.15) 49%,
      rgba(74, 111, 165, 0.15) 51%,
      transparent 51%
    ),
    linear-gradient(
      90deg,
      transparent 49%,
      rgba(74, 111, 165, 0.15) 49%,
      rgba(74, 111, 165, 0.15) 51%,
      transparent 51%
    );
  background-size: 60px 60px;
}

.hero-decor::before {
  content: "";
  position: absolute;
  left: -150px;
  top: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--cream) 0%,
    rgba(245, 247, 250, 0.95) 25%,
    rgba(245, 247, 250, 0.7) 50%,
    rgba(245, 247, 250, 0) 100%
  );
  z-index: 3;
  filter: blur(2px);
}

.hero-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: brightness(0.95) contrast(1.05);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 27, 42, 0.4) 0%,
    rgba(74, 111, 165, 0.25) 40%,
    transparent 70%
  );
  z-index: 2;
}

/* Tooth SVG illustration */
.hero-illustration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  animation: heroEntry 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroEntry {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  animation: heroEntry 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 24px;
  animation: heroEntry 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 em {
  font-style: italic;
  color: var(--steel);
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
  animation: heroEntry 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: heroEntry 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.2);
}
.btn-primary:hover {
  background: var(--steel);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 111, 165, 0.35);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1dab54;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp svg,
.btn-primary svg {
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  animation: heroEntry 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.76rem;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

/* ─── SECTIONS COMMON ─── */
section {
  padding: 100px 80px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.section-tag::before {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}
body.ar .section-tag::before {
  order: 1;
}

h2.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
h2.section-title em {
  font-style: italic;
  color: var(--steel);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-text);
  max-width: 560px;
  line-height: 1.8;
}

/* ─── ABOUT ─── */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-mock {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--sky-pale) 0%, var(--sky) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-img-mock::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(74, 111, 165, 0.25) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.clinic-icon-large {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}
body.ar .about-badge {
  left: 28px;
  right: auto;
}
.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
}
.badge-text-main {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.badge-text-sub {
  font-size: 0.72rem;
  color: var(--gray-text);
}

.about-text .section-subtitle {
  max-width: 100%;
}
.about-features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--mist);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.about-feature:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.feature-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--sky-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
}
.feature-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.feature-desc {
  font-size: 0.76rem;
  color: var(--gray-text);
  line-height: 1.5;
}

/* ─── TEAM ─── */
.team-section {
  background: var(--cream);
  overflow: hidden;
}
.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.team-text {
  max-width: 100%;
}
.team-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.15);
}
.team-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.team-image:hover img {
  transform: scale(1.05);
}

/* ─── TREATMENTS ─── */
.treatments {
  background: var(--ivory);
}
.treatment-banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  margin-bottom: 80px;
}
.treatment-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.treatment-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 27, 42, 0.85) 0%,
    rgba(74, 111, 165, 0.7) 50%,
    rgba(13, 27, 42, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.treatment-banner-overlay h3 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.treatments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.treatment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Slide-in animation for treatment cards */
.treatment-card.reveal {
  opacity: 0;
  transform: translateX(-30px);
}
.treatment-card.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}
.treatment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
body.ar .treatment-card::before {
  transform-origin: right;
}
.treatment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--sky);
}
.treatment-card:hover::before {
  transform: scaleX(1);
}

.treatment-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 16px;
}
.treatment-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.treatment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.treatment-card:hover .treatment-image {
  box-shadow: 0 12px 24px rgba(13, 27, 42, 0.15);
  transform: translateY(-4px);
}
.treatment-card:hover .treatment-image img {
  transform: scale(1.08);
}
.treatment-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.treatment-desc {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ─── VIEW ALL SERVICES BUTTON ─── */
.view-all-services-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

.btn-view-all-services {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--steel), var(--sky));
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-view-all-services:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btn-view-all-services svg {
  transition: transform 0.3s ease;
}

.btn-view-all-services:hover svg {
  transform: translateX(6px);
}

/* ─── WHY CHOOSE US ─── */
.why {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(74, 111, 165, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.why::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(184, 151, 90, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.why .section-tag {
  color: var(--sky);
}
.why h2.section-title {
  color: var(--white);
}
.why .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.why-card {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 143, 199, 0.4);
  transform: translateY(-4px);
}
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(107, 143, 199, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  margin-bottom: 20px;
  font-size: 24px;
}
.why-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}
.why-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ─── CERTIFICATES ─── */
.certificates-section {
  margin-top: 80px;
  padding: 60px 40px 40px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sky-pale) 100%);
  border-radius: var(--radius-lg);
}
.certificates-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(13, 27, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.6s ease;
}
.certificates-container:hover {
  transform: perspective(1000px) rotateY(-2deg) scale(1.02);
}
.certificates-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.05) contrast(1.05);
}
.certificates-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%,
    rgba(13, 27, 42, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ─── GALLERY / BEFORE-AFTER ─── */
.gallery {
  background: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.ba-comparison {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy);
}
.ba-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.ba-after-img {
  z-index: 1;
}
.ba-before-img {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}
.ba-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.ba-slider::after {
  content: "⟷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--navy);
  font-weight: bold;
  z-index: 1;
}
.ba-labels {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 4;
  pointer-events: none;
}
.ba-label {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ba-label-before {
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
}
.ba-label-after {
  background: var(--steel);
  color: var(--white);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(13, 27, 42, 0.7));
  padding: 20px 16px 14px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-desc {
  font-size: 0.76rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--mist);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-pale), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--steel);
  font-weight: 600;
  font-family: var(--font-serif);
}
.author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.author-detail {
  font-size: 0.74rem;
  color: var(--gray-light);
}

/* ─── HOURS & APPOINTMENT ─── */
.info-section {
  background: var(--white);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.info-card {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  overflow: hidden;
  position: relative;
}
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--gold));
}
.info-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 24px;
}
.hours-list {
  list-style: none;
  flex-direction: column;
  gap: 10px;
}
body.tr .lang-tr.hours-list,
body.en .lang-en.hours-list,
body.ar .lang-ar.hours-list {
  display: flex;
}
.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.hours-item:last-child {
  border-bottom: none;
}
.hours-day {
  color: var(--gray-text);
  font-weight: 500;
}
.hours-time {
  color: var(--navy);
  font-weight: 600;
}
.hours-closed {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.8rem;
}

.rules-list {
  list-style: none;
  flex-direction: column;
  gap: 14px;
}
body.tr .lang-tr.rules-list,
body.en .lang-en.rules-list,
body.ar .lang-ar.rules-list {
  display: flex;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rule-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sky-pale);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}
.rule-text {
  font-size: 0.86rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ─── CONTACT ─── */
.contact {
  background: var(--ivory);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-item:hover {
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--sky-pale);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}
.contact-value:hover {
  color: var(--steel);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
}

/* ─── CONTACT FORM ─── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-top: 20px;
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-text);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--ivory);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--steel);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--steel);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-submit:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 80px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}
.footer-brand .logo-main {
  color: var(--white);
}
.footer-brand .logo-sub {
  color: var(--sky);
}
.footer-tagline {
  font-size: 0.83rem;
  margin-top: 12px;
  max-width: 220px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--white);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.77rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a {
  color: var(--sky);
  text-decoration: none;
}

/* ─── FLOATING BUTTONS ─── */
.float-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition);
  animation: floatIn 0.5s 1s both;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.float-whatsapp::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: ripple 2s infinite;
}
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.float-call {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--steel);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(74, 111, 165, 0.35);
  text-decoration: none;
  transition: var(--transition);
  animation: floatIn 0.5s 1.2s both;
}
.float-call:hover {
  transform: scale(1.1);
  background: var(--navy);
}

body.ar .float-whatsapp {
  right: auto;
  left: 30px;
}
body.ar .float-call {
  right: auto;
  left: 30px;
}

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

/* ─── DIVIDER ─── */
.section-divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ─── RTL ADJUSTMENTS ─── */
body.ar .hero-decor {
  left: 0;
  right: auto;
}
body.ar .hero-decor-inner {
  clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
}
body.ar .hero-decor-lines {
  clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
}
body.ar .hero-content {
  margin-left: 45%;
}
body.ar nav a::after {
  transform-origin: right;
}
body.ar .about-grid {
  direction: rtl;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  section {
    padding: 80px 40px;
  }
  header {
    padding: 0 24px;
  }
  footer {
    padding: 60px 40px 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }
  .btn-header-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding: 120px 24px 60px;
    flex-direction: column;
  }
  .hero-content {
    max-width: 100%;
  }
  body.ar .hero-content {
    margin-left: 0;
  }
  .hero-decor {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 40px;
    overflow: visible;
  }
  .hero-decor::before {
    display: none;
  }
  .hero-decor-inner,
  .hero-decor-lines {
    display: none;
  }
  .hero-image {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    filter: brightness(1) contrast(1);
    object-fit: cover;
  }
  .hero-image::before {
    display: none;
  }
  .hero-stats {
    gap: 28px;
    flex-wrap: wrap;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }
  .about-img-mock {
    width: 100%;
    height: auto;
    min-height: 300px;
  }
  .team-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .treatment-banner {
    height: 250px;
    margin-bottom: 60px;
  }
  .treatment-banner-overlay h3 {
    font-size: 1.8rem;
    padding: 0 20px;
  }
  .certificates-section {
    margin-top: 60px;
    padding-top: 40px;
  }
  .about-img-mock img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 20px;
  }
  header {
    padding: 0 16px;
  }
  footer {
    padding: 40px 20px 24px;
  }
  .hero {
    padding: 100px 20px 50px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .btn-primary,
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .treatments-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .float-whatsapp {
    bottom: 20px;
    right: 16px;
  }
  .float-call {
    bottom: 90px;
    right: 16px;
  }
  body.ar .float-whatsapp {
    left: 16px;
  }
  body.ar .float-call {
    left: 16px;
  }
}

/* ─── TREATMENT MODAL ─── */
.treatment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.treatment-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: var(--white);
  transform: rotate(90deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.modal-image {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-body h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.modal-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-text);
  margin: 0;
}

.modal-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.modal-cta .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px 24px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Mobile responsive for modal */
@media (max-width: 900px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }

  .modal-image {
    min-height: 250px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-body {
    padding: 32px 24px;
  }

  .modal-body h3 {
    font-size: 1.5rem;
  }
}
