/*
Theme Name: Wahtores Arboga Custom
Author: Gemini
Description: Theme mô phỏng giao diện HTML cũ - Layout dạng hộp (Boxed) - Hamburger Menu Mobile.
Version: 3.3 (Perfect Responsive Grid)
*/

/* =========================================
   1. CẤU HÌNH CƠ BẢN
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px; 
    background-color: #e5e5e5; 
    color: #333;
}

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

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

/* =========================================
   2. KHUNG BAO NGOÀI (WRAPPER)
   ========================================= */
.site-wrapper {
    display: flex;
    max-width: 1000px; 
    margin: 30px auto; 
    min-height: calc(100vh - 60px); 
    background-color: #ffffff !important; 
    box-shadow: 0 0 20px rgba(0,0,0,0.2); 
    position: relative;
}

/* =========================================
   3. CỘT TRÁI (SIDEBAR)
   ========================================= */
.site-sidebar {
    width: 240px; 
    background-color: #10a586; 
    color: #fff;
    text-align: center;
    padding: 20px 15px;
    flex-shrink: 0; 
    display: flex;
    flex-direction: column;
    z-index: 100; 
}

.site-sidebar a { color: #fff; }

.branding h1.site-title {
    font-size: 24px; 
    font-weight: bold;
    margin: 0 0 15px 0;
    text-transform: lowercase;
    line-height: 1.2;
}

.menu-toggle {
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.contact-info {
    background-color: rgba(0,0,0,0.05); 
    padding: 15px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.info-block { 
    margin-bottom: 12px; 
    line-height: 1.4em; 
    font-size: 14px;
}
.info-block:last-child { margin-bottom: 0; }
.info-block p { margin: 0; padding: 0; }

.info-label { 
    color: #fff; 
    font-weight: normal;
    display: block;
    text-transform: uppercase; 
    font-size: 10px; 
    letter-spacing: 1px; 
    opacity: 0.7; 
    margin-bottom: 2px;
}

.info-block p, .info-block a {
    font-weight: bold;
    font-size: 15px;
}

.info-block:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.language-switch { 
    margin-top: 15px; 
    font-weight: bold; 
    font-size: 13px; 
    opacity: 0.9;
}
.language-switch p { letter-spacing: 2px; }

.main-navigation {
    margin-top: 10px;
    width: 100%;
}

.main-navigation ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.main-navigation li { 
    margin: 0; 
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

.main-navigation li:first-child {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-navigation a {
    font-size: 15px;
    text-transform: uppercase;
    display: block;
    padding: 12px 5px; 
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    letter-spacing: 1px; 
    transition: all 0.3s ease; 
    position: relative;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1); 
    padding-left: 10px; 
    color: #fff;
}

.main-navigation .current-menu-item > a {
    background-color: rgba(0,0,0,0.1); 
    border-left: 4px solid #fff; 
    padding-left: 15px;
}

.social-icons { margin-top: 20px; }

/* =========================================
   4. CỘT PHẢI (NỘI DUNG CHÍNH)
   ========================================= */
.site-content {
    flex-grow: 1;
    padding: 10px;
    background-color: #ffffff !important; 
    overflow: hidden;
}

.entry-content img, .page-image img { width: 100%; height: auto; display: block; }
article h2 { display: none; }

/* =========================================
   5. CẤU HÌNH SỐ CỘT (GRID CONFIG)
   ========================================= */
.photo-gallery-wrapper h2 { display: inline-block; margin: 15px 0 20px 0; font-size: 24px; }

/* --- [DESKTOP] MÁY TÍNH: 4 CỘT --- */
.photo-grid, .gallery { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    padding: 0 10px 40px 10px;
    margin-bottom: 30px;
}

.gallery br { display: none; }
.gallery-item { margin: 0 !important; width: 100% !important; max-width: 100% !important; }

.food-item, .gallery-item { 
    background: #fff; 
    padding: 5px; 
    border-radius: 4px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    text-align: center; 
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.food-item:hover, .gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.food-img-wrap img, .gallery-icon img { 
    width: 100%; 
    height: 130px; 
    object-fit: cover; 
    border-radius: 4px;
    display: block;
    border: none !important;
}

.food-title, .gallery-caption { 
    margin-top: 8px; 
    font-size: 13px; 
    color: #333; 
    text-transform: uppercase; 
    font-weight: normal;
}

/* =========================================
   6. MOBILE & TABLET (Responsive)
   ========================================= */
/* --- [TABLET] MÁY TÍNH BẢNG (Dưới 992px): 3 CỘT --- */
@media (max-width: 992px) {
    .site-wrapper {
        flex-direction: column;
        max-width: 100%; 
        margin: 0; 
        min-height: 100vh; 
        box-shadow: none;
    }
    
    .photo-grid, .gallery { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .site-sidebar {
        width: 100%;
        padding: 10px 20px;
        flex-direction: column;
        align-items: stretch;
        position: relative; 
        height: auto;
        border-bottom: 2px solid #0e8a70; 
    }

    .branding h1.site-title {
        border-bottom: none;
        margin: 0;
        text-align: left;
        font-size: 20px;
        padding: 0;
    }

    .branding-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-toggle { display: block; }

    .mobile-menu-container {
        display: none; 
        margin-top: 0;
        padding-top: 10px;
        animation: fadeIn 0.3s ease-in-out;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-menu-container.active { display: block; }

    .main-navigation { margin-top: 10px; }
    
    .main-navigation ul {
        display: flex;
        flex-direction: column; 
        align-items: stretch; 
        margin: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center; 
    }
    
    .main-navigation a {
        padding: 15px; 
        width: 100%;
    }
    
    .main-navigation a:hover { padding-left: 5px; }
    .main-navigation .current-menu-item > a { padding-left: 5px; border-left: none; border-bottom: 4px solid #fff; }

    .contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 10px;
        font-size: 13px;
        border: none;
        background: none;
        padding: 0;
    }
    
    .info-block { margin-bottom: 0; border-bottom: none !important; padding-bottom: 0 !important; }
}

/* --- [MOBILE] ĐIỆN THOẠI (Dưới 600px): 2 CỘT --- */
@media (max-width: 600px) {
    .photo-grid, .gallery { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }
}

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

/* =========================================
   7. TÙY CHỈNH LIGHTBOX (Màu Đen)
   ========================================= */
.sl-overlay { 
    background-color: rgba(0, 0, 0, 0.9) !important; 
}
.sl-wrapper .sl-close, 
.sl-wrapper .sl-navigation button, 
.sl-wrapper .sl-counter { 
    color: #ffffff !important; 
}