/* ==========================================================================
   GLOW BEAUTY CLINIC - DESIGN SYSTEM & CENTRAL STYLESHEET (v2.1)
   Inspired by Tatcha, La Mer, and Augustinus Bader.
   ========================================================================== */

/* 1. TYPOGRAPHY IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* 2. DESIGN TOKENS (CSS VARIABLES) */
:root {
  /* Colors */
  --primary: #7DB5D4;
  --primary-light: #9DCAE3;
  --primary-dark: #5A9DBF;
  --background: #F0F7FC;
  --background-alt: #E0EFF8;
  --blush: #B8D9ED;
  --blush-light: #D6EAF5;
  --charcoal: #1E2D3A;
  --charcoal-mid: #4A6070;
  --white: #FFFFFF;
  --accent-gold: #C8A860;

  /* Typography Scales */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans-en: 'Jost', sans-serif;
  --font-sans-ar: 'Cairo', sans-serif;
  
  --font-hero-title: clamp(3rem, 6vw, 5.5rem);
  --font-page-title: clamp(2.2rem, 4vw, 4rem);
  --font-section-title: clamp(1.8rem, 3vw, 3rem);
  --font-card-title: 1.25rem;
  --font-body: 0.95rem;
  --font-caption: 0.8rem;
  --font-label: 0.72rem;

  /* Spacing */
  --nav-height: 72px;
  --transition: 0.3s ease;
  
  /* Borders & Radius */
  --radius-card: 16px;
  --radius-button: 50px;
  --radius-image: 20px;
  --radius-badge: 50px;
  --radius-input: 10px;

  /* Shadows */
  --shadow-nav: 0 2px 30px rgba(125, 181, 212, 0.15);
  --shadow-card: 0 10px 30px rgba(30, 45, 58, 0.05);
  --shadow-card-hover: 0 24px 60px rgba(125, 181, 212, 0.22);
  --shadow-modal: 0 40px 80px rgba(30, 45, 58, 0.25);
  --shadow-input-focus: 0 0 0 3px rgba(125, 181, 212, 0.25);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-sans-en);
  background-color: var(--background);
  color: var(--charcoal);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition), color var(--transition);
}

/* Dynamic Font Assignment based on Language */
body.lang-ar {
  font-family: var(--font-sans-ar);
}

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

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

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* 4. UTILITIES & STRUCTURAL ELEMENTS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--background-alt);
}

.section-dark {
  background-color: var(--charcoal);
  color: var(--white);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: var(--font-section-title);
  font-weight: 300;
  color: inherit;
  line-height: 1.2;
  margin-bottom: 1rem;
}

body:not(.lang-ar) .section-header h2 {
  font-weight: 300;
}

body.lang-ar .section-header h2 {
  font-family: var(--font-sans-ar);
  font-weight: 600;
}

.section-header .subtitle {
  font-size: var(--font-body);
  color: var(--charcoal-mid);
}

.section-dark .section-header .subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Premium Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--blush-light);
  color: var(--primary-dark);
  font-size: var(--font-caption);
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-badge);
  border: 1px solid rgba(125, 181, 212, 0.25);
  margin-bottom: 1.5rem;
}

