/* ======== GOOGLE FONTS ======== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ======== CSS VARIABLES ======== */
:root {
    --header-height: 3.5rem;

    /* Colors */
    --primary-blue: #3a86ff;
    --secondary-green: #38b000;
    --light-beige: #fefae0;
    --dark-text: #333;
    --light-text: #ffffff;
    --body-bg: #f8f9fa;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
    
    /* Font */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Font weight */
    --font-light: 300;
    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* ======== BASE STYLES (Mobile First) ======== */
*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-bg);
    color: var(--dark-text);
}

h1, h2, h3 {
    font-weight: var(--font-semi-bold);
    line-height: 1.3;
}

ul {
    list-style: none;
}

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

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

/* ======== REUSABLE CSS CLASSES ======== */
.container {
    max-width: 1120px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.section {
    padding: 5rem 0 3rem;
}

.section__title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.section__title span {
    position: relative;
    padding-bottom: 0.5rem;
}

.section__title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-green);
    border-radius: 2px;
}

.section__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.7;
    color: #495057;
}

.button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-semi-bold);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #2b70e0;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ======== HEADER & NAVIGATION ======== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-weight: var(--font-bold);
    color: var(--primary-blue);
}

.nav__toggle {
    display: inline-flex;
    cursor: pointer;
    color: var(--dark-text);
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        background-color: var(--container-bg); /* Solid white background */
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        transition: right .3s;
        box-shadow: -4px 0 15px rgba(0,0,0,0.15);
        z-index: 110; /* Ensure it's above the header */
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav__link {
    font-weight: var(--font-semi-bold);
    transition: color .3s;
}

.nav__link:hover {
    color: var(--primary-blue);
}

/* Show menu */
.show-menu {
    right: 0;
}

/* Add shadow to header on scroll */
.scroll-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ======== HERO SECTION ======== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    overflow: hidden; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: url('https://kajaki-pisz.pl/img/rzeka-pisz');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero__subtitle {
    font-size: var(--h3-font-size);
    font-weight: var(--font-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__button {
    background-color: var(--secondary-green);
}

.hero__button:hover {
    background-color: #2a8a00;
}

/* ======== ABOUT US SECTION ======== */
.about__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.about__image img {
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.about__content .section__description {
    text-align: left;
    margin: 0;
    max-width: none;
}

/* ======== HOW IT WORKS SECTION ======== */
#jak-to-dziala {
    background-color: var(--light-beige);
}

.process__grid {
    display: grid;
    gap: 2rem;
}

.process__step {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--container-bg);
    border-radius: .75rem;
    transition: transform .3s, box-shadow .3s;
}

.process__step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.process__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(58, 134, 255, 0.1);
    margin-bottom: 1rem;
    transition: transform .3s;
}
.process__step:hover .process__icon {
    transform: scale(1.1);
}

.process__icon svg {
    color: var(--primary-blue);
    width: 36px;
    height: 36px;
}

.process__step-title {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

/* ======== WHY US / FAQ SECTION ======== */
#dlaczego-my {
    background-color: #e9ecef;
}
.faq__grid {
    display: grid;
    gap: 1.5rem;
}

.faq__item {
    background-color: var(--container-bg);
    border-radius: .75rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform .3s, box-shadow .3s;
}

.faq__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.faq__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(56, 176, 0, 0.1);
    color: var(--secondary-green);
    border-radius: .5rem;
}
.faq__icon svg {
    width: 24px;
    height: 24px;
}

.faq__question {
    font-size: 1.15rem;
    margin-bottom: .5rem;
    color: var(--dark-text);
}

.faq__answer {
    line-height: 1.7;
    color: #495057;
}


/* ======== MAP SECTION ======== */
#map {
    height: 450px;
    width: 100%;
    border-radius: .75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 5;
}

/* ======== PRICING SECTION ======== */
.pricing__grid {
    display: grid;
    gap: 2rem;
    justify-content: center;
}

.pricing__card {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: .75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid var(--border-color);
}

.pricing__card-title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.pricing__card-price {
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--primary-blue);
    margin-bottom: .5rem;
}

.pricing__card-price span {
    font-size: var(--normal-font-size);
    font-weight: var(--font-regular);
    color: var(--dark-text);
}

.pricing__card-description {
    font-size: var(--small-font-size);
    margin-top: 1rem;
    color: #6c757d;
}

.pricing__transport-list {
    text-align: left;
    display: inline-block;
}

.pricing__transport-list li {
    padding: .5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.pricing__transport-list li:last-child {
    border-bottom: none;
}

/* ======== RESERVATION SECTION ======== */
.booking__wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.booking__form {
    display: grid;
    gap: 1.5rem;
}
.section__description a {
    color: var(--primary-blue);
    font-weight: var(--font-semi-bold);
}
.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-weight: var(--font-semi-bold);
    margin-bottom: .5rem;
    font-size: var(--small-font-size);
}

.form__input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: border-color .3s, box-shadow .3s;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.25);
}

.form__button {
    width: 100%;
}

#form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: .5rem;
    text-align: center;
    font-weight: var(--font-semi-bold);
    display: none; /* Hidden by default */
}

#form-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    display: block;
}

#form-message.error {
    background-color: #f8d7da;
    color: #842029;
    display: block;
}


/* ======== FOOTER ======== */
.footer {
    background-color: #343a40;
    color: var(--light-text);
    padding: 3rem 0;
    text-align: center;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer a {
    color: var(--primary-blue);
    transition: color 0.3s;
}

.footer a:hover {
    color: #69a6ff;
}

.footer__copy {
    margin-top: 1.5rem;
    font-size: var(--small-font-size);
    color: #adb5bd;
}

/* ======== SUBPAGE STYLES ======== */
.subpage-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    background-image: url('https://kajaki-pisz.pl/img/pisa-lot.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.article__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.article__grid.reverse {
    direction: rtl;
}
.article__grid.reverse > * {
    direction: ltr;
}

.article__image img {
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article__content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: left;
}

#faq-mazury .faq__item {
    align-items: center;
}

#faq-mazury .faq__content {
    flex: 1;
}

#faq-mazury .faq__icon {
    display: none; /* Hiding icons for a cleaner text-based FAQ */
}


/* ======== RESPONSIVE DESIGN (BREAKPOINTS) ======== */

/* For medium devices (tablets) */
@media screen and (min-width: 768px) {
    :root {
        --h1-font-size: 3.5rem;
        --h2-font-size: 2rem;
    }
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    .section {
        padding: 7rem 0 5rem;
    }
    .nav__toggle {
        display: none;
    }
    .nav__menu {
        width: auto;
    }
    .nav__list {
        flex-direction: row;
        column-gap: 2.5rem;
    }

    .about__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
    }
    
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }

    .article__grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }

    .article__grid.reverse {
        grid-template-columns: 1fr 1.2fr;
    }

    #faq-mazury .faq__grid {
        grid-template-columns: 1fr; /* Single column for better readability */
    }
}

/* For large devices (desktops) */
@media screen and (min-width: 1024px) {
    .header {
        background-color: rgba(255, 255, 255, 0.85);
    }
    .hero__title {
      font-size: 4rem;
    }
    .process__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
