/* Import czcionki Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* Ustawienie domyślnej czcionki na Inter i tła */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa; /* Jasnoszare tło */
    color: #374151; /* Domyślny kolor tekstu (ciemnoszary) */
    line-height: 1.6; /* Poprawa czytelności tekstu */
}

/* Styl dla płynnego przewijania (jeśli linki wewnętrzne są używane) */
html {
    scroll-behavior: smooth;
}

/* --- Sekcja Hero --- */
.hero-section {
    /* Upewnij się, że plik a1.jpg znajduje się w odpowiedniej lokalizacji */
    background: url('a1.jpg') no-repeat center center; /* Obraz jako tło */
    background-size: cover; /* Skaluje obraz, aby pokrył cały obszar */
    color: #f8f9fa; /* Jasny kolor tekstu na tle */
    position: relative; /* Potrzebne dla pozycjonowania pseudo-elementu */
    min-height: 60vh; /* Minimalna wysokość */
    display: flex; /* Użycie flexbox do wyśrodkowania */
    align-items: center; /* Wyśrodkowanie w pionie */
    /* POPRAWKA: Usunięto padding-bottom, aby ::after był na krawędzi */
    /* padding-bottom: 43px; */
}

/* Pseudo-element ::after dla efektu postrzępienia */
.hero-section::after {
    content: ''; /* Niezbędne dla pseudo-elementu */
    position: absolute;
    bottom: 0; /* Przyklejony do dołu */
    left: 0;
    width: 100%; /* Pełna szerokość */
    height: 43px; /* Wysokość grafiki 2.png */
    /* Upewnij się, że plik 2.png jest dostępny */
    background: url('2.png') repeat-x bottom; /* Powtarzanie w poziomie na dole */
    background-size: auto 100%; /* Skalowanie wysokości tła do wysokości pseudo-elementu */
    z-index: 5; /* Upewnia się, że jest nad głównym tłem, ale pod tekstem */
    pointer-events: none; /* Aby nie blokował interakcji z elementami pod spodem */
}


/* Kontener tekstu w sekcji hero */
.hero-text-container {
   position: relative;
   z-index: 10; /* Upewnia się, że tekst jest nad efektem postrzępienia */
   background-color: rgba(45, 55, 72, 0.7); /* Półprzezroczyste ciemne tło */
   padding: 2rem;
   border-radius: 0.5rem; /* Zaokrąglone rogi */
}

/* Obrazek mobilny w sekcji Hero */
.hero-image-mobile {
    display: none; /* Domyślnie ukryty */
    object-fit: cover;
    max-height: 40vh;
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem; /* Odstęp pod obrazkiem */
}

/* --- Nagłówek i Nawigacja --- */
header {
    position: sticky; /* Przyklejony nagłówek */
    top: 0;
    z-index: 50; /* Aby był nad innymi elementami */
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Cień */
}

/* Linki w menu desktopowym */
.desktop-menu-link {
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
    color: #4b5563; /* Kolor tekstu linku (szary) */
}
.desktop-menu-link:hover {
     color: #a1887f; /* Kolor akcentu przy najechaniu */
}

/* Animowane podkreślenie */
.desktop-menu-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #a1887f; /* Kolor akcentu */
    transition: width 0.3s ease;
}

.desktop-menu-link:hover::after {
    width: 100%;
}

/* Styl dla aktywnego linku w menu */
.desktop-menu-link.active {
    color: #a1887f; /* Kolor akcentu dla aktywnego linku */
    font-weight: 500; /* Lekkie pogrubienie */
}
.desktop-menu-link.active::after {
     width: 100%; /* Podkreślenie dla aktywnego linku */
}

/* Przycisk Kontakt */
.contact-button {
    background-color: #a1887f;
    color: white;
    padding: 0.5rem 1rem; /* Dopasowanie paddingu */
    border-radius: 0.375rem; /* rounded-md */
    transition: background-color 0.3s ease;
}
.contact-button:hover {
     background-color: #8d6e63;
}
/* Aktywny przycisk Kontakt */
.contact-button.active {
     background-color: #8d6e63; /* Ciemniejszy kolor dla aktywnego przycisku */
}


/* Menu mobilne */
#mobile-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #4b5563;
}
#mobile-menu a:hover {
    background-color: #f3f4f6; /* Jasnoszare tło przy najechaniu */
}
#mobile-menu a.active {
    background-color: #e5e7eb; /* Ciemniejsze tło dla aktywnego linku */
    color: #a1887f; /* Kolor akcentu */
    font-weight: 500;
}


/* --- Sekcja Obszary Działalności (Kafelki) --- */
.activity-card {
    background-color: white;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid #e5e7eb; /* border-gray-200 */
    display: flex;
    flex-direction: column;
    height: 100%; /* Aby kafelki miały równą wysokość */
}

.activity-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
}

.activity-card img {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover; /* Dopasowanie obrazka */
}

.activity-card-content {
    padding: 1.5rem; /* p-6 */
    text-align: center;
    flex-grow: 1; /* Pozwala temu divowi się rozciągnąć */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Rozsuwa tekst i przycisk */
}

