:where([class^="ri-"])::before { content: "\f3c2"; }

/* Całkowicie nowe, zupełnie podstawowe menu mobilne */
#mobileMenu {
    position: fixed !important;
    top: -100% !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: #562834 !important;
    transition: top 0.3s ease !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

#mobileMenu.active {
    top: 0 !important;
}

/* Stałe menu */
header {
    position: sticky;
    top: 0;
    z-index: 998;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-items {
    padding: 20px;
}

.mobile-menu-item {
    display: block;
    color: white;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
    display: none !important;
    cursor: pointer !important;
}

.mobile-menu-backdrop.active {
    display: block !important;
}

.mobile-menu-button {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        color: white;
        font-size: 24px;
    }
}

/* Usuń stare style menu */
.accordion-item,
.accordion-header,
.accordion-content {
    /* Resetowanie starych styli */
}

body {
font-family: 'Lora', serif;
color: #333;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
.modal-content {
position: relative;
background-color: #fff;
margin: 5% auto;
padding: 2rem;
width: 90%;
max-width: 800px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.close-modal {
position: absolute;
right: 1.5rem;
top: 1.5rem;
cursor: pointer;
transition: transform 0.2s;
}
.close-modal:hover {
transform: scale(1.1);
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in {
animation: fadeIn 1.5s ease-out forwards;
}
.group:hover .group-hover\:block {
display: block;
}
.group:hover .group-hover\:rotate-180 {
transform: rotate(180deg);
}
.location-highlight {
transition: all 0.3s ease;
}
.hero-section {
background-image: linear-gradient(to right, rgba(86, 40, 52, 0.9), rgba(86, 40, 52, 0.7)), url('https://readdy.ai/api/search-image?query=elegant%20funeral%20service%20scene%20with%20candles%20and%20white%20flowers%2C%20soft%20lighting%2C%20peaceful%20atmosphere%2C%20professional%20setting%2C%20muted%20colors%2C%20no%20people%20visible%2C%20serene%20and%20respectful%20environment&width=1920&height=800&seq=1&orientation=landscape');
background-size: cover;
background-position: center;
}
.menu-item:hover {
color: #ECB45C;
transition: color 0.3s ease;
}
.phone-frame {
border: 2px solid #ff0000;
animation: pulse 2s infinite;
border-radius: 8px;
background-color: rgba(255, 0, 0, 0.1);
transition: all 0.3s ease;
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
}

.phone-frame:hover {
background-color: rgba(255, 0, 0, 0.2);
transform: scale(1.05);
}

@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
}
70% {
box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
}
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #562834;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    background-color: white;
    flex-shrink: 0;
    z-index: 5;
}
.custom-checkbox:checked {
    background-color: #562834;
}
.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Style dla osi czasu */
.timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Style dla poziomej osi czasu */
.timeline-item-horizontal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item-horizontal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pozycjonowanie osi czasu */
@media (min-width: 768px) {
  .timeline-horizontal .timeline-line {
    z-index: 1;
  }
  
  .timeline-horizontal .bg-white {
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 0 5px white;
  }
  
  /* Dodatkowy odstęp na dole kontenerów, aby linia była lepiej widoczna */
  .timeline-horizontal .timeline-item-horizontal {
    padding-bottom: 30px;
  }
}

/* Responsywność dla mobilnych urządzeń */
@media (max-width: 767px) {
  .timeline-item-horizontal {
    margin-bottom: 2rem;
  }
  
  .timeline-item-horizontal:last-child {
    margin-bottom: 0;
  }
  
  /* Dla urządzeń mobilnych, pokazuje pionową linię po lewej stronie */
  .timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 1px;
    background-color: rgba(86, 40, 52, 0.3);
    z-index: 1;
  }

  /* Ukrywanie sekcji Kontakt całodobowy i przycisku Facebooka w wersji mobilnej */
  .hidden-mobile {
    display: none !important;
  }
}

