/* =========================================
   NAT-BISTRO WEBSITE STYLES
   =========================================
   - Minimalistyczny, elegancki design
   - Granatowa kolorystyka z logo
   - Mobile-first responsive
   - Łatwy w edycji
   ========================================= */

/* === FONTS === */
@font-face {
    font-family: 'VC Garamond';
    src: url('fonts/VCGaramondCondensed-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'VC Garamond';
    src: url('fonts/VCGaramondCondensed-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'VC Garamond';
    src: url('fonts/VCGaramondCondensed-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* === CSS VARIABLES === */
:root {
    /* Kolory - ŁATWO EDYTOWALNE */
    --navy-primary: #1e3a5f;
    --navy-dark: #0d1b2a;
    --navy-light: #2d5a8a;
    --white: #ffffff;
    --light-gray: #d6d6d6;
    --gray: #666666;
    --accent: #d4af37;

    /* Czcionki */
    --font-primary: 'VC Garamond', Georgia, serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing - Złota proporcja (8px base) */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 3rem;      /* 48px */
    --spacing-xl: 4.5rem;    /* 72px */

    /* Border radius */
    --radius: 8px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.7;
    color: var(--navy-dark);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

/* === CONTAINER === */
.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === LANGUAGE SWITCHER W NAWIGACJI === */
.lang-switcher-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--navy-primary);
    border-radius: calc(var(--radius) / 2);
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--navy-primary);
    color: var(--white);
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--light-gray);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy-primary);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--navy-dark);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navy-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-cta {
    background: var(--navy-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-link-cta:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(135deg, rgba(13, 27, 42, 0.60) 0%, rgba(30, 58, 95, 0.60) 100%),
        url('../images/bg_4.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    color: var(--white);
    animation: fadeIn 1.5s ease-in;
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 400px;
    margin: 0 auto -3.5rem;
    display: block;
    /* Cień dla białego logo */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    /* Ukryj przed animacją */
    opacity: 0;
    animation: fadeInUpLogo 1s ease-out forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.mobile-break {
    display: none;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--navy-primary);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--navy-primary);
    color: var(--white);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--navy-light);
    transform: translateY(-3px);
    color: var(--white);
}

/* === SECTIONS === */
section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.15);
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    color: var(--navy-primary);
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--navy-primary);
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

/* === ABOUT SECTION === */
.about {
    background: var(--light-gray);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content .section-title {
    margin-bottom: 0;
    line-height: 1;
}

.about-content .section-subtitle {
    margin-top: 1.5rem;
}

/* === ABOUT GALLERY === */
.about-gallery {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: var(--spacing-sm);
    width: calc((380px * 2) + (var(--spacing-md) * 1));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--navy-primary) var(--light-gray);
}

.about-gallery::-webkit-scrollbar {
    height: 8px;
}

.about-gallery::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.about-gallery::-webkit-scrollbar-thumb {
    background: var(--navy-primary);
    border-radius: 10px;
}

.about-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--navy-dark);
}

.about-gallery img {
    flex: 0 0 380px;
    width: 380px;
    height: 570px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.about-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* === WINE SECTION === */
.wine {
    background: var(--light-gray);
}

.wine-slider-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Wspólne style dla sliderów wine i food */
.wine-slider,
.food-slider {
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
    width: 380px;
    margin: 0 auto;
}

.wine-slider .splide__slide,
.food-slider .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wine-slider img,
.food-slider img {
    width: 380px;
    height: 570px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    border-radius: var(--radius);
}

.wine-content {
    color: var(--navy-dark);
    text-align: center;
}

.wine-content .section-title {
    color: var(--navy-primary);
    margin-bottom: 0;
    line-height: 1;
}

.wine-content .section-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* === FOOD SECTION === */
.food {
    background: var(--light-gray);
}

.food-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.food-content {
    color: var(--navy-dark);
    text-align: center;
}

.food-content .section-title {
    color: var(--navy-primary);
    margin-bottom: 0;
    line-height: 1;
}

.food-content .section-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* === GALLERY === */
.gallery {
    display: none; /* Tymczasowo ukryta */
    text-align: center;
    background: var(--light-gray);
}

.gallery-grid {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: var(--spacing-sm);
    /* Desktop: Szerokość dokładnie 3 zdjęć + 2 gapy między nimi */
    width: calc((450px * 3) + (var(--spacing-md) * 2));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* Ukrycie scrollbara ale zachowanie funkcjonalności */
    scrollbar-width: thin;
    scrollbar-color: var(--navy-primary) var(--light-gray);
}

/* Webkit scrollbar styling */
.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--navy-primary);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--navy-dark);
}

