/* ============================================================
   DR. NOHA BOUTAJ — Premium Landing Page
   Design System & Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Colors */
  --color-primary: #3B4B8A;
  --color-primary-light: #4E5FA3;
  --color-secondary: #7B8EC2;
  --color-secondary-light: #A4B3D8;
  --color-cta: #C9A96E;
  --color-cta-hover: #B8954F;
  --color-background: #F5F3F0;
  --color-background-alt: #EDEAE5;
  --color-surface: #FFFFFF;
  --color-text: #1C1917;
  --color-text-secondary: #57534E;
  --color-text-muted: #78716C;
  --color-border: #E7E5E4;
  --color-border-light: #F0EEEC;
  --color-overlay: rgba(28, 25, 23, 0.55);
  --color-whatsapp: #25D366;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.surtitre {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: var(--space-md);
  display: block;
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header p {
  margin-top: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

/* ============================================================
   5. HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.header--transparent {
  background: transparent;
}

.header--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 44px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.header__logo:hover img {
  opacity: 0.8;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.header--transparent .header__nav a {
  color: #FFFFFF;
}

.header--solid .header__nav a {
  color: var(--color-text);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cta);
  transition: width var(--transition-base);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.header--transparent .header__toggle span {
  background: #FFFFFF;
}

.header--solid .header__toggle span {
  background: var(--color-text);
}

.header__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-cta);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
}

.btn--primary:hover {
  background: var(--color-cta-hover);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn--outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #FFFFFF;
}

.btn--whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-1px);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 25, 23, 0.7) 0%,
    rgba(59, 75, 138, 0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: var(--header-height);
}

.hero__content h1 {
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
}

.hero__content h1 em {
  font-style: italic;
  color: var(--color-cta);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-cta);
}

/* ============================================================
   8. DOCTOR / ABOUT SECTION
   ============================================================ */
.doctor {
  background: var(--color-surface);
}

.doctor__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.doctor__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.doctor__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.doctor__image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--color-cta);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.doctor__content h2 {
  margin-bottom: var(--space-lg);
}

.doctor__text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  font-size: 1.02rem;
}

.doctor__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.doctor__credential {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-background);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-cta);
}

.doctor__credential svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.doctor__credential p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.doctor__credential strong {
  color: var(--color-text);
}

.doctor__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-secondary-light);
  line-height: 1.6;
}

/* ============================================================
   9. SERVICES SECTION
   ============================================================ */
.services {
  background: var(--color-background);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(0.3);
  transition: filter var(--transition-slow);
}

.service-card:hover .service-card__image {
  filter: saturate(1);
}

.service-card__body {
  padding: var(--space-xl);
}

.service-card__body h3 {
  margin-bottom: var(--space-sm);
}

.service-card__body p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Star Service (larger card) */
.service-card--star {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-card--star .service-card__image {
  height: 100%;
  min-height: 320px;
}

.service-card--star .service-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-3xl);
}

.service-card--star .service-card__body h3 {
  font-size: 1.5rem;
}

.service-card--star .service-card__body p {
  font-size: 1rem;
}

.service-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: var(--space-md);
  background: rgba(201, 169, 110, 0.12);
  color: var(--color-cta-hover);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card__tag svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   10. CLINIC / GALLERY SECTION
   ============================================================ */
.clinic {
  background: var(--color-surface);
}

.clinic__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: var(--space-md);
}

.clinic__gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.clinic__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.clinic__gallery-item:hover img {
  transform: scale(1.05);
}

.clinic__gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.clinic__gallery-item:hover::after {
  opacity: 1;
}

/* Make first image span 2 cols */
.clinic__gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* ============================================================
   11. BENEFITS SECTION
   ============================================================ */
.benefits {
  background: var(--color-primary);
  color: #FFFFFF;
}

.benefits .surtitre {
  color: var(--color-cta);
}

.benefits .section-header h2 {
  color: #FFFFFF;
}

.benefits .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.benefit-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: background var(--transition-base), transform var(--transition-base);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.benefit-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(201, 169, 110, 0.2);
  margin-bottom: var(--space-lg);
}

.benefit-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-cta);
}

.benefit-card h3 {
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   12. TESTIMONIALS SECTION
   ============================================================ */
.testimonials {
  background: var(--color-background);
}

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  color: var(--color-cta);
  fill: var(--color-cta);
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__text::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-secondary-light);
  line-height: 0;
  position: relative;
  top: 8px;
  margin-right: 4px;
}

.testimonial-card__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-card__location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================================
   13. CONTACT / PRE-EVALUATION SECTION
   ============================================================ */
.contact {
  background: var(--color-surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact__form-wrapper {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 75, 138, 0.12);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form__note {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form__note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Contact Info Panel */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact__info-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(59, 75, 138, 0.08);
  flex-shrink: 0;
}

.contact__info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.contact__info-block h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__info-block p,
.contact__info-block a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.contact__info-block a:hover {
  color: var(--color-primary);
}

/* Hours Table */
.contact__hours {
  width: 100%;
  border-collapse: collapse;
}

.contact__hours td {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.contact__hours td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--color-text);
}

.contact__hours tr:last-child td {
  border-bottom: none;
}

.contact__hours .closed {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Map */
.contact__map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-lg);
  border: 1px solid var(--color-border);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand img {
  height: 40px;
  margin-bottom: var(--space-lg);
}

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-cta);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cta);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: 0.8rem;
}

.footer__bottom a {
  transition: color var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--color-cta);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

/* ============================================================
   15. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: #FFFFFF;
}

/* ============================================================
   16. LIGHTBOX (Gallery Modal)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__image {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav svg {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
}

.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

/* ============================================================
   17. ANIMATIONS (Scroll Reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   18. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero__content {
    max-width: 560px;
  }

  .doctor__grid {
    gap: var(--space-2xl);
  }

  .services__grid {
    gap: var(--space-lg);
  }

  .service-card--star {
    grid-template-columns: 1fr;
  }

  .service-card--star .service-card__image {
    min-height: 240px;
  }

  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .clinic__gallery {
    grid-template-rows: repeat(2, 180px);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Tablet portrait & large phones (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .header__nav,
  .header__cta {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .doctor__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .doctor__image-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card--star {
    grid-template-columns: 1fr;
  }

  .service-card__image {
    height: 200px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .clinic__gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .clinic__gallery-item:first-child {
    grid-column: span 2;
  }

  .testimonials__track {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }

  .clinic__gallery {
    grid-template-columns: 1fr;
  }

  .clinic__gallery-item:first-child {
    grid-column: span 1;
  }

  .benefit-card {
    padding: var(--space-xl);
  }

  .contact__form-wrapper {
    padding: var(--space-xl);
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
