/* ==========================================
   Story Cafe | قصة كافيه
   Luxurious Navy & Gold Responsive Stylesheet
   ========================================== */

/* --- CSS Variables --- */
:root {
    --primary-navy: #0a192f;
    --dark-navy: #060e1a;
    --light-navy: #172a45;
    --accent-gold: #d4af37;
    --gold-hover: #f3ca40;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --text-white: #ffffff;
    --text-muted: #a8b2d1;
    --text-dark: #1e293b;
    --bg-light: #f8fafc;
    --card-bg: #112240;
    --border-color: rgba(212, 175, 55, 0.2);
    --shadow-soft: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-arabic: 'Cairo', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-arabic);
    background-color: var(--primary-navy);
    color: var(--text-muted);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* --- Layout Container --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Utility Classes --- */
.text-gold {
    color: var(--accent-gold);
}

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

.section {
    padding: 90px 0;
}

.section-subtitle {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    color: var(--text-white);
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.title-divider::before,
.title-divider::after {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--accent-gold);
}

.title-divider span {
    padding: 0 15px;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--dark-navy);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* --- Header / Navbar --- */
.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header.scrolled {
    padding: 12px 0;
    background: var(--dark-navy);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-white);
}

.logo-gold {
    color: var(--accent-gold);
}

.en-logo {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 5px;
    font-weight: 400;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px 0;
    background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 14, 26, 0.85) 0%, rgba(10, 25, 47, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    color: var(--text-white);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-down a {
    color: var(--accent-gold);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- Features Section --- */
.features {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 15px auto;
}

.feature-card h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.img-frame {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.img-frame:hover img {
    transform: scale(1.05);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-gold);
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-white);
}

/* --- Menu Section --- */
.menu-image-container {
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.menu-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.menu-full-img {
    width: 100%;
    display: block;
    transition: var(--transition-smooth);
}

.menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 26, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    opacity: 0;
    transition: var(--transition-smooth);
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.menu-overlay i {
    font-size: 2.5rem;
}

.menu-image-wrapper:hover .menu-overlay {
    opacity: 1;
}

.menu-image-wrapper:hover .menu-full-img {
    transform: scale(1.03);
}

.highlights-title {
    color: var(--text-white);
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.menu-cat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cat-header i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.cat-header h4 {
    color: var(--text-white);
    font-size: 1.3rem;
}

.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.cat-list li:last-child {
    border-bottom: none;
}

.cat-list li strong {
    color: var(--accent-gold);
    font-size: 0.95rem;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.modal-content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--accent-gold);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 14, 26, 0.2) 0%, rgba(6, 14, 26, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--text-white);
}

.gallery-hover i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

/* --- Contact Section --- */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.card-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.card-icon.instagram {
    background: rgba(225, 48, 108, 0.15);
    color: #e1306c;
}

.card-icon.location {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
}

.contact-card h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-btn {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Footer --- */
.footer {
    background: var(--dark-navy);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 400px;
}

.footer-logo p {
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-social h4 {
    color: var(--text-white);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--dark-navy);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* --- Floating Buttons --- */
.floating-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
}

.float-whatsapp {
    background: #25d366;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* --- Back To Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-gold);
    color: var(--dark-navy);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-navy);
        padding: 80px 30px 30px 30px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.8);
        transition: var(--transition-smooth);
    }

    .navbar.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .hide-mobile {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
