/* =========================================
   0. ZMIENNE I RESET (GLOBALNE)
   ========================================= */
:root {
    /* Paleta kolorów "Ziemia" */
    --color-dark-bg: #F7F4EF;   /* Główne tło (Jasny Beż) */
    --color-light-bg: #EDE8DF;  /* Drugie tło (Piaskowy) */
    --color-primary: #8B7D6A;   /* Akcent (Brąz/Taupe) */
    --color-secondary: #B8A99A; /* Akcent pomocniczy */
    --color-text-dark: #333333; /* Główny tekst */
    --color-text-light: #F7F4EF; /* Tekst na ciemnym tle */
    --color-border: #D4C9BD;    /* Linie */
    
    /* Paleta Kalkulatora */
    --color-calc-bg: #1A2E26;   /* Ciemna zieleń */
    --color-calc-accent: #7D8F5E; /* Oliwkowy akcent */

    /* Typografia */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lora', serif;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-dark-bg);
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* TYPOGRAFIA I ELEMENTY BAZOWE */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}
.section-title.light { color: var(--color-text-light); }
.section-title.dark { color: var(--color-text-dark); }

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}
.section-subtitle.light { color: #ccc; }

.button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--color-primary);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid var(--color-primary);
    cursor: pointer;
}
.button:hover {
    background: transparent;
    color: var(--color-primary);
}
.small-button { padding: 8px 18px; font-size: 0.85rem; }
.button.secondary { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.button.secondary:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.link-more { color: var(--color-primary); font-weight: 700; }
.link-more:hover { text-decoration: underline; }


/* =========================================
   1. HEADER I NAWIGACJA
   ========================================= */
.main-header {
    background: var(--color-dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
}
.logo svg { margin-right: 10px; }

.main-nav ul { list-style: none; display: flex; gap: 30px; }

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.bar { width: 25px; height: 3px; background: #333; transition: 0.3s; }
.hamburger-menu.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* =========================================
   2. HERO SECTIONS (Index vs Retreats)
   ========================================= */

/* A. HERO DLA INDEX.HTML (Statyczne zdjęcie) */
.hero-section.hero-home-filtered-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    overflow: hidden;
    background-color: var(--color-dark-bg);
}
.hero-image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-filtered-image {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Filtr "Ziemisty" dla statycznego zdjęcia */
    filter: brightness(0.8) contrast(1.1) grayscale(0.1) sepia(0.3) hue-rotate(340deg);
    transform: scale(1.05);
}

/* B. HERO DLA RETREATS.HTML (Slider) */
.hero-slider-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.slider-background-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.slider-image {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease;
    filter: brightness(0.8) contrast(1.1) grayscale(0.1) sepia(0.2) hue-rotate(340deg);
}
.slider-image.active { opacity: 1; }

/* Wspólne style tekstu Hero */
.hero-content-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.main-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    /* Domyślny kolor dla indexu */
    color: var(--color-text-light); 
}
.main-retreat-title {
    /* Specyficzne dla retreats - większe */
    font-size: 5rem;
    text-transform: uppercase;
    font-weight: 700;
}
.sub-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-weight: 300;
}
.sub-retreat-title {
    font-size: 2rem;
    transition: opacity 0.5s;
}
.value-proposition {
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 30px;
}


/* =========================================
   3. SEKCJE TREŚCI INDEX.HTML
   ========================================= */
.content-section { padding: 80px 0; }
.dark-bg { background-color: var(--color-light-bg); }
.light-bg { background-color: var(--color-dark-bg); }

