/* Plik: style.css - Ulepszona wersja z poprawkami dla przycisku Instagram */

/* --- Paleta kolorów i Zmienne CSS --- */
:root {
    --bg-color: #fdfcf8;        /* Jaśniejszy, czystszy kremowy - główne tło */
    --bg-alt-color: #b8cfe3;    /* Cieplejszy, nieco jaśniejszy niebieskawy beż dla sekcji */
    --text-color: #6b4c3b;      /* Głębokie, ciepłe brązy */
    --accent-color: #6b4c3b;    /* Stonowane, eleganckie "stare złoto" */
    --accent-dark: #a17a4c;     /* Ciemniejszy odcień "starego złota" dla hover */
    --dark-bg: #2a2f3b;         /* Grafit wpadający w granat */
    --light-border: #eaeaea;    /* Jasnoszara ramka */
    --border-cennik: #9fbed8;
    --white-bg: #ffffff;
    --cards-bg: #fdfcf8;        /* Jasny, kremowy kolor kart */
}

/* --- Animacje --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* --- Style globalne --- */
html {
    font-size: 17px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0; /* Można zmienić jeśli baner jest aktywny */
}

/* --- Style dla przycisków przełączających cennik --- */
.cennik-toggle-btn {
    background-color: #d7e6f3; /* Jasnoniebieskie tło */
    color: var(--text-color);   /* Ciepły brąz */
    border: 2px solid var(--accent-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem; /* odpowiada text-lg */
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 
        background-color 0.3s ease-in-out,
        color 0.3s ease-in-out,
        border-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    user-select: none;
}

.cennik-toggle-btn:hover:not(.is-active),
.cennik-toggle-btn:focus:not(.is-active) {
    background-color: var(--accent-color);
    color: var(--white-bg);
    border-color: var(--accent-dark);
    outline: none;
    box-shadow: 0 8px 15px rgba(107, 76, 59, 0.4);
}

.cennik-toggle-btn.is-active {
    background-color: var(--accent-color);
    color: var(--white-bg);
    border-color: transparent;
    box-shadow: 0 8px 15px rgba(107, 76, 59, 0.6);
    cursor: default;
}

/* --- Style dla kontenerów cenników (price-list) --- */
.price-list {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* Ukrywanie paneli cennika z animacją i dostępnością */
.price-list.hidden-by-css {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
}

/* --- Klasy pomocnicze dla tła sekcji --- */
.bg-main { background-color: var(--bg-color); }
.bg-alt { background-color: var(--bg-alt-color); }
.bg-white { background-color: var(--white-bg); }

.dark-section {
    background-color: var(--dark-bg);
    color: var(--white-bg);
}
.dark-section .section-title {
    color: var(--white-bg);
}
.dark-section .section-title::after {
    background-color: var(--accent-color);
}
.dark-section .text-gray-700 {
    color: #d1d5db;
}

/* --- Typografia --- */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* --- Nawigacja --- */
nav#navbar {
    border-bottom: 1px solid var(--light-border);
    top: 0;
    background-color: var(--white-bg);
    z-index: 1000;
}
.nav-link, .dropdown .dropbtn {
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-color);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.nav-link:hover::after,
.nav-link.nav-active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.nav-link:hover, .dropdown .dropbtn:hover,
.nav-link.nav-active,
.dropdown .dropbtn.nav-active {
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-bg);
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 0.5rem;
    top: 100%;
    padding: 0.5rem 0;
    right: 0;
    border: 1px solid var(--light-border);
    animation: fadeIn 0.3s ease-out forwards;
}
.dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: var(--accent-color);
    color: var(--white-bg);
    outline: none;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}
.dropdown .dropbtn .arrow-icon {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}
.dropdown:hover .dropbtn .arrow-icon {
    transform: rotate(180deg);
}

/* --- Przycisk --- */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-bg);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 164, 126, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 164, 126, 0.3);
    outline: none;
}
.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--accent-color);
    color: var(--white-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 164, 126, 0.2);
    outline: none;
}

