@import url('https://fonts.googleapis.com/css2?family=McLaren&display=swap');

/* --- ZMIENNE I USTAWIENIA OGÓLNE --- */
:root {
    --bg-color: #ffffff;
    --card-bg: #f4f4f4;
    --text-color: #1a1a1a;
    --accent-color: #333333;
    --border-color: #e0e0e0;
    --font-main: 'McLaren', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 110px 20px 60px; /* Górny odstęp chroniący treść przed nachodzeniem menu */
    min-height: 85vh;
}

footer {
    flex-shrink: 0;
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #777777;
}

/* --- NAGŁÓWEK I NAWIGACJA --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

/* Układ na podstronach (Logo po lewej + Menu po prawej) */
.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Wyśrodkowane menu (Strona Główna) */
.nav-center {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.nav-center a {
    margin: 0 15px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-logo {
    height: 42px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.header-container nav a {
    margin-left: 20px;
}

nav a:hover, nav a.active {
    color: #000000;
    border-bottom: 2px solid #1a1a1a;
}

/* --- STRONA GŁÓWNA (HERO & HOME) --- */
.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;
}

.site-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 25px;
}

.home-container h1 {
    font-size: 2.8rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-container {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.hero-phone {
    margin-top: 20px;
}

.hero-phone-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 0;
    filter: grayscale(100%);
}

.hero-phone-link:hover {
    color: var(--text-color);
}

.page-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* --- SEKCJE MENU --- */
.menu-category {
    margin-bottom: 60px;
}

.menu-category.small-gap {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.category-subtitle {
    font-size: 0.9rem;
    color: #666666;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.menu-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

.photo-placeholder {
    width: 100%;
    height: 180px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.menu-ingredients {
    color: #555555;
    font-size: 0.85rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.pizza-sizes {
    border-top: 1px dashed #ccc;
    padding-top: 10px;
    margin-top: auto;
}

.size-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #444444;
    margin-bottom: 3px;
}

.size-row strong {
    color: var(--text-color);
}

.badge-bestseller {
    background: var(--text-color);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 3px;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.list-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.list-item-desc {
    display: block;
    font-size: 0.8rem;
    color: #666666;
    margin-top: 3px;
}

.list-item-price {
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
    margin-left: 15px;
    font-size: 0.95rem;
}

.section-note {
    text-align: center;
    margin: 25px auto;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-color);
    max-width: 800px;
    padding: 0 15px;
}

/* Frytki i dodatki */
.fries-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.fries-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.fries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.fries-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.fries-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.fries-info {
    padding: 12px 5px;
}

.fries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.fries-price {
    color: var(--accent-color);
}

.fries-desc {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.85;
}

/* Oliwy */
.oils-section {
    text-align: center;
}

.oils-list {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.oils-image-container {
    max-width: 320px;
    margin: 20px auto;
}

.oils-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* --- PODSTRONA KONTAKT --- */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-card h2, .contact-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-color);
}

.phone-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #000;
    text-decoration: underline;
}

.contact-desc {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

.map-wrapper, .map-container {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-wrapper iframe, .map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

/* --- PODSTRONA LOKAL / GALERIA --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* --- PODSTRONA DOWÓZ --- */
.delivery-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.delivery-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.delivery-card h2 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: var(--accent-color);
    text-align: center;
}

.delivery-image-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.delivery-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.delivery-minimum {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 20px 0;
}

/* --- PODSTRONA HISTORIA --- */
.history-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.owner-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.owner-image {
    flex: 1;
    max-width: 380px;
}

.owner-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.owner-text {
    flex: 1.2;
}

.owner-text h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.owner-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.full-text-section {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 40px auto;
}

.full-text-section h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.full-text-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--accent-color);
}

.gallery-section {
    margin-bottom: 50px;
}

.gallery-section h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.renovation-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.renovation-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.cta-section {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.cta-link {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.cta-link:hover {
    opacity: 0.7;
}

/* --- WIDGETY I SOCIAL MEDIA --- */
.facebook-container {
    text-align: center;
    margin: 20px 0;
}

.facebook-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.facebook-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* ==========================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================== */
@media (max-width: 768px) {
    /* Nagłówek i odstęp treści */
    .header-container {
        flex-direction: column;
        gap: 8px;
        padding: 10px 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        width: 100%;
    }

    .header-container nav a, nav a {
        margin-left: 0;
        margin: 0;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        padding: 3px 6px;
    }

    .nav-center {
        padding: 15px 10px;
    }

    main {
        padding-top: 135px; /* Wyższy odstęp na telefonach przez dwurzędowe menu */
    }

    /* Strona główna */
    .hero-logo { max-width: 220px; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .hero-phone-link { font-size: 1.4rem; }

    /* Układy siatek */
    .menu-grid, .list-grid, .contact-grid, .contact-cards {
        grid-template-columns: 1fr;
    }

    /* Frytki */
    .fries-gallery { gap: 8px; }
    .fries-gallery img { height: 100px; }
    .fries-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .fries-img { height: 200px; }

    /* Galeria i Mapa */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-item.tall,
    .gallery-item.wide,
    .gallery-item.big {
        grid-column: span 1;
        grid-row: span 1;
    }

    .map-wrapper, .map-wrapper iframe, .map-container {
        height: 300px;
        min-height: 300px;
    }

    /* Historia */
    .owner-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .owner-image { max-width: 100%; }

    .renovation-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .renovation-gallery img { height: 130px; }

    /* Dowóz */
    .delivery-minimum {
        font-size: 1.1rem;
        margin: 15px 0;
    }
}

/* Poprawka widoczności napisu Nasza Historia */
main {
    padding-top: 150px !important;
}

.page-title {
    color: #1a1a1a !important;
}

/* --- Sekcja: Nasi Goście --- */
.guests-section {
    margin-bottom: 60px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.guest-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eeeeee;
}

.guest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.guest-card img {
    width: 100%;
    height: 260px;
    object-fit: cover; /* Dba o to, by wszystkie zdjęcia miały identyczną wysokość bez rozciągania */
    display: block;
}

.guest-caption {
    padding: 15px 18px;
    font-size: 0.95rem;
    color: #444444;
    text-align: center;
    line-height: 1.4;
    font-style: italic;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.guests-section {
    max-width: 1200px; /* Ogranicza szerokość do standardu reszty strony */
    margin: 0 auto 60px auto; /* Środkuje sekcję na stronie */
    padding: 0 20px; /* Margines bezpieczeństwa dla telefonów */
    box-sizing: border-box;
}

.allergen-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #e63946; /* Zmień na główny kolor swojej strony */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.allergen-link:hover {
  color: #b71c1c; /* Ciemniejszy odcień przy najechaniu myszką */
  text-decoration: none;
}

.btn-mapa {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mapa:hover {
  background-color: #000000;
  color: #ffffff;
}

