/* ========================================
   RESET & VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B5E3C;
    --primary-dark: #5A3A2A;
    --primary-light: #C9A87C;
    --secondary: #2C1810;
    --dark: #1A0F0A;
    --light: #FFF8F0;
    --gray-bg: #F8F5F0;
    --text-dark: #2C1810;
    --text-light: #5A4A3A;
    --white: #FFFFFF;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--gray-bg);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #E8D9CC;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
/* .highlight {
    /* color: var(--primary); */
/* } */ */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(139, 94, 60, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 94, 60, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    /* width: 50px; */
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--text-dark);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 10px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    /* color: var(--text-dark); */
    
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: rgba(139, 94, 60, 0.1);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light) 0%, #F0E6D8 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ========================================
   BRANCHES PREVIEW
   ======================================== */
.branches-preview {
    padding: 80px 0;
    background: white;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.branch-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.branch-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.branch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.branch-card:hover .branch-img img {
    transform: scale(1.08);
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.branch-info {
    padding: 20px;
}

.branch-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.branch-info p {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.whatsapp-btn, .map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn {
    background: var(--whatsapp);
    color: white;
}

.whatsapp-btn:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.map-btn {
    background: #4285F4;
    color: white;
}

.map-btn:hover {
    background: #3367D6;
    transform: translateY(-2px);
}

/* ========================================
   MENU PREVIEW
   ======================================== */
.menu-preview {
    padding: 80px 0;
    background: var(--gray-bg);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 8px 24px;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--primary);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.menu-img {
    height: 180px;
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .menu-img img {
    transform: scale(1.08);
}

.menu-info {
    padding: 16px;
    text-align: center;
}

.menu-info h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.menu-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.menu-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* ========================================
   PAGE HEADER (Branches & Menu)
   ======================================== */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--light) 0%, #F0E6D8 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
}

/* ========================================
   BRANCHES PAGE
   ======================================== */
.branches-page {
    padding: 60px 0;
}

.branches-grid-full {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.branch-card-full {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.branch-card-full:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.branch-img-full {
    flex: 1;
    min-height: 350px;
}

.branch-img-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-info-full {
    flex: 1;
    padding: 30px 30px 30px 0;
}

.branch-info-full h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.branch-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.branch-details {
    background: rgba(139, 94, 60, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.branch-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-details a {
    color: var(--whatsapp);
    text-decoration: none;
}

.branch-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================================
   MENU PAGE
   ======================================== */
.menu-page {
    padding: 60px 0;
}

.menu-categories-full {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cat-tab {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 10px 28px;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cat-tab.active,
.cat-tab:hover {
    background: var(--primary);
    color: white;
}

.menu-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--secondary);
    color: #DDD;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col ul {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #DDD;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* ========================================
   SCROLL TOP BUTTON
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .branch-card-full {
        flex-direction: column;
    }
    
    .branch-img-full {
        min-height: 250px;
    }
    
    .branch-info-full {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--secondary);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.1);
        margin-top: 10px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-categories,
    .menu-categories-full {
        gap: 10px;
    }
    
    .cat-btn, .cat-tab {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid, .menu-grid-full {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

/* ========================================
   MODERN ENHANCEMENTS - MARÉ SOCIAL STYLE
   ======================================== */

/* Hero Section Enhancement */
.hero {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-text h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* Glassmorphism Effect for Cards */
.branch-card, .menu-item {
    backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.branch-card:hover, .menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.15);
}

/* Image Overlay Effect */
.branch-img::after, .menu-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.branch-card:hover .branch-img::after,
.menu-item:hover .menu-img::after {
    opacity: 1;
}

/* Animated Border Effect for Buttons */
.btn-outline {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: white;
    border-color: var(--primary);
}

/* Modern Stats Section */
.stat-item {
    position: relative;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.8rem;
    transition: transform 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Section Header Enhancement */
.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

/* Menu Category Buttons - Modern Style */
.cat-btn, .cat-tab {
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cat-btn::before, .cat-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.cat-btn:hover::before, .cat-tab:hover::before,
.cat-btn.active::before, .cat-tab.active::before {
    width: 100%;
}

.cat-btn:hover, .cat-tab:hover,
.cat-btn.active, .cat-tab.active {
    color: white;
    border-color: var(--primary);
}

/* Footer Enhancement */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Reveal Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Price Tag Enhancement */
.menu-price {
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Branch Badge Enhancement */
.branch-badge {
    backdrop-filter: blur(5px);
    background: rgba(139, 94, 60, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive Touch Ups */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Custom Cursor (Optional) */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(139, 94, 60, 0.2);
    border-color: var(--primary-light);
}

:root {
    /* Existing variables... */
    
    /* New modern variables */
    --gold-gradient: linear-gradient(135deg, #C9A87C 0%, #8B5E3C 100%);
    --dark-gradient: linear-gradient(135deg, #2C1810 0%, #1A0F0A 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ========================================
   HERO SECTION - FULLSCREEN BACKGROUND IMAGE
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; /* إزالة الخلفية السابقة */
    overflow: hidden;
}

/* صورة الخلفية الكاملة */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
}

/* طبقة تراكب لتحسين قراءة النص */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* محتوى الهيرو */
.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-text h1 .highlight {
    /* color: var(--primary-light); */
    background: linear-gradient(135deg, var(--primary-light), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 35px;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* تعديلات الأزرار لتتناسب مع الخلفية الداكنة */
.hero-buttons .btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-buttons .btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.hero-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* إخفاء صورة الهيرو الجانبية القديمة */
.hero-image {
    display: none;
}

/* تأثير حركة عند التمرير */
.hero-text {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين للجوال */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   MAIN BRANCH INFO SECTION - NEW
   ======================================== */
.main-branch-info {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFF8F0 100%);
}

.branch-info-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.12);
}

.branch-info-header {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: white;
}

.branch-info-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* .branch-info-header .highlight {
    color: var(--primary-light);
} */

.branch-info-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.branch-info-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 30px;
}

.branch-description, .branch-location, .branch-contact, .branch-social {
    padding: 20px;
}

.branch-description {
    grid-column: span 2;
    border-bottom: 1px solid #eee;
}

.branch-location {
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.branch-contact {
    border-bottom: 1px solid #eee;
}

.branch-social {
    grid-column: span 2;
    text-align: center;
}

.branch-info-content h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-info-content h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.branch-description p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.location-map {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.map-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.contact-item i {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 94, 60, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1rem;
}

.contact-item a, .contact-item span {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon i {
    width: 55px;
    height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon.facebook i {
    background: #1877f2;
    color: white;
}

.social-icon.instagram i {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    color: white;
}

.social-icon.whatsapp i {
    background: #25D366;
    color: white;
}

.social-icon.tiktok i {
    background: #010101;
    color: white;
}

.social-icon:hover i {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .branch-info-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .branch-description {
        grid-column: span 1;
    }
    
    .branch-location {
        border-left: none;
        border-bottom: 1px solid #eee;
    }
    
    .branch-social {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .social-icons {
        gap: 15px;
    }
    
    .social-icon i {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .branch-info-header h2 {
        font-size: 1.5rem;
    }
}
/* ========================================
   MAIN BRANCH INFO SECTION - ZAMALEK BRANCH
   ======================================== */
.main-branch-info {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFF8F0 100%);
    position: relative;
    overflow: hidden;
}

.branch-info-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.branch-info-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px rgba(0,0,0,0.15);
}

/* الجانب الأيسر - المعلومات (أكبر) */
.branch-info-text {
    flex: 1.2;
    padding: 50px 40px;
    background: white;
}

.branch-tag {
    display: inline-block;
    background: rgba(139, 94, 60, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.branch-info-text h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.branch-info-text h2 .highlight {
    /* color: var(--primary); */
    position: relative;
    display: inline-block;
}

.branch-info-text h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(139, 94, 60, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.branch-description-main {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.branch-details-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background: #F8F5F0;
    padding: 20px;
    border-radius: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.detail-item:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.detail-item div {
    display: flex;
    flex-direction: column;
}

.detail-item strong {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span, .detail-item a {
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.detail-item a:hover {
    color: var(--primary);
}

/* روابط التواصل الاجتماعي */
.social-links-main {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    border-radius: 50%;
    color: var(--secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* زر عرض المزيد */
.btn-more-branches {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-more-branches:hover {
    background: var(--primary);
    color: white;
    gap: 15px;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 94, 60, 0.3);
}

/* الجانب الأيمن - الصورة (أصغر) */
.branch-info-image {
    flex: 0.9;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.branch-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-info-wrapper:hover .branch-info-image img {
    transform: scale(1.05);
}

/* تحسين للشاشات المتوسطة */
@media (max-width: 1200px) {
    .branch-info-text {
        padding: 40px 30px;
    }
    
    .branch-info-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .branch-info-wrapper {
        flex-direction: column;
    }
    
    .branch-info-text {
        flex: 1;
        order: 2;
        padding: 40px;
    }
    
    .branch-info-image {
        flex: 1;
        width: 100%;
        min-height: 350px;
        order: 1;
    }
    
    .branch-info-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .branch-info-text {
        padding: 25px;
    }
    
    .branch-info-text h2 {
        font-size: 1.5rem;
    }
    
    .detail-item {
        gap: 10px;
    }
    
    .detail-item i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn-more-branches {
        width: 100%;
        justify-content: center;
    }
    
    .social-links-main {
        justify-content: center;
    }
}

.location-link {
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.location-link:hover {
    color: var(--primary);
}

.location-link i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ========================================
   BRANCHES PAGE - SLIDE EFFECT
   ======================================== */

/* ✅ تنسيق البطاقات الأساسي */
.branch-card-full {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 50px;
}

.branch-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ✅ تنسيق الصورة */
.branch-img-full {
    flex: 1 1 45%;
    min-height: 350px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.branch-img-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-card-full:hover .branch-img-full img {
    transform: scale(1.05);
}

/* ✅ تنسيق المعلومات */
.branch-info-full {
    flex: 1 1 45%;
    padding: 35px 40px;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   SLIDE DIRECTION - ODD/EVEN
   ======================================== */

/* ✅ البطاقات الفردية (1, 3, 5...):
   الصورة من اليمين → الوصف من الشمال */
.branch-card-full:nth-child(odd) .branch-img-full {
    order: 2;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1), opacity 0.6s ease;
}

.branch-card-full:nth-child(odd) .branch-info-full {
    order: 1;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1), opacity 0.6s ease;
}

/* ✅ البطاقات الزوجية (2, 4, 6...):
   الصورة من الشمال → الوصف من اليمين */
.branch-card-full:nth-child(even) .branch-img-full {
    order: 1;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1), opacity 0.6s ease;
}

.branch-card-full:nth-child(even) .branch-info-full {
    order: 2;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1), opacity 0.6s ease;
}

/* ✅ عند ظهور البطاقة (إضافة كلاس visible) */
.branch-card-full.visible .branch-img-full,
.branch-card-full.visible .branch-info-full {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* ✅ تحسين التجاوب للجوال */
@media (max-width: 992px) {
    .branch-img-full,
    .branch-info-full {
        flex: 1 1 100%;
        min-height: 280px;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
    
    .branch-img-full {
        order: 1 !important;
    }
    
    .branch-info-full {
        order: 2 !important;
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .branch-img-full {
        min-height: 200px;
    }
    
    .branch-info-full {
        padding: 20px;
    }
    
    .branch-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .branch-buttons a {
        width: 100%;
        justify-content: center;
    }
    
    .branch-details p {
        flex-wrap: wrap;
        word-break: break-word;
    }
}

/* ✅ الصورة على اليمين والكلام على اليسار */
.branch-info-wrapper .branch-info-image {
    order: 2;
}

.branch-info-wrapper .branch-info-text {
    order: 1;
}

@media (max-width: 992px) {
    .branch-card-full {
        flex-direction: column;
    }
    .branch-card-full:nth-child(odd) .branch-img-full,
    .branch-card-full:nth-child(even) .branch-img-full {
        order: 1;  /* الصورة فوق */
    }
    .branch-card-full:nth-child(odd) .branch-info-full,
    .branch-card-full:nth-child(even) .branch-info-full {
        order: 2;  /* الكلام تحت */
    }
}

.highlight {
    color: #fff;
    font-weight: 700;
    animation: whiteGlow 2.5s ease-in-out infinite;
}

@keyframes whiteGlow {
    0%, 100% {
        text-shadow:
            0 0 5px rgba(255,255,255,.4),
            0 0 10px rgba(255,255,255,.3);
    }

    50% {
        text-shadow:
            0 0 10px rgba(255,255,255,.8),
            0 0 20px rgba(255,255,255,.6),
            0 0 30px rgba(255,255,255,.4);
    }
}

/* ============================================================
   PAGE HEADER - بخلفية صورة (تملا المساحة كاملة)
   ============================================================ */
.page-header {
    /* ⬇️ حط هنا رابط الصورة اللي تختارها ⬇️ */
    background-image: url('images/Deals-background.png');
    
    /* أهم حاجة عشان الصورة تملا المساحة */
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* عشان تاخد عرض كامل وارتفاع مناسب */
    width: 100%;
    min-height: 350px;
    
    /* لو عاوزها تثبت مع السكرول */
    /* background-attachment: fixed; */
    
    position: relative;
    z-index: 0;
    
    /* عشان النص يبقى في النص */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الطبقة الشفافة السودا */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* النصوص */
.page-header .container {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    width: 100%;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-header h1 .highlight {
    /* color: #f9c74f; */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-header p {
    font-size: 20px;
    opacity: 0.95;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .page-header {
        min-height: 280px;
    }
    
    .page-header .container {
        padding: 35px 15px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .page-header {
        min-height: 220px;
    }
    
    .page-header .container {
        padding: 25px 15px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
}