:root {
    --primary: #880f0f;
    --primary-dark: #630808;
    --accent: #d4af37;
    --accent-light: #f3d37b;
    --text-dark: #1f2937;
    --primary-light: #a53232;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    overflow-x: hidden;
    background-color: #f9fafb
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: #f1f1f1
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 3rem
}

.section-title h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem
}

.section-title h2 span {
    color: var(--primary)
}

.section-title p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 10px auto 0;
    border-radius: 10px
}

/* Navbar */
#header {
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(136, 15, 15, 0.06);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9940;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: #ffffff;
    z-index: 9950;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu-content.open {
    transform: translateX(0);
}

.mm-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom-left-radius: 20px;
}

.mm-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 0 10px;
}

.mm-link i {
    width: 24px;
    text-align: center;
    color: #9ca3af;
    transition: 0.2s;
}

.mm-link:hover {
    background: #fff5f5;
    color: var(--primary);
    padding-right: 25px;
}

.mm-link:hover i {
    color: var(--primary);
}

.mm-social {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f9fafb;
    margin-top: auto;
}

.mm-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mm-social a:active {
    transform: scale(0.9);
}

/* CSS Pattern for fallback */
.bg-pattern {
    background-color: #880f0f;
    background-image: radial-gradient(#991b1b 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- TikTok Modern Styles --- */
.tiktok-slide {
    width: 300px;
    height: auto;
    display: flex;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.tiktok-slide.swiper-slide-active {
    opacity: 1;
}

.tiktok-wrapper {
    position: relative;
    width: 100%;
    height: 580px;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.tiktok-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.tiktok-poster {
    position: absolute;
    inset: 0;
    z-index: 10;
    background-color: #111;
}

.tiktok-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tiktok-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 12;
}

.play-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.tiktok-wrapper:hover .play-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.play-text {
    color: white;
    margin-top: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
}

.play-hint {
    color: #ddd;
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.8;
}

.tiktok-embed-container {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: black;
}

.tiktok-wrapper.playing .tiktok-poster,
.tiktok-wrapper.playing .play-overlay {
    display: none;
}

/* Swiper Arrows Style for TikTok */
.tiktok-nav-btn {
    color: #880f0f;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 50;
}

.tiktok-nav-btn:hover {
    background: #880f0f;
    color: white;
    transform: scale(1.1);
}

.tiktok-nav-btn::after {
    font-size: 20px;
    font-weight: bold;
}

/* Hero */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out
}

.hero-slide.active {
    opacity: 1
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
    position: absolute;
    inset: 0
}

.hero-slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 950px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4)
}

.hero-slide-content h2 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px
}

.hero-slide-content p {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    opacity: 0.95;
    margin-bottom: 40px;
    font-weight: 500
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start
}

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden
}

.fab-btn:hover {
    width: 150px;
    border-radius: 30px;
    justify-content: flex-start;
    padding-left: 18px
}

.fab-btn i {
    min-width: 24px;
    text-align: center;
    z-index: 2
}

.fab-btn span {
    position: absolute;
    left: 55px;
    white-space: nowrap;
    opacity: 0;
    font-size: 15px;
    font-weight: bold;
    transition: opacity 0.3s 0.1s;
    pointer-events: none
}

.fab-btn:hover span {
    opacity: 1
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E)
}

.fab-phone {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark))
}

.fab-pulse {
    animation: fab-pulse-anim 2s infinite
}

@keyframes fab-pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7)
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)
    }
}

/* Cards */
.doc-profile-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    margin-top: 80px
}

.doc-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px -12px rgba(136, 15, 15, 0.2)
}

.doc-avatar-box {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-top: -100px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12)
}

.doc-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-light);
    transition: border-color 0.3s
}

.doc-profile-card:hover .doc-avatar-box img {
    border-color: var(--primary)
}

.doc-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 5px
}

.doc-info .spec {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block
}

.doc-info .bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.btn-book-sm {
    background: var(--primary);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(136, 15, 15, 0.2)
}

.btn-book-sm:hover {
    background: var(--primary-dark);
    transform: scale(1.05)
}

/* SERVICES - MODERN REDESIGN V2 */
.serv-card {
    background: #fff;
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 40px;
    border: 1px solid #f0f0f0;
}

.serv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(136, 15, 15, 0.1);
    border-color: rgba(136, 15, 15, 0.1);
}

.serv-icon-float {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 20;
    border: 4px solid #fcfcfc;
    transition: all 0.4s ease;
}

.serv-icon-float i {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.serv-card:hover .serv-icon-float {
    transform: translateX(-50%) scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(136, 15, 15, 0.2);
}

.serv-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    position: relative;
    margin-top: 30px;
}

.serv-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.serv-card:hover .serv-img-wrapper img {
    transform: scale(1.1);
}

.serv-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
}

.serv-title {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.serv-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.serv-arrow {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: 0.3s;
    margin-top: 15px;
}

.serv-card:hover .serv-arrow {
    background: var(--primary);
    color: #fff;
}

/* Location Section (Refined) */
.branch-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff5f5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.map-frame {
    position: relative;
    width: 100%;
    height: 320px;
    background: #eee;
    border-top: 1px solid #f0f0f0;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(10%) contrast(1.05);
    transition: filter 0.3s;
}

.branch-card:hover .map-frame iframe {
    filter: none;
}

/* Reviews Section (Outside Footer) */
.review-slide {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 12px;
    font-size: 14px;
}

.review-quote {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.review-name {
    font-weight: 800;
    color: var(--text-dark);
}

#scrollToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    font-size: 20px;
    border: none
}

#scrollToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px)
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease
}

.reveal.active {
    opacity: 1;
    transform: translateY(0)
}