/* -------------------------------------------------------------
 * Qoot & Qahwe | قوت وقهوة - Landing Page Stylesheet
 * Brand Aesthetic: Warm, cozy, premium neighborhood café/bakery
 * ------------------------------------------------------------- */

/* 1. Design Tokens & CSS Custom Properties */
:root {
    /* Color Palette */
    --color-bg-base: #FAF6F0;       /* Soft Warm Cream */
    --color-primary: #5C3A21;       /* Rich Chocolate Brown */
    --color-primary-rgb: 92, 58, 33;
    --color-secondary: #C68B59;     /* Soft Terracotta / Warm Apricot */
    --color-secondary-rgb: 198, 139, 89;
    --color-text: #3D261C;          /* Dark Charcoal Cocoa */
    --color-text-muted: #6E5B52;    /* Soft Muted Cocoa */
    --color-card-bg: rgba(255, 255, 255, 0.65);
    --color-card-border: rgba(92, 58, 33, 0.08);
    --color-white: #FFFFFF;
    
    /* Typography Scales */
    --font-heading-ar: 'Cairo', sans-serif;
    --font-body-ar: 'Tajawal', sans-serif;
    --font-heading-en: 'Playfair Display', serif;
    --font-body-en: 'Inter', 'Montserrat', sans-serif;
    
    /* Layout & Spacing */
    --container-max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    
    /* Shadows & Transitions */
    --shadow-soft: 0 4px 20px rgba(92, 58, 33, 0.04);
    --shadow-hover: 0 12px 30px rgba(92, 58, 33, 0.08);
    --shadow-nav: 0 2px 15px rgba(92, 58, 33, 0.05);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.2s ease-out;
}

/* 2. Global Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--color-bg-base);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Smooth anti-aliased font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Language & Typography Management */
html[lang="ar"] body {
    font-family: var(--font-body-ar);
}

html[lang="en"] body {
    font-family: var(--font-body-en);
}

/* Title Font overrides */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
    font-family: var(--font-heading-ar);
    font-weight: 700;
    line-height: 1.3;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
    font-family: var(--font-heading-en);
    font-weight: 700;
    line-height: 1.25;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
}

p {
    color: var(--color-text-muted);
}

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

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

/* 3. Global Layout & Components */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

/* Let's adjust font weight/family for buttons in English vs Arabic */
html[lang="ar"] .btn {
    font-family: var(--font-body-ar);
}
html[lang="en"] .btn {
    font-family: var(--font-body-en);
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(198, 139, 89, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(92, 58, 33, 0.05);
    transform: translateY(-3px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badges & Accents */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(198, 139, 89, 0.1);
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--border-radius-pill);
    margin-bottom: 20px;
    border: 1px solid rgba(198, 139, 89, 0.2);
}

.section-header {
    margin-bottom: 48px;
}

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

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
}

