/*
Theme Name: Bikerental Theme
Theme URI: https://roweryporeba.pl
Description: Premium MTB-relax theme for bike rentals at agritourism properties. Photo-driven, no emojis, full SVG iconography. Dedicated /rezerwacja flow, WooCommerce hidden from public.
Version: 3.1.0
Author: Bikerental
Text Domain: bikerental
*/

/* ════════════════════════════════════════════════════════════════════════════
   BIKERENTAL THEME — style.css v3.1
   Foundation: tokens, reset, header, footer, buttons.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Typography */
    --cu-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --cu-display: 'Syne', 'DM Sans', system-ui, sans-serif;
    --cu-mono: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Surfaces */
    --cu-bg: #F4F1EB;
    --cu-surface: #FFFFFF;
    --cu-surface-2: #EDEAE2;
    --cu-surface-3: #E2DFD5;

    /* Ink */
    --cu-ink: #0F1A15;
    --cu-ink-mid: #2A3A30;
    --cu-muted: #6A7567;

    /* Borders */
    --cu-border: #D8D5CB;
    --cu-border-2: #BBB6A8;

    /* Accent — warm MTB orange */
    --cu-accent: #E85D2F;
    --cu-accent-hover: #C44A23;
    --cu-accent-soft: #FCEAE0;
    --cu-accent-ink: #C44A23;

    /* Secondary — deep forest */
    --br-secondary: #1F3F2E;
    --br-secondary-soft: #DDE7DF;
    --br-secondary-ink: #15302A;

    /* Status */
    --cu-success: #2F7A3C;
    --cu-success-soft: #DFEFE2;
    --cu-warn: #B5781C;
    --cu-warn-soft: #F8EAC8;
    --cu-error: #B5301C;
    --cu-error-soft: #F8DBD5;

    /* Radii */
    --cu-radius-pill: 999px;
    --cu-radius-sm: 10px;
    --cu-radius-md: 16px;
    --cu-radius: 20px;
    --cu-radius-lg: 28px;
    --cu-radius-xl: 40px;

    /* Shadows */
    --cu-shadow-xs: 0 1px 2px rgba(15, 26, 21, .04);
    --cu-shadow-sm: 0 1px 2px rgba(15, 26, 21, .06), 0 8px 18px -8px rgba(15, 26, 21, .10);
    --cu-shadow-md: 0 1px 2px rgba(15, 26, 21, .06), 0 18px 36px -12px rgba(15, 26, 21, .18);
    --cu-shadow-lg: 0 1px 2px rgba(15, 26, 21, .08), 0 36px 72px -24px rgba(15, 26, 21, .30);
    --cu-shadow-accent: 0 18px 40px -16px color-mix(in oklab, var(--cu-accent) 55%, transparent);

    /* Motion */
    --cu-ease: cubic-bezier(.2, .7, .2, 1);
    --cu-ease-out: cubic-bezier(.16, 1, .3, 1);
    --cu-tx: .24s var(--cu-ease);

    /* Layout */
    --full-container: 100%;
    --cu-container: 1240px;
    --cu-container-narrow: 880px;
    --cu-header-h: 72px;
    --cu-section-y: clamp(64px, 9vw, 120px);

    /* Legacy aliases for woocommerce.css */
    --cu-max-width: var(--cu-container);
    --cu-gutter: 20px;

    /* Image placeholders (overridden by Customizer) */
    --hero-image: none;
    --about-image: none;
    --reservation-image: none;
}

/* ── Reset / base ─────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--cu-header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--cu-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--cu-ink);
    background: var(--cu-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -.5px;
}

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

a {
    color: var(--cu-accent);
    text-decoration: none;
    transition: color var(--cu-tx);
}

a:hover {
    color: var(--cu-accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cu-display);
    color: var(--cu-ink);
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0 0 .5em;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--cu-accent);
    color: #fff;
}

.container {
    width: min(100% - 40px, var(--cu-container));
    margin-inline: auto;
}

.container-full {
    width: var(--full-container);
    margin-inline: auto;
}

.container--narrow {
    width: min(100% - 40px, var(--cu-container-narrow));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: fixed !important;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: var(--cu-ink);
    color: #fff;
    clip: auto;
    border-radius: var(--cu-radius-sm);
    z-index: 9999;
}

/* ════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */
.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--cu-radius-pill);
    font-family: var(--cu-font);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform var(--cu-tx), box-shadow var(--cu-tx), background var(--cu-tx), color var(--cu-tx), border-color var(--cu-tx);
    min-height: 48px;
    white-space: nowrap;
    user-select: none;
    position: relative;
}

.m-btn--lg {
    padding: 17px 30px;
    font-size: 16px;
    min-height: 56px;
}

