/**
 * ==========================================
 * MASTER TEMPLATE 2: DA VITO PREMIUM SPA
 * Clean CSS, No Inlines, Elegant Italian Theme
 * ==========================================
 */

:root {
    --primary-color: #8b0000;    /* Deep Red Italian */
    --primary-dark: #5c0000;
    --accent-teal: #d4af37;      /* Gold/Mustard */
    --bg-body: #fdfbf7;          /* Off-white */
    --bg-white: #ffffff;
    --text-main: #2c1e16;        /* Charcoal Dark */
    --border-color: #e5e7eb;
    
    --radius: 8px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --container-max: 1200px;
    --transition: all 0.3s ease;
}

/* --- 1. RESETS & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.error-msg {
    text-align: center;
    padding: 100px 20px;
    color: var(--primary-color);
}

/* --- 2. PRE-LOADER --- */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    color: var(--primary-color);
}
.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- 3. PAGE TRANSITION --- */
main { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 4. HEADER & NAVIGATION --- */
#site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-text { color: var(--primary-color); }

#main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

#main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

#main-navigation a:hover { color: var(--accent-teal); }

.btn-lapor a {
    background: var(--accent-teal);
    color: var(--bg-white) !important;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.btn-lapor a:hover { background: var(--text-main); }

/* --- 5. HERO SECTION --- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 180px 0;
    color: var(--bg-white);
    text-align: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(92, 0, 0, 0.7), rgba(44, 30, 22, 0.8));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 4.5rem; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.4rem; max-width: 700px; margin: 0 auto 40px auto; font-style: italic; opacity: 0.95; }
.hero-actions { display: flex; justify-content: center; gap: 20px; }

.btn-primary, .btn-outline {
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.btn-primary { background: var(--bg-white); color: var(--text-main); }
.btn-outline { border: 2px solid var(--bg-white); color: var(--bg-white); }
.btn-primary:hover, .btn-outline:hover { transform: scale(1.05); }

/* --- 6. GLOBAL SECTIONS & GRIDS --- */
.section-padding { padding: 100px 0; }
.bg-white-section { background: var(--bg-white); }
.section-title { font-size: 3rem; text-align: center; margin-bottom: 20px; color: var(--text-main); }
.section-subtitle { text-align: center; margin-bottom: 50px; font-size: 1.1rem; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-bottom: 40px; }

/* --- 7. CARDS (Featured Menu) --- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 25px 20px; }
.card-title { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); }
.card-price { color: var(--primary-color); font-weight: bold; margin-bottom: 20px; font-size: 1.1rem; }
.btn-card {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-card:hover { background: var(--primary-color); color: var(--bg-white); }

.explore-link-wrapper { text-align: center; margin-top: 20px; }
.explore-link { color: var(--primary-color); font-weight: bold; font-size: 1.2rem; }
.explore-link:hover { color: var(--accent-teal); }

/* --- 8. TESTIMONIALS --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.testimonial-stars { color: var(--accent-teal); font-size: 1.3rem; margin-bottom: 15px; }
.testimonial-text { font-style: italic; margin-bottom: 20px; font-size: 1.05rem; }
.testimonial-author { color: var(--primary-color); }

/* --- 9. MENU PAGE (TABS & LIST) --- */
.page-title { text-align: center; font-size: 3.5rem; margin-bottom: 40px; }
.tabs-wrapper { width: 100%; overflow: hidden; margin-bottom: 50px; }
.tabs-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none; /* Firefox */
    cursor: grab;
}
.tabs-scroll::-webkit-scrollbar { display: none; } /* Chrome */
.tabs-scroll.active-drag { cursor: grabbing; }

.tab-btn {
    flex-shrink: 0;
    background: transparent;
    border: 2px solid var(--accent-teal);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--accent-teal); color: var(--bg-white); }

.menu-container { max-width: 900px; margin: 0 auto; background: var(--bg-white); padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow); }
.category-title { font-size: 2rem; margin: 20px 0 30px 0; border-bottom: 2px solid var(--accent-teal); display: inline-block; padding-bottom: 5px; color: var(--primary-color); }
.menu-item-card { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 0; border-bottom: 1px dashed #d1d5db; }
.menu-item-info { padding-right: 20px; }
.menu-item-title a { color: var(--text-main); font-size: 1.3rem; transition: var(--transition); }
.menu-item-title a:hover { color: var(--primary-color); }
.menu-item-desc { color: #6b7280; font-size: 0.95rem; margin-top: 5px; font-style: italic; }
.menu-item-price { font-weight: bold; font-size: 1.2rem; color: var(--primary-color); white-space: nowrap; }

/* --- 10. PRODUCT DETAIL PAGE --- */
.back-link { display: inline-block; margin-bottom: 30px; font-weight: bold; color: var(--text-main); }
.back-link:hover { color: var(--primary-color); }
.detail-container { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); box-shadow: var(--shadow); }
.detail-image-wrapper { background: #e5e7eb; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.detail-image { width: 100%; height: 100%; object-fit: cover; }
.detail-placeholder { font-size: 5rem; color: #9ca3af; }
.detail-content { padding: 60px 50px; }
.detail-title { font-size: 3rem; margin-bottom: 10px; color: var(--primary-color); }
.detail-price { font-size: 1.8rem; font-weight: bold; margin-bottom: 20px; color: var(--accent-teal); }
.detail-desc { font-size: 1.15rem; line-height: 1.8; margin-bottom: 40px; }
.btn-reserve { background: var(--primary-color); color: var(--bg-white); padding: 15px 40px; font-weight: bold; border-radius: 4px; display: inline-block; transition: var(--transition); }
.btn-reserve:hover { background: var(--text-main); }

/* --- 11. ABOUT PAGE --- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 60px; align-items: center; }
.about-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-title { font-size: 3.5rem; margin-bottom: 30px; color: var(--primary-color); }
.about-text { font-size: 1.15rem; margin-bottom: 40px; }
.stats-container { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 30px; }
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-family: serif; color: var(--accent-teal); font-weight: bold; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }

/* --- 12. CONTACT PAGE --- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; }
.contact-info-card { background: var(--bg-white); padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-heading { font-size: 2rem; margin-bottom: 20px; color: var(--primary-color); }
.contact-text { font-size: 1.1rem; margin-bottom: 15px; }
.contact-link { color: var(--accent-teal); font-weight: bold; }
.hours-row { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.map-iframe { width: 100%; height: 100%; min-height: 400px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- 13. FOOTER --- */
.copyright { background: #1a110c; color: #d1d5db; padding: 40px 0; text-align: center; }
.footer-title { font-family: serif; font-size: 1.5rem; margin-bottom: 10px; color: var(--accent-teal); }

/* --- 14. MOBILE RESPONSIVE --- */
.menu-checkbox, .hamburger { display: none; }

@media (max-width: 768px) {
    #site-header { height: 75px; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger span { display: block; width: 28px; height: 2px; background: var(--text-main); margin: 6px 0; transition: var(--transition); }
    
    #main-navigation {
        position: fixed; top: 75px; left: 0; width: 100%;
        background: var(--bg-white); padding: 40px 0; display: none;
        border-bottom: 3px solid var(--accent-teal);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    #main-navigation ul { flex-direction: column; align-items: center; gap: 25px; }
    .menu-checkbox:checked ~ #main-navigation { display: block; }
    
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: column; padding: 0 20px; }
    .page-title { font-size: 2.5rem; }
    .menu-container { padding: 30px 20px; }
    .stats-container { flex-direction: column; gap: 30px; }
    .detail-content { padding: 40px 25px; }
}
