/* ============================================================
   mobile.css — Enhanced Mobile Responsive ≤991px
   ============================================================ */

/* ── Base Mobile Styles ─────────────────────────────── */
@media (max-width: 991px) {
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* ── Balanced section spacing ───────────────────── */
  .section {
    padding: 2.5rem 0 !important;
    margin-bottom: 1rem !important;
  }

  .section.home-hero {
    padding: 0 !important;
    margin-bottom: 2rem !important;
  }

  .section.services {
    padding: 2.5rem 0 !important;
    margin-bottom: 1.5rem !important;
  }

  .section.treatments {
    padding: 2.5rem 0 !important;
    margin-bottom: 1.5rem !important;
  }

  .section.location-home {
    padding: 1.5rem 0 2rem !important;
    margin-top: 1.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .section.faq {
    padding: 2.5rem 0 1rem !important;
    margin-bottom: 0 !important;
  }

  .section.cta {
    padding: 0.75rem 0 !important;
    margin-bottom: 0 !important;
  }

  .section.footer {
    padding: 2.5rem 0 1.5rem !important;
    margin-top: 0 !important;
  }

  /* Remove extra gaps */
  .wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .wrapper.treatments {
    padding: 0 1rem !important;
  }

  .wrapper.faq {
    padding: 0 1rem !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* ── Navbar — همیشه visible، بدون همبرگر ────────────────────── */
  .navbar.w-nav {
    background: rgba(30, 30, 30, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    position: fixed !important;
    top: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    border-radius: 999px !important;
    width: fit-content !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 0.5rem 1.25rem !important;
  }

  /* همبرگر کاملاً حذف */
  .menu-button.w-nav-button {
    display: none !important;
  }

  /* منو همیشه نمایان */
  .navbar.w-nav .nav-menu-wrapper {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .navbar.w-nav .nav-menu-items {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .navbar.w-nav .nav-link {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    background: transparent !important;
  }

  .navbar.w-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  /* دکمه رزرو */
  .navbar.w-nav .nav-buttons.mob {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  .navbar.w-nav .nav-buttons.mob .secondary-button {
    background: linear-gradient(135deg, #4ea3ff 0%, #1f6fd6 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
  }

  .navbar.w-nav .nav-buttons.mob .button-icon {
    width: 0.85rem !important;
    height: 0.85rem !important;
    filter: brightness(10) !important;
  }

  /* ── Hero Section ──────────────────────────── */
  .section.home-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .section.home-hero::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
  }

  .hero-banner-pin {
    height: 145vh !important;
  }

  .hero-banner-wrapper {
    height: 100dvh !important;
    min-height: 100vh !important;
    background: #1a0a0a !important;
  }

  /* تصویر عمودی مخصوص موبایل — پر کردن کامل صفحه */
  .hero-banner-media {
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("../img/hero-banner-mobile.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: scale(var(--hero-scale, 1)) !important;
    transform-origin: center center !important;
    border-radius: var(--hero-radius, 0px) !important;
  }

  .hero-banner-text {
    top: 70% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 420px !important;
    font-size: clamp(1.2rem, 5vw, 1.75rem) !important;
    padding: 0 1rem !important;
    z-index: 10 !important;
    line-height: 1.4 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75) !important;
  }

  .section.home-hero .container {
    padding: 3rem 1rem 2rem !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Hero content */
  .home-hero-top {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }

  .smile-title.home-hero {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }

  .cta-para {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
    margin: 0 auto 1.5rem !important;
  }

  .subtitle-content {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Hero links */
  .home-hero-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    margin-bottom: 2rem !important;
  }

  .home-hero-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 999px !important;
  }

  /* Hero cards */
  .home-hero-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    width: 100% !important;
  }

  .hero-left,
  .hero-center,
  .hero-left.right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-box {
    width: 100% !important;
    border-radius: 1.2rem !important;
    overflow: hidden !important;
  }

  .hero-box .doctor-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
  }

  .hero-box.review,
  .hero-box.review-2,
  .hero-box.review-top {
    padding: 1.2rem !important;
  }

  .review-desp {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
  }

  /* Hero images grid */
  .hero-images {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .hero-img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 1rem !important;
  }

  /* Trusted/Insurance section */
  .trusted-content {
    margin-top: 2rem !important;
    padding: 0 !important;
  }

  .trusted-top {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 1rem !important;
    margin-bottom: 1rem !important;
  }

  .trusted-title {
    text-align: center !important;
    font-size: 0.9rem !important;
  }

  .trusted-line {
    display: none !important;
  }

  .trusted-marquee {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .trusted-marquee::-webkit-scrollbar {
    display: none !important;
  }

  .trusted-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    width: max-content !important;
    padding: 0.5rem 1rem !important;
  }

  .trusted-marquee-track .trusted-icon {
    height: 36px !important;
    width: auto !important;
    max-width: 90px !important;
    flex-shrink: 0 !important;
    opacity: 0.75 !important;
  }

  /* ── Services Section ──────────────────────── */
  .section.services {
    padding: 3rem 0 !important;
  }

  .wrapper.services {
    padding: 0 1rem !important;
  }

  .appointment-top {
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    padding: 0 0.5rem !important;
  }

  .services-grid,
  .home-hero-cards.services-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .service-card {
    padding: 1.5rem !important;
    border-radius: 1.25rem !important;
  }

  .service-card-title {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
  }

  .service-card-list {
    padding-right: 1.2rem !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  .service-card-list li {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    margin-bottom: 0.6rem !important;
  }

  /* ── Compare / Before-After ────────────────── */
  .wrapper.treatment {
    padding: 0 1rem !important;
    margin: 0 !important;
  }

  .section.treatments {
    padding: 2.5rem 0 !important;
    margin-bottom: 1.5rem !important;
    min-height: auto !important;
  }

  .treatment-bottom {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  .compare-component {
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: 16/10 !important;
  }

  .compare-after-media,
  .compare-before-media {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .compare-block {
    gap: 0.5rem !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    margin-top: 1rem !important;
    justify-content: center !important;
  }

  .compare-block .before {
    font-size: 0.85rem !important;
  }

  .compare-title {
    font-size: clamp(1.8rem, 6.5vw, 2.3rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
  }

  /* ── Location/Contact Section ──────────────── */
  .section.location-home {
    padding: 2.5rem 0 !important;
  }

  .location-cards {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
  }

  .location-card {
    padding: 2rem 1.5rem !important;
  }

  .location-card-text {
    font-size: 0.95rem !important;
  }

  /* Hours card */
  .hours-layout {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  .hours-graphic-ring {
    width: 6rem !important;
    height: 6rem !important;
  }

  .hours-graphic-time {
    font-size: 1.5rem !important;
  }

  .hours-schedule {
    width: 100% !important;
    padding-inline-end: 1rem !important;
  }

  .hours-row {
    grid-template-columns: 1fr auto 5.5rem !important;
    gap: 0.5rem !important;
    padding: 0.4rem 0 !important;
  }

  .hours-day {
    font-size: 0.85rem !important;
  }

  .hours-slot {
    font-size: 0.78rem !important;
  }

  /* ── FAQ Section ───────────────────────────── */
  .section.faq {
    padding: 2.5rem 0 !important;
    margin-bottom: 1rem !important;
  }

  .wrapper.faq {
    padding: 0 1rem !important;
  }

  .faq-content-wrapper {
    direction: rtl !important;
  }

  .faq-list-wrap {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  .faq-question {
    padding: 1rem 0 !important;
  }

  .faq-ques {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .faq-para {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
  }

  .appointment-top {
    margin-bottom: 1.5rem !important;
  }

  /* ── Footer ────────────────────────────────── */
  .section.footer {
    min-height: auto !important;
    padding: 2.5rem 0 1.5rem !important;
    background-size: cover !important;
    background-position: center bottom !important;
  }

  .section.footer .footer-bottom {
    gap: 1rem !important;
    padding: 0 1rem !important;
  }

  .section.footer .footer-social-links {
    gap: 0.6rem !important;
  }

  .section.footer .footer-social-link {
    width: 38px !important;
    height: 38px !important;
  }

  .section.footer .copyright-text {
    font-size: 0.8rem !important;
  }

  /* ── General Improvements ──────────────────── */
  .section {
    padding: 2.5rem 0 !important;
    margin-bottom: 1rem !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  .cta-title,
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
  }

  /* Section title variations */
  .cta-title.treatment,
  .dentists-title,
  .compare-title {
    font-size: clamp(1.8rem, 6.5vw, 2.3rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 1.25rem !important;
  }

  /* Subtitle before title */
  .appointment-top {
    margin-bottom: 2rem !important;
  }

  .subtitle-content {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
    opacity: 0.8 !important;
  }

  .orthodontics {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: 999px !important;
  }

  .card-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    padding-top: 1rem !important;
  }

  /* Hide expert/process sections on mobile */
  .section.expert,
  .section.expert *,
  .wrapper.expert,
  .wrapper.process,
  .section:has(.wrapper.process) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  /* Remove extra height from empty sections */
  .section:empty,
  .wrapper:empty {
    display: none !important;
  }

  /* Prevent unwanted scroll spaces */
  .main-wrapper > .section + .section {
    margin-top: 0 !important;
  }
}

/* ── Extra Small Phones ≤480px ─────────────────── */
@media (max-width: 480px) {
  .section.home-hero::before {
    min-height: 45vh !important;
    height: 45vh !important;
  }

  .hero-banner-text {
    font-size: clamp(1.15rem, 5vw, 1.5rem) !important;
    top: 72% !important;
  }

  .smile-title.home-hero {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
  }

  .hero-img {
    height: 120px !important;
  }

  .hero-box .doctor-image {
    height: 160px !important;
  }

  .trusted-marquee-track .trusted-icon {
    height: 30px !important;
    max-width: 75px !important;
  }

  .menu-button.w-nav-button {
    width: 3.2rem !important;
    height: 3.2rem !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-menu-wrapper,
  .navbar.w-nav.w--nav-menu-open .nav-menu-wrapper {
    width: calc(100vw - 1.5rem) !important;
    padding: 0.4rem 0.5rem !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-link,
  .navbar.w-nav.w--nav-menu-open .nav-link {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.85rem !important;
  }
}

/* ── Tablet 768px–991px ─────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  .section.home-hero::before {
    min-height: 55vh !important;
    height: 55vh !important;
  }

  .home-hero-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .hero-center {
    grid-column: 1 / -1 !important;
  }

  .hero-images {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .location-cards {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .hours-layout {
    flex-direction: row !important;
  }
}

/* ── Landscape Mobile ────────────────────────────── */
@media (max-width: 991px) and (orientation: landscape) {
  .section.home-hero::before {
    min-height: 70vh !important;
    height: 70vh !important;
  }

  .hero-banner-text {
    top: 72% !important;
  }
}

/* ── Touch Device Improvements ──────────────────── */
@media (hover: none) and (pointer: coarse) {
  .hero-box:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }

  .secondary-button:active,
  .nav-link:active {
    transform: scale(0.95) !important;
  }

  .home-hero-link:active {
    transform: scale(0.97) !important;
  }

  /* Increase touch targets */
  .nav-link,
  .home-hero-link {
    min-height: 44px !important;
    min-width: 44px !important;
  }
}


/* ── Navbar شفاف ─────────────────────────────── */
@media (max-width: 991px) {
  .navbar.w-nav {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  /* ── nav-menu-wrapper — پیش‌فرض مخفی ────────── */
  .navbar.w-nav .nav-menu-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    z-index: 9997 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ── وقتی منو باز است — pill کادر مرکزی ────────── */
  .navbar.w-nav.mobile-nav-open .nav-menu-wrapper,
  .navbar.w-nav.w--nav-menu-open .nav-menu-wrapper {
    position: fixed !important;
    top: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 2rem) !important;
    max-width: 500px !important;
    height: auto !important;
    z-index: 9998 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(30, 30, 30, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    border-radius: 999px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.4rem !important;
    transition: opacity 0.2s ease !important;
  }

  /* nav-menu-items — ردیف لینک‌ها */
  .navbar.w-nav .nav-menu-items {
    display: none !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-menu-items,
  .navbar.w-nav.w--nav-menu-open .nav-menu-items {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    gap: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* لینک‌های ناو */
  .navbar.w-nav .nav-link {
    display: none !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-link,
  .navbar.w-nav.w--nav-menu-open .nav-link {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.93rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    border-bottom: none !important;
    background: transparent !important;
    transition:
      background 0.15s,
      color 0.15s !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-link:hover,
  .navbar.w-nav.w--nav-menu-open .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  /* nav-buttons mob — دکمه رزرو */
  .navbar.w-nav .nav-buttons.mob {
    display: none !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-buttons.mob,
  .navbar.w-nav.w--nav-menu-open .nav-buttons.mob {
    display: flex !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* دکمه رزرو — آبی */
  .navbar.w-nav.mobile-nav-open .nav-buttons.mob .secondary-button,
  .navbar.w-nav.w--nav-menu-open .nav-buttons.mob .secondary-button {
    background: linear-gradient(135deg, #4ea3ff 0%, #1f6fd6 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.88rem !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(31, 111, 214, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-buttons.mob .button-text,
  .navbar.w-nav.w--nav-menu-open .nav-buttons.mob .button-text {
    color: #fff !important;
  }

  .navbar.w-nav.mobile-nav-open .nav-buttons.mob .button-icon,
  .navbar.w-nav.w--nav-menu-open .nav-buttons.mob .button-icon {
    width: 0.85rem !important;
    height: 0.85rem !important;
    filter: brightness(10) !important;
  }

  /* dropdown مخفی */
  .navbar.w-nav .nav-dropdown {
    display: none !important;
  }

  /* nav-buttons دسکتاپ مخفی */
  .navbar.w-nav .navbar-wrapper > nav > .nav-buttons:not(.mob) {
    display: none !important;
  }

  /* ── همبرگر — همیشه نمایان ─────────────────────── */
  .menu-button.w-nav-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    background: rgba(30, 30, 30, 0.65) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    box-shadow:
      0 4px 30px rgba(0, 0, 0, 0.4),
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 9999 !important;
    transition: all 0.25s ease !important;
  }

  .menu-button.w-nav-button:hover {
    background: rgba(40, 40, 40, 0.75) !important;
    transform: scale(1.05) !important;
  }

  .menu-button.w-nav-button:active {
    transform: scale(0.98) !important;
  }

  /* آیکون lottie — سفید */
  .menu-button.w-nav-button .nav-lottie {
    width: 1.6rem !important;
    height: 1.6rem !important;
    filter: brightness(0) invert(1) !important;
  }

  .menu-button.w-nav-button .nav-lottie svg path {
    stroke: rgb(255, 255, 255) !important;
    stroke-opacity: 1 !important;
  }

  .menu-button.w-nav-button .nav-lottie svg {
    filter: brightness(0) invert(1) !important;
  }

  /* ── Hero section — stable text below banner ─── */
  .section.home-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
  }

  .section.home-hero::before {
    display: block !important;
    width: 100% !important;
    min-height: 55vh !important;
    max-height: 70vh !important;
    height: 55vh !important;
    flex-shrink: 0 !important;
  }

  /* ── بیمه‌ها — مارکی ریسپانسیو ─────────────── */
  .trusted-marquee {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    position: relative !important;
  }

  .trusted-marquee::-webkit-scrollbar {
    display: none !important;
  }

  .trusted-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: max-content !important;
    min-width: 100% !important;
    padding: 0.5rem 1.25rem !important;
    overflow: visible !important;
    justify-content: flex-start !important;
  }

  .trusted-marquee-track .trusted-icon {
    height: 40px !important;
    width: auto !important;
    max-width: 100px !important;
    flex-shrink: 0 !important;
    opacity: 0.75 !important;
  }

  /* عنوان طرف قرارداد */
  .trusted-top {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 1rem !important;
  }

  .trusted-title {
    text-align: center !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
  }

  .trusted-line {
    display: none !important;
  }

  /* ── Services section ────────────────────── */
  .section.services {
    padding: 1.25rem 0 !important;
  }

  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .services-grid .hero-left,
  .services-grid .hero-center,
  .services-grid .hero-left.right {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem !important;
    border-radius: 1.25rem !important;
  }

  .service-card-title {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }

  .service-card-list {
    padding-right: 1.25rem !important;
    padding-left: 0 !important;
  }

  .service-card-list li {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    margin-bottom: 0.5rem !important;
  }

  .service-card-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .service-card-icon svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
  }

  /* ── Hero cards on mobile ─────────────────── */
  .home-hero-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .hero-left,
  .hero-center,
  .hero-left.right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 1.2rem !important;
  }

  .hero-box .doctor-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
  }

  /* Hero images grid */
  .hero-images {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .hero-image-card {
    width: 100% !important;
  }

  .hero-img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 1rem !important;
  }

  /* Hero links */
  .home-hero-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
  }

  .home-hero-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 999px !important;
  }

  /* Review cards */
  .hero-box.review,
  .hero-box.review-2,
  .hero-box.review-top {
    padding: 1.2rem !important;
  }

  .review-desp {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
  }

  .review-author-name {
    font-size: 0.9rem !important;
  }

  .review-author-designation {
    font-size: 0.8rem !important;
  }

  .review-author-icon {
    width: 36px !important;
    height: 36px !important;
  }

  /* ── Hero title & text ────────────────────── */
  .smile-title.home-hero {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .cta-para {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    text-align: center !important;
  }

  .subtitle-content {
    text-align: center !important;
  }

  /* Hero container */
  .section.home-hero .container {
    padding: 2rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ── Compare / Before-After ───────────────── */
  .compare-component {
    border-radius: 1.25rem !important;
    overflow: hidden !important;
  }

  .compare-after-media,
  .compare-before-media {
    width: 100% !important;
    max-width: 100% !important;
  }

  .compare-block {
    gap: 0.5rem !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
  }

  /* ── Location / Contact section ───────────── */
  .section.location-home {
    padding: 1.25rem 0 !important;
    margin-top: 1.75rem !important;
  }

  .contact-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .contact-row {
    display: flex !important;
    gap: 1rem !important;
    direction: rtl !important;
    text-align: right !important;
  }

  .contact-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    flex-shrink: 0 !important;
  }

  .contact-icon svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
  }

  .contact-row-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
  }

  .contact-row-value {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .contact-link {
    font-size: 0.9rem !important;
  }

  /* Hours card */
  .hours-card-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .hours-layout {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 20rem !important;
  }

  .hours-graphic {
    text-align: center !important;
  }

  .hours-graphic-ring {
    width: 6rem !important;
    height: 6rem !important;
  }

  .hours-clock-icon {
    width: 1.8rem !important;
    height: 1.8rem !important;
  }

  .hours-graphic-time {
    font-size: 1.5rem !important;
  }

  .hours-graphic-label {
    font-size: 0.72rem !important;
  }

  /* لیست روزها وسط‌چین — از چپ: نوار آبی | دایره | ساعت | روز */
  .hours-schedule {
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0.25rem 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    direction: ltr !important;
  }

  .hours-schedule::before {
    display: none !important;
    content: none !important;
  }

  .hours-row {
    display: grid !important;
    grid-template-columns: auto auto auto !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 0.55rem !important;
    padding: 0.4rem 0 !important;
    max-width: none !important;
    margin: 0 !important;
    width: max-content !important;
    direction: ltr !important;
  }

  .hours-dot {
    order: 1 !important;
    justify-self: center !important;
  }

  .hours-slot {
    order: 2 !important;
    font-size: 0.78rem !important;
    text-align: left !important;
    min-width: 4.25rem !important;
  }

  .hours-day {
    order: 3 !important;
    font-size: 0.85rem !important;
    text-align: right !important;
    min-width: 4.5rem !important;
    direction: rtl !important;
  }

  .hours-note {
    font-size: 0.7rem !important;
    text-align: center !important;
    padding-inline-end: 0 !important;
    margin-top: 0.5rem !important;
    direction: rtl !important;
  }

  /* فاصله بیشتر بین «هنوز سوالی دارید» و «ارتباط با ما» */
  .section.faq {
    padding-bottom: 1rem !important;
    margin-bottom: 0 !important;
  }

  .section.faq .trusted-top {
    margin-top: 1.5rem !important;
    margin-bottom: 2.75rem !important;
    padding-bottom: 0.5rem !important;
  }

  .section.location-home {
    margin-top: 1.75rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
  }

  /* فاصله کمتر بین عنوان «آدرس و ساعات کاری» و محتوای آدرس */
  .section.location-home .location-home-inner {
    gap: 0.65rem !important;
  }

  .section.location-home .appointment-top {
    margin-bottom: 0.15rem !important;
    gap: 0.2rem !important;
    padding-top: 0 !important;
  }

  .section.location-home .cta-title.treatment {
    margin-bottom: 0.25rem !important;
  }

  .section.location-home .subtitle-content {
    margin-bottom: 0.15rem !important;
  }

  .contact-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-top: 0.25rem !important;
  }

  /* ── CTA section ─────────────────────────── */
  .section.cta {
    padding: 0.75rem 0 !important;
  }

  .wrapper.cta {
    text-align: center !important;
    direction: rtl !important;
  }

  .cta-content {
    text-align: center !important;
  }

  .cta-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
  }

  /* ── FAQ section ─────────────────────────── */
  .wrapper.faq {
    padding: 0 0.5rem !important;
  }

  .faq-content-wrapper {
    direction: rtl !important;
  }

  .faq-contents {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .faq-list-wrap {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  .faq-question {
    padding: 1rem 0 !important;
  }

  .faq-ques {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .faq-para {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    padding-bottom: 1rem !important;
  }

  /* ── Footer ──────────────────────────────── */
  .section.footer {
    min-height: auto !important;
    padding-bottom: 1rem !important;
  }

  .section.footer .footer-bottom {
    gap: 0.75rem !important;
  }

  .section.footer .footer-social-links {
    gap: 0.5rem !important;
  }

  .section.footer .footer-social-link {
    width: 36px !important;
    height: 36px !important;
  }

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

  .section.footer .copyright-text {
    font-size: 0.8rem !important;
  }

  /* ── Process section ─────────────────────── */
  .wrapper.process {
    display: none !important;
  }

  /* ── Expert section ──────────────────────── */
  .section.expert {
    display: none !important;
  }

  /* ── General section spacing ─────────────── */
  .section {
    padding: 1.25rem 0 !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* ── Orthodontics tags ───────────────────── */
  .orthodontics {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.7rem !important;
    border-radius: 999px !important;
  }

  /* ── Card flex layout ────────────────────── */
  .card-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    justify-content: center !important;
    padding-top: 0.8rem !important;
  }
}

/* ── Extra small phones ≤480px ─────────────────── */
@media (max-width: 480px) {
  .section.home-hero::before {
    min-height: 45vh !important;
    height: 45vh !important;
  }

  .hero-banner-text {
    font-size: clamp(1.15rem, 5.5vw, 1.55rem) !important;
    padding: 0 1rem !important;
    top: 72% !important;
  }

  .smile-title.home-hero {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
  }

  .cta-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem) !important;
  }

  .hero-img {
    height: 130px !important;
  }

  .hero-box .doctor-image {
    height: 170px !important;
  }

  .trusted-marquee-track {
    gap: 1rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  .trusted-marquee-track .trusted-icon {
    height: 32px !important;
    max-width: 80px !important;
  }
}

/* ── Tablet 768px–991px ─────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  .section.home-hero::before {
    min-height: 60vh !important;
    height: 60vh !important;
  }

  .home-hero-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .hero-center {
    grid-column: 1 / -1 !important;
  }

  .hero-images {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .hours-layout {
    flex-direction: row !important;
  }

  .hours-schedule {
    max-width: 100% !important;
  }
}