.badge-gold {
  background-color: rgba(200, 168, 96, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(200, 168, 96, 0.2);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: var(--font-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all var(--transition);
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(125, 181, 212, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: var(--hover-lift, translateY(-3px));
  box-shadow: 0 15px 30px rgba(125, 181, 212, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--charcoal);
  border: 1px solid rgba(30, 45, 58, 0.2);
}

.btn-secondary:hover {
  background-color: var(--blush-light);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(200, 168, 96, 0.3);
}

.btn-gold:hover {
  background-color: #b0914e;
  transform: translateY(-3px);
}

.btn-white {
  background-color: var(--white);
  color: var(--charcoal);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

/* 5. STICKY FROSTED GLASS NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(240, 247, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 181, 212, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}

.navbar.scrolled {
  background-color: rgba(240, 247, 252, 0.95);
  box-shadow: var(--shadow-nav);
  height: 64px;
}

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

.logo {
  font-family: var(--font-sans-en);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--charcoal);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: var(--font-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-mid);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--charcoal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Toggle Pill */
.lang-toggle {
  background-color: var(--background-alt);
  border: 1px solid rgba(125, 181, 212, 0.2);
  border-radius: var(--radius-badge);
  padding: 4px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.lang-toggle:hover {
  background-color: var(--blush);
  color: var(--charcoal);
  border-color: var(--primary);
}

.navbar .btn-nav {
  padding: 8px 20px;
  font-size: 0.75rem;
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--charcoal);
  transition: var(--transition);
}

/* Mobile Menu Dropdown */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--background);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 100px 20px;
  transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-menu {
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav .nav-link {
  font-size: 1.25rem;
}

/* 6. PAGE BANNER SECTION */
.page-banner {
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--background) 100%);
  padding: calc(var(--nav-height) + 5rem) 0 5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(125, 181, 212, 0.15);
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner .eyebrow {
  display: inline-block;
  font-size: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: var(--font-page-title);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

body.lang-ar .page-banner h1 {
  font-family: var(--font-sans-ar);
  font-weight: 700;
}

.page-banner .subtitle {
  font-size: 1.1rem;
  color: var(--charcoal-mid);
  max-width: 600px;
}

/* Decorative background circle */
.page-banner::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 202, 227, 0.25) 0%, rgba(240, 247, 252, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* 7. INDEX (HOME) PAGE SPECIFICS */
/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(240, 247, 252, 0.94) 0%, rgba(224, 239, 248, 0.82) 50%, rgba(184, 217, 237, 0.4) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

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

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: var(--font-hero-title);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

body.lang-ar .hero-content h1 {
  font-family: var(--font-sans-ar);
  font-weight: 700;
}

.hero-content .subtitle {
  font-size: 1.1rem;
  color: var(--charcoal-mid);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Asymmetric Hero Circle Photo */
.hero-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(125, 181, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px rgba(125, 181, 212, 0.2);
  position: relative;
}

.hero-circle::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  border-radius: 50%;
  border: 1px dashed rgba(200, 168, 96, 0.4);
  pointer-events: none;
  animation: rotate 60s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Stats Row */
.stats-section {
  padding: 3.5rem 0;
  background-color: var(--white);
  border-bottom: 1px solid rgba(125, 181, 212, 0.15);
  box-shadow: 0 4px 30px rgba(125, 181, 212, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  width: 1px;
  height: 60%;
  background-color: rgba(125, 181, 212, 0.3);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

body.lang-ar .stat-value {
  font-family: var(--font-sans-ar);
  font-weight: 700;
}

.stat-label {
  font-size: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--charcoal-mid);
  font-weight: 500;
}

/* Services Preview Section */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-bottom: 4rem;
}

/* 8. SERVICES & TREATMENTS CARDS */
.service-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(125, 181, 212, 0.1);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(125, 181, 212, 0.25);
}

.service-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-img img {
  transform: scale(1.06);
}

/* Image scrim */
.service-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to top, rgba(30, 45, 58, 0.2), transparent);
  pointer-events: none;
}

.service-info {
  padding: 2.2rem 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  background-color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-top: -45px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(125, 181, 212, 0.15);
  border: 3px solid var(--white);
}

.service-card h3 {
  font-size: var(--font-card-title);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: var(--font-body);
  color: var(--charcoal-mid);
  margin-bottom: 1.8rem;
  flex-grow: 1;
  font-weight: 300;
}

/* Info Pills Grid inside service card */
.service-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(125, 181, 212, 0.15);
  padding-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.info-pill {
  text-align: center;
  background-color: var(--background);
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid rgba(125, 181, 212, 0.08);
}

.info-pill i {
  font-size: 0.85rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
  display: block;
}

.info-pill .pill-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.info-pill .pill-val {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--charcoal);
}

.service-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
}

.service-cta:hover {
  color: var(--charcoal);
}

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

.service-cta:hover i {
  transform: translateX(4px);
}

/* Full treatments grid page layout */
.treatments-grid-all {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  gap: 2.5rem;
}

/* 9. ABOUT & STORY SECTION SPECIFICS */
.story-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.story-content {
  max-width: 550px;
}

.story-body {
  font-size: var(--font-body);
  color: var(--charcoal-mid);
  margin-top: 1.5rem;
  line-height: 1.7;
}

/* About Interior Photo Asymmetric cropping */
.interior-img-box {
  position: relative;
}

.interior-img-box img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 20px 20px 80px 20px;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid rgba(125, 181, 212, 0.15);
}

/* Elegant details frame */
.interior-img-box::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border-radius: 20px 20px 80px 20px;
  border: 1px dashed var(--accent-gold);
  pointer-events: none;
  z-index: -1;
}

/* Glow Difference 4 Columns */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border: 1px solid rgba(125, 181, 212, 0.08);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card .icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--blush-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--charcoal-mid);
  font-weight: 300;
}

/* Team Grid Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border: 1px solid rgba(125, 181, 212, 0.08);
}

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

.team-img-box {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.team-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.team-card:hover .team-img-box img {
  transform: scale(1.05);
}

/* Elegant gold gradient strip below portrait */
.team-gradient-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
}

.team-info {
  padding: 1.8rem;
  text-align: center;
}

.team-info h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