.gallery-grid img {
    flex: 0 0 450px; /* Zapobiega skurczeniu się zdjęć */
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* === CONTACT === */
.contact {
    border-bottom: none;
    background-image:
        linear-gradient(135deg, rgba(13, 27, 42, 0.60) 0%, rgba(30, 58, 95, 0.60) 100%),
        url('../images/bg_2.webp');
    background-size: cover;
    background-position: center 43%;
    color: var(--white);
    position: relative;
    padding-bottom: 0;
}

.contact .section-title {
    color: var(--white);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    font-weight: 600;
}

.contact-name-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-name {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    margin: 0;
    padding-right: 1.0rem;
}

.contact-logo {
    height: 35px;
    width: auto;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.contact-info p {
    margin: 0.25rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-hours {
    color: var(--white);
    text-align: center;
}

.contact-hours h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    font-weight: 600;
}

.contact-hours p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.contact-hours strong {
    color: var(--white);
    font-weight: 600;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--navy-dark);
}

.contact-info .address-link {
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
    font-weight: 600;
}

.contact-info .address-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* === FOOTER === */
.footer {
    background: transparent;
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer-link {
    color: var(--white);
    text-decoration: underline;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: lightboxZoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpLogo {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .wine-slider-container,
    .food-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .wine-slider,
    .food-slider {
        width: 320px;
    }

    .wine-slider img,
    .food-slider img {
        width: 320px;
        height: 480px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4.5rem;
    }

    /* About Gallery - mobile */
    .about-gallery {
        width: 280px;
        max-width: calc(100vw - (var(--spacing-md) * 2));
        margin-top: var(--spacing-md);
    }

    .about-gallery img {
        flex: 0 0 280px;
        width: 280px;
        height: 420px;
    }

    /* Ujednolicenie paddingu sekcji - góra i dół */
    section {
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }

    /* Ujednolicenie odstępów tytuł-opis */
    .section-title {
        margin-bottom: var(--spacing-sm);
    }

    /* Ujednolicenie odstępów w sekcji "O nas" */
    .about-content .section-title {
        margin-bottom: var(--spacing-sm) !important;
        text-align: center;
    }

    .about-content .section-subtitle {
        text-align: justify;
        margin-top: 0 !important;
        margin-bottom: var(--spacing-sm) !important;
        padding-top: 0;
    }

    /* Zmiana kolejności w sekcji Wine na mobile - najpierw opis, potem galeria */
    .wine-slider-container {
        display: flex;
        flex-direction: column;
    }

    .wine-slider {
        order: 2;
    }

    .wine-content {
        order: 1;
    }

    /* Rozmiar sliderów w wersji mobilnej */
    .wine-slider,
    .food-slider {
        width: 280px;
    }

    .wine-slider img,
    .food-slider img {
        width: 280px;
        height: 420px;
    }

    /* Wyśrodkowanie przycisków w sekcjach Wine i Food */
    .wine-content,
    .food-content {
        text-align: center;
    }

    .wine-content .section-title,
    .food-content .section-title {
        margin-bottom: var(--spacing-sm) !important;
    }

    .wine-content .section-subtitle,
    .food-content .section-subtitle {
        text-align: justify;
        margin-top: 0 !important;
        margin-bottom: var(--spacing-md);
    }

    .wine-content .btn,
    .food-content .btn {
        margin-top: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-md);
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-link-cta {
        margin-top: var(--spacing-sm);
    }

    .hero-logo {
        max-width: 250px;
        margin: 0 auto -1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .mobile-break {
        display: inline;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        /* Mobile: Szerokość dokładnie 1 zdjęcia */
        width: 350px;
        max-width: calc(100vw - (var(--spacing-md) * 2));
    }

    .gallery-grid img {
        flex: 0 0 350px;
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}
