/* CSS Variables */
:root {
    /* Brand Colors - Warm Teal Palette */
    --background: 60 10% 97%;
    /* #F7F7F6 warm off-white */
    --foreground: 0 0% 7%;
    /* #121212 near-black */
    --card: 0 0% 100%;
    --card-foreground: 0 0% 7%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 7%;
    --primary: 167 32% 49%;
    /* #55A596 */
    --primary-foreground: 0 0% 100%;
    --primary-deep: 169 79% 31%;
    /* #0F8C7D */
    --primary-deep-foreground: 0 0% 100%;
    --secondary: 60 10% 94%;
    --secondary-foreground: 0 0% 7%;
    --muted: 60 5% 92%;
    --muted-foreground: 0 0% 40%;
    --accent: 167 32% 92%;
    --accent-foreground: 167 32% 30%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 60 5% 88%;
    --input: 60 5% 88%;
    --ring: 167 32% 49%;
    --radius: 1.5rem;
    --radius-sm: 1rem;
    --radius-pill: 9999px;
    --shadow-card: 0 4px 20px -4px rgba(85, 165, 150, .12), 0 2px 8px -2px rgba(0, 0, 0, .06);
    --shadow-card-hover: 0 8px 30px -4px rgba(85, 165, 150, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 2px 8px -2px rgba(85, 165, 150, 0.3);
    --shadow-button-hover: 0 4px 16px -4px rgba(85, 165, 150, 0.4);
    --shadow-floating: 0 8px 32px -8px rgba(15, 140, 125, 0.25);
    --card: 0 0% 100%;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    background: hsl(var(--background));
    color: hsl(var(--foreground));

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.6;
}

p {
    line-height: 1.8;
}

button {
    border: none;
}

a {
    color: inherit;
    text-decoration: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Card Styles */
.card-dashboard {
    background-color: hsl(var(--card));
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-dashboard:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-dashboard:active {
    transform: scale(0.98);
}

/* Pill Button Styles */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow-button);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-pill:hover {
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-1px);
}

.btn-pill:active {
    transform: translateY(0) scale(0.98);
}

.btn-pill-primary {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 9999px;
    padding: .75rem 1.5rem;
    font-weight: 500;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .2s;
    animation-duration: .2s;
    box-shadow: var(--shadow-button);
    text-decoration: none;

}


.btn-pill-primary:hover {
    background-color: hsl(var(--primary-deep));
}

.btn-pill-secondary {
    text-decoration: none;
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 9999px;
    padding: .75rem 1.5rem;
    font-weight: 500;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .2s;
    animation-duration: .2s;
    box-shadow: var(--shadow-button);
}



/* Chip Styles */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.chip-primary {
    background-color: hsla(var(--primary), 0.1);
    color: hsl(var(--primary));
}

.chip-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--border));
}

/* Floating Action Button */
.fab-help {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.75rem 1.25rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    box-shadow: var(--shadow-floating);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.fab-help:hover {
    background-color: hsl(var(--primary-deep));
    transform: translateY(-2px) scale(1.02);
}

.fab-help:active {
    transform: translateY(0) scale(0.98);
}

/* Announcement Strap */
.betaqa-announcement-strap {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 0 1rem;
    box-shadow: var(--shadow-card);
}

.embla__viewport {
    overflow: hidden;
    width: 100%;
}

.embla__container {
    display: flex;
    direction: ltr;
    /* Important for RTL carousel */
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.hero-carousel-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.hero-dot.active {
    width: 1.5rem;
    background-color: white;
}

/* Drawer Navigation */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 40;
    transition: opacity 0.3s ease;
}

.drawer-content {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 20rem;
    background-color: hsl(var(--card));
    z-index: 99999;
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
    box-shadow: -8px 0 32px -8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.2s;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    color: #000;
}



/* Service Cards */
.service-card {
    background-color: hsl(var(--card));
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    width: 100%;
    text-align: right;
}

.service-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.service-card.selected {
    border-color: hsl(var(--primary));
    background-color: hsla(var(--primary), 0.05);
}

/* Filter Chips */
.filter-chip {

    gap: 0.375rem;
    border-radius: 9999px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    min-width: 100px;
}


/* Form Inputs */
.input-floating {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    font-size: 1rem;
    transition: all 0.2s;
}

.input-floating:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsla(var(--primary), 0.3);
    border-color: hsl(var(--primary));
}

