/* Responsive Styles */

/* Small mobile */
@media (max-width: 576px) {
  /* home page */
  :root {
    --font-size-sm: 0.85rem;
    --font-size-md: 0.95rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.1rem;
    --font-size-2xl: 1.35rem;
    --font-size-3xl: 1.65rem;
    --font-size-4xl: 1.9rem;
  }

  .hero-section {
    padding-top: clamp(0px, 18vw, 40px) !important;
  }

  .hero-image {
    margin-top: 0 !important;
  }

  .hero-image img {
    max-width: 100% !important;
  }

  .hero-title {
    font-size: var(--font-size-2xl) !important;
  }

  .hero-content {
    min-height: 48vh;
  }

  .navbar-nav {
    border-bottom: 1px solid #8080803d;
    padding-bottom: 8px;
    padding-right: 0;
    padding-left: 0;
  }

  .language-switcher img {
    width: 20px;
  }

  .navbar-brand {
    width: 50px;
  }

  .hero-section .order-2 {
    padding: 1.5rem !important;
  }

  .navbar-toggler {
    border: none !important;
    outline: none !important;
    padding: 0;
    --bs-navbar-toggler-focus-width: 0 !important;
    --bs-navbar-toggler-hover-width: 0 !important;
    --bs-navbar-toggler-padding: 0 !important;
  }

  section {
    margin: 1.5rem 0 !important;
  }

  .feature-card {
    padding: 0;
  }

  .feature-icon img {
    width: 90px;
  }

  .carousel-container {
    max-width: 300px !important;
    padding-inline: 2.25rem !important;
    box-sizing: border-box;
  }

  .main-img,
  .main-img.slide-in {
    max-width: 140px !important;
    left: 0 !important;
  }

  .side-img {
    width: clamp(64px, 20vw, 88px) !important;
    opacity: 0.6;
  }

  html[dir="ltr"] .left-img,
  html[dir="rtl"] .right-img {
    right: clamp(-20px, -60vw, 0px) !important;
    left: auto !important;
  }

  html[dir="ltr"] .right-img,
  html[dir="rtl"] .left-img {
    left: clamp(-20px, -60vw, 0px) !important;
    right: auto !important;
  }

  .carousel-indicators {
    bottom: -20px !important;
  }

  .app-preview-section .mb-4 {
    margin-bottom: 2.5em !important;
  }

  .preview-text {
    gap: 0;
  }

  .service-section,
  .app-preview-section {
    padding: 0 !important;
    margin: 0 !important;
  }

  .feature-card {
    padding: 1rem !important;
    gap: 0.5rem;
  }

  .gap-features,
  .preview-text {
    gap: 0 !important;
  }

  #providerMockup {
    max-width: 300px;
    position: unset;
    bottom: 0px;
    margin: 0 auto 1.5rem;
  }

  .footer-links {
    margin: 0 !important;
    gap: 0 120px !important;
  }

  .footer .row > [class*="col-"] {
    margin-bottom: 0 !important;
  }

  .footer-title {
    margin: 1.5rem 0 1rem !important;
  }

  .banner-offer {
    width: min(100%, 320px);
    max-width: 320px;
  }

  .special-offer {
    width: min(80%, 270px);
    max-width: 270px;
  }

  .payment-methods {
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .phone-mock img {
    max-width: 160px !important;
  }

  html[dir="rtl"] .phone-mock img {
    left: 100px !important;
    right: unset !important;
  }

  html[dir="ltr"] .phone-mock img {
    right: 100px !important;
    left: unset !important;
  }

  .why-content {
    height: 560px !important;
  }

  .why-text {
    width: 20rem !important;
  }

  .features p {
    max-width: unset;
  }

  .why::before {
    width: 120px;
    height: 100px;
  }

  .why::after {
    width: 130px;
    height: 120px;
  }

  .why-text span {
    font-size: var(--font-size-xl) !important;
  }

  html[dir="rtl"] .banner {
    width: 100%;
    height: 100%;
    margin-top: -70px;
  }

  html[dir='ltr'] .banner{
     width: 200px;
    height: 100%;
    margin-top:0;
    margin-bottom: 40px;
  }

  html[dir='ltr'] .special-offer{
    width:150px;
  }
  
  .about-hero-title,
  .service-desc {
    max-width: 100%;
  }

  .faq-hero-content {
    height: 350px;
  }

  .phone-mock {
    width: 50% !important;
    padding: 0 !important;
  }

  .why-content {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --font-size-sm: 0.9rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.05rem;
    --font-size-xl: 1.2rem;
    --font-size-2xl: 1.55rem;
    --font-size-3xl: 1.9rem;
    --font-size-4xl: 2.2rem;
    --section-padding: 48px;
  }

  body {
    overflow-x: hidden;
  }

  section {
    margin: 1rem 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: clamp(80px, 18vw, 0px);
  }

  .hero-section .order-2 {
    padding: 1rem 0 0;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .hero-image {
    margin-top: -10px;
  }

  .hero-content {
    min-height: 55vh;
    height: auto;
    padding: 120px 1rem 40px;
  }

  .contact-desc,
  .service-desc {
    font-size: var(--font-size-md);
  }

  .login-btn {
    background-color: unset;
    color: var(--natural-Txt);
    padding: 8px 0 0;
    font-weight: 500;
  }

  .gap-features {
    gap: 1rem;
    margin-bottom: 0 !important;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-container {
    max-width: 100%;
    text-align: start;
  }

  .preview-text {
    gap: 1.25rem;
    padding: 0;
  }

  .preview-item {
    align-items: flex-start;
  }

  .preview-item h4 {
    font-size: var(--font-size-lg);
  }

  .app-preview-section .order-1 {
    width: 100% !important;
  }

  .carousel-container {
    margin-top: 0.5rem;
    max-width: 360px;
    margin-inline: auto;
    padding-inline: 2.75rem;
    box-sizing: border-box;
  }

  .carousel-indicators {
    position: static;
    justify-content: center;
    margin-top: 0.75rem !important;
  }

  .side-img {
    display: block;
    width: clamp(0px, 20vw, 200px);
    top: 50%;
    opacity: 0.7;
    filter: blur(0.8px);
    z-index: 2;
  }

  html[dir="ltr"] .left-img {
    right: clamp(-150px, -60vw, 0px);
    left: auto !important;
  }

  html[dir="ltr"] .right-img {
    left: clamp(-150px, -60vw, 0px);
    right: auto !important;
  }

  html[dir="rtl"] .left-img {
    left: clamp(-150px, -60vw, 0px);
    right: auto !important;
  }

  html[dir="rtl"] .right-img {
    right: clamp(-150px, -60vw, 0px);
    left: auto !important;
  }

  html[dir="rtl"] .hero-image,
  html[dir="ltr"] .hero-image,
  html[dir="rtl"] .main-img,
  html[dir="ltr"] .main-img,
  html[dir="rtl"] .carousel-indicators,
  html[dir="ltr"] .carousel-indicators {
    left: auto !important;
    right: auto !important;
  }

  .main-img,
  .main-img.slide-in {
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
    display: block;
    height: auto;
    left: 0 !important;
  }

  .service-item {
    margin-bottom: 1rem;
    height: auto;
    min-height: 0;
  }

  .service-item:hover {
    transform: none;
  }

  .service-overlay p {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
  .footer .app-buttons {
    justify-content: flex-start !important;
  }

  .cta-section .container {
    border-radius: 24px;
  }

  .m-content {
    margin: 2rem 1rem;
  }

  .bg-provider-wrapper {
    width: 100%;
    height: 320px;
    margin-inline: auto;
  }

  .bg-provider-pic {
    border-radius: 32px;
  }

  .img-1 {
    right: 20px;
    top: 60px;
  }

  .img-2 {
    left: 20px;
    top: 20px;
  }

  /* About page */
  .why {
    border-radius: 20px;
  }

  .why-text p,
  .experience-text {
    width: 100%;
    font-size: var(--font-size-lg);
  }

  .phone-mock {
    text-align: center;
  }

  html[dir="rtl"] .phone-mock img {
    width: 100%;
    max-width: 260px;
    height: 85%;
  }

  html[dir="rtl"] .phone-mock img {
    left: 0px;
  }

  html[dir="ltr"] .phone-mock img {
    right: 0px;
  }

  .why-text {
    width: 26rem;
  }

  .features {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .features .feature-card {
    width: 100%;
    height: auto;
    border-radius: 28px;
    padding: 1.5rem 1rem;
  }

  .experience {
    border-radius: 24px;
    padding: 2rem 1rem 1.5rem;
  }

  .experience h4 {
    padding-bottom: 1.5rem;
  }

  .experience .d-flex {
    flex-direction: column;
    gap: 1.5rem;
  }

  .experience-img img {
    width: 100%;
    max-width: 320px;
    display: block;
    margin-inline: auto;
  }

  .experience-text li {
    padding: 0.875rem 1rem;
    align-items: flex-start;
    font-size: var(--font-size-lg);
  }

  /* Contact page */
  form {
    margin: 2rem 0;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .contact-wrapper > .d-flex {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
    padding: 0.875rem;
  }

  .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .contact-card .content h4 {
    font-size: var(--font-size-md);
    margin-bottom: 0.5rem !important;
  }

  .faq-question {
    padding: 0.875rem 1rem;
    font-size: var(--font-size-md);
  }

  .faq-answer {
    padding: 0 1rem 0.875rem;
    font-size: var(--font-size-sm);
  }

  /* Services page */
  .salon-card img {
    width: 100%;
    max-width: 260px;
    height: 170px;
  }

  .salon-card.slick-slide.slick-current.slick-active.slick-center img {
    width: 100%;
    max-width: 220px;
    height: 150px;
  }

  .salon-name {
    font-size: var(--font-size-sm);
    padding: 8px 6px;
  }

  .services-section {
    padding: 2rem 0.75rem 1.5rem;
    border-radius: 24px;
  }

  .services-tabs {
    gap: 0.5rem;
  }

  .tab-btn {
    font-size: var(--font-size-md);
    padding: 8px 14px;
  }

  .tab-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 12px;
    gap: 12px;
    align-items: flex-start;
  }

  .service-card img {
    width: 52px;
    height: 52px;
  }

  .service-info h5 {
    font-size: var(--font-size-md) !important;
    margin-bottom: 0.25rem;
  }

  .service-info span {
    font-size: var(--font-size-sm);
  }

  .steps-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .step {
    min-width: 0;
    width: 100%;
  }

  .line {
    width: 2px;
    height: 24px;
  }

  .offers {
    padding: 2rem 1rem 1.5rem;
    border-radius: 24px;
  }

  .offers::before {
    display: none;
  }

  .offers > .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  .offers-text,
  .offers-img,
  .w-50 {
    width: 100% !important;
  }

  .offers-img {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
  }

  .banner-offer,
  .special-offer {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
  }

  .banner-offer {
    top: 0;
    right: 0;
    left: auto;
    transform: none;
    width: min(100%, 380px);
    max-width: 380px;
  }

  .special-offer {
    right: 0;
    left: auto;
    bottom: 0;
    transform: none;
    width: min(78%, 320px);
    margin-top: 0;
    max-width: 320px;
    z-index: 2;
  }

  .offers-text li {
    padding: 12px 14px;
    gap: 10px;
    align-items: flex-start;
  }

  .app-features .features-grid {
    gap: 1.25rem;
  }

  .app-features .feature-box {
    flex: 0 1 100%;
    max-width: none;
    padding: 0.5rem 0;
  }

  .app-features .feature-box h4 {
    min-height: 0;
    margin-bottom: 0.5rem;
  }

  .app-features .feature-icon {
    width: 56px;
    height: 56px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-features .feature-icon img {
    width: 28px;
    height: 28px;
  }

  .provider-section {
    padding: 1rem 0.75rem;
    border-radius: 28px;
  }

  .provider-section::before {
    display: none;
  }

  .provider-section .provider-title,
  .provider-section .provider-desc {
    display: block;
  }

  .provider-title {
    font-size: clamp(1.6rem, 6vw, 1.9rem);
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .provider-desc {
    max-width: 310px;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #1f1f1f;
  }

  .provider-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0.875rem 1rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(132, 74, 24, 0.12);
  }

  .provider-steps {
    order: 1 !important;
    width: 100%;
  }

  .stepper {
    min-height: 190px;
  }

  .provider-phone {
    order: 2 !important;
    width: 100%;
    max-width: 250px;
    margin-inline: auto;
    min-height: 0;
  }

  .phone-screen {
    position: relative;
    width: 100%;
    display: block;
    margin-inline: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.12));
  }

  .step-item {
    display: none;
    min-height: 190px;
    padding: 0;
    margin: 0;
    cursor: default;
  }

  .step-item:not(:last-child)::before {
    display: none;
  }

  .step-item.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    background: transparent;
    border-radius: 0;
    margin: 0;
  }

  .provider-section .step-item .icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8f2;
    box-shadow: 0 10px 24px rgba(172, 100, 48, 0.12);
    flex-shrink: 0;
  }

  .provider-section .step-item .icon img {
    width: 26px;
    height: 26px;
  }

  .provider-section .step-item .content {
    text-align: center;
  }

  .provider-section .step-item .content h4,
  .provider-section .step-item .content h5 {
    font-size: clamp(1.15rem, 4.8vw, 1.3rem);
    line-height: 1.45;
    margin-bottom: 0;
  }

  .provider-section .step-item .content p,
  .provider-section .step-item.active .content p {
    display: block;
    max-width: 255px;
    margin: 0.25rem auto 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #656565;
  }

  .provider-mobile-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    order: 3;
    margin-top: 0.25rem;
  }

  .provider-indicator {
    width: 9px;
    height: 9px;
    appearance: none;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: #d7dded;
    cursor: pointer;
    transition:
      width 0.25s ease,
      background-color 0.25s ease;
  }

  .provider-indicator.active {
    width: 28px;
    background: #8f3518;
  }
}