/* Offer Grid (Index - Retreaty/Eventy) */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.offer-card {
    background-color: var(--color-dark-bg);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border);
    text-align: center;
}
.offer-image {
    width: 100%; height: 350px;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 4px;
}
.offer-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.offer-description { color: #666; margin-bottom: 25px; }

/* About Grid (Index & Retreats Intro) */
.about-grid, .about-retreat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image, .about-retreat-img { 
    width: 100%; border-radius: 4px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}
.dark-text { color: var(--color-text-dark); font-size: 1.1rem; line-height: 1.8; margin-bottom: 15px; }

/* Bio Grid (Index - Marcela & Aga) */
.bio-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}
.bio-card-link { display: block; flex: 1; max-width: 500px; color: inherit; }
.bio-card {
    background-color: var(--color-light-bg);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--color-border);
    height: 100%;
    transition: transform 0.3s;
}
.bio-card:hover { transform: translateY(-5px); }
.bio-photo {
    width: 150px; height: 150px;
    border-radius: 50%; object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--color-primary);
}
.bio-name { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); margin-bottom: 10px; }
.bio-description { font-size: 0.95rem; color: #555; }

/* Testimonials (Index) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--color-light-bg);
    padding: 30px;
    border-radius: 4px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.quote-text { font-style: italic; margin-bottom: 15px; font-size: 1rem; color: #555; }
.quote-author { color: var(--color-primary); font-weight: 700; text-align: right; }

/* Newsletter (Index) */
.newsletter-box {
    text-align: center;
    background-color: var(--color-dark-bg);
    padding: 50px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    max-width: 800px;
    margin: 0 auto;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 15px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
}
.privacy-note { font-size: 0.8rem; color: #888; }


/* =========================================
   4. SEKCJE TREŚCI RETREATS.HTML
   ========================================= */

/* Elements Grid (4 Żywioły - Szczegółowe) */
.elements-section {
    background-color: #111;
    color: #fff;
    padding: 100px 0;
}
.elements-grid.detailed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}
.element-column.detailed {
    background: rgba(255,255,255,0.03);
    padding-bottom: 25px;
    border-radius: 8px;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}
.element-image-wrapper {
    position: relative;
    height: 220px;
    margin-bottom: 20px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.element-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: 0.5s;
}
.element-column:hover img { transform: scale(1.05); filter: brightness(1); }
.element-badge {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.7); color: #fff; padding: 5px 12px;
    font-size: 0.8rem; border: 1px solid #fff; letter-spacing: 1px;
}
.element-content-body { padding: 0 20px; }
.element-title {
    color: #E8C46F; text-align: center; font-family: var(--font-heading);
    font-size: 1.6rem; margin-bottom: 15px; line-height: 1.2; text-transform: uppercase;
}
.element-desc { font-size: 0.95rem; color: #ddd; margin-bottom: 15px; line-height: 1.5; }
.element-header-small {
    color: #E8C46F; font-weight: 700; margin-top: 20px; margin-bottom: 10px;
    text-transform: uppercase; font-size: 0.85rem;
}
.element-list { list-style: none; padding-left: 0; margin-bottom: 20px; }
.element-list li { font-size: 0.9rem; color: #ccc; margin-bottom: 8px; position: relative; padding-left: 15px; }
.element-list li::before { content: "•"; color: #E8C46F; position: absolute; left: 0; }
.element-effect { font-style: italic; font-size: 0.9rem; border-top: 1px solid #444; padding-top: 15px; color: #bbb; }

/* Food Grid & Rotation */
.food-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.food-image-col.relative-wrapper {
    position: relative; height: 500px; width: 100%;
}
.food-hero-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: 4px; box-shadow: 15px 15px 0 var(--color-primary);
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.food-hero-img.active { opacity: 1; z-index: 2; }
.food-highlights { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.highlight-item {
    display: flex; align-items: center; gap: 15px; font-size: 1.1rem;
    font-weight: 600; color: var(--color-primary); background-color: var(--color-dark-bg);
    padding: 15px; border-radius: 4px; border: 1px solid var(--color-border);
}

/* Galeria Zakwaterowania */
.accommodation-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.accommodation-gallery img {
    width: 100%; height: 250px;
    object-fit: cover; border-radius: 4px; transition: transform 0.3s;
}
.accommodation-gallery img:hover { transform: scale(1.02); }


/* =========================================
   5. KALKULATOR / KONFIGURATOR
   ========================================= */
.calculator-wrapper {
    background-color: var(--color-calc-bg);
    color: #fff;
    padding-bottom: 140px; /* Miejsce na sticky footer */
}
.calculator-container { max-width: 900px; margin: 0 auto; }
.calc-step { margin-bottom: 60px; }

.step-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}
.step-info { margin-bottom: 25px; color: #ccc; font-style: italic; font-size: 0.95rem; }

/* Kafelki Dni (Proste przyciski) */
.options-row { display: flex; gap: 20px; }
.calc-option.duration-opt {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    padding: 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.calc-option.duration-opt:hover { background: rgba(255,255,255,0.1); }
.calc-option.duration-opt.active {
    background: var(--color-calc-accent);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 15px rgba(125, 143, 94, 0.5);
}
.opt-name { display: block; font-size: 1.4rem; font-weight: 700; margin-bottom: 5px; }
.opt-desc { display: block; font-size: 0.9rem; opacity: 0.8; }

/* Siatka dla Kafelków Zdjęciowych */
.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.options-row.acc-row {
    display: flex; gap: 30px;
}

/* Kafelki Zdjęciowe (Image Tiles) */
.image-tile {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    height: 220px;
}
/* Większa wysokość dla zakwaterowania */
.image-tile.acc-opt { flex: 1; height: 300px; }

/* Overlay na kafelku */
.tile-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    transition: background 0.3s;
}

.image-tile:hover .tile-overlay { background: rgba(0, 0, 0, 0.4); }
.image-tile.active {
    border-color: #fff;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.image-tile.active .tile-overlay {
    background: rgba(125, 143, 94, 0.85); /* Zielony Overlay po wybraniu */
}

/* Teksty na kafelkach */
.tile-overlay h4, .tile-overlay .opt-name {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}
.tile-overlay p, .tile-overlay .opt-sub {
    color: #eee;
    font-size: 0.85rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.opt-price-tag {
    margin-top: 10px;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* PRZYPISANIE ZDJĘĆ TŁA DLA KALKULATORA */
#opt-villa { background-image: url('villa_retreat.jpg'); }
#opt-soma { background-image: url('soma_house.jpg'); }
#opt-earth { background-image: url('ziemia.jpg'); }
#opt-water { background-image: url('woda.jpg'); }
#opt-fire { background-image: url('ogien.jpg'); }
#opt-air { background-image: url('powietrze.jpg'); }
#opt-photo { background-image: url('541982130_17941926183025418_1626223522885689085_n.jpg'); }
#opt-yoga { background-image: url('DSC_2303.jpg'); } 
#opt-jewelry { background-image: url('541261807_17941705497025418_73299282333928349_n.jpg'); }
#opt-tea { background-image: url('20250227_065126.jpg'); }


/* Sticky Summary (Stopka Kalkulatora) */
.sticky-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0d1a15; /* Bardzo ciemny zielony */
    padding: 20px 0;
    border-top: 1px solid var(--color-calc-accent);
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.summary-details {
    color: #ccc;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.total-price-box {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
}
.total-price-box .label {
    font-size: 1rem;
    font-weight: 400;
    color: #aaa;
    margin-right: 10px;
}
.cta-calc-button {
    padding: 12px 35px;
    background: var(--color-calc-accent);
    border: none;
    font-size: 1.1rem;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}
.cta-calc-button:hover { background: #fff; color: var(--color-calc-bg); }


/* =========================================
   6. FOOTER I RESPONSYWNOŚĆ
   ========================================= */
.main-footer {
    padding: 30px 0;
    background-color: var(--color-light-bg);
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    /* Menu Mobilne */
    .main-nav { 
        display: none; 
        width: 100%; 
        position: absolute; 
        top: 100%; left: 0; 
        background: var(--color-dark-bg); 
        flex-direction: column; 
        padding: 20px; 
        text-align: center; 
        border-bottom: 1px solid var(--color-border);
    }
    .main-nav.active { display: flex; }
    .hamburger-menu { display: flex; }
    .navbar-container .cta-nav-button { display: none; }

    /* Siatki */
    .offer-grid, .about-grid, .about-retreat-grid, .food-grid { grid-template-columns: 1fr; }
    .elements-grid.detailed-grid, .options-grid, .accommodation-gallery { grid-template-columns: 1fr 1fr; gap: 20px; }
    
    /* Fonty */
    .hero-content-overlay .main-title, .hero-content-overlay .main-retreat-title { font-size: 3rem; }
    
    /* Sticky Footer */
    .sticky-summary { flex-direction: column; gap: 10px; padding: 15px; }
    
    /* Kolejność na mobile */
    .about-retreat-image-wrapper { order: -1; margin-bottom: 20px; }
}

@media (max-width: 600px) {
    .options-row.acc-row { flex-direction: column; }
    .image-tile.acc-opt { height: 200px; }
    
    .elements-grid.detailed-grid { grid-template-columns: 1fr; }
    .options-grid { grid-template-columns: 1fr; }
    .accommodation-gallery { grid-template-columns: 1fr; }
    .food-image-col.relative-wrapper { height: 300px; }
    
    .bio-grid { flex-direction: column; }
}

@media (max-width: 900px) {

    /* 1. Kontener Zakwaterowania */
    .options-row.acc-row {
        flex-direction: column !important;
        gap: 20px !important;
        display: flex !important;
    }

    /* 2. Kafelki - KLUCZOWA ZMIANA: flex: none */
    .image-tile.acc-opt {
        width: 100% !important;
        height: 300px !important;
        min-height: 300px !important; /* Wymuszenie minimalnej wysokości */
        flex: none !important;          /*Wyłączenie skalowanie flexa */
        margin-bottom: 10px;
    }
}