/* Persian layer — minimal; Webflow handles layout + interactions */

/* Vazirmatn Font Face - Variable */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Fallback: individual weights */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Vazirmatn", system-ui, sans-serif;
  --color-bg-primary: #faf8f6;
  --color-bg-secondary: #ffffff;
  --color-text-primary: #1c1c1e;
  --color-text-secondary: #5a5a5e;
  --color-accent: #0073ff;
}

/* Dark theme - Global */
body {
  background-color: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
}

.page-wrapper,
.main-wrapper {
  background-color: var(--color-bg-primary) !important;
}

/* Section backgrounds */
.section {
  background-color: var(--color-bg-primary) !important;
}

.container {
  background-color: transparent !important;
}

/* Hero section dark theme */
.section.home-hero .container {
  background: var(--color-bg-primary) !important;
}

/* Text colors */
h1, h2, h3, h4, h5, h6,
.smile-title,
.cta-title,
.process-title,
.dentists-title,
.compare-title,
.expert-title,
.treatment-title {
  color: var(--color-text-primary) !important;
}

p, .cta-para, .subtitle-content {
  color: var(--color-text-secondary) !important;
}

/* Cards dark theme */
.hero-box {
  background: var(--color-bg-secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hero-box.review {
  background: var(--color-bg-secondary) !important;
}

.review-desp {
  color: var(--color-text-secondary) !important;
}

.review-author-name {
  color: var(--color-text-primary) !important;
}

.review-author-designation {
  color: var(--color-text-secondary) !important;
}

.orthodontics {
  background: rgba(0, 115, 255, 0.15) !important;
  color: var(--color-accent) !important;
}

/* Links dark theme */
.home-hero-link {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.home-hero-link:hover {
  background: var(--color-accent) !important;
  color: white !important;
}

/* Services section dark theme */
.services-slider-contents {
  background: var(--color-bg-secondary) !important;
}

.services-slider-name {
  color: var(--color-text-primary) !important;
}

.services-slider-para {
  color: var(--color-text-secondary) !important;
}

/* Buttons dark theme */
.secondary-button {
  background: var(--color-accent) !important;
  color: white !important;
}

/* Process cards */
.process-card {
  background: var(--color-bg-secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.process-text {
  color: var(--color-text-primary) !important;
}

.process-para {
  color: var(--color-text-secondary) !important;
}

/* Footer dark theme with background image
   NOTE: min-height/flex/justify-content removed below — this old block was
   forcing a 720px-tall flex box with content pinned to the bottom, which is
   what created the empty gap above the footer image. */
footer,
section.footer,
.section.footer {
  background-color: transparent !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Remove overlay - keep image fully visible */
footer::after,
section.footer::after,
.section.footer::after {
  content: none !important;
  display: none !important;
}

.section.footer .container,
.section.footer .wrapper,
.section.footer .wrapper.footer,
.section.footer .footer-top,
.section.footer .footer-bottom,
.section.footer .footer-left,
.section.footer * {
  position: relative !important;
  z-index: 100 !important;
}

/* Remove white background - maximum specificity */
.section.footer {
  background-color: transparent !important;
}

.section.footer .footer-bottom,
.section.footer [class*="footer-bottom"],
.footer .footer-bottom {
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
}

.section.footer .footer-flex,
.footer .footer-flex,
.section.footer [class*="footer-flex"] {
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.section.footer .footer-social-links,
.footer .footer-social-links,
.section.footer [class*="footer-social-links"] {
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0.5rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.section.footer .copyright-text,
.footer .copyright-text,
p.copyright-text {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
}

.section.footer .footer-social-link {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.section.footer .footer-social-link:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 0 8px 20px rgba(0, 115, 255, 0.4) !important;
}

.section.footer .footer-social-link svg,
.section.footer .footer-social-svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #fff !important;
  fill: #fff !important;
}

/* Hide footer navigation and specific text */
.section.footer .caring-text,
.section.footer .offer-para,
.section.footer .footer-nav-main,
.section.footer .footer-nav-links,
.section.footer .footer-left,
.section.footer .footer-top,
.section.footer h2,
.section.footer .page-link,
.section.footer .wrapper.footer > *:not(.footer-bottom) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Trusted section */
.trusted-title {
  color: var(--color-text-primary) !important;
}

/* Hide expert section (yellow/green prevention section) */
.section.expert {
  display: none !important;
}

/* Hide process section (consultation to smile process) */
.wrapper.process {
  display: none !important;
}

/* Override all background colors to cream/off-white */
body,
.page-wrapper,
.main-wrapper,
.section,
.section.services,
.section.treatments,
.wrapper,
.wrapper.treatments,
.container,
div[class*="wrapper"],
div[class*="container"] {
  background: #faf8f6 !important;
  background-color: #faf8f6 !important;
  background-image: none !important;
  background-gradient: none !important;
}

/* Specifically target the treatments/hours section */
#hours,
#hours.section.treatments {
  background: #faf8f6 !important;
  background-color: #faf8f6 !important;
  background-image: none !important;
}

/* Remove white box from footer - make it transparent */
.footer .container,
.footer .wrapper,
.footer .wrapper.footer,
.footer div[class*="container"],
.footer div[class*="wrapper"],
.footer .footer-bottom,
.footer .footer-flex,
.footer .footer-social-links,
section.footer .container,
section.footer .wrapper,
section.footer div[class*="container"],
section.footer div[class*="wrapper"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Services section - static grid layout */
.section.services {
  overflow: visible !important;
  height: auto !important;
  position: static !important;
}

.wrapper.services {
  position: static !important;
  height: auto !important;
}

.services-all-items {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  height: auto !important;
  overflow: visible !important;
  position: static !important;
}

.services-slider-contents {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
}

.services-slider-contents .services-slider-left {
  padding: 1.5rem !important;
  order: 2 !important;
  direction: rtl !important;
  text-align: center !important;
}

.services-slider-contents .services-slider-right {
  order: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.services-slider-contents .services-slider-image {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.services-slider-contents .services-slider-top {
  margin-bottom: 0.5rem !important;
}

.services-slider-contents .services-slider-bottom {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .services-all-items {
    grid-template-columns: 1fr !important;
  }
}

/* Disable scroll-driven services on mobile */
.section.services.services-mobile-scroll {
  height: auto !important;
}

.wrapper.services.services-mobile-scroll {
  position: static !important;
  height: auto !important;
}

/* Location/Contact section - minimal elegant cards */
.section.location-home {
  padding: 5rem 0 !important;
}

.location-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1px !important;
  margin-top: 3rem !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
}

.location-card {
  background: #ffffff !important;
  padding: 2.5rem 2rem !important;
  text-align: center !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: background 0.3s ease !important;
}

.location-card:hover {
  background: #f5f5f7 !important;
}

.location-card-icon {
  display: none !important;
}

.location-card-label {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #8a8a8e !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 1rem !important;
  text-transform: uppercase !important;
}

.location-card-text {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #1c1c1e !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.location-card-text a {
  color: #1c1c1e !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  transition: border-color 0.3s ease !important;
}

.location-card-text a:hover {
  border-color: #0073ff !important;
  color: #0073ff !important;
}

@media (max-width: 767px) {
  .location-cards {
    grid-template-columns: 1fr !important;
  }
}

/* Footer social icons - keep original style, just spacing */
.footer .footer-social-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-top: 0.75rem !important;
}

.footer .copyright-text {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
  font-size: 0.85rem !important;
}

/* Remove white box from navbar/header — desktop only */
@media (min-width: 992px) {
  .navbar,
  .navbar.w-nav {
    background: rgba(30, 30, 30, 0.65) !important;
    background-color: rgba(30, 30, 30, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  }
}
.navbar-wrapper,
.nav-menu-wrapper,
.nav-menu-wrapper.w-nav-menu,
.w-nav-menu,
.nav-menu-items,
.nav-buttons,
.nav-buttons.mob,
.navbar *:not(.secondary-button):not(.button-texts):not(.button-text):not(.button-icon):not(.nav-link) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Hide Webflow mobile nav button completely */
.nav-buttons.mob {
  display: none !important;
}

/* Force nav-menu-wrapper transparent on all breakpoints */
@media (max-width: 991px) {
  .nav-menu-wrapper,
  .nav-menu-wrapper.w-nav-menu,
  .w-nav-menu,
  .nav-menu-items,
  .navbar-wrapper,
  .navbar *:not(.secondary-button):not(.button-texts):not(.button-text):not(.button-icon):not(.nav-link) {
    background-color: transparent !important;
    background: transparent !important;
  }
}

/* Insurance logos - static display, no animation */
.trusted-marquee {
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
  background: transparent !important;
}

.trusted-marquee-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5rem !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.trusted-marquee-track .trusted-icon {
  flex-shrink: 0 !important;
  margin: 0 !important;
  height: 60px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  opacity: 0.7 !important;
  transition: opacity 0.3s ease !important;
}

.trusted-marquee-track .trusted-icon:hover {
  opacity: 1 !important;
}

.trusted-left-gradient,
.trusted-right-gradient {
  display: none !important;
}

/* Treatment section background fix */
.section.treatments {
  background: #faf8f6 !important;
}

/* Remove all margins and padding for full edge-to-edge banner */
body, html {
  margin: 0 !important;
  padding: 0 !important;
}

.page-wrapper,
.main-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

/* Center navbar only */
.main-wrapper > .navbar {
  margin: 0 auto;
}

/* Hero Banner Background - Full edge-to-edge without margins */
.section.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%) !important;
}

/* فضای اسکرول برای افکت کوچک‌شدن */
.hero-banner-pin {
  position: relative;
  height: 165vh;
  width: 100%;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

/* sticky کامل صفحه — بدون فاصله سفید */
.hero-banner-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  --hero-scale: 1;
  --hero-radius: 0px;
  --hero-text-opacity: 1;
}

.hero-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/hero-banner.png"), url("../../5.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(var(--hero-scale));
  transform-origin: center center;
  border-radius: var(--hero-radius);
  will-change: transform, border-radius;
  transition: none;
}

/* Text overlay - نسبت به wrapper */
.hero-banner-text {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 10;
  font-family: var(--font-body);
  direction: rtl;
  padding: 0 2rem;
  opacity: var(--hero-text-opacity);
  pointer-events: none;
}

.hero-banner-text strong {
  font-weight: 700;
}

/* Each line with typing animation */
.hero-banner-text .text-line {
  display: block;
  margin: 0.2rem auto;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInSlide 0.8s ease-out forwards;
}

.hero-banner-text .text-line:nth-child(1) {
  animation-delay: 0.5s;
}

.hero-banner-text .text-line:nth-child(2) {
  animation-delay: 3s;
}

/* Animate words in first line with pause */
.hero-banner-text .text-line:first-child .word {
  display: inline-block;
  opacity: 0;
  animation: fadeInWord 0.6s ease-out forwards;
}

.hero-banner-text .text-line:first-child .word:nth-child(1) {
  animation-delay: 0.7s;
}

.hero-banner-text .text-line:first-child .word:nth-child(2) {
  animation-delay: 1.5s;
}

.hero-banner-text .text-line:first-child .word:nth-child(3) {
  animation-delay: 2.3s;
}

/* مخفی کردن پس‌زمینه قدیمی ::before که فاصله سفید می‌ساخت */
.section.home-hero::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* Word fade animation */
@keyframes fadeInWord {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth fade and slide animation */
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation for text appearance */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove any container margins that might cause white space */
.section.home-hero .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #fff;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Reset text colors to original */
.section.home-hero .smile-title.home-hero {
  color: inherit;
  text-shadow: none;
  font-weight: inherit;
}

.section.home-hero .cta-para {
  color: inherit;
  text-shadow: none;
  background: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.section.home-hero .subtitle-content {
  color: inherit;
  background: inherit;
  padding: inherit;
  border-radius: inherit;
  font-weight: inherit;
  text-shadow: none;
}

/* Reset hero cards to original style */
.section.home-hero .hero-box {
  background: inherit;
  backdrop-filter: none;
  border: inherit;
  box-shadow: inherit;
}

.section.home-hero .home-hero-link {
  background: inherit;
  backdrop-filter: none;
  color: inherit;
  border: inherit;
  font-weight: inherit;
  box-shadow: inherit;
}

.section.home-hero .home-hero-link:hover {
  background: inherit;
  color: inherit;
  transform: inherit;
  box-shadow: inherit;
}

/* Reset trusted content to original */
.section.home-hero .trusted-title {
  color: inherit;
  text-shadow: none;
}

.section.home-hero .trusted-icon {
  filter: none;
  opacity: inherit;
}


body, button, input, select, textarea {
  font-family: var(--font-body) !important;
}
h1, h2, h3, h4, h5, h6,
.instrument-serif {
  font-family: var(--font-body) !important;
  font-style: normal;
}
.w-webflow-badge,
[powered-by-webflow] {
  display: none !important;
}

/* Working hours — graphic minimal timeline */
.section.treatments {
  position: relative;
  overflow: hidden;
  background: #faf8f6 !important;
}
.section.treatments::before,
.section.treatments::after {
  content: none !important;
  display: none !important;
}
.wrapper.treatments .treatment-bottom {
  position: relative;
  z-index: 1;
}
.hours-layout {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 40rem;
  margin: 0 auto;
  direction: rtl;
}
.hours-graphic {
  flex-shrink: 0;
  text-align: center;
}
.hours-graphic-ring {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 248, 0.6));
  border: 1px solid rgba(0, 115, 255, 0.1);
  box-shadow:
    0 1px 2px rgba(6, 21, 35, 0.04),
    0 12px 32px rgba(0, 115, 255, 0.12);
}
.hours-graphic-ring::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 115, 255, 0.18);
  animation: hours-ring-spin 48s linear infinite;
}
@keyframes hours-ring-spin {
  to { transform: rotate(360deg); }
}
.hours-clock-icon {
  width: 2.1rem;
  height: 2.1rem;
  color: #0073ff;
  opacity: 0.75;
}
.hours-graphic-time {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  color: #061523;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.hours-graphic-label {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #8a9199;
}
.hours-schedule {
  flex: 1;
  position: relative;
  padding: 0.35rem 0;
  padding-inline-end: 1.35rem;
}
.hours-schedule::before {
  display: none !important;
  content: none !important;
}
.hours-row {
  display: grid;
  grid-template-columns: 1fr 6.75rem auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  max-width: 16rem;
  margin-inline-start: auto;
}
.hours-day {
  font-size: 0.92rem;
  font-weight: 500;
  color: #061523;
  text-align: right;
}
.hours-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0073ff;
  box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.14);
  position: relative;
  z-index: 1;
  order: 3;
}
.hours-slot {
  font-size: 0.82rem;
  color: #677179;
  white-space: nowrap;
  text-align: left;
  order: 2;
}
.hours-row.is-closed .hours-day {
  color: #a8aeb5;
}
.hours-row.is-closed .hours-dot {
  background: #fff;
  border: 1.5px solid #cfd5db;
  box-shadow: none;
}
.hours-row.is-closed .hours-slot {
  color: #d45757;
  font-weight: 500;
}
.hours-note {
  margin: 0.35rem 0 0;
  padding-inline-end: 1.35rem;
  font-size: 0.74rem;
  color: #a0a6ad;
  text-align: center;
}
@media (max-width: 767px) {
  .hours-layout {
    flex-direction: column;
    gap: 1.75rem;
  }
  .hours-schedule {
    width: 100%;
    max-width: 20rem;
  }
}

/* Navbar — کامپکت؛ بدون کشیدگی اضافه بین لینک‌ها و دکمه */
@media (min-width: 992px) {
  .navbar {
    width: fit-content;
    max-width: calc(100% - 2rem);
    padding-block: 0.6rem;
    padding-inline: 2rem 2rem;
    background: rgba(30, 30, 30, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    position: sticky !important;
    top: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    border-radius: 999px !important;
  }
  .navbar-wrapper {
    grid-column-gap: 3rem;
    grid-row-gap: 3rem;
    justify-content: center;
    align-items: center;
    display: flex;
  }
  .navbar .nav-menu-wrapper.w-nav-menu {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
  }
  .navbar .nav-menu-items {
    grid-column-gap: 3rem;
    grid-row-gap: 3rem;
    padding-inline-start: 0;
    display: flex;
    align-items: center;
  }
  .navbar .nav-link {
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: transparent !important;
    box-shadow: none !important;
  }
  .navbar .nav-link:hover {
    color: #0073ff;
    transform: translateY(-1px);
    background: transparent !important;
    box-shadow: none !important;
  }
  .navbar .nav-link:focus,
  .navbar .nav-link:active {
    background: transparent !important;
    box-shadow: none !important;
  }
  .navbar .nav-buttons {
    margin-inline-start: 2rem;
  }
  .navbar .nav-buttons .secondary-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    grid-column-gap: 0.4rem;
    grid-row-gap: 0.4rem;
    background: transparent !important;
    border-radius: 25px;
  }
  .navbar .nav-buttons .button-icon {
    width: 0.85rem;
    height: 0.85rem;
  }
}

/* Show animated titles when Webflow ix3 fails (common on HTTP hosts) */
html.w-mod-js:not(.w-mod-ix3) :is(
  .smile-title.home-hero,
  .cta-title,
  .process-title,
  .dentists-title,
  .compare-title,
  .expert-title
) {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Persian headings — fix letter-spacing */
.process-title,
.cta-title,
.dentists-title,
.smile-title.home-hero,
.compare-title,
.expert-title,
.treatment-title,
h1, h2, h3 {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  font-feature-settings: "liga" 1, "calt" 1;
}
.process-title,
.cta-title,
.dentists-title,
.treatment-title {
  direction: rtl;
  text-align: center;
  white-space: normal;
}
.instrument-serif {
  font-weight: 600;
  margin-inline: 0.12em;
}

/* Hide card numbers (CSS only — never touch nested HTML) */
.services-slider-nums,
.process-no {
  display: none !important;
}

/* Hero review cards — no stars */
.review-stars {
  display: none !important;
}

/* Hero review cards — RTL quotes */
.review-desp {
  direction: rtl;
  text-align: right;
  line-height: 1.75;
}

/* Services slider — no buttons: stack content, center title */
.services-slider-left,
.services-slider-top,
.services-slider-bottom {
  direction: rtl;
}
.services-slider-left {
  justify-content: flex-start !important;
  gap: 1.25rem;
}
.services-slider-top {
  align-items: center;
  text-align: center;
  width: 100%;
}
.services-slider-name {
  text-align: center;
  width: 100%;
}
.services-slider-bottom {
  margin-top: 0;
  text-align: center;
  width: 100%;
}
.services-slider-para {
  max-width: 100%;
  line-height: 1.85;
  font-size: 0.95rem;
  text-align: center;
  margin: 0 auto;
}

/* Blue CTA bar — no avatar, RTL text */
.experience-left {
  padding-inline-start: 0.75rem;
}
.experience-flex {
  direction: rtl;
  text-align: right;
}

/* Webflow grid/slider layouts must stay LTR */
.home-hero-cards,
.wrapper.services,
.services-all-items,
.services-slider-contents,
.compare-component,
.expert-contents {
  direction: ltr;
}

.wrapper.services .appointment-top {
  direction: rtl;
  text-align: center;
}

/* Persian text inside those containers */
.compare-block,
.expert-texts,
.expert-left {
  direction: rtl;
  text-align: right;
}

/* Before/after labels — single responsive line between */
.compare-block {
  direction: ltr;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}
.compare-block .compare-line.between {
  flex: 1 1 auto;
  width: auto;
  min-width: 3.5rem;
  max-width: 10rem;
}
.compare-block .before {
  flex: 0 0 auto;
  white-space: nowrap;
}
.compare-title,
.smile-title.home-hero {
  direction: rtl;
  text-align: center;
  white-space: normal;
  word-spacing: normal;
  letter-spacing: 0 !important;
  line-height: 1.35;
}
.smile-title.home-hero .instrument-serif {
  display: inline;
  white-space: normal;
}
/* Before/after — drag handle with left/right arrows */
.compare-component {
  cursor: ew-resize;
  max-width: 700px !important;
  width: 100% !important;
  margin: 0 auto !important;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}
.compare-divider-wrapper {
  width: 3px;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 2;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.compare-circle-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.compare-divider-circle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid rgba(6, 21, 35, 0.1);
  border-radius: 50%;
  box-shadow:
    0 2px 8px rgba(6, 21, 35, 0.12),
    0 8px 24px rgba(6, 21, 35, 0.1);
  pointer-events: none;
}
.compare-divider-icon {
  width: 1.15rem;
  height: auto;
  color: #061523;
  opacity: 0.75;
}
/* Compare before section - smooth dragging */
.compare-before {
  transition: none !important;
  will-change: width;
}
.compare-after-media,
.compare-before-media {
  transition: none !important;
  border-radius: 0 !important;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Footer — minimal back-to-top */
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  color: #8a9199;
  font-family: var(--font-body) !important;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.25s ease;
}
.back-top:hover {
  background: transparent !important;
  color: #061523;
  transform: none;
}
.back-top .back-arrow {
  width: 0.72rem;
  height: 0.72rem;
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-top:hover .back-arrow {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Mobile scroll step animations (match Webflow slide-up feel) */
@keyframes mobile-step-in {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes process-card-in {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes services-slide-from-next {
  from {
    opacity: 0;
    transform: translateX(70%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes services-slide-from-prev {
  from {
    opacity: 0;
    transform: translateX(-70%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes expert-title-from-left {
  from {
    opacity: 0;
    transform: translateX(-2.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes expert-title-from-right {
  from {
    opacity: 0;
    transform: translateX(2.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes expert-title-from-up {
  from {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes expert-title-from-down {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes expert-image-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile enhancements — smoother, more attractive, better performance */
@media (max-width: 991px) {
  /* Smooth transitions and better spacing */
  .section {
    padding: 2rem 0;
  }
  
  /* Hero section improvements */
  .home-hero-cards {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .hero-box {
    border-radius: 1.2rem;
    padding: 1.2rem;
    box-shadow: 0 8px 24px rgba(6, 21, 35, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(6, 21, 35, 0.12);
  }
  
  /* Better typography for mobile */
  .smile-title.home-hero {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .cta-para {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
  }
  
  /* Enhanced buttons with better touch targets */
  .secondary-button {
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 115, 255, 0.25);
  }
  
  .secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 255, 0.35);
  }
  
  /* Improved cards with better spacing */
  .review-desp {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.5rem 0;
  }
  
  .review-author-name {
    font-weight: 600;
    color: #2c3e50;
  }
  
  /* Better navigation */
  .navbar {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(30, 30, 30, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
  
  /* Enhanced service cards */
  .services-slider-name {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
  }
  
  .services-slider-para {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #5a6c7d;
  }
  
  /* Smoother animations */
  .services-slider-contents {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  /* Better spacing for content sections */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Enhanced compare section */
  .compare-component {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(6, 21, 35, 0.1);
  }
  
  .compare-divider-circle {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 115, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  
  /* Improved footer */
  .section.footer {
    background: linear-gradient(145deg, #f8f9fa 0%, #fff 100%);
    padding: 2.5rem 0 1.5rem;
  }
  
  /* Enhanced touch interactions */
  .nav-link,
  .dropdown-link,
  .footer-nav-links .page-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .nav-link:hover,
  .nav-link:active {
    background: rgba(0, 115, 255, 0.08);
    color: #0073ff;
  }
}

/* Mobile/tablet — scroll-driven sections DISABLED for services */
@media (max-width: 991px) {
  .section.services.services-mobile-scroll {
    height: auto !important;
    position: static !important;
    overflow: visible !important;
  }
  .wrapper.services.services-mobile-scroll {
    position: static !important;
    height: auto !important;
    display: block;
    padding-bottom: 0;
  }
  .services-all-items.services-mobile-scroll {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    width: 100%;
    min-height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .services-all-items.services-mobile-scroll .services-slider-contents {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }
  .services-all-items.services-mobile-scroll .services-slider-contents.is-scroll-active,
  .services-all-items.services-mobile-scroll .services-slider-contents.is-scroll-enter {
    animation: none !important;
  }
  .services-all-items.services-mobile-scroll .services-slider-left {
    padding: 1.5rem !important;
  }
  .services-all-items.services-mobile-scroll .services-slider-right {
    height: auto !important;
  }

  .section.expert.expert-mobile-scroll {
    height: calc(var(--expert-steps, 3) * 100vh) !important;
    position: relative;
    overflow: visible !important;
  }
  .wrapper.expert.expert-mobile-scroll,
  .container.expert.expert-mobile-scroll {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .expert-contents {
    display: none !important;
  }
  .expert-images-block.desk {
    display: none !important;
  }
  .expert-images-block.mob {
    display: flex !important;
    width: 100%;
  }
  .expert-images-block.mob.expert-mobile-scroll {
    flex-flow: column !important;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0;
    position: static !important;
  }
  .expert-images-block.mob.expert-mobile-scroll {
    position: relative;
    min-height: min(72vh, 34rem);
    overflow: hidden;
    width: 100%;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images {
    position: absolute;
    inset: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    width: 100%;
    height: 100% !important;
    padding: 1.25rem 1.35rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(55%);
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.58s;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-active {
    opacity: 1 !important;
    visibility: visible;
    transform: translateX(0);
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
    pointer-events: auto;
    z-index: 2;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-enter.is-scroll-from-next {
    animation: services-slide-from-next 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-enter.is-scroll-from-prev {
    animation: services-slide-from-prev 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-enter .expert-title:first-child {
    animation: expert-title-from-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-enter .expert-title:last-child {
    animation: expert-title-from-down 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-enter .expert-image {
    animation: expert-image-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-active .expert-image {
    order: 2;
    width: min(78vw, 20rem);
    height: min(42vh, 16.5rem);
    max-width: none;
    flex-shrink: 0;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 1.65rem;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-active .export-header {
    display: contents !important;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-active .export-header .expert-title {
    width: min(92vw, 22rem);
    font-size: clamp(1.2rem, 4.8vw, 1.55rem);
    line-height: 1.4;
    padding: 0 !important;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0 !important;
    text-align: center;
    direction: rtl;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-active .export-header .expert-title:first-child {
    order: 1;
  }
  .expert-images-block.mob.expert-mobile-scroll .expert-images.is-scroll-active .export-header .expert-title:last-child {
    order: 3;
  }

  .compare-block .compare-line.between {
    min-width: 4rem;
    max-width: 42vw;
  }

  /* Process cards — scroll steps, natural card height */
  .section.process-mobile-scroll {
    height: calc(var(--process-steps, 4) * 85vh) !important;
    position: relative;
    overflow: visible !important;
  }
  .wrapper.process {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }
  .wrapper.process.process-mobile-scroll {
    position: sticky !important;
    top: 0 !important;
    height: 85vh !important;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
  }
  .wrapper.process .cta-para,
  .wrapper.process .process-bottom.home {
    opacity: 1 !important;
  }
  .wrapper.process.process-mobile-scroll .cta-content.consultation {
    flex: 0 0 auto;
    max-width: 100%;
    padding-inline: 0.25rem;
  }
  .process-bottom.home.process-mobile-scroll {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 11.5rem;
    margin: 0;
    padding: 0;
    align-items: stretch;
    overflow: visible;
  }
  .process-bottom.home.process-mobile-scroll .process-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.15rem 1.25rem !important;
    height: auto !important;
    min-height: unset !important;
    direction: rtl;
    border-radius: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(32px);
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.52s;
    pointer-events: none;
    z-index: 0;
  }
  .process-bottom.home.process-mobile-scroll .process-card.is-scroll-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
    pointer-events: auto;
    z-index: 2;
    box-shadow:
      0 10px 28px rgba(6, 21, 35, 0.08),
      0 2px 8px rgba(6, 21, 35, 0.05);
  }
  .process-bottom.home.process-mobile-scroll .process-card.is-scroll-enter {
    animation: mobile-step-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .process-text,
  .process-para {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .wrapper.process.process-mobile-scroll .experience-block {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
  }
}

/* Enhanced mobile-specific improvements */
@media (max-width: 767px) {
  /* Better hero section for small screens */
  .home-hero-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .hero-center {
    order: -1;
  }
  
  .hero-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .hero-img {
    border-radius: 1rem;
    aspect-ratio: 1;
    object-fit: cover;
  }
  
  /* Enhanced typography */
  .smile-title.home-hero {
    font-size: clamp(2rem, 8vw, 3rem);
    text-align: center;
    padding: 0 1rem;
  }
  
  .cta-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    text-align: center;
  }
  
  /* Better service presentation */
  .services-slider-contents {
    padding: 1.5rem 1rem;
  }
  
  .services-slider-image {
    border-radius: 1.2rem;
    max-height: 250px;
    object-fit: cover;
  }
  
  /* Improved trust indicators */
  .trusted-marquee-items {
    gap: 2rem;
  }
  
  .trusted-icon {
    height: 2.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  
  /* Enhanced buttons */
  .home-hero-link {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 115, 255, 0.2);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
  }
  
  .home-hero-link:hover {
    background: #0073ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 255, 0.3);
  }
  
  /* Better mobile menu */
  .w-nav .nav-menu-wrapper.w-nav-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu-items {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
  }
  
  /* Enhanced touch feedback */
  .hero-box,
  .services-slider-contents,
  .process-card,
  .blog-card {
    transition: all 0.2s ease;
  }
  
  .hero-box:active,
  .services-slider-contents:active,
  .process-card:active {
    transform: scale(0.98);
  }
  
  /* Better spacing and readability */
  .section {
    padding: 2.5rem 0;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  /* Improved review cards */
  .review-desp {
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: right;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 1rem;
    border-radius: 12px;
    border-right: 3px solid #0073ff;
  }
  
  /* Enhanced visual hierarchy */
  .orthodontics {
    background: linear-gradient(135deg, #0073ff, #00a8ff);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 115, 255, 0.3);
  }
}

/* Performance optimizations */
* {
  -webkit-tap-highlight-color: rgba(0, 115, 255, 0.1);
  -webkit-touch-callout: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Optimize images for mobile */
@media (max-width: 767px) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Mobile — before/after touch drag */
@media (max-width: 767px) {
  .compare-component {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Footer social — brand hover colors */
.footer-social-link[href*="instagram.com"]:hover {
  color: #e4405f;
}
.footer-social-link[href*="linkedin.com"]:hover {
  color: #0073ff;
}
.footer-social-link[href*="x.com"]:hover {
  color: #000;
}

/* Footer — منوها بالا، کپی‌رایت و شبکه‌ها پایین */
.wrapper.footer {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.footer-top {
  align-items: center;
  width: 100%;
}
.footer-nav-main {
  max-width: none;
  width: 100%;
  margin-left: 0;
  justify-content: flex-end;
  align-items: center;
}
.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.75rem;
  width: 100%;
  direction: rtl;
}
.footer-nav-links .page-link,
.footer-nav-links .page-link:link,
.footer-nav-links .page-link:visited,
.footer-nav-links .page-link:hover,
.footer-nav-links .page-link:focus,
.footer-nav-links .page-link:active,
.footer-nav-links .page-link.w--current {
  white-space: nowrap;
  color: #677179 !important;
  -webkit-text-fill-color: #677179 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}
.section.footer .footer-bottom {
  width: auto;
  max-width: 100%;
  margin-top: 0.35rem;
  align-self: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.section.footer .footer-flex {
  flex: 0 1 auto;
}
.section.footer .footer-social-links {
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 1.35rem;
  }
  .footer-nav-main {
    justify-content: flex-start;
  }
  .footer-nav-links {
    justify-content: flex-start;
    gap: 0.6rem 1.25rem;
  }
  .section.footer .footer-bottom {
    width: 100%;
    align-self: stretch;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* Mobile nav — گوشه‌های گرد پایین (oralyn فقط بالا را گرد می‌کند) */
@media (max-width: 991px) {
  .w-nav .w-nav-overlay {
    border-bottom-left-radius: 1.35rem !important;
    border-bottom-right-radius: 1.35rem !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  .w-nav .nav-menu-wrapper.w-nav-menu,
  .w-nav .nav-menu-wrapper.w-nav-menu[data-nav-menu-open],
  .w-nav [data-nav-menu-open].nav-menu-wrapper {
    border-radius: 1.35rem !important;
    border-top-left-radius: 1.35rem !important;
    border-top-right-radius: 1.35rem !important;
    border-bottom-left-radius: 1.35rem !important;
    border-bottom-right-radius: 1.35rem !important;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(6, 21, 35, 0.08);
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
  }
  .w-nav .nav-menu-items {
    border-radius: 0 !important;
  }
}

/* آدرس — سکشن location روی صفحه اصلی */
.section.location-home {
  margin-top: -2.5rem;
  margin-right: var(--_sizes---spacing--spacing-xsmall);
  margin-left: var(--_sizes---spacing--spacing-xsmall);
  margin-bottom: 0.5rem;
  padding: 1.75rem 0 2.75rem;
  border-radius: var(--_sizes---border-radius--radius-soft);
  background-image: linear-gradient(
    0deg,
    #dcefeb00,
    #dcefeb66 77.01%,
    var(--_colors---text-color--dcefeb)
  );
}
.section.location-home .location-home-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.section.location-home .appointment-top {
  padding-top: 0;
  margin-bottom: 0;
  gap: 0.35rem;
}
.section.location-home .cta-title.treatment {
  margin: 0;
}
.location-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
  max-width: 58rem;
  direction: rtl;
}
.location-card {
  background: #fff;
  border-radius: 1.35rem;
  padding: 1.65rem 1.4rem;
  min-height: 7.5rem;
  box-shadow: 0 10px 32px rgba(6, 21, 35, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-card-label {
  font-size: 0.85rem;
  color: #6b7a86;
  margin-bottom: 0.55rem;
}
.location-card-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 600;
  color: #061523;
}
.location-card-text a {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 767px) {
  .section.location-home {
    margin-top: -1.5rem;
    padding-top: 1.35rem;
  }
  .location-cards {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* وبلاگ — هم‌استایل با صفحه اصلی */
.section.blog-page {
  margin: 0 var(--_sizes---spacing--spacing-xsmall) 1rem;
  padding: 5.5rem 1.25rem 3.5rem;
  border-radius: var(--_sizes---border-radius--radius-soft);
  background-image: linear-gradient(
    0deg,
    #ffd4ee00 40%,
    #ffd4ee66 77.01%,
    var(--_colors---background-color--ffd4ee)
  );
}
.section.blog-page-single {
  min-height: calc(100vh - 2rem);
  padding-bottom: 4rem;
}
.blog-page .container {
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
}
.blog-page-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.blog-page-head {
  padding-top: 0;
  margin-bottom: 0;
}
.blog-page-head .cta-title.treatment {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}
.blog-page-lead {
  margin-top: 0.5rem;
  text-align: center;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.section.blog-page-single .blog-page-inner {
  align-items: center;
}
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  width: 100%;
  direction: rtl;
}
.blog-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(6, 21, 35, 0.08);
}
.blog-card-link {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card-image-wrap {
  min-height: 11rem;
  overflow: hidden;
}
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.45rem 1.5rem 1.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #6b7a86;
}
.blog-card-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8c3cc;
}
.blog-card-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  line-height: 1.45;
}
.blog-card-excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #4a5a66;
}
.blog-article {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  direction: rtl;
  text-align: right;
  background: #fff;
  border-radius: 1.75rem;
  padding: 2.25rem 2.1rem 2.35rem;
  box-shadow: 0 14px 40px rgba(6, 21, 35, 0.09);
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #6b7a86;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}
.blog-article-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  line-height: 1.3;
}
.blog-article-cover {
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.blog-article-image {
  width: 100%;
  height: auto;
  display: block;
  min-height: 16rem;
  max-height: 30rem;
  object-fit: cover;
}
.blog-article-content {
  font-size: 1.125rem;
  line-height: 2;
  color: #2f3f4c;
}
.blog-article-content p {
  margin: 0 0 1.15rem;
}
.blog-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 1.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #061523;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  width: auto;
  box-shadow: 0 6px 18px rgba(6, 21, 35, 0.14);
}
.blog-back-link:hover {
  opacity: 0.92;
}
@media (max-width: 991px) {
  .section.blog-page {
    padding: 4.75rem 1rem 3rem;
  }
  .blog-card-link {
    grid-template-columns: 1fr;
  }
  .blog-card-image-wrap {
    min-height: 14rem;
  }
  .blog-article {
    padding: 1.55rem 1.25rem 1.75rem;
  }
  .blog-article-image {
    max-height: 22rem;
  }
}

/* ==========================================================
   Services Grid — service cards inside hero-box review style
   ========================================================== */

/* Make text cards behave like flexible content panels for service lists */
.services-grid .hero-box.review,
.services-grid .hero-box.review-top,
.services-grid .hero-box.review-2 {
  direction: rtl;
  text-align: right;
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
}

/* Hide the default review-flex/stars/author rows when service-card is used */
.services-grid .service-card .review-flex,
.services-grid .service-card .review-stars,
.services-grid .service-card .hero-author-flex,
.services-grid .service-card .review-desp {
  display: none !important;
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  direction: rtl;
}

.service-card-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ea3ff 0%, #1f6fd6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(31, 111, 214, 0.3);
}

.service-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text-primary, #f5f7fa);
}

.service-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  direction: rtl;
}

.service-card-list li {
  position: relative;
  padding: 0.35rem 1.5rem 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text-secondary, #c8d0db);
}

.service-card-list li::before {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #4ea3ff;
  box-shadow: 0 0 0 3px rgba(78, 163, 255, 0.18);
}

/* Tag chips on image cards — RTL friendly */
.services-grid .card-flex {
  direction: rtl;
}

/* Ensure image cards keep their look */
.services-grid .doctor-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
  .services-grid .service-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 34, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 34, 0.04);
  }
  .service-card-head {
    border-bottom-color: rgba(15, 23, 34, 0.08);
  }
  .service-card-title {
    color: #0f1722;
  }
  .service-card-list li {
    color: #4a5567;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .services-grid .hero-left,
  .services-grid .hero-left.right {
    display: grid !important;
  }
  .services-grid .hero-box.review-top,
  .services-grid .hero-box._02,
  .services-grid .hero-box.review-2 {
    display: flex !important;
  }
  .services-grid .hero-center {
    grid-column: 1 / -1;
  }
  .service-card-list li {
    font-size: 0.9rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .services-grid .hero-center {
    order: -1;
  }
  .services-grid .hero-images {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .service-card-title {
    font-size: 1rem;
  }
  .service-card-list li {
    padding: 0.3rem 1.3rem 0.3rem 0;
    font-size: 0.88rem;
    line-height: 1.7;
  }
  .service-card-list li::before {
    top: 0.75rem;
    width: 0.45rem;
    height: 0.45rem;
  }
  .service-card-icon {
    width: 2.1rem;
    height: 2.1rem;
  }
  .service-card-icon svg {
    width: 1.05rem;
    height: 1.05rem;
  }
}


/* ==========================================================
   Address & Contact section — minimal split layout
   ========================================================== */
.section.location-home {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-layout {
  direction: rtl;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
  width: 100%;
}

/* --- Right column: info card (transparent, no background) --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: visible;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.contact-info::before {
  display: none;
}

.contact-row {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 0;
  border-bottom: none;
  text-align: center;
  max-width: 36rem;
}

.contact-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(78, 163, 255, 0.14);
  color: #6cb4ff;
  border: 1px solid rgba(78, 163, 255, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-row:hover .contact-icon {
  background: rgba(78, 163, 255, 0.22);
  transform: scale(1.05);
}

.contact-row-body {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

.contact-row-label {
  display: none;
}

.contact-row-value {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--color-text-primary, #f5f7fa);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.6rem;
}

p.contact-row-value {
  display: block;
  text-align: center;
}

.contact-link {
  color: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #6cb4ff;
}

.contact-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.contact-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.contact-button.primary {
  background: linear-gradient(135deg, #4ea3ff 0%, #1f6fd6 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 111, 214, 0.35);
}

.contact-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 111, 214, 0.45);
}

.contact-button.primary:hover svg {
  transform: translateX(-3px);  /* RTL — arrow points left visually */
}

/* mirror the arrow icon for RTL flow */
.contact-button.primary svg {
  transform: scaleX(-1);
}
.contact-button.primary:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.contact-button.ghost {
  background: transparent;
  color: var(--color-text-primary, #f5f7fa);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-button.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- Left column: map --- */
/* Map removed */

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
  .contact-info {
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .contact-row {
    border-bottom-color: rgba(15, 23, 34, 0.08);
  }
  .contact-row-label {
    color: rgba(15, 23, 34, 0.5);
  }
  .contact-row-value {
    color: #0f1722;
  }
  .contact-divider {
    background: rgba(15, 23, 34, 0.25);
  }
  .contact-button.ghost {
    color: #0f1722;
    border-color: rgba(15, 23, 34, 0.15);
  }
  .contact-button.ghost:hover {
    background: rgba(15, 23, 34, 0.04);
    border-color: rgba(15, 23, 34, 0.25);
  }
}

/* Tablet & mobile — stack columns */
@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 479px) {
  .contact-info {
    padding: 1rem 0.25rem;
    border-radius: 0;
  }
  .contact-icon {
    width: 2.3rem;
    height: 2.3rem;
  }
  .contact-row-value {
    font-size: 0.94rem;
  }
}
  .contact-button {
    flex: 1;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }
}

/* Hide old default styles if any */
.location-cards { display: none; }


/* ==========================================================
   Hours card wrapper inside contact-layout (transparent)
   ========================================================== */
.hours-card-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hours-card-wrap::before {
  display: none;
}

.hours-card-wrap .hours-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0;
}

/* Light theme — same transparent look */
@media (prefers-color-scheme: light) {
  .hours-card-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 991px) {
  .hours-card-wrap {
    padding: 0;
  }
}

@media (max-width: 479px) {
  .hours-card-wrap {
    padding: 0;
    border-radius: 0;
  }
}




/* ── Footer Image ────────────────────────────── */
.section.location-home {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

.section.footer {
  margin-top: 0 !important;
}

/* کم کردن فاصله بخش CTA (تماس با ما) */
.section.cta {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.section.cta .container {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.wrapper.cta {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  --_sizes---spacing--spacing-colossal: 1.5rem;
  --_sizes---spacing--spacing-jumbo: 0rem;
}

.cta-content {
  padding: 0 !important;
  margin: 0 !important;
}

.cta-buttons {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  .wrapper.cta {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    --_sizes---spacing--spacing-colossal: 1rem;
  }
}

.footer-image-wrapper {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  max-height: 600px;
  margin-top: 0;
}

#footer-placeholder {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

section.cta + #footer-placeholder,
#contact + #footer-placeholder {
  margin-top: 0 !important;
}

/* حذف فاصله بین CTA و فوتر */
#contact.section.cta {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

#contact.section.cta .container {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#contact.section.cta .wrapper.cta {
  padding-top: 1.5rem !important;
  padding-bottom: 1rem !important;
  height: auto !important;
  min-height: 0 !important;
}

.footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.footer-full-image {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
}

.footer-overlay-social {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.footer-copyright-overlay {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.footer-social-links {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75) !important;
  border: 1px solid rgba(255,255,255,0.9) !important;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.95) !important;
  transform: translateY(-3px);
}

.footer-social-svg {
  width: 16px !important;
  height: 16px !important;
}

.footer-line {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.5);
}

/* رنگ برند هر شبکه اجتماعی */
.footer-social-link[href*="instagram.com"] {
  color: #e4405f !important;
  border-color: rgba(228,64,95,0.3) !important;
}
.footer-social-link[href*="instagram.com"]:hover {
  background: rgba(255,255,255,1) !important;
}

.footer-social-link[href*="x.com"] {
  color: #000 !important;
  border-color: rgba(0,0,0,0.2) !important;
}
.footer-social-link[href*="x.com"]:hover {
  background: rgba(255,255,255,1) !important;
}

.footer-social-link[href*="linkedin.com"] {
  color: #0073b1 !important;
  border-color: rgba(0,115,177,0.3) !important;
}
.footer-social-link[href*="linkedin.com"]:hover {
  background: rgba(255,255,255,1) !important;
}

@media (max-width: 767px) {
  .footer-image-wrapper {
    max-height: 320px;
  }
  .footer-full-image {
    height: 320px;
  }
  .footer-overlay-social {
    bottom: 1.25rem;
  }
}


/* ═══════════════════════════════════════════════
   Site Navbar — مستقل از Webflow
   ═══════════════════════════════════════════════ */
.site-navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: fit-content;
  max-width: calc(100vw - 2rem);
  min-width: min(480px, calc(100vw - 2rem));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(30, 30, 30, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  justify-content: space-between;
  width: 100%;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav-link + .site-nav-link {
  border-right: none;
}

.site-nav-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  user-select: none;
  padding: 0 0.1rem;
}

.site-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #60b4ff 0%, #3b8fef 50%, #2176d6 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-right: 0.2rem;
  margin-left: 0.1rem;
  box-shadow:
    0 0 0 3px rgba(96, 180, 255, 0.15),
    0 4px 14px rgba(33, 118, 214, 0.25);
}

.site-nav-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(96, 180, 255, 0.2),
    0 6px 18px rgba(33, 118, 214, 0.32);
}

.site-nav-btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  filter: brightness(10);
}

@media (max-width: 480px) {
  .site-navbar {
    width: calc(100vw - 1.5rem);
    max-width: none;
  }

  .site-nav {
    padding: 0.35rem 0.35rem;
    width: 100%;
    justify-content: space-between;
  }

  .site-nav-link {
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
  }

  .site-nav-btn {
    font-size: 0.78rem;
    padding: 0.42rem 0.8rem;
    margin: 0;
    gap: 0.3rem;
  }

  .site-nav-btn svg {
    width: 0.85rem;
    height: 0.85rem;
  }

  .site-nav-btn-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .site-nav-sep {
    font-size: 0.75rem;
    padding: 0;
  }
}



/* ═══════════════════════════════════════════════
   Hero Content — عنوان، badge، دکمه‌ها
   ═══════════════════════════════════════════════ */
.home-hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  direction: rtl;
}

/* Badge بالا */
.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 180, 120, 0.1);
  color: #0a7c50;
  border: 1px solid rgba(0, 180, 120, 0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
}

/* عنوان اصلی */
.smile-title.home-hero {
  font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #1c1c1e !important;
  margin: 0 !important;
  text-align: center;
  direction: rtl;
}

/* توضیح */
.home-hero-top .cta-para {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem) !important;
  color: #5a5a5e !important;
  line-height: 1.8 !important;
  max-width: 520px;
  margin: 0 auto !important;
  text-align: center;
  direction: rtl;
}

/* دکمه‌ها */
.hero-cta-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  direction: rtl;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #60b4ff 0%, #3b8fef 50%, #2176d6 100%);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(96,180,255,0.2), 0 4px 16px rgba(33,118,214,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(96,180,255,0.25), 0 6px 20px rgba(33,118,214,0.4);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #1c1c1e !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}


/* Before/After compare — touch روان */
.compare-component {
  touch-action: pan-y;
  cursor: ew-resize;
}


/* ============================================================
   Before/After Slider — Independent Component
   ============================================================ */
.ba-slider-wrap {
  max-width: 700px;
  margin: 0 auto;
  direction: ltr;
}

.ba-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  line-height: 0;
}

.ba-slider .ba-after-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.ba-slider .ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.ba-slider .ba-before-img {
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  object-fit: cover;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.1);
  color: #333;
}

.ba-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  direction: rtl;
}

.ba-label {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.ba-label-line {
  width: 6rem;
  height: 1px;
  background: #ccc;
}

@media (max-width: 768px) {
  .ba-slider-wrap {
    max-width: 100%;
  }
  .ba-slider {
    border-radius: 1rem;
  }
}


/* CTA section reserve button — match navbar style */
.cta-buttons .secondary-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #60b4ff 0%, #3b8fef 50%, #2176d6 100%) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 999px !important;
  border: none !important;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow:
    0 0 0 3px rgba(96, 180, 255, 0.15),
    0 4px 14px rgba(33, 118, 214, 0.25) !important;
}

.cta-buttons .secondary-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(96, 180, 255, 0.2),
    0 6px 18px rgba(33, 118, 214, 0.32) !important;
}

.cta-buttons .secondary-button .button-texts {
  display: flex;
  align-items: center;
}

.cta-buttons .secondary-button .button-text {
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.cta-buttons .secondary-button .button-text._02 {
  display: none !important;
}

.cta-buttons .secondary-button .button-icon {
  width: 1rem !important;
  height: 1rem !important;
  filter: brightness(10) !important;
}
