/* =========================================================
   HEMASZ – GŁÓWNY PLIK WYGLĄDU STRONY
   Najważniejsze miejsca do późniejszej zmiany:
   1. KOLORY – sam początek pliku
   2. LEWE MENU – sekcja „PANEL BOCZNY”
   3. ZDJĘCIE Z JAJKAMI – sekcja „GÓRNA SEKCJA”
   4. PRZYCISKI – sekcja „PRZYCISKI”
   ========================================================= */


/* =========================================================
   1. KOLORY I USTAWIENIA OGÓLNE
   ========================================================= */

:root {
    --dark: #2d1d12;
    --brown: #4a3121;
    --wood: #765137;
    --straw: #d8aa42;
    --cream: #fff9ed;
    --soft: #f4ead8;
    --text: #30261f;
    --muted: #70645a;
    --white: #ffffff;

    /* Szerokość lewego panelu na komputerze */
    --menu: 280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.75), transparent 28%),
        repeating-linear-gradient(
            45deg,
            rgba(111, 77, 45, 0.025) 0,
            rgba(111, 77, 45, 0.025) 1px,
            transparent 1px,
            transparent 8px
        ),
        #f8efdf;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(1140px, calc(100% - 64px));
    margin: 0 auto;
}


/* =========================================================
   2. PANEL BOCZNY – LEWE MENU
   Zdjęcie tła: images/sidebar-wood-straw.png
   ========================================================= */

.sidebar {
    position: fixed;
    z-index: 1000;
    inset: 0 auto 0 0;
    width: var(--menu);
    display: flex;
    flex-direction: column;
    padding: 42px 28px 28px;
    color: var(--cream);

    /* TŁO LEWEGO PANELU */
    background:
        linear-gradient(
            160deg,
            rgba(45, 29, 18, 0.48),
            rgba(45, 29, 18, 0.62)
        ),
        url("images/sidebar-wood-straw.png") center / 100% 100% no-repeat;

    border-right: 1px solid rgba(255, 224, 142, 0.45);
    box-shadow: 8px 0 30px rgba(45, 29, 18, 0.14);
}

.sidebar::after {
    position: absolute;
    top: 0;
    right: -14px;
    bottom: 0;
    width: 14px;
    background: linear-gradient(
        90deg,
        rgba(45, 29, 18, 0.42),
        rgba(216, 170, 66, 0.22),
        transparent
    );
    content: "";
    pointer-events: none;
}

.logo {
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.logo-description {
    margin: 12px 0 42px;
    color: #eccd81;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu {
    display: grid;
    gap: 8px;
}

.menu a {
    padding: 11px 14px;
    color: #eadfce;
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    font-weight: bold;
    text-decoration: none;
}

.menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--straw);
}

.sidebar-bottom {
    margin: auto 0 0;
    color: #cdbba5;
    font-size: 0.85rem;
}


/* =========================================================
   3. UKŁAD GŁÓWNEJ STRONY
   ========================================================= */

.page {
    position: relative;
    margin-left: var(--menu);
    box-shadow: inset 10px 0 24px rgba(82, 51, 28, 0.1);
}

.section {
    position: relative;
    padding: 96px 0;
    scroll-margin-top: 24px;
}

.section::before {
    position: absolute;
    top: 24px;
    right: 5%;
    left: 5%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(151, 105, 42, 0.3),
        transparent
    );
    content: "";
}

.section-light {
    background: rgba(244, 234, 216, 0.82);
}


/* =========================================================
   4. GÓRNA SEKCJA – START
   Zdjęcie tła: images/hero-eggs-wood.png
   ========================================================= */

.hero {
    position: relative;
    min-height: 720px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    border-bottom: 7px solid var(--straw);

    /* TŁO Z JAJKAMI – ciemniejsza lewa strona dla czytelności */
    background:
        linear-gradient(
            90deg,
            rgba(45, 29, 18, 0.92) 0%,
            rgba(45, 29, 18, 0.78) 35%,
            rgba(45, 29, 18, 0.38) 52%,
            rgba(45, 29, 18, 0.08) 68%,
            rgba(45, 29, 18, 0) 100%
        ),
        url("images/hero-eggs-wood.png") right center / 108% auto no-repeat;

    background-color: var(--dark);
    box-shadow: inset 0 -20px 45px rgba(45, 29, 18, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-right: auto;
    margin-left: clamp(48px, 8vw, 140px);
    padding: 100px 0;
}

.small-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: #f0cf7e;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.small-title::before {
    width: 40px;
    height: 2px;
    background: currentColor;
    content: "";
}

.small-title.dark {
    color: #a87921;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.1;
}

h1 {
    margin: 0 0 24px;
    font-size: clamp(3.4rem, 7vw, 6.8rem);
}

h2 {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--brown);
    font-size: clamp(2.25rem, 5vw, 4rem);
}

h3 {
    font-size: 1.5rem;
}

.hero-text {
    max-width: 630px;
    margin: 0 0 36px;
    color: #f4eadc;
    font-size: 1.2rem;
}


/* =========================================================
   5. PRZYCISKI
   ========================================================= */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(45, 29, 18, 0.18);
    font-weight: bold;
    text-decoration: none;
}

/* Żółty: „Poznaj ofertę” */
.button-main {
    color: var(--dark);
    border-bottom-color: #aa7620;
    background: #edcb77;
}

.button-main:hover {
    background: #f3d98e;
}