.section-sub {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Image styling with decorative outlines */
.image-wrapper {
    position: relative;
    border-radius: 120px 120px 16px 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

/* Image details */
.image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-border-deco {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 105px 105px 8px 8px;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 2;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(92, 58, 33, 0) 60%, rgba(92, 58, 33, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.image-wrapper:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.image-wrapper:hover .image-border-deco {
    border-color: var(--color-secondary);
    transform: scale(0.98);
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    color: var(--color-primary);
    opacity: 0.05;
    transition: var(--transition-smooth);
}

.shape-1 {
    width: 45px;
    height: 45px;
    top: 12%;
    left: 8%;
    animation: float 14s ease-in-out infinite alternate;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 45%;
    right: 5%;
    animation: float 18s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: 12%;
    animation: float 12s ease-in-out infinite alternate;
}

.shape-4 {
    width: 55px;
    height: 55px;
    top: 75%;
    right: 8%;
    animation: float 16s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-20px) rotate(15deg) scale(1.05);
    }
    100% {
        transform: translateY(0) rotate(-10deg) scale(0.95);
    }
}

/* 4. Frosted Glass Header / Navbar */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(250, 246, 240, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(92, 58, 33, 0.06);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(250, 246, 240, 0.9);
    box-shadow: var(--shadow-nav);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
    height: 65px;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.logo-accent {
    font-family: var(--font-heading-en);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Nav Links */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-secondary);
    transition: var(--transition-quick);
    border-radius: var(--border-radius-pill);
}

/* Flip link direction for RTL/LTR active indicator */
html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

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

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

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

/* Language Toggle Switch Button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1.5px solid var(--color-card-border);
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    border-color: var(--color-secondary);
    background-color: var(--color-bg-base);
    color: var(--color-secondary);
    transform: translateY(-1px);
}

.lang-icon {
    stroke-width: 2.2px;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-pill);
    transition: var(--transition-quick);
}

/* Hamburger active transformation */
.mobile-menu-toggle[aria-expanded="true"] .bar-1 {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .bar-2 {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 246, 240, 0.98);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.mobile-drawer.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.mobile-nav-link:hover {
    color: var(--color-secondary);
}

/* 5. Hero Section */
.hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Extra letter height and spacing balance for Arabic script in titles */
html[lang="ar"] .hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.35;
}

.hero-sub {
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    border-radius: 160px 160px 16px 16px;
}

/* Adjust mobile layout order */
.order-mobile-1 { order: 1; }
.order-mobile-2 { order: 2; }

/* 6. About Us Section */
.story-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: rgba(92, 58, 33, 0.02);
}

.story-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

.story-features {
    display: flex;
    gap: 24px;
    margin-top: 36px;
}

.feature-item {
    flex: 1;
    background-color: var(--color-white);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1.5px solid var(--color-card-border);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.story-image-wrapper {
    border-radius: 16px 16px 160px 160px;
}

/* Flip border radii for LTR/RTL aesthetics in story image */
html[dir="ltr"] .story-image-wrapper {
    border-radius: 160px 160px 16px 16px;
}
html[dir="ltr"] .hero-image-wrapper {
    border-radius: 16px 16px 160px 160px;
}

/* 7. Menu Section */
.menu-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--color-white);
    border: 1.5px solid var(--color-card-border);
    color: var(--color-text-muted);
    padding: 10px 24px;
    border-radius: var(--border-radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

html[lang="ar"] .tab-btn {
    font-family: var(--font-body-ar);
}
html[lang="en"] .tab-btn {
    font-family: var(--font-body-en);
    font-size: 0.85rem;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(92, 58, 33, 0.2);
}

.tab-btn.active {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Menu Grid Layout */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.menu-card {
    background-color: var(--color-card-bg);
    border: 1.5px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

/* RTL line border left/right alignment */
html[dir="rtl"] .menu-card::before {
    left: auto;
    right: 0;
}

.menu-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-white);
    box-shadow: var(--shadow-hover);
    border-color: rgba(198, 139, 89, 0.3);
}

.menu-card:hover::before {
    height: 100%;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.menu-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    white-space: nowrap;
}

/* Descriptions */
.menu-item-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Small badge indicator on cards */
.menu-item-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    background-color: rgba(92, 58, 33, 0.05);
    color: var(--color-primary);
    border-radius: var(--border-radius-sm);
}

/* Menu card CSS dynamic hides */
.menu-card.hidden {
    display: none !important;
}

/* Custom Animation for grid filtering */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-card.fade-in-active {
    animation: fadeInCard 0.4s ease-out forwards;
}

/* Note Banner at bottom */
.menu-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 20px 32px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.menu-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.banner-icon {
    font-size: 1.8rem;
    background-color: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.05rem;
}

/* 8. Contact & Map Section */
.contact-section {
    padding-top: 80px;
    padding-bottom: 90px;
    background-color: rgba(92, 58, 33, 0.02);
}

.contact-card {
    background-color: var(--color-white);
    border: 1.5px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(198, 139, 89, 0.1);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.contact-card:hover .card-icon {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

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

/* Highlighted Contact Card styling */
.highlight-card {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.highlight-card h3,
.highlight-card .card-highlight {
    color: var(--color-white);
}

.highlight-card .card-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.phone-link-wrapper,
.cliq-wrapper {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-label {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 4px;
}

.phone-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.phone-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.cliq-id {
    font-size: 1.15rem;
    font-weight: 700;
}

.highlight-card .btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    margin-top: 12px;
}

.highlight-card .btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Location Card Special CTA Button */
.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* Social icons section */
.social-wrapper {
    margin-top: 64px;
    text-align: center;
}

.social-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-white);
    padding: 12px 24px;
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-soft);
    border: 1.5px solid var(--color-card-border);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.social-link svg {
    color: var(--color-primary);
    transition: var(--transition-quick);
}

.social-link:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-3px);
}

.social-link:hover svg {
    color: var(--color-secondary);
    transform: scale(1.15);
}

/* 9. Footer Section */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
}

.copyright strong {
    color: var(--color-white);
}

/* 10. Floating Sticky actions for mobile */
.floating-quick-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 80;
    transition: var(--transition-smooth);
}

/* Dynamic flip position for RTL */
html[dir="rtl"] .floating-quick-actions {
    right: auto;
    left: 24px;
}

.quick-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.call-action {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.call-action:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

.menu-action {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius-pill);
    width: auto;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 700;
}

html[lang="ar"] .menu-action {
    font-family: var(--font-body-ar);
}
html[lang="en"] .menu-action {
    font-family: var(--font-body-en);
}

.menu-action:hover {
    background-color: var(--color-secondary);
    transform: scale(1.05);
}

/* 11. Intersection Observer Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 12. Responsive Design Styles (Mobile First Approach) */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hero-section {
        padding-top: 40px;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        border-radius: 120px 120px 16px 16px;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-image-wrapper img {
        height: 380px;
    }
    
    .story-image-wrapper {
        border-radius: 16px 16px 120px 120px;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .story-image-wrapper img {
        height: 380px;
    }
    
    html[dir="ltr"] .story-image-wrapper {
        border-radius: 120px 120px 16px 16px;
    }
    html[dir="ltr"] .hero-image-wrapper {
        border-radius: 16px 16px 120px 120px;
    }
    
    .story-content {
        text-align: center;
    }
    
    .story-features {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        text-align: start;
        gap: 16px;
        padding: 14px 20px;
    }
    
    .feature-icon {
        margin-bottom: 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Navbar Toggles */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    html[lang="ar"] .hero-title {
        font-size: 2.15rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .menu-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .menu-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .social-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    html[lang="ar"] .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .menu-card-header {
        flex-direction: column;
        gap: 4px;
    }
    
    .menu-item-price {
        align-self: flex-start;
    }
}
