@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
    --forest: #0f3d2e;
    --leaf: #2e8b57;
    --lime: #a5d75c;
    --sunset: #ffb347;
    --sand: #fef8ee;
    --cream: #f7f2eb;
    --shadow: rgba(15, 61, 46, 0.15);
    --text: #1c2b29;
    --muted: #4a615a;
    --white: #ffffff;
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Work Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--sand);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 5rem min(10vw, 10rem);
    position: relative;
}

.section::after {
    content: "";
    position: absolute;
    inset: 2rem;
    border-radius: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    opacity: 0.15;
}

.section-heading {
    max-width: 52rem;
    margin-bottom: 3rem;
}

.section-heading.compact {
    max-width: 42rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--leaf);
    margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", serif;
    line-height: 1.2;
    color: var(--forest);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease, color 0.25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(130deg, #2e8b57, #53c178);
    color: var(--white);
    box-shadow: 0 18px 30px rgba(46, 139, 87, 0.3);
}

.btn.secondary {
    background:
        linear-gradient(var(--sand), var(--sand)) padding-box,
        linear-gradient(120deg, rgba(46, 139, 87, 0.6), rgba(255, 179, 71, 0.8)) border-box;
    border: 2px solid transparent;
    color: var(--leaf);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}



/* Nawigacja */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem min(8vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(15, 61, 46, 0.08);
    backdrop-filter: blur(16px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0 50% 50% 50%;
    background: linear-gradient(135deg, var(--leaf), var(--lime));
    box-shadow: 0 12px 25px rgba(46, 139, 87, 0.35);
    animation: brandPulse 6s ease-in-out infinite;
}

.brand-label {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--forest);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-weight: 600;
}

.nav-list a {
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.25s ease;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--leaf);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    opacity: 0.9;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--leaf);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a.active::after {
    transform: scaleX(1);
}

.nav-list a.active {
    color: var(--leaf);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 1.75rem;
    height: 2px;
    background: var(--forest);
    transition: transform 0.3s ease;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 6rem);
    padding: 6rem min(8vw, 8rem) 4rem;
    background: linear-gradient(135deg, #041f16 0%, #0b3d28 40%, #1a7b4a 100%);
    color: var(--white);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    border-bottom-left-radius: 4rem;
    border-bottom-right-radius: 4rem;
    box-shadow: 0 45px 90px rgba(4, 31, 22, 0.45);
    background-size: 200% 200%;
    animation: heroGradient 18s ease-in-out infinite;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.hero::before {
    background: radial-gradient(circle at 15% 20%, rgba(255, 179, 71, 0.55), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(165, 215, 92, 0.5), transparent 50%);
    filter: blur(10px);
}

.hero::after {
    background: radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.15), transparent 50%);
    mix-blend-mode: screen;
}