body.lang-ar .team-info h3 {
  font-family: var(--font-sans-ar);
  font-weight: 600;
}

.team-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.team-specialty {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--background);
  color: var(--charcoal-mid);
  padding: 4px 12px;
  border-radius: var(--radius-badge);
}

/* 10. RESULTS & COMPARISON GALLERY */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-tab {
  background-color: var(--white);
  border: 1px solid rgba(125, 181, 212, 0.15);
  padding: 8px 24px;
  border-radius: var(--radius-button);
  font-size: var(--font-caption);
  font-weight: 500;
  color: var(--charcoal-mid);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-tab.active,
.filter-tab:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(125, 181, 212, 0.25);
}

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

.gallery-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(125, 181, 212, 0.08);
  transition: all var(--transition);
}

.gallery-card.hide {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

/* Side by Side Dual View Container */
.gallery-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.compare-half {
  position: relative;
  overflow: hidden;
}

.compare-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .compare-half img {
  transform: scale(1.03);
}

/* Grayscale + Desaturate overlay for Before */
.compare-before img {
  filter: grayscale(50%) brightness(0.75);
}

/* Full color for After */
.compare-after img {
  filter: none;
}

/* Absolute Floating Pill Badges */
.compare-badge {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-badge);
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.compare-before .compare-badge {
  left: 12px;
  background-color: var(--charcoal);
  color: var(--white);
}

.compare-after .compare-badge {
  right: 12px;
  background-color: var(--accent-gold);
  color: var(--white);
}

/* Gradients on bottom of image */
.compare-half::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to top, rgba(30, 45, 58, 0.25), transparent);
  pointer-events: none;
  z-index: 2;
}

.gallery-info {
  padding: 1.25rem 1.5rem;
  text-align: center;
  background-color: var(--white);
  border-top: 1px solid rgba(125, 181, 212, 0.08);
}

.gallery-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal);
}

body.lang-ar .gallery-info h3 {
  font-family: var(--font-sans-ar);
  font-weight: 600;
}

/* 11. REVIEWS & TESTIMONIALS SECTION */
/* Ratings Summary bar details */
.ratings-summary-bar {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(125, 181, 212, 0.1);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.rating-score-box {
  text-align: center;
  padding: 1rem;
}

.rating-score-huge {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}

body.lang-ar .rating-score-huge {
  font-family: var(--font-sans-ar);
  font-weight: 700;
}

.rating-stars {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.rating-total-text {
  font-size: 0.85rem;
  color: var(--charcoal-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Breakdowns */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.breakdown-label {
  width: 65px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal-mid);
}

.breakdown-bar-bg {
  flex-grow: 1;
  height: 8px;
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(125, 181, 212, 0.08);
}

.breakdown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 10px;
}

.breakdown-percent {
  width: 35px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(125, 181, 212, 0.08);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

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

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.testimonial-text {
  font-size: var(--font-body);
  color: var(--charcoal-mid);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
  flex-grow: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(125, 181, 212, 0.1);
  padding-top: 1.2rem;
}

.user-avatar-circle {
  width: 42px;
  height: 42px;
  background-color: var(--blush-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: inset 0 2px 6px rgba(125, 181, 212, 0.15);
}

.user-meta h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}

.user-treatment-tag {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 500;
}

/* 12. CONTACT PAGE SPECIFICS */
.contact-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
}

/* Glassmorphic Form styling */
.contact-form-box {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  border: 1px solid rgba(125, 181, 212, 0.12);
}

.contact-form-box h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

body.lang-ar .contact-form-box h3 {
  font-family: var(--font-sans-ar);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-mid);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background-color: var(--background);
  border: 1px solid rgba(125, 181, 212, 0.2);
  padding: 12px 16px;
  border-radius: var(--radius-input);
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: all var(--transition);
}

.form-input::placeholder {
  color: #a4b4c0;
}

.form-input:focus {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-input-focus);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237DB5D4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px;
}

/* RTL Select Arrow adjustment */
[dir="rtl"] select.form-input {
  background-position: left 12px center;
}

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Success Toast / Box */
.success-msg-box {
  display: none;
  background-color: rgba(90, 157, 191, 0.1);
  border: 1px solid var(--primary-dark);
  color: var(--charcoal);
  padding: 1.5rem;
  border-radius: var(--radius-input);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  animation: fadeIn 0.4s ease;
}