.m-btn--sm {
    padding: 9px 16px;
    font-size: 13px;
    min-height: 38px;
}

.m-btn--block {
    width: 100%;
}

.m-btn--icon svg {
    transition: transform var(--cu-tx);
}

.m-btn--icon:hover svg {
    transform: translateX(3px);
}

.m-btn--primary {
    background: var(--cu-accent);
    color: #fff;
    box-shadow: var(--cu-shadow-accent);
}

.m-btn--primary:hover {
    background: var(--cu-accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.m-btn--secondary {
    background: #0a2215;
    color: #fff;
    box-shadow: 0 18px 40px -16px color-mix(in oklab, #0a2215 55%, transparent);
}

.m-btn--secondary:hover {
    background: var(--br-secondary-ink);
    color: #fff;
    transform: translateY(-2px);
}

.m-btn--ghost {
    background: var(--cu-surface);
    color: var(--cu-ink);
    border-color: var(--cu-border);
}

.m-btn--ghost:hover {
    border-color: var(--cu-ink);
    background: var(--cu-surface-2);
    color: var(--cu-ink);
}

.m-btn--glass {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.m-btn--glass:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-2px);
}

.m-btn--dark {
    background: var(--cu-ink);
    color: #fff;
}

.m-btn--dark:hover {
    background: #000;
    color: #fff;
}

.m-btn:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--cu-accent) 55%, transparent);
    outline-offset: 3px;
}

/* Text link with arrow */
.m-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cu-accent);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
    transition: gap var(--cu-tx), color var(--cu-tx);
}

.m-link--lg {
    font-size: 17px;
}

.m-link:hover {
    gap: 14px;
    color: var(--cu-accent-hover);
}

.m-link svg {
    transition: transform var(--cu-tx);
}

/* ════════════════════════════════════════════════════════════════════════════
   EYEBROW
   ════════════════════════════════════════════════════════════════════════════ */
.m-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 12px/1 var(--cu-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cu-accent);
    margin-bottom: 20px;
}

.m-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
}

.m-eyebrow--secondary {
    color: var(--br-secondary);
}

/* ════════════════════════════════════════════════════════════════════════════
   SITE HEADER
   ════════════════════════════════════════════════════════════════════════════ */


.anim {
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: transparent;
    transition: background var(--cu-tx), border-color var(--cu-tx), backdrop-filter var(--cu-tx);
    border-bottom: transparent;
    background: linear-gradient(180deg, black, transparent);
}

.chata-logo {
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    max-width: 180px;
    margin: 1rem auto 0;
    filter: brightness(30.5);
}

.site-header.is-scrolled {
    /*background: linear-gradient(180deg, white, transparent);*/
}

.site-header.is-scrolled .chata-logo {
    max-width: 130px;
    margin: .5rem auto 0;
    /*filter: brightness(1);*/
}


/* On home page, the hero is dark — invert header text until scrolled */
body.home .site-header:not(.is-scrolled) .site-logo,
body.home .site-header:not(.is-scrolled) .primary-nav .nav-list a {
    color: #fff;
}

body.home .site-header:not(.is-scrolled) .logo-mark {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    backdrop-filter: blur(8px);
}

body.home .site-header:not(.is-scrolled) .nav-toggle {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    backdrop-filter: blur(8px);
}

/* Push main content below fixed header on non-home pages */
body:not(.home) .site-main {
    padding-top: var(--cu-header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--cu-header-h);
    padding-block: 12px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cu-ink);
    font-family: var(--cu-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.015em;
    transition: color var(--cu-tx);
}

.site-logo:hover {
    color: var(--cu-accent);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--cu-accent);
    color: #fff;
    border-radius: 12px;
    transition: background var(--cu-tx), color var(--cu-tx);
}

.primary-nav {
    display: none;
}

.primary-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav .nav-list a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: var(--cu-radius-pill);
    color: var(--cu-ink-mid);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background var(--cu-tx), color var(--cu-tx);
}

.primary-nav .nav-list a:hover,
.primary-nav .nav-list .current-menu-item > a {
    background: color-mix(in oklab, var(--cu-ink) 8%, transparent);
    color: var(--cu-ink);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.header-cta {
    padding: 11px 20px;
    min-height: 44px;
    font-size: 14px;
}

/* Hamburger */
.nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--cu-surface);
    border: 1px solid var(--cu-border);
    border-radius: 12px;
    color: var(--cu-ink);
    cursor: pointer;
    transition: border-color var(--cu-tx), background var(--cu-tx), color var(--cu-tx);
}

.nav-toggle:hover {
    border-color: var(--cu-ink);
}

.nav-toggle__close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__menu {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: inline-grid;
}

