/* ========================================
   BIKRI DENTAL CLINIC – Design System
   ======================================== */

/* ----- CSS Custom Properties ----- */
:root {
  --primary: #2A9D8F;
  --primary-dark: #238478;
  --primary-light: #E9F5F3;
  --secondary: #264653;
  --accent: #8ECAE6;
  --accent-light: #F0F9FF;
  --cta: #FF6B5B;
  --cta-hover: #e85a4a;
  --neutral: #FFFFFF;
  --neutral-off: #F8FAFB;
  --neutral-gray: #E2E8F0;
  --neutral-dark: #94A3B8;
  --text: #334155;
  --text-light: #64748B;
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--neutral);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header h2 {
  font-family: var(--heading-font);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section__header p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--cta);
  color: var(--neutral);
  border-color: var(--cta);
}

.btn--primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 91, 0.35);
}

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

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

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

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

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

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--neutral);
}

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

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

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

.navbar__nav {
  display: flex;
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

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

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

.navbar__links a:hover {
  color: var(--primary);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher — single toggle */
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--neutral);
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--neutral);
}

.navbar--scrolled .lang-toggle {
  border-color: var(--neutral-gray);
  color: var(--secondary);
}

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

/* Hamburger Menu */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.navbar--scrolled .navbar__toggle span {
  background: var(--secondary);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: url('../images/hero-bg.jpg') center / cover no-repeat;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--neutral);
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__actions .btn--outline {
  color: var(--neutral);
  border-color: var(--neutral);
}

.hero__actions .btn--outline:hover {
  background: var(--neutral);
  color: var(--secondary);
}



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

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--neutral);
  border: 1px solid var(--neutral-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.35rem;
  color: var(--primary);
}

.service-card h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

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

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

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about__image-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9/16;
  background: var(--neutral-gray);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__content h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.about__subtitle {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.about__text {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.why-us {
  background: var(--neutral);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-us__card {
  border: 1px solid var(--neutral-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.why-us__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.why-us__card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.why-us__card h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.why-us__card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}

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

.testimonials__carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 16px;
}

.testimonials__carousel::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--neutral);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-gray);
}

.testimonial-card__stars {
  color: #FBBF24;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--secondary);
  font-family: var(--heading-font);
  font-size: 0.95rem;
}

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

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.testimonials__actions {
  text-align: center;
  margin-top: 32px;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neutral-gray);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.testimonials__dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ========================================
   GALLERY CAROUSEL
   ======================================== */
.gallery {
  background: var(--neutral);
}

.gallery__carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery__track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 4/3;
}

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

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.gallery__arrow:hover {
  background: var(--neutral);
  box-shadow: var(--shadow-md);
}

.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neutral-gray);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery__dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

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

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__card i {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.contact__card h3 {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
}

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

.contact__map {
  min-height: 350px;
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--secondary);
  color: var(--neutral);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer__col h4 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer__col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.85;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__col ul li i {
  margin-top: 4px;
  flex-shrink: 0;
}

.footer__col ul li a {
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

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

.footer__social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer__privacy {
  font-size: 0.85rem;
  opacity: 0.7;
  display: block;
  transition: opacity var(--transition);
}

.footer__privacy:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========================================
   STICKY MOBILE CTA
   ======================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--neutral);
  padding: 12px 16px;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 999;
}

.sticky-cta__btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sticky-cta__whatsapp {
  background: #25D366;
  color: var(--neutral);
}

.sticky-cta__book {
  background: var(--cta);
  color: var(--neutral);
}

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

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

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

html[dir="rtl"] .gallery__arrow--prev { left: auto; right: 12px; }
html[dir="rtl"] .gallery__arrow--next { right: auto; left: 12px; }

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

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

  .hero__title {
    font-size: 2.75rem;
  }

}

/* ========================================
   RESPONSIVE - MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section__header h2 {
    font-size: 1.75rem;
  }

  /* Navbar mobile */
  .navbar__nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--neutral);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
  }

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

  .navbar__nav .navbar__links a {
    color: var(--text);
  }

  .navbar__links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__toggle span {
    background: var(--secondary);
  }

  .navbar__cta {
    display: none;
  }

  /* Hero mobile */
  .hero__inner {
    text-align: center;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__actions {
    justify-content: center;
  }

  /* About mobile */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about__image-placeholder {
    max-width: 240px;
    margin: 0 auto;
  }

  /* Contact mobile */
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Footer mobile */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__col ul li {
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
  }

  /* Sticky CTA */
  .sticky-cta {
    display: flex;
  }

  html {
    scroll-padding-bottom: 72px;
  }

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

  .why-us__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max 430px)
   ======================================== */
@media (max-width: 430px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.85rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .sticky-cta__btn {
    font-size: 0.8rem;
    padding: 10px;
  }

  .testimonial-card {
    flex: 0 0 280px;
    padding: 24px;
  }

  .lang-toggle {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}