/* Tablet + Mobile */
@media (max-width: 991.98px) {
  .d-desktop {
    display: none !important;
  }

  .navbar .container {
    padding-inline: 1rem;
  }

  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-link {
    margin: 0 !important;
    justify-content: center;
    text-align: center;
  }

  .nav-link.active::after {
    left: 25%;
    right: 25%;
  }

  .language-switcher {
    margin-top: 0.5rem;
    width: auto;
  }

  section {
    margin: 2.5rem 0;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(120px, auto));
    width: auto;
  }

  .footer .row > [class*="col-"] {
    margin-bottom: 1.5rem;
  }

  .footer .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .app-features .features-grid {
    gap: 1rem;
  }

  .app-features .feature-box {
    flex: 0 1 calc((100% - 1rem) / 2);
    max-width: none;
  }
}
/* Tablet and above */
@media (min-width: 769px) {
  .d-mobile {
    display: none;
  }

  .d-desktop {
    display: block;
  }
}
@media (min-width: 1280px) {
  /* LTR (English) */
  html[dir="ltr"] .left-img {
    right: clamp(-60px, -2vw, 18px);
    left: unset;
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .left-img {
    left: clamp(-60px, -2vw, 18px);
    right: unset;
  }

  /* LTR (English) */
  html[dir="ltr"] .right-img {
    left: clamp(-100px, -20vw, -42px);
    right: unset;
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .right-img {
    right: clamp(-100px, -20vw, -42px);
    left: unset;
  }

  /* LTR (English) */
  html[dir="ltr"] .main-img {
    left: clamp(-40px, -40vw, -18px);
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .main-img {
    left: clamp(40px, -40vw, -18px);
  }
}
/* Tablet and above */
@media (min-width: 1440px) {
  /* LTR (English) */
  html[dir="ltr"] .left-img {
    right: clamp(-20px, 1.5vw, -20px);
    left: unset;
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .left-img {
    left: clamp(-30px, 1.5vw, -30px);
    right: unset;
  }

  /* LTR (English) */
  html[dir="ltr"] .right-img {
    left: clamp(-30px, -20vw, -42px);
    right: unset;
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .right-img {
    right: clamp(-30px, -20vw, -42px);
    left: unset;
  }

  /* LTR (English) */
  html[dir="ltr"] .main-img {
    left: clamp(0px, -40vw, -18px);
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .main-img {
    left: clamp(0px, -40vw, -18px);
  }
}
@media (min-width: 1920px) {
  .container {
    max-width: 1670px;
  }

  /* LTR (English) */
  html[dir="ltr"] .left-img {
    right: clamp(-30px, 1.5vw, -30px);
    left: unset;
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .left-img {
    left: clamp(-40px, 1.5vw, -40px);
    right: unset;
  }

  /* LTR (English) */
  html[dir="ltr"] .right-img {
    left: clamp(110px, -20vw, -42px);
    right: unset;
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .right-img {
    right: clamp(110px, -20vw, -42px);
    left: unset;
  }

  /* LTR (English) */
  html[dir="ltr"] .main-img {
    left: clamp(70px, -15vw, -18px);
  }

  /*  RTL (Arabic) */
  html[dir="rtl"] .main-img {
    left: clamp(-70px, -15vw, -18px);
  }

  .hero-section {
    padding-top: clamp(60px, 5vw, 0px);
  }

  html[dir="ltr"] .hero-image img {
    margin-inline-start: auto;
    display: block;
  }
}
