/* ========================================
   BUŁKĘ PRZEZ BIBUŁKĘ — Catering Website
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #A8CCD7 #f0f0f0;
}

body {
    font-family: 'Lato', 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #A8CCD7; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- LOGIN SCREEN --- */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-screen.hidden {
    display: none;
}

.login-box {
    text-align: center;
    padding: 40px;
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
}

.login-box h2 {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #333;
    margin-bottom: 8px;
}

.login-box > p {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 30px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#loginPassword {
    width: 260px;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 12px 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #333;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

#loginPassword:focus {
    border-bottom-color: #A8CCD7;
}

.login-error {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 10px;
    min-height: 1.2em;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.section-heading {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #7FB3C2;
    margin-bottom: 30px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 36px;
    border: 2px solid #A8CCD7;
    background: transparent;
    color: #A8CCD7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #A8CCD7;
    color: #fff;
}

.btn-hero {
    border-color: #fff;
    color: #fff;
}

.btn-hero:hover {
    background: #fff;
    color: #333;
}

.btn-outline {
    border-color: #A8CCD7;
    color: #A8CCD7;
}

.btn-service {
    border-color: #fff;
    color: #fff;
    padding: 10px 28px;
    font-size: 0.75rem;
}

.btn-service:hover {
    background: #fff;
    color: #333;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 8px 0;
}

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

.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    width: 48px;
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: #333;
}

.nav-links a.active,
.nav-links a:hover {
    color: #A8CCD7;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #A8CCD7;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: background 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: #333;
}

/* --- MOBILE OVERLAY --- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(168, 204, 215, 0.97);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.mobile-links {
    text-align: center;
}

.mobile-links li {
    margin: 20px 0;
}

.mobile-links a {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    transition: opacity 0.3s ease;
}

.mobile-links a:hover {
    opacity: 0.7;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.35) 100%
    );
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.hero-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 40px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.slider-arrow:hover {
    opacity: 1;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #fff;
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 100px 0;
}

/* --- SPLIT LAYOUT (O NAS / OFERTA) --- */
.split-layout {
    display: flex;
    min-height: 500px;
}

.split-image {
    flex: 1;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-text {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-text p {
    margin-bottom: 20px;
    color: #555;
}

.split-text .btn {
    align-self: flex-start;
    margin-top: 15px;
}

.split-reverse {
    flex-direction: row-reverse;
}

/* --- OFFER SECTION --- */
.section-offer {
    background: #F0F6F8;
    padding: 0;
}

.section-about {
    padding: 100px 0;
}

.about-centered {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-centered .section-heading {
    text-align: center;
}

.about-centered p {
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.about-centered .btn {
    margin-top: 15px;
}

/* --- SERVICES SECTION --- */
.section-services {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.services-grid {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.service-card {
    width: calc(33.333% - 27px);
    text-align: center;
    padding: 40px 25px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03);
}

/* Center last 2 cards */
.service-card:nth-child(4),
.service-card:nth-child(5) {
    width: calc(33.333% - 27px);
}

.service-icon {
    font-size: 2.5rem;
    color: #A8CCD7;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* --- MOTTO SECTION --- */
.section-motto {
    padding: 35px 20px;
    text-align: center;
    background: #F0F6F8;
}

.section-motto p {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #7FB3C2;
    letter-spacing: 1px;
}

/* --- CONTACT SECTION --- */
.contact-layout {
    display: flex;
    min-height: 550px;
}

.contact-map {
    flex: 6;
    min-height: 450px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

.contact-form {
    flex: 4;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 10px 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #A8CCD7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #A8CCD7;
}

.form-captcha label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-question {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.form-captcha input {
    width: 80px !important;
}

.contact-form .btn {
    margin-top: 10px;
    align-self: flex-start;
}

/* --- FOOTER --- */
.footer {
    background: #A8CCD7;
    padding: 60px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-info h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-info p {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
}

.footer-info a {
    color: #333;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #fff;
}

.footer-social {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #333;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.3);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #555;
}

/* --- SIZE PICKER MODAL --- */
.size-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.size-modal.open {
    opacity: 1;
    visibility: visible;
}

.size-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.size-modal-content {
    position: relative;
    background: #fff;
    padding: 50px 60px;
    border-radius: 4px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.size-modal.open .size-modal-content {
    transform: translateY(0);
}

.size-modal-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.size-modal-x:hover {
    color: #333;
}

.size-modal-subtitle {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
}

.size-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.size-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.size-option:hover {
    border-color: #A8CCD7;
    background: #F0F6F8;
}

.size-icon {
    font-size: 2rem;
    color: #A8CCD7;
}

.size-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.size-qty {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7FB3C2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MODAL STEP 2 --- */
.size-modal-detail {
    position: relative;
    background: #fff;
    padding: 40px 50px;
    border-radius: 4px;
    max-width: 700px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.size-modal.open .size-modal-detail {
    transform: translateY(0);
}

.modal-back {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #A8CCD7;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-back:hover {
    color: #7FB3C2;
}

.modal-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.modal-photos img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.modal-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-product {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-product:last-child {
    border-bottom: none;
}

.modal-product h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.modal-product p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}

.modal-cta {
    display: block;
    text-align: center;
    width: 100%;
}

@media (max-width: 480px) {
    .size-modal-detail {
        padding: 30px 20px;
    }

    .modal-photos img {
        height: 130px;
    }
}

/* --- GALLERY SECTION --- */
.section-gallery {
    padding: 80px 0;
    background: #fff;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    padding: 0 20px;
}

/* --- FOOTER LOGO --- */
.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .split-text {
        padding: 50px 40px;
    }

    .service-card {
        width: calc(50% - 20px);
    }

    .contact-form {
        padding: 40px 30px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 12px 28px;
        font-size: 0.75rem;
    }

    .slider-arrow {
        font-size: 2rem;
        padding: 10px;
    }

    .split-layout,
    .split-reverse {
        flex-direction: column;
    }

    .split-image {
        min-height: 300px;
    }

    .split-text {
        padding: 50px 25px;
    }

    .section-offer .split-layout {
        flex-direction: column;
    }

    .service-card {
        width: 100%;
        max-width: 350px;
    }

    .services-bg {
        background-attachment: scroll;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-motto p {
        font-size: 0.9rem;
    }

    .contact-layout {
        flex-direction: column;
    }

    .contact-map {
        min-height: 300px;
    }

    .contact-form {
        padding: 40px 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section {
        padding: 60px 0;
    }

    .split-text {
        padding: 40px 20px;
    }

    .section-services {
        padding: 60px 0;
    }
}
