
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --green: #102b15;
    --green-light: #536b32;
    --gold: #b39546;
    --cream: #f6f3e7;
    --white: #ffffff;
    --text: #4b5148;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--green);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    cursor: pointer;
}

/* GÓRNY PASEK */

.top-bar {
    background: var(--green);
    color: #e6d6a6;
    text-align: center;
    padding: 9px 15px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* MENU */

.header {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 3%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 3px 15px #0000000a;
    min-height: 100px;
}

.logo {
    position: absolute;
    left: 3%;
    display: flex;
    align-items: center;
}

.logo img {
    width: 220px;
    max-height: 85px;
    object-fit: contain;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.navigation a {
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    transition:
        color 0.3s ease,
        text-shadow 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* AKTYWNA ZAKŁADKA */

.navigation a.active {
    color: var(--green);
    text-shadow: none;
}

/* ZŁOTE ŚWIECENIE PO NAJECHANIU */

.navigation a:hover,
.navigation a.active:hover {
    color: var(--gold);
    text-shadow:
        0 0 5px rgba(179, 149, 70, 0.7),
        0 0 12px rgba(179, 149, 70, 0.5),
        0 0 20px rgba(179, 149, 70, 0.3);
}

/* ZŁOTE PODKREŚLENIE */

.navigation a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    transition: width 0.3s ease;
}

.navigation a:hover::after,
.navigation a.active::after {
    width: 100%;
}

/* PRZYCISK KONTAKT */

.navigation .nav-contact {
    background: var(--green);
    color: white;
    padding: 12px 22px;
    border: 1px solid var(--gold);
}

.navigation .nav-contact:hover {
    background: var(--gold);
    color: var(--green);
    box-shadow: 0 0 18px #b3954680;
    text-shadow: none;
}

/* MENU MOBILNE */

.menu-toggle {
    display: none;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    background: var(--green);
    margin: 6px 0;
}

/* STRONA GŁÓWNA */

.hero {
    min-height: 82vh;
    position: relative;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(10, 29, 13, 0.92),
            rgba(10, 29, 13, 0.55),
            rgba(10, 29, 13, 0.12)
        ),
        url('zdjecia/pole.jpg') center / cover no-repeat;
    background-color: var(--green);
    color: white;
    padding: 90px 9%;
}

.hero-content {
    max-width: 800px;
    animation: entrance 1s ease both;
}

.eyebrow {
    color: #e4ce91;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(52px, 7vw, 105px);
    font-weight: 500;
    margin: 25px 0;
    line-height: 1.05;
}

.gold-line {
    width: 65px;
    height: 3px;
    background: var(--gold);
    margin: 25px 0;
}

.hero p {
    font-size: 19px;
    max-width: 500px;
    color: #e9e9df;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.hero-bottom {
    position: absolute;
    bottom: 25px;
    right: 5%;
    font-size: 11px;
    letter-spacing: 4px;
    color: #e4ce91;
}

/* PRZYCISKI */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 28px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gold);
    color: var(--green);
}

.btn-primary:hover {
    background: #d3b86e;
}

.btn-outline {
    color: white;
    border-color: #ffffff90;
}

.btn-outline:hover {
    background: white;
    color: var(--green);
}

.btn-green {
    background: var(--green);
    color: white;
}

.btn-green:hover {
    background: var(--green-light);
}

/* SEKCJE */

.section-padding {
    padding: 95px 8%;
}

.section-label {
    color: #94752c;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 700;
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.section-heading h2,
.about h2,
.cooperation h2 {
    font-size: clamp(32px, 4vw, 53px);
    font-weight: 500;
    margin-top: 15px;
}

.section-heading .gold-line {
    margin: 25px auto;
}

.section-heading p {
    color: var(--text);
}

/* O NAS */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    background: var(--cream);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 430px;
    mix-blend-mode: multiply;
}

.about-content p {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-content .btn {
    margin-top: 10px;
}

/* WARZYWA */

.vegetables {
    background: #ffffff;
}

.vegetable-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.vegetable-card {
    background: var(--cream);
    border: 1px solid #e8e2d1;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.vegetable-card:hover {
    box-shadow: 0 10px 30px #102b1515;
}

.vegetable-image {
    height: 230px;
    overflow: hidden;
    background: #e7e8d9;
}

.vegetable-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.vegetable-card:hover img {
    transform: scale(1.07);
}

.vegetable-content {
    padding: 25px;
}

.vegetable-content h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

.vegetable-content p {
    color: var(--text);
    font-size: 14px;
}

.center {
    text-align: center;
    margin-top: 40px;
}

/* WARTOŚCI */

.values {
    background: var(--cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    padding: 30px 20px;
    border-top: 1px solid var(--gold);
}

.value-number {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 40px;
}

.value-card h3 {
    font-size: 27px;
    margin: 15px 0;
}

.value-card p {
    font-size: 14px;
    color: var(--text);
}

/* WSPÓŁPRACA */

.cooperation {
    background:
        linear-gradient(#102b15dc, #102b15dc),
        url('zdjecia/gospodarstwo.jpg') center / cover;
    background-color: var(--green);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.cooperation-content {
    max-width: 800px;
    margin: auto;
}

.cooperation .section-label {
    color: #e4ce91;
}

.cooperation p {
    margin: 25px auto;
    max-width: 550px;
    color: #e0e6dc;
}

/* STOPKA */

.footer {
    background: #0b1e0f;
    color: #c5cec2;
    padding: 65px 8% 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h2 {
    color: #e4ce91;
    font-size: 35px;
    letter-spacing: 3px;
}

.footer-brand span {
    font-size: 10px;
    letter-spacing: 3px;
}

.footer h3 {
    color: #e4ce91;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 14px;
    margin-top: 15px;
}

.footer a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #ffffff20;
    text-align: center;
    margin-top: 50px;
    padding: 22px 0;
    font-size: 12px;
}

/* POWRÓT NA GÓRĘ */

#back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: 1px solid var(--gold);
    background: var(--green);
    color: white;
    font-size: 24px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ANIMACJE */

.reveal.pending {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@keyframes entrance {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MNIEJSZE MONITORY */

@media (max-width: 1550px) {

    .header {
        justify-content: space-between;
        gap: 25px;
    }

    .logo {
        position: static;
        flex-shrink: 0;
    }

    .logo img {
        width: 200px;
    }

    .navigation {
        flex: 1;
        gap: 20px;
    }

}

/* TABLETY I MNIEJSZE EKRANY */

@media (max-width: 1200px) {

    .header {
        justify-content: space-between;
        min-height: 85px;
    }

    .logo {
        position: static;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 25px 5%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 10px 20px #00000015;
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        padding: 8px 0;
        text-align: center;
    }

    .navigation .nav-contact {
        text-align: center;
    }

    .vegetable-grid,
    .values-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        gap: 40px;
    }

}

/* TELEFONY */

@media (max-width: 650px) {

    .top-bar {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .logo img {
        width: 190px;
        max-height: 70px;
    }

    .hero {
        min-height: 75vh;
        padding: 70px 6%;
    }

    .hero h1 {
        font-size: clamp(40px, 10vw, 54px);
    }

    .hero p {
        font-size: 16px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-bottom {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .section-padding {
        padding: 60px 6%;
    }

    .about,
    .vegetable-grid,
    .values-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        width: 290px;
    }

    .vegetable-image {
        height: 260px;
    }

    .footer {
        padding: 45px 6% 0;
    }

}

/* OGRANICZENIE ANIMACJI */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal.pending {
        opacity: 1;
        transform: none;
    }

}
