/* =========================================
   LE CAFIO - Premium Restaurant & Cafe
   Mobile-First CSS
========================================= */

:root {
    /* Brand Colors */
    --clr-gold: #C69A4A;
    --clr-gold-hover: #D8AA5A;
    --clr-coffee: #24150E;
    --clr-black: #0D0B09;
    --clr-cream: #F8F3EC;
    --clr-white: #FFFFFF;
    --clr-gray: #AAAAAA;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--clr-black);
    color: var(--clr-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.dark-section {
    background-color: var(--clr-coffee);
}

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

.gold-text {
    color: var(--clr-gold);
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-gold {
    background-color: var(--clr-gold);
    color: var(--clr-black);
}

.btn-gold:hover {
    background-color: var(--clr-gold-hover);
    transform: translateY(-2px);
}

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

.btn-outline-gold:hover {
    background-color: var(--clr-gold);
    color: var(--clr-black);
}

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

/* Utilities */
.desktop-only {
    display: none;
}

.desktop-only-flex {
    display: none;
}

.desktop-hide {
    display: block;
}

/* =========================================
   Header & Navigation
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(13, 11, 9, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(198, 154, 74, 0.2);
}

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

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.desktop-nav, .desktop-reserve-btn {
    display: none; /* Hidden on mobile */
}

/* Hamburger Menu */
.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--clr-gold);
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-cream);
}

.mobile-link:hover, .mobile-link:focus {
    color: var(--clr-gold);
}

.mobile-socials {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.mobile-socials a {
    color: var(--clr-gold);
    font-size: 1.5rem;
}

/* =========================================
   Sticky Mobile Actions
========================================= */
.sticky-socials {
    position: fixed;
    right: 15px;
    bottom: 80px; /* Above reserve button */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.sticky-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform var(--transition-fast);
}

.sticky-btn:hover {
    transform: scale(1.1);
}

.whatsapp { background-color: #25D366; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.facebook { background-color: #1877F2; }



/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient only at the top to make header visible, fading out quickly so it doesn't affect the coffee cup */
    background: linear-gradient(to bottom, rgba(13,11,9,0.8) 0%, rgba(13,11,9,0) 25%);
}

.hero-title {
    font-size: 2.5rem;
    color: var(--clr-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-cream);
    margin-bottom: 2rem;
}

/* Steam Animation */
.steam-container {
    position: absolute;
    top: 50%;    /* Adjust this to move the steam up or down */
    left: 15%;   /* Adjust this to move the steam left or right */
    width: 150px;
    height: 150px;
    z-index: 1;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.steam {
    position: relative;
    bottom: 0;
    display: block;
    margin: 0 2px 50px;
    min-width: 8px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    animation: animateSteam 5s linear infinite;
    opacity: 0;
    filter: blur(8px);
    animation-delay: calc(var(--i) * -0.5s);
}

@keyframes animateSteam {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }
    15% {
        opacity: 0.8; /* Subtle steam opacity */
    }
    50% {
        transform: translateY(-100px) scaleX(3);
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateY(-200px) scaleX(5);
    }
}

/* =========================================
   About Section
========================================= */
.about-section {
    padding-bottom: 2rem;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   Menu Section
========================================= */
.section-subtitle {
    font-family: var(--font-body);
    color: var(--clr-gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.menu-tabs {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.menu-tabs::-webkit-scrollbar {
    display: none;
}

.menu-tab {
    background: transparent;
    border: 1px solid var(--clr-gray);
    color: var(--clr-cream);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.menu-tab.active {
    background: var(--clr-gold);
    color: var(--clr-black);
    border-color: var(--clr-gold);
}

.menu-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.menu-category.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed rgba(198, 154, 74, 0.3);
    padding-bottom: 1rem;
}

.menu-item-info {
    padding-right: 1rem;
}

.menu-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--clr-cream);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    background-color: var(--clr-gold);
    color: var(--clr-black);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--clr-gray);
}

.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-gold);
    white-space: nowrap;
}

