/* =========================================================
   AGROTURYSTYKA POD KOGUTEM
   STYLE.CSS
========================================================= */


/* =========================================================
   1. USTAWIENIA PODSTAWOWE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #51483b;
    background: #f6efdf;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   2. KOLORY
========================================================= */

:root {

    --zielony: #536847;

    --ciemny-zielony: #35472f;

    --kremowy: #f6efdf;

    --jasny-kremowy: #fffaf0;

    --bezowy: #ebe0cd;

    --brazowy: #936b4c;

    --tekst: #71685b;

    --zolty: #d7b766;

    --bialy: #ffffff;

    --serif: Georgia, "Times New Roman", serif;
}


/* =========================================================
   3. NAGŁÓWEK
========================================================= */

header {

    width: 100%;

    min-height: 82px;

    padding: 10px 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background: var(--jasny-kremowy);

    border-bottom: 1px solid #ded2bd;

    position: relative;

    z-index: 100;
}


/* =========================================================
   4. LOGO W NAGŁÓWKU
========================================================= */

.logo {

    display: flex;

    align-items: center;

    gap: 12px;
}

.logo img {

    width: 60px;

    height: 60px;

    object-fit: contain;

    flex-shrink: 0;
}

.logo-text {

    display: flex;

    flex-direction: column;
}

.logo-text strong {

    color: var(--ciemny-zielony);

    font-family: var(--serif);

    font-size: 21px;

    line-height: 1.1;
}

.logo-text small {

    margin-top: 4px;

    color: var(--brazowy);

    font-size: 12px;

    letter-spacing: 0.5px;
}


/* =========================================================
   5. PRZYCISK BOOKING
========================================================= */

.booking {

    display: inline-block;

    padding: 10px 18px;

    color: white;

    background: var(--zielony);

    border-radius: 5px;

    font-size: 12px;

    font-weight: bold;

    transition: 0.25s ease;
}

.booking:hover {

    background: var(--ciemny-zielony);

    transform: translateY(-2px);
}


/* =========================================================
   6. GŁÓWNA SEKCJA HERO
========================================================= */

.hero {

    min-height: 600px;

    padding: 85px 8%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 70px;

    background: var(--kremowy);
}


.hero-content {

    width: 50%;

    max-width: 560px;
}


