/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d8b48a;
    --gold-dark: #b08655;
    --gold-soft: #f8f0e6;
    --burgundy: #5a4634;
    --burgundy-soft: #f3e4d6;
    --cream-bg: #fdf7f0;
    --text-main: #3b2b21;
    --text-muted: #8a7562;
    --border-soft: #e1d1c0;
    --shadow-soft: 0 12px 30px rgba(90, 70, 52, 0.14);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top left, #ffffff, var(--cream-bg));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

iframe {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to right, rgba(253, 247, 240, 0.97), rgba(243, 228, 214, 0.97));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(138, 117, 98, 0.18);
    box-shadow: 0 6px 22px rgba(90, 70, 52, 0.16);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-family: "Playfair Display", serif;
}

.logo-main {
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.logo-sub {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy);
}

.nav-list {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.nav-list a {
    position: relative;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--burgundy));
    transition: width 0.22s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--gold-dark);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(90, 70, 52, 0.28);
}

.btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(90, 70, 52, 0.35);
}

.btn-outline {
    background: linear-gradient(135deg, #ffffff, #f9f1e7);
    color: var(--burgundy);
    border-color: var(--gold-dark);
    box-shadow: 0 5px 14px rgba(90, 70, 52, 0.16);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #fffaf4, #f3e1cd);
}

.btn-small {
    padding: 0.45rem 1.1rem;
    font-size: 0.75rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: linear-gradient(145deg, #ffffff, var(--burgundy-soft));
}

.section h2 {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
    font-size: 2.1rem;
    color: var(--burgundy);
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 60%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--gold), transparent);
}

.section-intro {
    max-width: 650px;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: left;
    background-image: radial-gradient(circle at top left, rgba(40, 26, 15, 0.66), rgba(40, 26, 15, 0.42)), url("img/hero_sala.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(58, 37, 21, 0.7), rgba(88, 60, 38, 0.45));
}

.hero-content {
    position: relative;
    padding: 7rem 0 5rem;
}

.hero h1 {
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero p {
    max-width: 520px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #f8eee4;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: start;
}

.about-highlights {
    display: grid;
    gap: 1rem;
}

.highlight-card {
    background: radial-gradient(circle at top left, #ffffff, var(--gold-soft));
    border: 1px solid rgba(225, 209, 192, 0.8);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 10px 24px rgba(90, 70, 52, 0.08);
}

.highlight-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: var(--burgundy);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
}

.card {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top, #ffffff, #fbf2e8);
    border: 1px solid var(--border-soft);
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 180, 138, 0.35), transparent 60%);
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    color: var(--burgundy);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.menu-column {
    background: linear-gradient(145deg, #ffffff, #f9efe4);
    border: 1px solid var(--border-soft);
    border-radius: 1.1rem;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

.menu-column h3 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    color: var(--burgundy);
}

.menu-list li {
    margin-bottom: 0.7rem;
}

.menu-list span {
    display: block;
}

.menu-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.menu-footer {
    margin-top: 1.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.menu-text {
    margin-bottom: 0.7rem;
}

.menu-actions {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border: 1px solid rgba(176, 142, 102, 0.35);
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(90, 70, 52, 0.16);
    cursor: zoom-in;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom, rgba(40, 26, 15, 0.42), transparent 55%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.03);
}

.gallery-item:hover::after {
    opacity: 1;
}

.contact-grid {
    align-items: stretch;
}

.contact-list li {
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-top: 1.5rem;
    background: linear-gradient(150deg, #ffffff, #f8efe5);
    padding: 1.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(193, 164, 131, 0.5);
    box-shadow: var(--shadow-soft);
}

.contact-form h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: var(--burgundy);
}

.form-row {
    margin-bottom: 0.9rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid #d7c4b1;
    font: inherit;
    background: #fdf5ec;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(216, 180, 138, 0.7);
}

.map-wrapper {
    background: linear-gradient(150deg, #ffffff, #f8efe5);
    border-radius: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.map-wrapper h3 {
    margin-bottom: 0.8rem;
    color: var(--burgundy);
}

.map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
    border-radius: 0.8rem;
    box-shadow: 0 10px 24px rgba(90, 70, 52, 0.22);
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.footer {
    border-top: 1px solid rgba(176, 142, 102, 0.35);
    background: linear-gradient(to right, #f8efe5, #f2e0cc);
    padding: 1.2rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.footer-small {
    color: var(--text-muted);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(32, 20, 11, 0.96), rgba(32, 20, 11, 0.9));
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox-img {
    max-width: min(92vw, 1200px);
    max-height: 82vh;
    border-radius: 0.8rem;
    box-shadow: 0 18px 45px rgba(32, 20, 11, 0.9);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8eee4;
    cursor: pointer;
    user-select: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lightbox-close {
    top: 22px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 2.4rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 2rem;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.lightbox-close:hover {
    transform: scale(1.08);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

/* Responsywność */
@media (max-width: 900px) {
    .topbar {
        position: relative;
    }

    .topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list {
        display: none;
    }

    .two-cols,
    .cards-grid,
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3.2rem 0;
    }

    .section h2 {
        font-size: 1.75rem;
        max-width: 100%;
    }

    .hero {
        min-height: auto;
        background-position: center center;
    }

    .hero-content {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.2;
        letter-spacing: 0.03em;
    }

    .hero p,
    .section-intro,
    .contact-list li,
    .contact-list a,
    .menu-text,
    .menu-note,
    .card p,
    .highlight-card p {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn,
    .hero-buttons .btn,
    .menu-actions .btn,
    .menu-column .btn,
    .topbar .btn.btn-small {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .menu-column,
    .card,
    .highlight-card,
    .map-wrapper {
        padding: 1.15rem;
    }

    .map-embed {
        padding-bottom: 70%;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-img {
        max-width: 100%;
        max-height: 72vh;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 16px;
        transform: none;
        width: 52px;
        height: 52px;
        font-size: 1.9rem;
    }

    .lightbox-prev {
        left: calc(50% - 68px);
    }

    .lightbox-next {
        right: calc(50% - 68px);
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: scale(1.08);
    }
}

@media (max-width: 600px) {
    .logo {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .logo-main {
        font-size: 0.85rem;
    }

    .logo-sub {
        font-size: 1.2rem;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    nav {
        display: none;
    }

    .cards-grid,
    .menu-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section {
        padding: 3rem 0;
    }
}