/* Style dla slidera sekcji E-Cmentarze */
.cemetery-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cemetery-slider-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.cemetery-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.cemetery-prev,
.cemetery-next {
  opacity: 0.7;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.cemetery-prev:hover,
.cemetery-next:hover {
  opacity: 1;
}

.cemetery-dot {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cemetery-dot.active {
  background-color: #562834;
  transform: scale(1.3);
}

/* Zapobieganie pozostawieniu pojedynczych liter na końcu wiersza - wzmocnione selektory */
html[lang="pl"] body .z-word,
html[lang="pl"] body .no-break-preposition,
.z-word,
.no-break-preposition,
span.z-word,
span.no-break-preposition {
  white-space: nowrap !important;
  display: inline-block !important;
}

/* Przyimki jednoliterowe muszą być zawsze połączone z następnym wyrazem */
html[lang="pl"] p span.z-word,
html[lang="pl"] p span.no-break-preposition,
html[lang="pl"] div span.z-word,
html[lang="pl"] div span.no-break-preposition {
  white-space: nowrap !important;
  display: inline !important;
}

/* Specjalna reguła dla jednoliterowych przyimków */
span.z-word:only-child,
span.no-break-preposition:only-child,
html[lang="pl"] span.z-word:only-child,
html[lang="pl"] span.no-break-preposition:only-child {
  display: inline-block !important;
  white-space: nowrap !important;
}

/* CSS hack dla Internet Explorer i starszych przeglądarek */
span.z-word:after,
span.no-break-preposition:after {
  content: "\00a0" !important;
  font-size: 0 !important;
  display: inline-block !important;
  width: 0 !important;
}

/* Usunięcie poprzednich, potencjalnie konfliktowych styli */
p::after,
p::before,
p > span:last-child::after,
p:not(:empty)::after {
  content: normal;
  white-space: normal;
  word-spacing: normal;
}

/* Style dla checkboxa w wersji mobilnej */
@media (max-width: 768px) {
    .privacy-container {
        display: flex;
        align-items: flex-start;
        margin-bottom: 16px;
        position: relative;
        z-index: 10;
    }
    
    .custom-checkbox {
        margin-top: 2px;
        margin-right: 10px;
    }
    
    .privacy-label {
        font-size: 14px;
        flex: 1;
        cursor: pointer;
    }
}

/* Poprawka dla lepszego działania checkboxa na wszystkich urządzeniach */
.privacy-container {
    position: relative;
    z-index: 10;
}

.privacy-label {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Naprawienie formularza */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    z-index: 1;
    position: relative;
    background-color: white;
}

/* Centrowanie tekstu w wersji mobilnej */
@media (max-width: 768px) {
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-flex-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-list-center li {
        justify-content: center;
    }
    
    .mobile-list-center li i {
        margin-right: 0.5rem;
    }
    
    .mobile-center-icons {
        justify-content: center;
    }
    
    /* Wyśrodkowanie paragrafów w sekcjach */
    p {
        text-align: center;
    }
    
    /* Nagłówki w wersji mobilnej */
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
    }
    
    /* Specjalne traktowanie list z ikonami */
    .text-gray-700 li.flex {
        justify-content: center;
    }
}

/* Klasy do wyrównania do lewej określonych sekcji */
.mobile-text-left {
    text-align: left !important;
}

.mobile-flex-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.mobile-list-left li {
    justify-content: flex-start !important;
}

.service-title {
    text-align: left !important;
}

.service-list li {
    justify-content: flex-start !important;
}

@media (max-width: 768px) {
    /* Nadpisanie centrowania dla określonych sekcji */
    .mobile-text-left h3, 
    .mobile-text-left p,
    .mobile-text-left li,
    .service-title,
    .services-section h3 {
        text-align: left !important;
    }
    
    .services-section ul li {
        justify-content: flex-start !important;
    }
}

/* Style dla przycisków lokalizacji w wersji mobilnej */
@media (max-width: 768px) {
    /* Przyciski lokalizacji w hero section */
    .mobile-location-buttons {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .mobile-location-btn {
        min-width: 96px;
        max-width: 96px;
        min-height: 70px;
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .mobile-location-btn span {
        line-height: 1.2;
        font-size: 0.875rem;
    }
    
    /* Sekcja kontaktu w głównej części strony */
    #contact .grid.grid-cols-1.lg\\:grid-cols-2 > div:last-child {
        text-align: center;
    }
    
    #contact .grid.grid-cols-1.lg\\:grid-cols-2 > div:last-child h3 {
        text-align: center !important;
    }
    
    #contact .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    #contact .flex.items-center {
        justify-content: center;
        text-align: center;
    }
    
    #contact .flex.items-center > div:first-child {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    #contact .flex.items-center {
        flex-direction: column;
        align-items: center;
    }
    
    /* Godziny otwarcia w wersji mobilnej */
    #contact .bg-gray-50.p-6.rounded.shadow-md.mb-8 {
        text-align: center;
    }
    
    #contact .bg-gray-50.p-6.rounded.shadow-md.mb-8 h4 {
        text-align: center;
    }
    
    #contact .bg-gray-50.p-6.rounded.shadow-md.mb-8 .grid.grid-cols-2 {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    #contact .bg-gray-50.p-6.rounded.shadow-md.mb-8 .grid.grid-cols-2 p {
        text-align: center;
        margin: 0;
    }
    
    /* Wyśrodkowanie sekcji Kontakt całodobowy w stopce */
    footer .grid > div:last-child {
        text-align: center;
    }
    
    footer .grid > div:last-child h4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    footer .grid > div:last-child .space-y-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    footer .grid > div:last-child .flex.items-center {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    footer .grid > div:last-child .flex.items-center > div:first-child {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Centrowanie wszystkich sekcji stopki */
    footer .grid > div {
        text-align: center;
    }
    
    footer .grid > div h4 {
        text-align: center;
    }
    
    footer .grid > div p {
        text-align: center;
    }
    
    footer .grid > div ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    footer .grid > div ul li {
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    footer .grid > div .flex.items-center {
        justify-content: center;
    }
    
    /* Logo w stopce */
    footer img {
        margin: 0 auto 1.5rem auto;
        display: block;
    }
    
    /* Facebook link w stopce */
    footer .flex.items-center a {
        margin: 0 auto;
    }
    
    /* Ukrycie sekcji nawigacji w stopce w wersji mobilnej */
    footer .grid > div:nth-child(2) {
        display: none;
    }
    
    /* Poprawne wyświetlanie linku do telefonu w sekcji kontaktu */
    #contact .bg-primary a[href^="tel:"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        flex-direction: row !important;
    }
    
    #contact .bg-primary a[href^="tel:"] i {
        margin-right: 0.5rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Wyśrodkowanie słowa "Formalności" w wersji mobilnej */
    .bg-white.p-6.rounded.shadow-md.hover\\:shadow-lg .font-semibold.text-primary.mt-4.mb-2 {
        text-align: center !important;
    }
    
    /* Bardziej precyzyjny selektor dla słowa "Formalności" */
    li.font-semibold.text-primary.mt-4.mb-2 {
        text-align: center !important;
    }
    
    /* Jeśli powyższy nie zadziała, to ten na pewno */
    ul.text-gray-700.space-y-2 li.font-semibold {
        text-align: center !important;
    }
}

/* Delikatna pulsująca ramka przy telefonie całodobowym */
.contact-pulse {
  animation: contactPulseShadow 2.2s ease-in-out infinite;
}

.bg-primary .contact-pulse {
  animation-name: contactPulseShadowLight;
}

@keyframes contactPulseShadow {
  0% { box-shadow: 0 0 0 0 rgba(236, 180, 92, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(236, 180, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 180, 92, 0); }
}

@keyframes contactPulseShadowLight {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-pulse { animation: none; }
} 