/* style.css ver 4.0 - final z logo obrazkowym */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #fefaf5;
    color: #2c2b28;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAGŁÓWEK (biały, z logo obrazkowym) ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0px;
    overflow: visible;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* ===== LOGO OBRAZKOWE (NOWE) ===== */
.logo {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}


.header-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
}

/* ===== MENU ===== */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    color: #3b3a37;
    transition: 0.2s;
}

nav a:hover {
    color: #2f5d3a;
    border-bottom: 2px solid #2f5d3a;
    padding-bottom: 4px;
}

/* ===== GLOBALNE STYLE DLA TREŚCI ===== */
h1, h2, h3, h4, h5, h6 {
    color: #2f5d3a;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; border-left: 5px solid #d96c6c; padding-left: 20px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.2em;
    color: #3d3d3a;
    font-size: 1.05rem;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1.2em;
    color: #3d3d3a;
}

a {
    color: #2f5d3a;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===== BIAŁA KARTA ===== */
.white-card {
    background: white;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    margin: 20px auto;
}

/* ===== KOMPONENTY Z ABOUT ===== */
.about-hero {
    background: linear-gradient(135deg, #e9f3e6, #fff2e4);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
}

.about-hero h2 {
    font-size: 2.2rem;
    color: #2f5d3a;
    border-left: none;
    padding-left: 0;
}

.values {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 50px 0;
    justify-content: center;
}

.value-card {
    background: #fefaf5;
    padding: 30px 20px;
    border-radius: 28px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    border-top: 6px solid;
}

.value-card:nth-child(1) { border-top-color: #2f5d3a; }
.value-card:nth-child(2) { border-top-color: #d96c6c; }
.value-card:nth-child(3) { border-top-color: #b77c9c; }

.value-card span {
    font-size: 2.5rem;
}

.value-card h4 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
    color: #2c2b28;
}

.value-card p {
    font-size: 0.95rem;
    color: #5a5a57;
}

/* Przycisk */
.btn {
    display: inline-block;
    background-color: #2f5d3a;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1f4228;
    transform: scale(0.98);
    text-decoration: none;
}

/* ===== STOPKA ===== */
footer {
    background-color: #2c2b28;
    color: #dcd7ce;
    padding: 40px 0 20px;
    margin-top: 70px;
    border-radius: 30px 30px 0 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col a {
    color: #cfc9bc;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #aad4aa;
    text-decoration: underline;
}

.footer-tagline {
    color: #cfc9bc;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-contact-note {
    color: #cfc9bc;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-chat-btn {
    display: inline-block;
    background-color: #2f5d3a;
    color: white !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}

.footer-chat-btn:hover {
    background-color: #1f4228;
    text-decoration: none !important;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #4a4a45;
    font-size: 0.75rem;
    color: #9a968c;
}

/* ===== FORMULARZ KONTAKTOWY ===== */
.contact-form,
form.contact_form,
form[id*="contact"],
form[method="post"] {
    max-width: 600px;
    margin: 30px 0;
}

.contact-form p,
.contact_form p,
form.contact_form div,
form[id*="contact"] p {
    margin-bottom: 20px;
}

.contact-form label,
.contact_form label,
form[id*="contact"] label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2f5d3a;
    font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form select,
.contact-form textarea,
.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form input[type="tel"],
.contact_form select,
.contact_form textarea,
form[id*="contact"] input[type="text"],
form[id*="contact"] input[type="email"],
form[id*="contact"] input[type="tel"],
form[id*="contact"] select,
form[id*="contact"] textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: 0.2s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact_form input:focus,
.contact_form textarea:focus,
form[id*="contact"] input:focus,
form[id*="contact"] textarea:focus {
    outline: none;
    border-color: #2f5d3a;
    box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.1);
}

.contact-form textarea,
.contact_form textarea,
form[id*="contact"] textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input[type="submit"],
.contact_form input[type="submit"],
form[id*="contact"] input[type="submit"],
.contact-form button,
.contact_form button,
form[id*="contact"] button {
    background-color: #2f5d3a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    margin-top: 10px;
}

.contact-form input[type="submit"]:hover,
.contact_form input[type="submit"]:hover,
form[id*="contact"] input[type="submit"]:hover,
.contact-form button:hover,
.contact_form button:hover,
form[id*="contact"] button:hover {
    background-color: #1f4228;
    transform: scale(0.98);
}

.contact-form .error,
.contact_form .error,
.error-message {
    color: #d96c6c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.contact-form .success,
.contact_form .success,
.success-message {
    color: #2f5d3a;
    background: #e9f3e6;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

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

.form-row > p {
    flex: 1;
}

/* ===== GALERIA IMGHIPPO ===== */
.product-gallery-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.product-gallery-simple a {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: 0.2s;
}

.product-gallery-simple a:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-gallery-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-logo {
        max-height: 60px;
        max-width: 150px;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    .white-card {
        padding: 24px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .values {
        flex-direction: column;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-chat-btn {
        display: inline-block;
    }
    
    .product-gallery-simple a {
        width: 80px;
        height: 80px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================================
   HEADER – TAKI SAM STYL JAK FOOTER (LOGO WYSTAJĄCE)
   ========================================================= */
.catalog-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    overflow: visible;
    padding: 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* LEWA STRONA – LOGO WYSTAJĄCE */
.header-left {
    flex-shrink: 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.header-logo {
    max-height: 190px;
    width: auto;
    display: block;
    margin-top: -25px;
	margin-bottom: -40px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
    transition: 0.2s;
}

.header-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.3));
}

/* PRAWA STRONA – MENU */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    color: #3b3a37;
    transition: 0.2s;
    font-size: 1rem;
}

nav a:hover {
    color: #2f5d3a;
    border-bottom: 2px solid #2f5d3a;
    padding-bottom: 4px;
}

/* =========================================================
   RESPONSYWNOŚĆ HEADER
   ========================================================= */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-top: 20px;
    }
    
    .header-left {
        text-align: center;
    }
    
    .header-logo {
        max-height: 120px;
        margin-top: -40px;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.9rem;
    }
}

/* =========================================================
   HEADER – LOGO + TEKST OBOK (lewa strona)
   ========================================================= */
.catalog-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    overflow: visible;
    padding: 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* LEWA STRONA – LOGO + TEKST W JEDNEJ LINII */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.header-logo {
    max-height: 200px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
    transition: 0.2s;
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-text h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #2f5d3a;
    line-height: 1.2;
}

.header-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #a0522d;
}

/* PRAWA STRONA – MENU */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    color: #3b3a37;
    transition: 0.2s;
    font-size: 1rem;
}

nav a:hover {
    color: #2f5d3a;
    border-bottom: 2px solid #2f5d3a;
    padding-bottom: 4px;
}

/* =========================================================
   RESPONSYWNOŚĆ HEADER
   ========================================================= */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-logo {
        max-height: 60px;
    }
    
    .header-text h1 {
        font-size: 1.3rem;
    }
    
    .header-text p {
        font-size: 0.7rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.9rem;
    }
}


/* =========================================================
   HEADER – WIDOK DESKTOP (domyślnie widoczny)
   ========================================================= */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* LEWA STRONA – DUŻE LOGO + TEKST (DESKTOP) */

.header-logo:hover {
    transform: scale(1.02);
}

.header-text h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #2f5d3a;
    line-height: 1.2;
}

.header-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #a0522d;
    line-height: 1.2;
}

/* =========================================================
   WIDOK MOBILNY (ukrywa desktop, pokazuje uproszczone logo)
   ========================================================= */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .header-left-mobile {
        text-align: left;
        padding: 5px 0;
    }
    
    .mobile-logo-link {
        display: inline-block;
    }
    
    .mobile-logo {
        max-height: 160px;
        width: auto;
        display: block;
    }
    
    /* Menu pod spodem, wyśrodkowane */
    nav {
        width: 100%;
        margin-top: -30px;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.85rem;
    }
}