.activity-card-content h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-900 */
    margin-bottom: 0.75rem; /* mb-3 */
}

.activity-card-content p {
    color: #4b5563; /* text-gray-700 */
    margin-bottom: 1.5rem; /* mb-6 */
}

/* Przycisk "Dowiedz się więcej" */
.cta-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    background-color: #a1887f; /* Kolor akcentu */
    color: white;
    font-weight: 500;
    text-align: center;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    border: 1px solid transparent;
    margin-top: auto; /* Przykleja przycisk do dołu */
}

.cta-button:hover {
    background-color: #8d6e63; /* Ciemniejszy akcent */
    transform: scale(1.05); /* Lekkie powiększenie */
}

/* --- Stopka --- */
footer {
    background-color: #1f2937; /* bg-slate-900 */
    color: #9ca3af; /* text-gray-400 */
    padding-top: 3rem; /* py-12 */
    padding-bottom: 3rem; /* py-12 */
}

.footer-menu {
    display: grid;
    gap: 1rem 2rem; /* Odstępy */
    max-width: 48rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem; /* mb-8 */
}

.footer-menu a {
    color: #9ca3af; /* text-gray-400 */
    transition: color 0.3s ease;
    padding-top: 0.25rem; /* py-1 */
    padding-bottom: 0.25rem; /* py-1 */
}
.footer-menu a:hover {
    color: white;
}

.social-links {
    margin-bottom: 1.5rem; /* mb-6 */
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* space-x-6 */
}

.social-links a {
    color: #9ca3af; /* text-gray-400 */
    transition: color 0.3s ease;
}
.social-links a:hover {
     color: white;
}
.social-links svg {
     width: 1.5rem; /* w-6 */
     height: 1.5rem; /* h-6 */
}

/* --- Style dla podstron --- */
.page-header {
    background-color: #e5e7eb; /* Lekkie tło dla nagłówka podstrony */
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}
.page-header h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-900 */
    text-align: center;
}
.content-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}
.content-section h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    color: #1f2937;
    margin-bottom: 1.5rem;
    margin-top: 2rem; /* Odstęp nad nagłówkami H2 */
    border-bottom: 2px solid #e5e7eb; /* Delikatna linia pod nagłówkiem */
    padding-bottom: 0.5rem;
}
.content-section h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.content-section p {
    margin-bottom: 1rem;
    color: #374151;
}
.content-section ul {
    list-style: disc; /* Kropki dla list */
    margin-left: 1.5rem; /* Wcięcie listy */
    margin-bottom: 1rem;
}
.content-section li {
    margin-bottom: 0.5rem;
}
.content-section strong {
    font-weight: 600; /* Pogrubienie dla ważnych elementów */
    color: #1f2937;
}

/* NOWE: Styl dla sekcji podciągniętej pod hero */
.section-under-hero {
    position: relative; /* Potrzebne dla z-index */
    z-index: 1; /* Niższy z-index niż ::after w hero */
}

/* --- Media Queries (Responsywność) --- */

/* Dostosowanie tła dla mniejszych ekranów */
@media (max-width: 768px) {
    .hero-section {
         background: #2d3748;
         color: #f8f9fa;
         /* Usunięto padding-bottom, bo efekt ::after jest ukryty */
         /* padding-bottom: 43px; */
    }
    .hero-section::after {
        height: 43px;
        display: none; /* Ukrywamy efekt na mobilnych */
    }
    .hero-image-mobile {
        display: block;
    }
    .hero-text-container {
         width: 100%;
         text-align: center;
         padding: 1rem;
         background-color: rgba(45, 55, 72, 0.7);
         border-radius: 0.5rem;
         margin-bottom: 0;
    }
    .hero-section > .container > div:first-child {
         display: none;
    }
    /* Menu w stopce na mobilnych */
    .footer-menu {
         grid-template-columns: repeat(2, 1fr);
         gap: 0.5rem 1rem;
    }
    /* Nagłówki podstron */
    .page-header h1 {
        font-size: 1.875rem; /* text-3xl */
    }
    .content-section h2 {
        font-size: 1.5rem; /* text-2xl */
    }
     .content-section h3 {
        font-size: 1.25rem; /* text-xl */
    }
    /* Usunięcie ujemnego marginesu na mobilnych */
    .section-under-hero {
        margin-top: 0 !important; /* Nadpisuje ujemny margines */
    }

}

/* Style dla większych ekranów */
@media (min-width: 769px) {
     .hero-image-mobile {
         display: none;
     }
     .hero-text-container {
         background-color: rgba(45, 55, 72, 0.7);
         padding: 2rem;
         border-radius: 0.5rem;
         width: 50%;
         text-align: left;
         margin-bottom: 0;
     }
     .hero-section > .container > div:first-child {
        display: block;
        width: 50%;
     }
     /* Menu w stopce na desktopie */
     .footer-menu {
         grid-template-columns: repeat(3, 1fr);
         gap: 1rem 2rem;
     }
}

/* Dodatkowe style dla kontenera */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem; /* px-6 */
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}
