/* FONTS */
@font-face {
    font-family: "Fira Sans";
    src: url("/assets/fonts/FiraSans-Regular.woff2");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "Fira Sans";
    src: url("/assets/fonts/FiraSans-Regular.woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Fira Sans";
    src: url("/assets/fonts/FiraSans-Medium.woff2");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Fira Sans";
    src: url("/assets/fonts/FiraSans-Bold.woff2");
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #c0392b;
    --bg-light: #f9f9f9;
    --text-dark: #333;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* Hero Section */
header {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('/img/restaurant-full.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;

    &.short {
        height: 200px;

        .hero-sub {
            display: none;
        }
        .btn {
            display: none;
        }
    }
}

.logo {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.logo span { font-weight: 400; }
.logo strong { font-weight: 700; }

.hero-sub {
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    text-transform: uppercase;
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.3s;
}

.rounded {
    border-radius: 0.5rem;
}

.btn:hover { background-color: #a93226; }

/* Sections */
section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Menu Section */
.menu-preview {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
}

.pdf-thumbnail {
    flex: 1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    background-image: url("/img/menu_thumbnail.png");
    background-position: center;
    background-size: cover;
    background-color: rgba(255,255,255,0.1);
    background-blend-mode: lighten;
}

.menu-text { flex: 1; }

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 0 1rem;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery img:hover { transform: scale(1.03); }

.directions-container {
    background: var(--primary-color);
    color: white;
    padding: 60px 10%;
    text-align: center;

    h3:not(:nth-child(1)) {
        margin-top: 1rem;
    }
}

.directions-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 2rem;
    text-align: left;

    div {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        flex: 1;
    }

    .directions-map {
        width: 100%;
    }

    .map-link {
        display: block;      /* Link musi być blokiem, by przyjąć wymiary */
        width: 100%;
        aspect-ratio: 3 / 2; /* "Okno" o tych proporcjach */
        overflow: hidden;    /* Docina obrazek, który wystaje */
        position: relative;
        cursor: pointer;
    }

    .map-img {
        /* Obrazek wypełnia link, ale nie jest skalowany */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Idealne centrowanie 1:1 */

        width: auto;
        height: auto;
        object-fit: none;    /* Brak skalowania pikseli */
    }
}

/* Reviews Wrapper */
.reviews-container {
    background: var(--primary-color);
    color: white;
    padding: 60px 10%;
    text-align: center;
}

.review-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 300;
}

.review-author {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: #f1c40f;
}

/* 404 */
#not-found {
    h1 {
        font-size: 10rem;
        text-align: center;
        color: var(--accent-color);
    }
}

/* Footer */
footer {
    padding: 40px 10%;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Lang switcher */
.lang-switcher {
    font-size: 0.9rem;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    padding: 10px 15px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.lang-switcher a {
    text-decoration: none;
    color: #fff;
    opacity: 0.7;
}
.lang-switcher a.active {
    font-weight: bold;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-preview { flex-direction: column; }
    .logo { font-size: 2rem; }

    .directions-wrapper {
        flex-direction: column;
    }
}