.hero-content {
    background: rgba(4, 19, 13, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2.5rem;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 35px 60px rgba(1, 12, 8, 0.45);
    backdrop-filter: blur(12px);
}

.hero-content p,
.hero-content h1 {
    color: var(--white);
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-text {
    margin: 1.2rem 0 2rem;
    max-width: 38rem;
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn {
    position: relative;
    isolation: isolate;
}

.hero-cta .btn::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0.55rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    opacity: 0.95;
    pointer-events: none;
}

.hero-cta .btn:hover,
.hero-cta .btn:focus-visible {
    color: var(--sunset);
}

.hero-cta .btn:hover::after,
.hero-cta .btn:focus-visible::after {
    transform: scaleX(1);
}

.hero-points {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-points span {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    animation: pillPulse 4s ease-in-out infinite;
}

.hero-points span:nth-child(2) {
    animation-delay: 0.8s;
}

.hero-visual {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    width: min(420px, 90%);
    height: clamp(320px, 40vw, 520px);
    border-radius: 2.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    isolation: isolate;
    backdrop-filter: blur(12px);
    padding: 1.25rem;
    margin: 0 auto;
    animation: heroFloat 10s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slider-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    padding-right: 1.25rem;
    animation: sliderMarquee 32s linear infinite;
    flex: 0 0 auto;
    will-change: transform;
}

.slider-frame {
    flex: 0 0 clamp(220px, 22vw, 260px);
    width: clamp(220px, 22vw, 260px);
    aspect-ratio: 3 / 4;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1rem 1.3rem;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.slider-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(4, 19, 13, 0.4) 0%, rgba(4, 19, 13, 0) 75%);
    pointer-events: none;
}

.slider-frame figcaption {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
}

.slider-frame img {
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 1.1rem;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.hero-circle,
.hero-ring,
.hero-leaf {
    position: absolute;
    border-radius: 50%;
}

.hero-circle {
    width: clamp(260px, 35vw, 380px);
    height: clamp(260px, 35vw, 380px);
    border-radius: 45% 55% 55% 45%;
    background: linear-gradient(145deg, rgba(255, 179, 71, 0.9), rgba(165, 215, 92, 0.95));
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.35));
    animation: float 7s ease-in-out infinite;
}

.hero-ring {
    width: clamp(320px, 45vw, 480px);
    height: clamp(320px, 45vw, 480px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 55% 45% 50% 60%;
    top: -60px;
    left: -40px;
    animation: spin 24s linear infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.hero-leaf {
    width: clamp(120px, 18vw, 200px);
    height: clamp(220px, 30vw, 320px);
    border-radius: 60% 40% 60% 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    top: 35px;
    right: 15%;
    transform: rotate(-25deg);
    box-shadow: inset 0 -20px 30px rgba(255, 255, 255, 0.15), 0 20px 40px var(--shadow);
    border: 1px solid rgba(15, 61, 46, 0.08);
}

.icon-badge {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 25% 75% 75% 25%;
    background: var(--cream);
    color: var(--leaf);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.75rem;
    padding: 2rem;
    border: 1px solid rgba(15, 61, 46, 0.12);
    box-shadow: 0 20px 45px rgba(15, 61, 46, 0.12);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(165, 215, 92, 0.25), rgba(255, 179, 71, 0.22));
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.delivery {
    background: linear-gradient(120deg, var(--leaf), #34a853);
    color: var(--white);
}

.delivery h2,
.delivery h3,
.delivery p,
.delivery li {
    color: var(--white);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.delivery ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.delivery li {
    margin-bottom: 0.5rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(15, 61, 46, 0.08);
    box-shadow: 0 15px 35px rgba(15, 61, 46, 0.12);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(46, 139, 87, 0.12);
    color: var(--leaf);
    font-weight: 600;
    font-size: 0.85rem;
}

.offer-card ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--muted);
}

.offer-card li + li {
    margin-top: 0.5rem;
}

/* Kontakt */
.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.contact-info,
.contact-form,
.contact-map {
    background: var(--white);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(15, 61, 46, 0.12);
    border: 1px solid rgba(15, 61, 46, 0.05);
}

.contact-info a {
    color: var(--leaf);
    font-weight: 600;
}

.opening-hours ul {
    list-style: none;
    margin-top: 0.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(28, 43, 41, 0.15);
    padding: 0.75rem 1rem;
    font: inherit;
    margin-bottom: 1rem;
    background: var(--cream);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.form-message {
    min-height: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-map iframe {
    width: 100%;
    min-height: 260px;
    border: none;
    border-radius: 1rem;
}

.offer-card,
.contact-info,
.contact-form,
.contact-map {
    position: relative;
    overflow: hidden;
}

.offer-card::after,
.contact-info::after,
.contact-form::after,
.contact-map::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, rgba(255, 179, 71, 0.16), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(46, 139, 87, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

/* Stopka */
.site-footer {
    padding: 2.5rem min(8vw, 6rem);
    text-align: center;
    background: var(--forest);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.back-to-top {
    align-self: center;
    border-bottom: 1px solid var(--sunset);
    width: fit-content;
    color: var(--sunset);
}

/* Animacje przewijania */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card,
.offer-card,
.contact-info,
.contact-form,
.contact-map {
    animation: cardUp 1s ease forwards;
    animation-play-state: paused;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.visible .feature-card,
.visible .offer-card,
.visible .contact-info,
.visible .contact-form,
.visible .contact-map {
    animation-play-state: running;
}

.feature-card:hover {
    transform: translateY(-14px) scale(1.01);
    border-color: rgba(255, 179, 71, 0.45);
    box-shadow: 0 35px 70px rgba(4, 31, 22, 0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.offer-card:hover,
.contact-info:hover,
.contact-form:hover,
.contact-map:hover {
    transform: translateY(-14px);
    box-shadow: 0 35px 70px rgba(15, 61, 46, 0.24);
    border-color: rgba(46, 139, 87, 0.35);
}

.offer-card:hover::after,
.contact-info:hover::after,
.contact-form:hover::after,
.contact-map:hover::after {
    opacity: 1;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cardUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes sliderMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes heroGradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 100%;
    }
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0.2deg);
    }
    50% {
        transform: translateY(-12px) rotate(-0.6deg);
    }
}

@keyframes brandPulse {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    40% {
        transform: scale(1.05) rotate(-3deg);
    }
    70% {
        transform: scale(0.97) rotate(3deg);
    }
}

@keyframes pillPulse {
    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    }
}


/* Responsywność */
@media (max-width: 960px) {
    .site-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .nav-list {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .section,
    .hero {
        padding: 4rem 1.5rem;
    }

    .section::after {
        inset: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
