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

:root {
  --primary: #2E3192;
  --primary-dark: #232673;
  --primary-light: #3B3F8C;
  --secondary: #A6B1E1;
  --secondary-light: #C5CDF0;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --accent: #E8A33D;
  --accent-hover: #D4922E;
  --text-dark: #1A1A2E;
  --text-body: #4A4A6A;
  --text-light: #7A7A9A;
  --border: #E8E6F0;
  --shadow-sm: 0 2px 8px rgba(46, 49, 146, 0.08);
  --shadow-md: 0 8px 24px rgba(46, 49, 146, 0.12);
  --shadow-lg: 0 16px 48px rgba(46, 49, 146, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== RTL OVERRIDES ===== */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .navbar__links {
  padding-right: 0;
}

html[dir="rtl"] .navbar__actions {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .hero__ctas {
  flex-direction: row;
}

html[dir="rtl"] .contact__item {
  flex-direction: row;
}

html[dir="rtl"] .contact__icon {
  margin-left: 1rem;
  margin-right: 0;
}

html[dir="rtl"] .footer__grid {
  direction: rtl;
}

html[dir="rtl"] .about-card {
  text-align: right;
}

html[dir="rtl"] .doctor-card__body {
  text-align: right;
}

html[dir="rtl"] .testimonial-card {
  text-align: right;
}

html[dir="rtl"] .mobile-cta {
  flex-direction: row-reverse;
}

html[dir="rtl"] .lightbox__prev {
  right: auto;
  left: 1rem;
}

html[dir="rtl"] .lightbox__next {
  left: auto;
  right: 1rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 600;
}

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

a:hover {
  color: var(--accent);
}

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

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 163, 61, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--whatsapp {
  background: #25D366;
  border-color: #25D366;
}

.btn--whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
  color: var(--white);
}

.icon-whatsapp {
  flex-shrink: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 36px;
  width: auto;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  transition: color 0.3s ease;
}

.navbar.scrolled .navbar__logo-text {
  color: var(--primary);
}

.navbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.navbar__links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled .navbar__links a {
  color: var(--text-body);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .navbar__links a:hover,
.navbar.scrolled .navbar__links a.active {
  color: var(--primary);
  background: rgba(46, 49, 146, 0.06);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar.scrolled .lang-btn {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

.navbar.scrolled .lang-btn:hover {
  background: rgba(46, 49, 146, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== HAMBURGER ===== */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.navbar.scrolled .navbar__hamburger span {
  background: var(--text-dark);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1a1d5e 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(168, 177, 225, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(232, 163, 61, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(232, 163, 61, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTION ===== */
.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: rgba(46, 49, 146, 0.08);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ===== SERVICES ===== */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.service-card__icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

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

/* ===== DOCTORS ===== */
.doctors {
  background: var(--cream);
}

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.doctor-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.doctor-card__body {
  padding: 1.75rem;
}

.doctor-card__name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.doctor-card__title {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

.doctor-card__bio {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.doctor-card__specialty {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(46, 49, 146, 0.08);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.about-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--cream);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.testimonial-card__stars {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--text-dark);
}

.testimonials__cta {
  text-align: center;
}

/* ===== TRANSFORMATIONS ===== */
.transformations {
  background: var(--white);
}

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

.transformations__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: var(--transition);
}

.transformations__item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.transformations__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: var(--transition);
  line-height: 1;
}

.lightbox__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--cream);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

.contact__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact__item p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.contact__link {
  font-weight: 500;
  color: var(--primary);
}

.contact__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact__ctas .btn {
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
}

.contact__map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2rem;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.contact__map-link:hover {
  background: var(--accent);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.contact__map-link--whatsapp {
  background: #25D366;
}

.contact__map-link--whatsapp:hover {
  background: #1DA851;
}

/* ===== MOBILE CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.mobile-cta__btn {
  flex: 1;
  text-align: center;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-cta__btn.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-radius: 0;
}

.mobile-cta__call {
  background: var(--cream);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer a:hover {
  color: var(--accent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer__address {
  font-size: 0.85rem !important;
  opacity: 0.8;
}

.footer__phone a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white) !important;
}

.footer__social {
  margin-top: 1rem;
}

.footer__social a {
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-instagram {
  flex-shrink: 0;
}

.footer__links h4,
.footer__hours h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__links ul {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
}

.footer__hours p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .navbar__nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .navbar__nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__links {
    flex-direction: column;
    gap: 0.25rem;
  }

  .navbar__links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-body) !important;
  }

  .navbar__links a:hover,
  .navbar__links a.active {
    color: var(--primary) !important;
    background: rgba(46, 49, 146, 0.06);
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__cta {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero__inner {
    padding: 3rem 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }

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

  .doctors__grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .mobile-cta {
    display: flex;
  }

  .footer {
    padding-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  .transformations__grid {
    grid-template-columns: 1fr;
  }

  .contact__ctas {
    flex-direction: column;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .lightbox__nav {
    font-size: 1.8rem;
    padding: 0.7rem 0.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge,
.hero__title,
.hero__subtitle,
.hero__ctas {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero__title {
  animation-delay: 0.1s;
}

.hero__subtitle {
  animation-delay: 0.2s;
}

.hero__ctas {
  animation-delay: 0.3s;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