.input-floating::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Workshop Card */
.workshop-card {
    background-color: hsl(var(--card));
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.workshop-card-image {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

/* Social Icon Chips */
.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;

    transition: all 0.2s;
    text-decoration: none;
}


/* Sticky Bottom Bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 1rem;
    z-index: 30;
    box-shadow: 0 -4px 20px -4px rgba(0, 0, 0, 0.1);
}

/* Top App Bar */
.app-bar {
    position: sticky;
    top: 0;
    background-color: hsla(var(--background), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 30;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    padding-bottom: 6rem;
}

/* Section Spacing */


.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 40;
}

.modal-content {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: hsl(var(--card));
    border-radius: 1.5rem;
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-floating);
}

/* Animations */
.animate-slide-in-right {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.2s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-11 {
    width: 2.75rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-11 {
    height: 2.75rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-48 {
    height: 12rem;
}

.h-64 {
    height: 16rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.-mx-4 {
    margin-left: -1rem;
    margin-right: -1rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pr-12 {
    padding-right: 3rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-foreground {
    color: hsl(var(--foreground));
}




.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-accent-foreground {
    color: hsl(var(--accent-foreground));
}

.bg-card {
    background-color: hsl(var(--card));
}



.bg-muted {
    background-color: hsl(var(--muted));
}

.bg-primary\/10 {
    background-color: hsla(var(--primary), 0.1);
}

.bg-accent\/50 {
    background-color: hsla(var(--accent), 0.5);
}

.bg-background\/80 {
    background-color: hsla(var(--background), 0.8);
}

.bg-background\/95 {
    background-color: hsla(var(--background), 0.95);
}

.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-border {
    border-color: hsl(var(--border));
}

.border-primary {
    border-color: hsl(var(--primary));
}

.border-transparent {
    border-color: transparent;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-t-3xl {
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.rounded-l-3xl {
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.shadow-card {
    --tw-shadow-color: hsl(var(--card));
    --tw-shadow: var(--tw-shadow-colored);
}

.shadow-floating {
    box-shadow: var(--shadow-floating);
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

.right-4 {
    right: 1rem;
}

.bottom-0 {
    bottom: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.inset-x-4 {
    left: 1rem;
    right: 1rem;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.active\:scale-95:active {
    transform: scale(0.95);
}

.leading-relaxed {
    line-height: 1.8;
}

.whitespace-nowrap {
    white-space: nowrap;
}

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

.flex-1 {
    flex: 1 1 0%;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.pointer-events-none {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.max-w-\[200px\] {
    max-width: 200px;
}

.resize-none {
    resize: none;
}

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

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.-top-1 {
    top: -0.25rem;
}

.-right-1 {
    right: -0.25rem;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

.top-1\/2 {
    top: 50%;
}

.top-\[72px\] {
    top: 72px;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.opacity-50 {
    opacity: 0.5;
}

.max-h-80vh {
    max-height: 80vh;
}

.max-h-85vh {
    max-height: 85vh;
}

/* Embla Carousel */
.embla {
    overflow: hidden;
}

.embla__container {
    display: flex;
    height: 400px;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* Toast Notifications */
.toast {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    border-color: hsl(var(--destructive));
}

.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.toast.error .toast-icon {
    background-color: hsl(var(--destructive));
}

.toast-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Disabled States */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Gradients */
.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/30 {
    --tw-gradient-from: rgba(0, 0, 0, 0.3);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-black\/50 {
    --tw-gradient-from: rgba(0, 0, 0, 0.5);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.service-type i {
    font-weight: normal;
    vertical-align: middle;
    padding: 6px;
    border-radius: 6px;
    line-height: 17px;
}

.list {
    list-style-type: none;
}

.list .list-item {
    .d-flex {
        gap: 1rem;
    }
}