/* -----------------------------------------------------------
   style.css - Premium Cafe Theme
----------------------------------------------------------- */
:root {
    --bg-color: #FDFBF7; /* Warm Off-White */
    --bg-secondary: #F4F1EA; /* Beige */
    --bg-dark: #1a1a1a; /* Dark Espresso */
    --accent-primary: #A67B5B; /* Coffee Brown */
    --accent-hover: #8c664b;
    --text-main: #2A2A2A; 
    --text-muted: #6D6D6D;
    --white: #ffffff;
    --font-heading: 'Fraunces', serif;
    --font-body: 'Lato', sans-serif;
    --font-accent: 'Dancing Script', cursive;
    --radius: 16px;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 50px rgba(166, 123, 91, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* RESET & CORE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
.accent-text { font-family: var(--font-accent); color: var(--accent-primary); font-size: 1.4em; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
ul { list-style: none; }

/* UTILITIES */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-dark { background-color: var(--bg-dark); color: var(--white); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary { background-color: var(--accent-primary); color: var(--white); }
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--bg-dark); transition: var(--transition); z-index: -1;
}
.btn-primary:hover::before { width: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-outline { border: 2px solid var(--accent-primary); color: var(--accent-primary); background: transparent; }
.btn-outline:hover { background-color: var(--accent-primary); color: var(--white); }

/* --- HEADER & NAV FIX --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 25px 0; transition: var(--transition);
    color: var(--white); /* Default to white for dark hero images */
}
header.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    color: var(--text-main); /* Switch to dark on scroll */
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: inherit; }
.logo span { color: var(--accent-primary); }

.nav-links { display: flex; gap: 40px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; position: relative; color: inherit; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -6px; left: 0; background-color: var(--accent-primary);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: inherit; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); position: relative;
    overflow: hidden;
}
.parallax-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1920&q=80') center/cover;
    z-index: -1;
    transform: translateZ(-1px) scale(2); /* CSS Parallax trick */
}
.hero-overlay {
    position: absolute; inset: 0; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h1 { font-size: 4.5rem; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; font-weight: 300; }

/* --- 3D CARDS & GRID --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.tilt-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.1s ease; /* Fast for tilt */
    transform-style: preserve-3d;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}
.tilt-card:hover { box-shadow: var(--shadow-hover); }

.card-img { height: 280px; overflow: hidden; }
.card-img img { transition: transform 0.6s ease; }
.tilt-card:hover .card-img img { transform: scale(1.1); }
.card-content { padding: 30px; text-align: center; transform: translateZ(20px); }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- MENU PAGE STYLES --- */
.menu-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn {
    padding: 12px 30px; background: transparent; border: 1px solid #ddd;
    border-radius: 50px; cursor: pointer; transition: var(--transition);
    font-family: var(--font-heading); color: var(--text-muted);
}
.tab-btn.active, .tab-btn:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--white); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.menu-item { display: flex; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px dashed #e0e0e0; }
.menu-thumb { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.item-details h4 { font-size: 1.2rem; margin-bottom: 5px; display: flex; justify-content: space-between; }
.price { color: var(--accent-primary); font-weight: 700; }
.item-desc { font-size: 0.9rem; color: var(--text-muted); }

/* --- PROCESS SECTION --- */
.process-step { text-align: center; padding: 20px; }
.icon-box {
    width: 80px; height: 80px; background: var(--bg-secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: var(--accent-primary); font-size: 2rem;
    transition: var(--transition);
}
.process-step:hover .icon-box { background: var(--accent-primary); color: var(--white); transform: rotateY(180deg); }

/* --- TESTIMONIALS --- */
.testimonial-card {
    background: var(--bg-secondary); padding: 40px; border-radius: var(--radius);
    text-align: center; position: relative;
}
.quote-icon { font-size: 2rem; color: var(--accent-primary); opacity: 0.3; margin-bottom: 20px; }

/* --- CONTACT FORM --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); }
.contact-info { background: var(--bg-dark); color: var(--white); padding: 60px; }
.contact-form { background: var(--white); padding: 60px; }
.form-group { margin-bottom: 20px; }
.form-input {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px;
    background: #f9f9f9; transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--accent-primary); background: #fff; }

/* --- FOOTER --- */
footer { background: #111; color: #888; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer h3 { color: var(--white); margin-bottom: 25px; }
.footer ul li { margin-bottom: 12px; }
.footer a:hover { color: var(--accent-primary); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header { padding: 15px 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); }
    header .logo { color: var(--white); }
    .nav-links {
        position: fixed; top: 70px; left: 0; width: 100%; height: auto;
        background: var(--bg-color); flex-direction: column; padding: 40px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-150%);
        color: var(--text-main);
    }
    .nav-links.active { transform: translateY(0); }
    .mobile-toggle { display: block; color: var(--white); }
    .hero h1 { font-size: 2.8rem; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
/* -----------------------------------------------------------
   MOBILE POLISH (Add to bottom of style.css)
----------------------------------------------------------- */
@media (max-width: 768px) {
    /* 1. Tighter Spacing on Phones */
    .section-padding { padding: 60px 0; }
    
    /* 2. readable Hero Text */
    .hero h1 { font-size: 2.8rem; line-height: 1.1; }
    .hero p { font-size: 1.1rem; padding: 0 20px; }
    
    /* 3. Mobile Menu refinements */
    .nav-links {
        background: rgba(26, 26, 26, 0.98); /* Darker background for readability */
        backdrop-filter: blur(15px);
        padding-top: 80px;
        height: 100vh; /* Full screen menu */
        justify-content: flex-start;
        gap: 30px;
    }
    .nav-links a { font-size: 1.5rem; color: #fff; }
    
    /* 4. Disable 3D Tilt on mobile to save battery & smooth scroll */
    .tilt-card { transform: none !important; }
    
    /* 5. Stack the contact form */
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 40px 20px; }
}