/* ==================== OYYA CAFE - MAIN STYLESHEET ==================== */
/* Mobile-first, production-ready, RTL/LTR support */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-beige: #C8B8A7;
    --primary-green: #789585;
    --light-bg: rgba(255, 255, 255, 0.05);
    /* Subtle dark layer on green */
    --text-dark: #FFFFFF;
    /* High contrast text */
    --text-light: #f2f5f3;
    --accent-copper: #D4C4B3;
    /* Lighter beige for accents */
    --white: #789585;
    /* Global background to Green */
    --bg-gradient: linear-gradient(135deg, #789585 0%, #637a6d 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --true-white: #FFFFFF;
    --shadow-soft: rgba(0, 0, 0, 0.2);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.25);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-arabic: 'Tajawal', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    transition: opacity 0.3s ease;
}

html[dir="rtl"] body {
    font-family: var(--font-arabic);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(120, 149, 133, 0.9);
    /* Translucent Green */
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="rtl"] .header {
    left: auto;
    right: 0;
}

.header.scrolled {
    background: var(--primary-green);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition-smooth);
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-order {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(120, 149, 133, 0.2);
}

.btn-order:hover {
    background: #5a7566;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(120, 149, 133, 0.3);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--true-white);
}

.lang-toggle:hover {
    background: var(--primary-beige);
    border-color: var(--primary-beige);
}

.lang-toggle span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--true-white);
    transition: var(--transition-fast);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 184, 167, 0.15), rgba(26, 26, 26, 0.25));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

html[dir="rtl"] .hero-title {
    font-family: var(--font-arabic);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: var(--spacing-xl) 2rem;
    background: var(--light-bg);
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

html[dir="rtl"] .about-container {
    direction: rtl;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    letter-spacing: 0.02em;
}

html[dir="rtl"] .about-content h2 {
    font-family: var(--font-arabic);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #3a3a3a;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* ==================== MENU PREVIEW SECTION ==================== */
.menu-preview {
    padding: var(--spacing-xl) 2rem;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

html[dir="rtl"] .section-header h2 {
    font-family: var(--font-arabic);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 0.05em;
}

.menu-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.menu-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--glass-border);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.menu-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.menu-card:hover .menu-card-image img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-beige);
    color: var(--true-white);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

html[dir="rtl"] .card-badge {
    right: auto;
    left: 1.5rem;
}

.menu-card-content {
    padding: 2rem;
}

html[dir="rtl"] .menu-card-content {
    text-align: right;
}

.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

html[dir="rtl"] .menu-card-title {
    font-family: var(--font-arabic);
}

.menu-card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 2rem;
    min-height: 3.4em;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.menu-card-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-beige);
}

.btn-card-order {
    background: rgba(255, 255, 255, 0.1);
    color: var(--true-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-card-order:hover {
    background: var(--primary-beige);
    border-color: var(--primary-beige);
    transform: translateY(-2px);
}

/* ==================== CTA SECTION ==================== */
.cta {
    padding: var(--spacing-xl) 2rem;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--true-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

html[dir="rtl"] .cta h2 {
    font-family: var(--font-arabic);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-beige);
    color: var(--true-white);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-beige);
    transform: translateY(-3px);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 3rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--true-white);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--accent-copper);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.3);
}

.footer-info {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #888;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(100, 125, 110, 0.95);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    html[dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
        transition: right var(--transition-smooth);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        left: 0;
    }

    html[dir="rtl"] .nav-links.active {
        left: auto;
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        margin-top: 60px;
    }

    .about,
    .menu-preview,
    .cta {
        padding: var(--spacing-lg) 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus,
button:focus {
    outline: 3px solid var(--accent-copper);
    outline-offset: 3px;
}

/* ==================== PRINT STYLES ==================== */
@media print {

    .header,
    .menu-toggle,
    .lang-toggle {
        display: none;
    }

    .hero {
        margin-top: 0;
        page-break-after: always;
    }

    body {
        font-size: 12pt;
    }
}