@media (min-width: 960px) {
    .primary-nav {
        display: block;
    }

    .header-actions {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }
}

/* Mobile drawer */
@media (max-width: 959px) {
    .primary-nav {
        display: block;
        position: fixed;
        inset: var(--cu-header-h) 0 0 0;
        background: var(--cu-bg);
        padding: 32px 24px env(safe-area-inset-bottom, 32px);
        transform: translateY(-110%);
        transition: transform .35s var(--cu-ease-out);
        z-index: 70;
        overflow-y: auto;
        visibility: hidden;
    }

    .primary-nav.is-open {
        transform: translateY(0);
        visibility: visible;
    }

    .primary-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .primary-nav .nav-list a {
        display: flex;
        align-items: center;
        padding: 20px 20px;
        border-radius: var(--cu-radius-md);
        font-size: 18px;
        font-weight: 600;
        color: var(--cu-ink);
        background: var(--cu-surface);
        border: 1px solid var(--cu-border);
        min-height: 60px;
    }

    .primary-nav .nav-list a:hover {
        background: var(--cu-surface-2);
        border-color: var(--cu-ink);
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: #101010;
    color: color-mix(in oklab, #fff 75%, transparent);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 0 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 360px;
}

.footer-brand .site-logo,
.footer-brand .site-logo:hover {
    color: #fff;
}

.footer-brand .logo-mark {
    background: var(--cu-accent);
}

.footer-tagline {
    color: color-mix(in oklab, #fff 60%, transparent);
    margin: 0;
    line-height: 1.5;
}

.footer-brand img {
    max-width: 120px;
    filter: brightness(25.5);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: color-mix(in oklab, #fff 8%, transparent);
    border-radius: 50%;
    color: #fff;
    transition: background var(--cu-tx), transform var(--cu-tx);
}

.footer-social a:hover {
    background: var(--cu-accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.footer-col__title {
    color: #fff;
    font-family: var(--cu-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: color-mix(in oklab, #fff 70%, transparent);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--cu-tx);
}

.footer-col a:hover {
    color: var(--cu-accent);
}

.footer-contact {
    font-style: normal;
}

.footer-contact p {
    margin: 0 0 10px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: color-mix(in oklab, #fff 75%, transparent);
}

.footer-contact__ic {
    color: var(--cu-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: inherit;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid color-mix(in oklab, #fff 10%, transparent);
    padding: 20px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    color: color-mix(in oklab, #fff 55%, transparent);
}

.footer-bottom-sep {
    opacity: .5;
}

@media (min-width: 760px) {
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1.3fr 2fr;
        align-items: start;
    }
}

@media (max-width: 568px) {
    .chata-logo {
        max-width: 120px;
    }

    .m-hero__stats .m-hero__stat:nth-of-type(3) {
        display: none;
    }


}

/* ════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--cu-accent) 55%, transparent);
    outline-offset: 2px;
    border-radius: 4px;
}


/* Główne style sekcji galerii */
.m-section--gallery {
    padding-bottom: 5rem;
    overflow: hidden; /* Zapobiega poziomemu scrollowi strony */
    background: var(--cu-ink);
    color: #fff;
}

.m-section--gallery h2 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    color: #fff;
    margin: 0 0 24px;
    letter-spacing: -.025em;
    max-width: max-content;
}

.m-gallery-slider {
    width: 100%;
    padding: 20px 0 40px 0; /* Miejsce na cień i kropki paginacji */
}


.m-gallery-slider__link {
    display: block;
    overflow: hidden;
    border-radius: 8px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.m-gallery-slider__link:hover {
    transform: translateY(-5px);

}


/* Styl dla placeholderów w trybie developerskim */
.m-gallery-slider__placeholder {
    height: 300px;
    width: 400px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 8px;
}

/* Personalizacja kropek paginacji */
.m-gallery-slider__pagination.swiper-pagination-bullets {
    bottom: 0px;
}

.m-gallery-slider__slide {
    width: auto !important; /* !important, jeśli Swiper próbuje wstrzyknąć stałą szerokość inline */
    height: 300px; /* Wysokość slajdu zgodna z wysokością zdjęcia */
    display: flex;
    justify-content: center;
    align-items: center;
}

.m-section--gallery .m-sec-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--cu-muted);
    max-width: max-content;
    margin: 0 auto;
    line-height: 1.55;
}


/* Styl dla zdjęcia */
.m-gallery-slider__img {
    height: 300px; /* Sztywna wysokość */
    width: auto; /* Szerokość wynika z proporcji zdjęcia */
    display: block;
    object-fit: contain; /* Gwarantuje, że całe zdjęcie jest widoczne */
}