.welcome {

    display: inline-block;

    margin-bottom: 12px;

    color: var(--zielony);

    font-size: 17px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.hero h1 {

    margin-bottom: 25px;

    color: var(--ciemny-zielony);

    font-family: var(--serif);

    font-size: clamp(50px, 6vw, 82px);

    line-height: 1.04;
}


.hero h1 span {

    color: var(--brazowy);

    font-style: italic;
}


.hero p:not(.welcome) {

    max-width: 510px;

    margin-bottom: 28px;

    color: var(--tekst);

    font-size: 15px;
}


/* =========================================================
   7. UNIWERSALNY PRZYCISK
========================================================= */

.button {

    display: inline-block;

    padding: 12px 22px;

    color: white;

    background: var(--zielony);

    border-radius: 5px;

    font-size: 12px;

    font-weight: bold;

    transition: 0.25s ease;

    cursor: pointer;
}

.button:hover {

    background: var(--ciemny-zielony);

    transform: translateY(-2px);
}


/* =========================================================
   8. ZDJĘCIE W HERO
========================================================= */

.hero-image {

    width: 42%;

    max-width: 510px;

    padding: 8px;

    background: white;

    box-shadow:
        0 12px 30px rgba(70, 55, 30, 0.15);

    transform: rotate(1deg);
}


.hero-image img {

    width: 100%;

    height: 450px;

    object-fit: cover;

    cursor: zoom-in;
}


/* =========================================================
   9. SEKCJA O NAS
========================================================= */

.about {

    max-width: 1100px;

    margin: auto;

    padding: 95px 25px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;
}


/* =========================================================
   10. ZDJĘCIE O NAS
========================================================= */

.about-image {

    padding: 8px;

    background: white;

    box-shadow:
        0 8px 22px rgba(70, 55, 30, 0.12);

    transform: rotate(-1deg);
}


.about-image img {

    width: 100%;

    height: 450px;

    object-fit: cover;

    cursor: zoom-in;
}

/* KOREKTA KADRU ZDJĘCIA Z KOGUTEM */


img[src*="kogut1"] {
    object-position: center 30%;
}
/* =========================================================
   11. NAGŁÓWKI SEKCJI
========================================================= */

.label {

    margin-bottom: 10px;

    color: var(--zielony);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;
}


.about h2,
.offer h2,
.location h2,
.contact h2 {

    margin-bottom: 25px;

    color: var(--ciemny-zielony);

    font-family: var(--serif);

    font-size: clamp(40px, 5vw, 58px);

    line-height: 1.15;
}


em {

    color: var(--brazowy);

    font-style: italic;
}


/* =========================================================
   12. TEKST O NAS
========================================================= */

.about-text p:not(.label):not(.signature) {

    margin-bottom: 15px;

    color: var(--tekst);

    font-size: 14px;
}


.signature {

    margin-top: 25px;

    color: var(--brazowy);

    font-size: 17px;

    font-style: italic;
}


.signature strong {

    font-size: 21px;
}


/* =========================================================
   13. SEKCJA "U NAS JEST PO PROSTU MIŁO"
========================================================= */

.offer {

    padding: 105px 25px;

    background: var(--bezowy);

    border-top: 1px solid #ddd0b9;

    border-bottom: 1px solid #ddd0b9;
}


.offer > .label,
.offer > h2,
.offer > .offer-intro {

    max-width: 1000px;

    margin-left: auto;

    margin-right: auto;

    text-align: center;
}


.offer h2 {

    margin-bottom: 15px;
}


.offer-intro {

    max-width: 570px !important;

    margin-bottom: 65px !important;

    color: var(--tekst);

    font-size: 14px;
}


/* =========================================================
   14. ELEMENTY OFERTY
========================================================= */

.offer-items {

    max-width: 1080px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 65px;
}


.offer-item {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: stretch;

    overflow: hidden;

    background: var(--jasny-kremowy);

    border: 1px solid #ddd2bf;

    box-shadow:
        0 7px 20px rgba(70, 55, 30, 0.09);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.offer-item:hover {

    transform: translateY(-4px);

    box-shadow:
        0 12px 28px rgba(70, 55, 30, 0.14);
}


/* =========================================================
   15. GALERIA ZDJĘĆ
========================================================= */

.offer-gallery {

    width: 100%;

    height: 380px;

    display: grid;

    overflow: hidden;

    background: #ddd5c7;
}


/* =========================================================
   16. GALERIA POKOI - 5 ZDJĘĆ
========================================================= */

.gallery-5 {

    grid-template-columns: 2fr 1fr 1fr;

    grid-template-rows: 1fr 1fr;
}


.gallery-5 img:first-child {

    grid-column: 1;

    grid-row: 1 / 3;
}


/* =========================================================
   17. GALERIE Z WIELONA ZDJĘCIAMI
========================================================= */

.gallery-many {

    grid-template-columns: repeat(3, 1fr);

    grid-auto-rows: 1fr;

    gap: 2px;
}


/* =========================================================
   18. ZDJĘCIA W GALERIACH
========================================================= */

.offer-gallery img {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    object-fit: cover;

    border: 2px solid var(--jasny-kremowy);

    cursor: zoom-in;

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}


.offer-gallery img:hover {

    transform: scale(1.05);

    filter: brightness(1.04);
}


/* =========================================================
   19. OPIS OFERTY
========================================================= */

.offer-description {

    padding: 48px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.offer-icon {

    display: block;

    margin-bottom: 8px;

    font-size: 30px;
}


.offer-description h3 {

    margin-bottom: 15px;

    color: var(--zielony);

    font-family: var(--serif);

    font-size: 31px;

    line-height: 1.2;
}


.offer-description p {

    max-width: 420px;

    color: var(--tekst);

    font-size: 14px;

    line-height: 1.85;
}


/* =========================================================
   20. NAPRZEMIENNY UKŁAD
========================================================= */

.offer-item.reverse .offer-gallery {

    order: 2;
}


.offer-item.reverse .offer-description {

    order: 1;
}


/* =========================================================
   21. SEKCJA LOKALIZACJI
========================================================= */

.location {

    padding: 105px 25px;

    background: var(--kremowy);
}


/* =========================================================
   22. NAGŁÓWEK LOKALIZACJI
========================================================= */

.location-heading {

    max-width: 900px;

    margin: 0 auto 55px;

    text-align: center;
}


.location-heading h2 {

    margin-bottom: 20px;
}


.location-heading > p:last-child {

    max-width: 650px;

    margin: auto;

    color: var(--tekst);

    font-size: 14px;
}


/* =========================================================
   23. GOOGLE MAPS
========================================================= */

.google-map {

    width: 100%;

    max-width: 1100px;

    height: 500px;

    margin: 0 auto;

    overflow: hidden;

    background: white;

    border: 8px solid white;

    box-shadow:
        0 10px 30px rgba(70, 55, 30, 0.15);
}


.google-map iframe {

    display: block;

    width: 100%;

    height: 100%;

    border: 0;
}


/* =========================================================
   24. PRZYCISK POD MAPĄ
========================================================= */

.map-button {

    margin-top: 30px;

    text-align: center;
}


/* =========================================================
   25. ATRAKCJE
========================================================= */

.attractions {

    max-width: 1100px;

    margin: 65px auto 0;
}


.attractions > h3 {

    margin-bottom: 25px;

    color: var(--ciemny-zielony);

    font-family: var(--serif);

    font-size: 32px;

    text-align: center;
}


.attraction-list {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.attraction {

    min-height: 165px;

    padding: 25px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: var(--jasny-kremowy);

    border: 1px solid #ddd2bf;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.attraction:hover {

    transform: translateY(-4px);

    box-shadow:
        0 8px 20px rgba(70, 55, 30, 0.1);
}


.attraction > span {

    margin-bottom: 8px;

    font-size: 30px;
}


.attraction strong {

    display: block;

    margin-bottom: 5px;

    color: var(--zielony);

    font-family: var(--serif);

    font-size: 18px;
}


.attraction p {

    color: var(--tekst);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   26. KONTAKT
========================================================= */

.contact {

    padding: 105px 25px;

    text-align: center;

    color: white;

    background: var(--zielony);
}


.contact .label {

    color: #e3c879;
}


.contact h2 {

    color: white;
}


.contact h2 em {

    color: #e3c879;
}


.contact p:not(.label) {

    max-width: 620px;

    margin: 0 auto 28px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
}


.contact .button {

    color: var(--ciemny-zielony);

    background: #f3e2b9;
}


.contact .button:hover {

    background: white;
}


/* =========================================================
   27. STOPKA
========================================================= */

footer {

    min-height: 105px;

    padding: 20px 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background: #eee5d4;

    border-top: 1px solid #ddd1bc;
}


/* =========================================================
   28. LOGO W STOPCE
========================================================= */

.footer-logo {

    display: flex;

    align-items: center;

    gap: 12px;
}


.footer-logo img {

    width: 58px;

    height: 58px;

    object-fit: contain;
}


.footer-logo-text {

    display: flex;

    flex-direction: column;
}


.footer-logo-text strong {

    color: var(--ciemny-zielony);

    font-family: var(--serif);

    font-size: 18px;

    line-height: 1.1;
}


.footer-logo-text small {

    margin-top: 3px;

    color: var(--brazowy);

    font-size: 11px;
}


/* =========================================================
   29. INFORMACJE W STOPCE
========================================================= */

.footer-info {

    text-align: right;
}


.footer-info p {

    color: #766c5d;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   30. LIGHTBOX - POWIĘKSZANIE ZDJĘĆ
========================================================= */

.lightbox {

    position: fixed;

    inset: 0;

    padding: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(25, 30, 22, 0.90);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    z-index: 9999;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.lightbox.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.lightbox img {

    max-width: 90vw;

    max-height: 88vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border: 8px solid white;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);

    animation: zoomIn 0.25s ease;
}


/* =========================================================
   31. ANIMACJA POWIĘKSZENIA
========================================================= */

@keyframes zoomIn {

    from {

        transform: scale(0.85);

        opacity: 0;
    }

    to {

        transform: scale(1);

        opacity: 1;
    }
}


/* =========================================================
   32. PRZYCISK ZAMYKANIA LIGHTBOX
========================================================= */

.lightbox-close {

    position: absolute;

    top: 20px;

    right: 30px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    color: white;

    background: rgba(255, 255, 255, 0.15);

    font-size: 35px;

    cursor: pointer;

    z-index: 10000;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.lightbox-close:hover {

    background: rgba(255, 255, 255, 0.3);

    transform: rotate(90deg);
}


/* =========================================================
   33. TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero {

        gap: 40px;

        padding-left: 5%;

        padding-right: 5%;
    }


    .hero h1 {

        font-size: 55px;
    }


    .about {

        gap: 40px;
    }


    .offer-description {

        padding: 35px;
    }
}


/* =========================================================
   34. TABLET - OFERTA
========================================================= */

@media (max-width: 900px) {

    .offer-item {

        grid-template-columns: 1fr;
    }


    .offer-item.reverse .offer-gallery {

        order: 1;
    }


    .offer-item.reverse .offer-description {

        order: 2;
    }


    .offer-gallery {

        height: 380px;
    }


    .gallery-many {

        grid-template-columns: repeat(3, 1fr);
    }


    .attraction-list {

        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   35. TELEFON
========================================================= */

@media (max-width: 750px) {

    /* HEADER */

    header {

        min-height: 70px;

        padding: 10px 20px;
    }


    .logo img {

        width: 50px;

        height: 50px;
    }


    .logo-text strong {

        font-size: 17px;
    }


    .logo-text small {

        font-size: 11px;
    }


    .booking {

        padding: 8px 12px;

        font-size: 10px;
    }


    /* HERO */

    .hero {

        min-height: auto;

        padding: 60px 25px;

        flex-direction: column;

        gap: 40px;
    }


    .hero-content {

        width: 100%;

        max-width: none;
    }


    .hero h1 {

        font-size: 50px;
    }


    .hero-image {

        width: 100%;

        max-width: 500px;
    }


    .hero-image img {

        height: 350px;
    }


    /* O NAS */

    .about {

        grid-template-columns: 1fr;

        gap: 45px;

        padding: 70px 20px;
    }


    .about-image img {

        height: 350px;
    }


    /* OFERTA */

    .offer {

        padding: 75px 20px;
    }


    .offer-gallery {

        height: 350px;
    }


    /* MAPA */

    .location {

        padding: 75px 20px;
    }


    .google-map {

        height: 420px;

        border-width: 5px;
    }


    /* ATRAKCJE */

    .attraction-list {

        grid-template-columns: 1fr 1fr;
    }


    /* STOPKA */

    footer {

        padding: 30px 20px;

        flex-direction: column;

        justify-content: center;

        text-align: center;
    }


    .footer-logo {

        justify-content: center;
    }


    .footer-info {

        text-align: center;
    }
}


/* =========================================================
   36. MAŁY TELEFON
========================================================= */

@media (max-width: 500px) {

    /* HEADER */

    header {

        padding: 10px 15px;
    }


    .logo {

        gap: 8px;
    }


    .logo img {

        width: 45px;

        height: 45px;
    }


    .logo-text strong {

        font-size: 15px;
    }


    .logo-text small {

        font-size: 9px;
    }


    .booking {

        padding: 7px 9px;

        font-size: 8px;
    }


    /* HERO */

    .hero {

        padding: 55px 20px;
    }


    .hero h1 {

        font-size: 43px;
    }


    .hero-image img {

        height: 280px;
    }


    /* O NAS */

    .about {

        padding: 60px 18px;
    }


    .about-image img {

        height: 280px;
    }


    /* OFERTA */

    .offer {

        padding: 65px 15px;
    }


    .offer-intro {

        margin-bottom: 45px !important;
    }


    .offer-items {

        gap: 35px;
    }


    .offer-gallery {

        height: 360px;
    }


    /* DOWOLNA LICZBA ZDJĘĆ */

    .gallery-many {

        grid-template-columns: 1fr 1fr;
    }


    .offer-description {

        padding: 30px 22px;
    }


    .offer-icon {

        font-size: 27px;
    }


    .offer-description h3 {

        font-size: 27px;
    }


    .offer-description p {

        font-size: 13px;

        line-height: 1.7;
    }


    /* MAPA */

    .location {

        padding: 65px 15px;
    }


    .google-map {

        height: 350px;

        border-width: 4px;
    }


    /* ATRAKCJE */

    .attraction-list {

        grid-template-columns: 1fr;
    }


    .attraction {

        min-height: 130px;
    }


    /* KONTAKT */

    .contact {

        padding: 70px 18px;
    }


    /* STOPKA */

    footer {

        padding: 30px 15px;
    }


    .footer-logo img {

        width: 50px;

        height: 50px;
    }


    /* LIGHTBOX */

    .lightbox {

        padding: 20px;
    }


    .lightbox img {

        max-width: 94vw;

        max-height: 82vh;

        border-width: 5px;
    }


    .lightbox-close {

        top: 15px;

        right: 15px;

        width: 42px;

        height: 42px;

        font-size: 30px;
    }
}