/* --- Sekcja Hero --- */
.hero-bg {
     background-image: url('images/tlo_modelka.jpg'); 
    background-color: var(--bg-alt-color);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    animation: heroZoom 10s ease-out forwards;
}
.hero-bg h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text-bg {
    display: inline-block;
    background: rgba(0,0,0,0.28);   /* subtelne przyciemnienie */
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin: 1.5rem 0;
}
.hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-text-bg {
        padding: 1rem;
    }
}








/* Split Hero Layout */
.hero-horizontal {
  display: flex;
  min-height: 90vh;
  background: var(--bg-color, #fdfcf8);
}

.hero-textbox {
  flex: 0 0 48%;
  max-width: 600px;
  padding: 3rem 3rem 3rem 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f6ece6;

}

.hero-logo {
  width: 150px;
  margin-bottom: 2rem;
}

.hero-subline {
  color: #a17a4c;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: #442a1e;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: #725f4c;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Zdjęcie po prawej, jasne i duże */
.hero-imagebox {
  position: relative;
  flex: 1 1 52%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 40%, transparent 100%);
}

/* Gradient nakładka na zdjęciu */
.hero-imagebox::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  pointer-events: none; /* aby nie zakłócać interakcji */
  background: linear-gradient(to right, rgba(250, 250, 250, 0.8), transparent 50%);
  z-index: 2;
}

.hero-main-photo {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: right center;
  z-index: 1;
  
  filter: brightness(1.09) saturate(1.1) contrast(1.1);
  position: relative;
}


/* Responsywność */
@media (max-width: 1024px) {@media (max-width: 1024px) {
  .hero-horizontal {
    flex-direction: column;
  }
  .hero-textbox {
    order: 1; /* tekst u góry */
    max-width: none;
    padding: 2rem 6vw;
    
  }
  .hero-imagebox {
    order: 2; /* zdjęcie na dole */
    height: 48vh;
    min-height: 260px;
    
    overflow: hidden;
  }
  .hero-main-photo {
    height: 100%;
    object-position: center bottom;
    
  }
  }

  .hero-imagebox::before {
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.95), transparent 90%);
}

}
@media (max-width: 600px) {
  .hero-title { font-size: 1.65rem; }
  .hero-desc { font-size: 1rem; }
  .hero-btns { flex-direction: column; gap: 0.7rem; }
  .hero-logo { width: 110px; margin-bottom: 1rem; }
  
}

/* Przykład buttonów */
.btn-primary, .btn-secondary {
  font-size: 1.02rem;
  border-radius: 32px;
  padding: 0.8em 2.4em;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: #a17a4c;
  color: #fff;
}
.btn-primary:hover { background: #442a1e; }
.btn-secondary {
  background: #fff;
  color: #a17a4c;
  border: 1.5px solid #a17a4c;
}
.btn-secondary:hover {
  background: #fdfcf8;
  color: #442a1e;
}

/* Dostosuj --bg-color wedle swojej palety */


/* --- Karty --- */
.card {
    background-color: var(--cards-bg);
    border: 1px solid var(--light-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 0.5rem;
}
.card:hover, .card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(45, 45, 45, 0.1);
    border-color: var(--accent-color);
    outline: none;
}

/* Ikony w sekcji Usługi */
.service-icon-wrapper {
    margin: 0 auto 1.5rem auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-alt-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.service-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}
.card:hover .service-icon-wrapper,
.card:focus-within .service-icon-wrapper {
    background-color: var(--accent-color);
    transform: rotate(15deg) scale(1.1);
}
.card:hover .service-icon-wrapper i,
.card:focus-within .service-icon-wrapper i {
    color: var(--white-bg);
    transform: rotate(-15deg);
}

/* Linie oddzielające sekcje */
hr {
    border: none;
    border-top: 1px solid var(--accent-color);
    margin: 2rem auto;
    width: 90%;
}

/* --- Galeria --- */
.gallery-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}
.gallery-img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-img-container:hover .gallery-img,
.gallery-img-container:focus-within .gallery-img {
    transform: scale(1.1);
    outline: none;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}