/* =========================================
   Gallery Section
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 11, 9, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--clr-gold);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--clr-cream);
    text-decoration: none;
    cursor: pointer;
}

/* =========================================
   Reservation Section
========================================= */

.reservation-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.reservation-form {
    background-color: var(--clr-black);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(198, 154, 74, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.row {
    display: flex;
    gap: 1rem;
}

.col {
    flex: 1;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--clr-cream);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-success {
    text-align: center;
    padding: 2rem;
    background-color: rgba(37, 211, 102, 0.1);
    border: 1px solid #25D366;
    border-radius: 8px;
    margin-top: 1rem;
    color: #25D366;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

/* =========================================
   Info & Location Section
========================================= */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.hours-list .day {
    font-weight: 500;
}

.hours-list .time {
    color: var(--clr-gold);
}

.address-details p {
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--clr-gold);
    font-size: 1.2rem;
}

.contact-link:hover {
    text-decoration: underline;
}

/* =========================================
   Instagram Section
========================================= */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 2rem;
}

.ig-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

/* =========================================
   Reviews Section
========================================= */
.reviews-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 280px;
    background-color: var(--clr-coffee);
    padding: 2rem;
    border-radius: 8px;
    scroll-snap-align: center;
    border-left: 3px solid var(--clr-gold);
}

.stars {
    color: var(--clr-gold);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.review-author {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-gold);
}

.review-author span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--clr-gray);
    font-weight: normal;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: #050403;
    padding: 4rem 0 0 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(198, 154, 74, 0.5);
    border-radius: 50%;
    color: var(--clr-gold);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--clr-gold);
    color: var(--clr-black);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
    color: var(--clr-gold);
}

.footer-contact h3, .footer-links h3 {
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-contact ul li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--clr-gold);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--clr-black);
    border-top: 1px solid rgba(198, 154, 74, 0.1);
    font-size: 0.9rem;
    color: var(--clr-gray);
}


/* =========================================
   Desktop & Tablet Media Queries
========================================= */

@media (min-width: 768px) {
    .desktop-only { display: block; }
    .desktop-only-flex { display: flex; flex-direction: column; }
    .desktop-hide { display: none; }
    .steam-container { display: none; }
    
    .section { padding: 6rem 0; }
    
    /* Header */
    .logo img { height: 50px; }
    .hamburger { display: none; }
    
    .desktop-nav { display: block; }
    .desktop-nav ul {
        display: flex;
        gap: 2rem;
    }
    
    .desktop-nav a {
        font-family: var(--font-body);
        font-weight: 500;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .desktop-nav a:hover {
        color: var(--clr-gold);
    }
    
    .desktop-reserve-btn { display: inline-block; }
    
    /* Hero */
    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        max-width: 800px;
    }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.5rem; }
    
    /* About */
    .about-container {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    .about-image-wrapper { flex: 1; }
    .about-content { flex: 1; }
    .section-title { font-size: 3rem; }
    
    /* Menu */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 4rem;
    }
    .menu-tabs { justify-content: center; }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .gallery-item img { height: 250px; }
    
    /* Reservation */
    .reservation-container {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    .reservation-content { flex: 1; }
    .reservation-form-wrapper { flex: 1.2; }
    
    /* Info / Location */
    .info-container {
        flex-direction: row;
        gap: 4rem;
    }
    .info-box { flex: 1; }
    
    /* Instagram */
    .ig-grid { grid-template-columns: repeat(4, 1fr); }
    .ig-grid img { height: 250px; }
    
    /* Reviews */
    .reviews-slider { justify-content: center; }
    .review-card { min-width: 300px; max-width: 350px; }
    
    /* Footer */
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-brand { flex: 2; max-width: 400px; }
    .footer-links { flex: 1; }
    .footer-contact { flex: 1; }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