/* Contact Info Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.contact-info-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(125, 181, 212, 0.1);
}

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

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

.info-item .icon-circle {
  width: 40px;
  height: 40px;
  background-color: var(--blush-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 1px solid rgba(125, 181, 212, 0.15);
}

.info-text h4 {
  font-size: var(--font-label);
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-text p,
.info-text a {
  font-size: var(--font-body);
  color: var(--charcoal-mid);
  font-weight: 300;
}

.info-text a:hover {
  color: var(--primary-dark);
}

/* Custom Interactive Map Placeholder */
.map-placeholder-box {
  height: 200px;
  background-color: var(--background-alt);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-mid);
  gap: 10px;
  box-shadow: inset 0 2px 10px rgba(125, 181, 212, 0.1);
  border: 1px solid rgba(125, 181, 212, 0.15);
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.map-placeholder-box:hover {
  border-color: var(--primary);
  background-color: var(--blush-light);
  color: var(--charcoal);
}

.map-placeholder-box i {
  font-size: 2rem;
  color: var(--primary-dark);
}

.map-placeholder-box span {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WhatsApp Float Button & Column CTA */
.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* 13. FULL-WIDTH CALL TO ACTION BAND */
.cta-band {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a3c4c 100%);
  color: var(--white);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 181, 212, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 2rem;
}

body.lang-ar .cta-band h2 {
  font-family: var(--font-sans-ar);
  font-weight: 700;
}

/* 14. PREMIUM DARK FOOTER */
.footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 5.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.social-link {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(125, 181, 212, 0.35);
}

.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

/* RTL adjusting padding shift on link hover */
[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-info i {
  color: var(--primary-light);
  margin-top: 4px;
}

/* Copyright Band */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* 15. TRANSITION AND ANIMATIONS */
/* Reveal On Scroll styling classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Image zoom on hover */
.img-hover-trigger {
  overflow: hidden;
  border-radius: var(--radius-image);
}

.img-hover-trigger img {
  transition: transform 0.5s ease;
}

.img-hover-trigger:hover img {
  transform: scale(1.04);
}

/* Stagger delays via helper styles */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }
.delay-5 { transition-delay: 0.40s !important; }

/* 16. DETAILED BI-LINGUAL DIRECTION RTL OVERRIDES */
/* Flip offsets, navigation lists, margins when HTML has dir="rtl" */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .logo {
  letter-spacing: 0;
}

[dir="rtl"] .nav-link {
  letter-spacing: 0;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .btn {
  letter-spacing: 0.05em;
}

/* Hero RTL */
[dir="rtl"] .hero .container {
  grid-template-columns: 0.9fr 1.1fr;
}

[dir="rtl"] .hero-content {
  grid-column: 2;
  grid-row: 1;
}

[dir="rtl"] .hero-image-wrapper {
  grid-column: 1;
  grid-row: 1;
}

/* Story columns RTL */
[dir="rtl"] .interior-img-box::before {
  left: auto;
  right: -20px;
}

/* Stats divider RTL */
[dir="rtl"] .stat-card:not(:last-child)::after {
  right: auto;
  left: 0;
}

/* Floating Compare Badges RTL */
[dir="rtl"] .compare-before .compare-badge {
  left: auto;
  right: 12px;
}

[dir="rtl"] .compare-after .compare-badge {
  right: auto;
  left: 12px;
}

/* Icon rotation for RTL indicators */
[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .service-cta i {
  transform: scaleX(-1);
}

[dir="rtl"] .service-cta:hover i {
  transform: scaleX(-1) translateX(4px);
}

/* Form inputs alignment RTL */
[dir="rtl"] .breakdown-percent {
  text-align: left;
}

/* 17. RESPONSIVE MEDIA QUERIES (MOBILE FIRST APPROACH) */

/* Tablet Viewports */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-top: 4rem;
  }
  
  [dir="rtl"] .hero .container {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .hero-content {
    grid-column: auto;
    grid-row: auto;
  }

  [dir="rtl"] .hero-image-wrapper {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .hero-image-wrapper {
    order: -1;
  }

  .services-preview-grid,
  .treatments-grid-all,
  .team-grid,
  .gallery-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .story-wrapper,
  .contact-split,
  .ratings-summary-bar {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

/* Mobile Viewports */
@media (max-width: 768px) {
  :root {
    --section-padding: 4.5rem 5%;
  }

  .section {
    padding: 4.5rem 0;
  }

  /* Navigation */
  .nav-menu {
    display: none;
  }

  .navbar .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-circle {
    width: 300px;
    height: 300px;
  }

  /* Stats row */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card:not(:last-child)::after {
    display: none;
  }

  /* Cards grids */
  .services-preview-grid,
  .treatments-grid-all,
  .team-grid,
  .gallery-grid,
  .testimonials-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .ratings-summary-bar {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.8rem;
  }

  .contact-form-box {
    padding: 1.8rem;
  }

  .gallery-filter-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-tab {
    padding: 6px 16px;
    font-size: 0.75rem;
  }

  .footer {
    padding: 4rem 0 2rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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