/* Speedy's Grill - Official Responsive Stylesheet (Desktop & Mobile, EN-GB & RO) */
:root {
    --sidebar-bg: #111111;
    --accent-gold: #c59d5f;
    --accent-green: #243e19;
    --accent-amber: #e67e22;
    --text-light: #f4f4f4;
    --text-dark: #222222;
    --text-muted: #aaaaaa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
aside.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
    border-right: 1px solid #1c1c1c;
}

.brand-box {
    padding: 22px 16px 16px;
    text-align: center;
    border-bottom: 1px solid #222222;
}

.brand-box img {
    max-width: 230px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

/* Language Switcher Bar (EN-GB / RO) */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.lang-btn {
    background: #1d1d1d;
    color: #cccccc;
    border: 1px solid #3a3a3a;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
    background: var(--accent-gold);
    color: #111111;
    border-color: var(--accent-gold);
}

ul.side-nav {
    list-style: none;
    padding: 14px 0;
    flex-grow: 1;
}

ul.side-nav > li {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

ul.side-nav > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.96rem;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

ul.side-nav > li:hover > a,
ul.side-nav > li.active > a {
    background-color: var(--accent-green);
    color: #ffffff;
}

.arrow-right {
    font-size: 0.75rem;
    opacity: 0.6;
}

ul.submenu {
    list-style: none;
    position: absolute;
    left: 280px;
    top: 0;
    width: 250px;
    background-color: rgba(18, 18, 18, 0.98);
    border-left: 3px solid var(--accent-gold);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.5);
    display: none;
    z-index: 1100;
}

ul.side-nav > li:hover > ul.submenu {
    display: block;
}

ul.submenu li a {
    display: block;
    padding: 12px 18px;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

ul.submenu li a:hover {
    background-color: var(--accent-green);
    color: #ffffff;
}

.sidebar-bottom {
    padding: 18px 22px;
    border-top: 1px solid #222222;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222222;
    color: #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.social-icons a:hover {
    background: var(--accent-gold);
    color: #111;
}

.contact-info-line {
    margin-bottom: 6px;
    color: #d8d8d8;
    overflow-wrap: anywhere;
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: 280px;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-banner {
    position: relative;
    min-height: 320px;
    background: linear-gradient(rgba(12, 12, 12, 0.65), rgba(12, 12, 12, 0.75)), url('images/mici.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 40px 50px;
    border-bottom: 3px solid var(--accent-gold);
}

.hero-overlay-box {
    background: rgba(12, 12, 12, 0.88);
    color: #ffffff;
    max-width: 800px;
    width: 100%;
    padding: 30px 38px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow-wrap: break-word;
}

.hero-overlay-box h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    font-family: 'Georgia', serif;
    margin-bottom: 12px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 10px;
    line-height: 1.25;
}

.hero-overlay-box p {
    font-size: clamp(0.92rem, 1.5vw, 1.04rem);
    line-height: 1.6;
    color: #e0e0e0;
}

.content-section {
    padding: 45px 50px;
    background: #ffffff;
    max-width: 1240px;
    width: 100%;
    flex-grow: 1;
}

.content-section h2 {
    font-size: clamp(1.28rem, 2.4vw, 1.8rem);
    font-family: 'Georgia', serif;
    color: #111;
    margin: 20px 0 16px;
    font-weight: normal;
    border-left: 4px solid var(--accent-green);
    padding-left: 14px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.content-section p.lead-text {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #333;
    margin-bottom: 28px;
    overflow-wrap: break-word;
}

/* Dishes Grid - Fluid & Safe on All Phones */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 45px;
    width: 100%;
}

.dish-card {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.dish-card img {
    width: 100%;
    height: 255px;
    object-fit: cover;
    object-position: center top;
    border-bottom: 3px solid var(--accent-gold);
    display: block;
}

.dish-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    overflow-wrap: break-word;
    word-break: break-word;
}

.dish-body h3 {
    font-size: 1.18rem;
    margin-bottom: 4px;
    color: #111;
    font-family: 'Georgia', serif;
    line-height: 1.35;
}

.dish-body .en-subtitle {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.dish-body p.dish-desc {
    font-size: 0.91rem;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.5;
}

.ingredients-box {
    background: #f8faf6;
    border-left: 3px solid var(--accent-green);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #2b2b2b;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
    border-radius: 0 4px 4px 0;
}

.ingredients-box strong {
    color: var(--accent-green);
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
}

.dish-price {
    font-weight: bold;
    color: var(--accent-green);
    font-size: 1.35rem;
    border-top: 1px solid #eee;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dish-price span.badge {
    font-size: 0.71rem;
    background: var(--accent-gold);
    color: #111;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
}

/* Responsive Price Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.price-table th, .price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
    word-break: break-word;
}

.price-table th {
    background: #1c1c1c;
    color: #fff;
    font-size: 0.86rem;
    text-transform: uppercase;
    font-weight: 600;
}

.price-table td.price-col {
    font-weight: bold;
    color: var(--accent-green);
    font-size: 1.1rem;
    white-space: nowrap;
}

footer.site-footer {
    background: #181818;
    color: #999;
    text-align: center;
    padding: 22px 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: auto;
    overflow-wrap: break-word;
}

/* Language Filter Classes */
body.lang-en .ro-only { display: none !important; }
body.lang-ro .en-only { display: none !important; }

/* Tablet & Mobile Phone Breakpoints */
@media (max-width: 960px) {
    body {
        flex-direction: column;
    }
    aside.sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--accent-gold);
    }
    .brand-box {
        padding: 18px 15px 14px;
    }
    .brand-box img {
        max-width: 210px;
    }
    ul.side-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 10px;
        gap: 6px;
    }
    ul.side-nav > li {
        border-bottom: none;
        width: auto;
    }
    ul.side-nav > li > a {
        padding: 10px 16px;
        border-radius: 4px;
        font-size: 0.92rem;
        gap: 6px;
    }
    ul.submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-left: 2px solid var(--accent-gold);
        margin-top: 4px;
    }
    .sidebar-bottom {
        padding: 16px 20px;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    .hero-banner {
        min-height: 230px;
        padding: 24px 16px;
    }
    .hero-overlay-box {
        padding: 20px 18px;
    }
    .content-section {
        padding: 28px 16px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* Small Mobile Phones (iPhone, Samsung, etc.) */
@media (max-width: 600px) {
    ul.side-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px;
    }
    ul.side-nav > li > a {
        width: 100%;
    }
    .dish-card img {
        height: 225px;
    }
    .dish-body {
        padding: 16px;
    }
    .dish-body h3 {
        font-size: 1.12rem;
    }
    .ingredients-box {
        padding: 10px 12px;
        font-size: 0.84rem;
    }
    /* Convert table into clean stacked cards on small phone screens so nothing overflows */
    .table-responsive {
        border: none;
    }
    .price-table, .price-table thead, .price-table tbody, .price-table th, .price-table td, .price-table tr {
        display: block;
        width: 100%;
    }
    .price-table thead {
        display: none;
    }
    .price-table tr {
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        margin-bottom: 14px;
        padding: 12px;
        background: #fafafa;
    }
    .price-table td {
        border: none;
        padding: 6px 4px;
    }
    .price-table td.price-col {
        border-top: 1px solid #e6e6e6;
        margin-top: 6px;
        padding-top: 8px;
        font-size: 1.15rem;
    }
}