.gallery-img-container:hover .gallery-overlay,
.gallery-img-container:focus-within .gallery-overlay {
    opacity: 1;
    outline: none;
}
.gallery-overlay-icon {
    font-size: 2rem;
    color: white;
    opacity: 0.8;
}

/* --- Poprawki dla przycisku "Zobacz więcej na Instagramie" na mobile --- */
#galeria .text-center {
    padding: 0 1rem; /* marginesy poziome, aby przycisk nie sięgał krawędzi */
}

#galeria .btn-secondary {
    max-width: 100%;           /* Przycisk w ramach szerokości kontenera */
    white-space: normal;       /* Pozwala na zawijanie tekstu */
    word-wrap: break-word; 
    word-break: break-word;
    box-sizing: border-box;
    display: inline-block;
}

@media (max-width: 640px) {
    #galeria .text-center {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #galeria .btn-secondary {
        font-size: 1rem; /* mniejszy tekst na mobile */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* --- Animacja Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sekcja Opinie --- */
.testimonial-card {
    background-color: var(--white-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Karta kontaktowa (override ciemnego tła) --- */
.contact-card-override {
    color: var(--text-color);
}
.contact-card-override a {
    text-decoration: none;
    color: inherit;
}
.contact-card-override .contact-block {
    transition: transform 0.3s ease;
}
.contact-card-override .contact-block:hover,
.contact-card-override .contact-block:focus-visible {
    transform: translateX(4px);
    outline-offset: 2px;
}
.contact-card-override .contact-block .contact-icon {
    font-size: 1.75rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.contact-card-override .contact-block:hover .contact-icon,
.contact-card-override .contact-block:focus-visible .contact-icon {
    transform: scale(1.1);
}
.contact-card-override .contact-block .contact-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.contact-card-override .contact-block .contact-link {
    font-size: 1.1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.contact-card-override .contact-block:hover .contact-link,
.contact-card-override .contact-block:focus-visible .contact-link {
    color: var(--accent-dark);
}
.contact-card-override .contact-desc {
    font-size: 1rem;
    color: #525252;
}
.contact-card-override .btn-secondary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.contact-card-override .btn-secondary:hover,
.contact-card-override .btn-secondary:focus {
    background-color: var(--accent-color);
    color: var(--white-bg);
}
.contact-card-override .btn-primary {
    background-color: var(--dark-bg);
    color: var(--white-bg);
    border-color: var(--dark-bg);
}
.contact-card-override .btn-primary:hover,
.contact-card-override .btn-primary:focus {
    background-color: #000;
    outline: none;
}




/* --- "Przypięty" Przycisk CTA dla Mobile --- */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: fadeIn 0.5s 1s ease-out forwards;
    opacity: 0;
}
.sticky-cta a {
    background-color: var(--accent-color);
    color: var(--white-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(107, 76, 59, 0.4);
    transition: background-color 0.3s ease;
}
.sticky-cta a:hover,
.sticky-cta a:focus {
    background-color: var(--accent-dark);
    outline: none;
    box-shadow: 0 6px 20px rgba(107, 76, 59, 0.6);
}


@media (max-width: 640px) {
    /* Mniejszy padding w komórkach tabeli cennika na urządzeniach mobilnych */
    #cennik table th,
    #cennik table td {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem; /* zmniejszony rozmiar fontu */
    }

    /* Zmniejszenie odstępów między komórkami, by za dużo nie rozpychały */
    #cennik table {
        border-spacing: 4px 0;
    }

    /* Zapewnienie, że tabela mieści się w kontenerze */
    #cennik .price-list {
        max-width: 100vw;
        overflow-x: auto; /* Zapewnienie przewijania tylko wtedy, gdy naprawdę potrzeba */
    }
}