/* Zielony: „Zamów online” */
.button-order {
    min-width: 154px;
    min-height: 52px;
    color: var(--white);
    border: 1px solid #294b37;
    border-bottom: 3px solid #23402f;
    border-radius: 10px;
    background: linear-gradient(180deg, #668a69, #3e654d);
    box-shadow:
        0 3px 0 #23402f,
        0 7px 14px rgba(20, 35, 25, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button-order:hover {
    color: var(--white);
    background: linear-gradient(180deg, #739577, #496f55);
    box-shadow:
        0 4px 0 #23402f,
        0 9px 16px rgba(20, 35, 25, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.button-order:active {
    box-shadow:
        0 1px 0 #23402f,
        0 3px 8px rgba(20, 35, 25, 0.2);
    transform: translateY(2px);
}

/* Przezroczysty: „Kontakt” */
.button-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.65);
}

.button-light:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   6. SEKCJA „O FIRMIE”
   ========================================================= */

.about-boxes {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
}

.white-box,
.year-box,
.offer-box,
.contact-box {
    border: 1px solid rgba(111, 75, 39, 0.2);
    border-radius: 20px;
    box-shadow:
        0 18px 40px rgba(54, 34, 18, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.white-box {
    position: relative;
    overflow: hidden;
    padding: 48px;
    background: var(--white);
}

.white-box::before,
.offer-box::before {
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, transparent, var(--straw), transparent);
    content: "";
}

.white-box p {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.year-box {
    display: grid;
    place-items: center;
    padding: 38px;
    color: var(--white);
    text-align: center;
    background:
        linear-gradient(145deg, rgba(255, 220, 135, 0.08), transparent 40%),
        var(--wood);
}

.year-box strong {
    display: block;
    color: #f1d181;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    text-shadow: 0 4px 12px rgba(45, 29, 18, 0.35);
}

.year-box span {
    display: block;
    margin-top: 14px;
    font-weight: bold;
}


/* =========================================================
   7. SEKCJA „OFERTA” I „DLACZEGO MY”
   ========================================================= */

.offer-boxes,
.reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.offer-box {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    padding: 32px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 45px rgba(54, 34, 18, 0.18);
}

.offer-box span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eccb76;
    box-shadow: 0 5px 12px rgba(104, 68, 25, 0.2);
    font-weight: bold;
}

.offer-box h3 {
    margin: 26px 0 12px;
}

.offer-box p,
.reasons p {
    margin: 0;
    color: var(--muted);
}

.reasons article {
    padding: 24px;
    border: 1px solid rgba(111, 75, 39, 0.16);
    border-top: 4px solid var(--straw);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
}

.reasons h3 {
    margin: 0 0 10px;
}


/* =========================================================
   8. SEKCJA „KONTAKT”
   ========================================================= */

.contact-box {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
    border: 5px solid rgba(216, 170, 66, 0.55);
    background: var(--white);
}

.contact-text,
.contact-data {
    padding: 55px;
}

.contact-text p:last-child {
    color: var(--muted);
    font-size: 1.08rem;
}

.contact-data {
    display: grid;
    align-content: center;
    color: var(--cream);
    background:
        linear-gradient(145deg, rgba(255, 225, 150, 0.12), transparent 48%),
        var(--wood);
}

.contact-data p {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.contact-data small {
    display: block;
    color: #f0cf7e;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.contact-data a {
    color: var(--cream);
    text-decoration: none;
}

.contact-data a:hover {
    color: #f0cf7e;
    text-decoration: underline;
}


/* =========================================================
   9. STOPKA
   ========================================================= */

footer {
    padding: 30px 0;
    color: #d9cbbb;
    text-align: center;
    background: var(--dark);
}


/* =========================================================
   10. TABLET I TELEFON – MENU ORAZ UKŁAD
   ========================================================= */

.mobile-header,
.menu-button,
.close-menu,
.menu-background {
    display: none;
}

@media (max-width: 960px) {
    .sidebar {
        width: min(340px, 88vw);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .sidebar::after {
        display: none;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    .page {
        margin-left: 0;
        padding-top: 68px;
        box-shadow: none;
    }

    .mobile-header {
        position: fixed;
        z-index: 900;
        inset: 0 0 auto;
        height: 68px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        background: var(--brown);
    }

    .mobile-header .logo {
        font-size: 1.4rem;
    }

    .menu-button,
    .close-menu {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        color: var(--white);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 10px;
        background: transparent;
        font-size: 1.45rem;
    }

    .close-menu {
        position: absolute;
        top: 22px;
        right: 20px;
    }

    body.menu-open .menu-background {
        position: fixed;
        z-index: 950;
        inset: 0;
        display: block;
        background: rgba(30, 18, 10, 0.65);
    }

    .hero {
        background:
            linear-gradient(
                90deg,
                rgba(45, 29, 18, 0.88) 0%,
                rgba(45, 29, 18, 0.62) 58%,
                rgba(45, 29, 18, 0.22) 100%
            ),
            url("images/hero-eggs-wood.png") 60% center / cover no-repeat;
    }

    .hero-content {
        margin-right: auto;
        margin-left: auto;
    }

    .about-boxes,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .offer-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 36px, 1140px);
    }

    .hero {
        min-height: calc(100svh - 68px);
        background:
            linear-gradient(
                rgba(45, 29, 18, 0.84),
                rgba(45, 29, 18, 0.58)
            ),
            url("images/hero-eggs-wood.png") 62% center / cover no-repeat;
    }

    .hero-content {
        padding: 72px 0;
    }

    h1 {
        font-size: clamp(3.2rem, 18vw, 5rem);
    }

    .buttons,
    .button,
    .button-order {
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }

    .section::before {
        right: 9%;
        left: 9%;
    }

    .offer-boxes,
    .reasons {
        grid-template-columns: 1fr;
    }

    .contact-text,
    .contact-data,
    .white-box {
        padding: 32px;
    }
}