/*
Theme Name: Astra Child
Template: astra
Version: 3.0.0
*/

/* ============================================
   STYL ~2020 - czysta strona firmowa
   ============================================ */

/* =====================
   RESET SIDEBARA
===================== */
#secondary {
    display: none !important;
}

#primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.site-content .ast-container {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Przywróć padding tylko w headerze */
.header-main-layout-1 .ast-container {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

/* Żeby sekcja nie chowała się pod nagłówkiem po kliknięciu w menu */
section[id] {
    scroll-margin-top: 90px;
}

body {
    background: #ffffff;
}

/* =====================
   HEADER
===================== */
.site-header {
    border-bottom: 3px solid #f5c000;
}

/* Kolory menu na sztywno - odporne na klikanie w Customizerze */
.main-header-menu .menu-link,
.site-header .menu-link {
    color: #2c1a00 !important;
    font-weight: 600;
}

.main-header-menu .menu-link:hover,
.site-header .menu-link:hover {
    color: #a07400 !important;
}

/* Nazwa witryny obok logo - zawsze ciemna */
.site-title,
.site-title a {
    color: #2c1a00 !important;
}

/* Hamburger (przycisk menu na telefonie) - zawsze widoczny */
.menu-toggle,
.ast-mobile-menu-trigger-minimal,
.ast-mobile-menu-trigger-fill,
.ast-mobile-menu-trigger-outline,
.mobile-menu-toggle-icon {
    color: #2c1a00 !important;
}

.menu-toggle svg,
.mobile-menu-toggle-icon svg {
    fill: #2c1a00 !important;
}

/* =====================
   HERO
===================== */
/* Wersja ze zdjęciem czeka, aż zrobisz zdjęcie sklepu —
   wtedy wracamy do tła z obrazkiem (sklep.jpg) */
.hero {
    background-color: #f5c000;
    padding: 80px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #2c1a00 !important;
    margin: 0 0 10px 0;
}

.hero .hero-subtitle {
    font-size: 18px;
    color: #4a3000 !important;
    margin: 0 0 32px 0;
}

.hero-przyciski {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-tel {
    display: inline-block;
    background: #2c1a00;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.btn-tel:hover {
    background: #4a3000;
}

.btn-mail {
    display: inline-block;
    background: #ffffff;
    color: #2c1a00 !important;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid #2c1a00;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.btn-mail:hover {
    background: #fff3cc;
}

.hero-dane {
    margin: 26px 0 0 0;
    font-size: 15px;
    color: #4a3000;
}

/* =====================
   WSPÓLNE NAGŁÓWKI SEKCJI
===================== */
.o-nas h2,
.oferta h2,
.produkty-home h2,
.opinie h2,
.mapa h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c1a00;
    text-align: center;
    margin: 0 0 14px 0;
}

.o-nas h2::after,
.oferta h2::after,
.produkty-home h2::after,
.opinie h2::after,
.mapa h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: #f5c000;
    margin: 14px auto 0;
}

/* =====================
   O NAS
===================== */
.o-nas {
    background: #ffffff;
    padding: 72px 24px;
    width: 100%;
    box-sizing: border-box;
}

.o-nas h2 {
    margin-bottom: 28px;
}

.o-nas p {
    max-width: 720px;
    margin: 0 auto 18px;
    text-align: center;
    font-size: 16px;
    color: #4a4336;
    line-height: 1.8;
}

.o-nas p:last-child {
    margin-bottom: 0;
}

/* =====================
   OFERTA (3 kolumny)
===================== */
.oferta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 24px;
}

.oferta-kolumny {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 44px;
}

.oferta-kolumna {
    border-top: 3px solid #f5c000;
    padding-top: 20px;
}

.oferta-kolumna h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c1a00;
    margin: 0 0 10px 0;
}

.oferta-kolumna p {
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
    margin: 0;
}

/* =====================
   KATALOG PRODUKTÓW (podstrona /sklep/)
===================== */
.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 14px !important;
    transition: border-color 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    border-color: #f5c000;
}

.woocommerce ul.products li.product img {
    border-radius: 2px;
}

.woocommerce .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2c1a00 !important;
}

.woocommerce ul.products li.product .price {
    color: #a07400 !important;
    font-weight: 600 !important;
}

/* Katalog ma oddychac - odstep od krawedzi */
.post-type-archive-product .site-content .ast-container {
    max-width: 1140px !important;
    margin: 0 auto;
    padding: 48px 24px !important;
}

/* =====================
   OPINIE Z GOOGLE
===================== */
.opinie {
    max-width: 1140px;
    margin: 0 auto;
    padding: 72px 24px;
}

.opinie h2 {
    margin-bottom: 44px;
}

/* =====================
   MAPA
===================== */
.mapa {
    background: #faf7f0;
    padding: 72px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.mapa-uklad {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    max-width: 1060px;
    margin: 44px auto 0;
    text-align: left;
}

.info-karta {
    background: #ffffff !important;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 28px;
}

.info-karta h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a07400;
    margin: 0 0 10px 0;
}

.info-karta h3:not(:first-child) {
    margin-top: 26px;
}

.info-adres {
    font-size: 16px;
    color: #2c1a00;
    line-height: 1.6;
    margin: 0;
}

.godziny {
    width: 100%;
    border-collapse: collapse;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.godziny tr,
.godziny td {
    background: transparent !important;
    border: none !important;
}

.godziny td {
    padding: 9px 0 !important;
    border-bottom: 1px solid #eee3cf !important;
    font-size: 15px;
    color: #555555;
}

.godziny tr:last-child td {
    border-bottom: none !important;
}

.godziny td:last-child {
    text-align: right;
    font-weight: 600;
    color: #2c1a00;
    white-space: nowrap;
}

.godziny td.zamkniete {
    color: #999999;
    font-weight: 400;
}

.info-tel a {
    font-size: 18px;
    font-weight: 700;
    color: #2c1a00 !important;
    text-decoration: none !important;
}

.mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 4px;
    display: block;
}

/* =====================
   FOOTER
===================== */
.site-footer,
.site-footer-wrap,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap {
    background-color: #2c1a00 !important;
    color: #f5c000 !important;
}

.site-footer a {
    color: #f5c000 !important;
}

.site-footer .ast-footer-copyright {
    color: #f5c000 !important;
}

/* =====================
   RESPONSYWNOŚĆ
===================== */
@media (max-width: 900px) {
    .oferta-kolumny {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 56px 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero .hero-subtitle {
        /* Skaluje sie z ekranem tak, zeby caly napis siedzial w jednej linii */
        font-size: min(16px, 3.6vw);
        white-space: nowrap;
    }

    .btn-tel,
    .btn-mail {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        box-sizing: border-box;
        text-align: center;
    }

    .hero-dane {
        font-size: 14px;
    }

    .o-nas,
    .oferta,
    .produkty-home,
    .opinie,
    .mapa {
        padding: 48px 20px;
    }

    .o-nas h2,
    .oferta h2,
    .produkty-home h2,
    .opinie h2,
    .mapa h2 {
        font-size: 23px;
    }

    .mapa-uklad {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .mapa iframe {
        min-height: 300px;
        height: 300px;
    }
}
