/* ==================== Google Fonts ==================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ==================== CSS Variables ==================== */
:root {
    --primary: #A50034;
    --primary-dark: #520019;
    --whatsapp: #25D366;
    --font-sans: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    background-color: #FAFAFA;
}

::selection {
    background: var(--primary);
    color: white;
}

.ltr {
    direction: ltr;
    text-align: left;
}

.font-cairo {
    font-family: var(--font-sans);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== Animations ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

.pulse-whatsapp {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ==================== Professional Soft UI ==================== */
.shadow-soft {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.shadow-soft-hover:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.btn-primary-solid {
    background-color: var(--primary);
    color: white;
    border-radius: 9999px;
    /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 color-mix(in srgb, var(--primary) 40%, transparent);
}

.btn-primary-solid:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 25%, transparent);
    transform: translateY(-2px);
}

.btn-outline-solid {
    background-color: white;
    color: #111827;
    border: 1px solid #E5E7EB;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline-solid:hover {
    border-color: #D1D5DB;
    background-color: #F9FAFB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ==================== Navbar ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-home {
    background: transparent;
}

.navbar-home .navbar-brand-text,
.navbar-home .nav-link {
    color: #1f2937;
}

.navbar-home.scrolled .navbar-brand-text,
.navbar-home.scrolled .nav-link {
    color: #1f2937;
}

.navbar-inner {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-inner .navbar-brand-text,
.navbar-inner .nav-link {
    color: #1f2937;
}

.nav-link {
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#servicesDropdownWrap::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
}

.mobile-menu.active {
    max-height: 800px;
}

/* ==================== Fixed Elements ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #111827;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    background: #F9FAFB;
    transform: translateY(-3px);
}

.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* ==================== FAQ Accordion ==================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-toggle-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle-icon-wrap {
    background: var(--primary) !important;
    color: white;
}

/* ==================== Review Modal ==================== */
.review-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.review-modal-overlay.active {
    display: flex;
}

.review-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
}

/* ==================== Star Rating ==================== */
.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #facc15 !important;
}

/* ==================== Prose ==================== */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4B5563;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}


/* ==================== Animations ==================== */
@keyframes phone-ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

.animate-phone-ring {
    animation: phone-ring 2s cubic-bezier(.4, 0, .2, 1) infinite;
    display: inline-block;
}

@keyframes float-soft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.animate-float-soft {
    animation: float-soft 3s ease-in-out infinite;
}

.phone-call {
    max-width: 200px;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 5px;
}

.faq-item.active svg {
    color: #fff;
}

.filter-white {
    filter: brightness(0) invert(1);
}

.booking-success.active {
    display: flex !important;
}