/* General Styles */
body {
    font: 400 15px Arial, Helvetica, sans-serif;
    line-height: 1.8;
    color: #818181;
    padding-top: 50px;
}

h1 {
    font-size: 1.7em;
}

h2 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 30px;
}

h4 {
    font-size: 19px;
    line-height: 1.375em;
    color: #303030;
    font-weight: 400;
    margin-bottom: 30px;
}

.container-fluid {
    padding: 60px 50px;
}

.bg-grey {
    background-color: #f6f6f6;
}

.logo-small {
    color: #336633;
    font-size: 50px;
}

.logo {
    color: #336633;
    font-size: 200px;
}

.section {
    padding: 100px 50px;
}

/* Flexbox dla wierszy w sekcjach - równe wysokości kolumn */
.section .row {
    display: flex;
    flex-wrap: wrap;
}
.section .row:before, 
.section .row:after {
    display: none;
}

/* Ustawienie kolumn jako flex-containerów, aby karty wewnątrz mogły się rozciągać */
.section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    margin-bottom: 0;
    background-color: #336633 !important;
    z-index: 9999;
    border: 0;
    font-size: 12px !important;
    line-height: 1.42857143 !important;
    letter-spacing: 4px;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
}

.navbar-brand {
    padding: 0px;
    height: 50px;
}

.navbar-brand>img {
    height: 100%;
    width: auto;
}

.navbar li a,
.navbar .navbar-brand {
    color: #fff !important;
}

.navbar-nav li a:hover,
.navbar-nav li.active a {
    color: #336633 !important;
    background-color: #fff !important;
}

.dropdown-menu li a {
    color: #336633 !important;
}

.dropdown-menu li a:hover {
    background-color: #ffcc33 !important;
}

/* Animations */
.slideanim {
    visibility: hidden;
}

.slide {
    animation-name: slide;
    -webkit-animation-name: slide;
    animation-duration: 1s;
    -webkit-animation-duration: 1s;
    visibility: visible;
}

@keyframes slide {
    0% {
        opacity: 0;
        -webkit-transform: translateY(70%);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0%);
    }
}

@-webkit-keyframes slide {
    0% {
        opacity: 0;
        -webkit-transform: translateY(70%);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0%);
    }
}

/* Miscellaneous */
#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 1em;
    right: 0px;
    opacity: 0.1;
}

#scroll-to-top:hover {
    opacity: 0.8;
}

#lnkMail {
    unicode-bidi: bidi-override;
    direction: rtl;
}

.opis {
    text-align: justify;
    padding: 10px;
}

.opis1 {
    text-align: justify;
    font-size: 19px;
    line-height: 1.375em;
    color: #303030;
    font-weight: 400;
    margin-bottom: 30px;
    padding: 10px;
}

#gmap_canvas{
    width:100%;
    height:500px;
}

.gmap_canvas {
    overflow:hidden;
    background:none!important;
    height:500px;
    width:100%;
}

.mapouter{
    position:relative;
    text-align:right;
    height:500px;
    width:100%;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .col-sm-4 {
        text-align: center;
        margin: 25px 0;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 150px;
    }
}

/* --- NOWOCZESNE STYLE (Przeniesione z index.php) --- */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: #555;
}
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif; /* Elegancki font do nagłówków */
    font-weight: 700;
}

/* Hero Section zamiast Karuzeli */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/1.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh; /* Wysokość na 80% ekranu */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 50px; /* Korekta na navbar */
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Karty Cennika - Efekty */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Zapewnia, że karta wypełni całą dostępną wysokość kolumny */
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15)!important;
}

/* --- KOLORYSTYKA ZIELONA (FIRMOWA) --- */
.bg-primary {
    background-color: #198754 !important; /* Zielony kolor firmowy */
}
.border-primary {
    border-color: #198754 !important;
}
.text-primary {
    color: #198754 !important;
}
.btn-primary {
    background-color: #198754 !important;
    border-color: #198754 !important;
}
.btn-primary:hover {
    background-color: #157347 !important; /* Ciemniejszy zielony po najechaniu */
    border-color: #146c43 !important;
}
.btn-outline-primary {
    color: #198754;
    border-color: #198754;
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}
/* Wyrównanie przycisków na dół karty */
.card .btn, .card .btn-outline-primary {
    margin-top: auto;
}

/* Ujednolicenie linków */
a {
    color: #198754;
    text-decoration: none;
}
a:hover {
    color: #146c43;
    text-decoration: underline;
}

/* Nowoczesna Stopka */
footer {
    background-color: #1e3a29; /* Ciemna, elegancka zieleń */
    color: #ecf0f1;
    padding: 40px 0;
    margin-top: 50px;
}
footer a.social-link {
    color: #ecf0f1;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}
footer a.social-link:hover {
    color: #198754; /* Zielony akcent przy najechaniu */
}

/* --- ANIMACJE (Fade-in) --- */
.slideanim { visibility: hidden; }
.slide {
    animation-name: slide;
    -webkit-animation-name: slide;
    animation-duration: 1s;
    -webkit-animation-duration: 1s;
    visibility: visible;
}
@keyframes slide {
    0% { opacity: 0; transform: translateY(70%); }
    100% { opacity: 1; transform: translateY(0%); }
}
@-webkit-keyframes slide {
    0% { opacity: 0; -webkit-transform: translateY(70%); }
    100% { opacity: 1; -webkit-transform: translateY(0%); }
}

/* --- POPRAWKI MOBILNE I LOGO --- */
.logo {
    color: #198754;
    font-size: 150px; /* Duże ikony */
}
/* Na mniejszych ekranach zmniejszamy ikony */
@media screen and (max-width: 768px) {
    .logo { font-size: 100px; }
}

.feature-icon {
    font-size: 3rem;
    color: #198754;
    margin-bottom: 1rem;
}

/* --- STATS COUNTER --- */
.stats-counter {
    background-color: #198754; /* Firmowy zielony */
    color: white;
    padding: 60px 0;
}
.stats-counter .counter {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.stats-counter .feature-icon {
    color: white;
}
.stats-counter p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}
/* Poprawka czytelności stopki w opiniach */
.card .blockquote-footer {
    color: #c0c0c0; 
    font-weight: 500;
}

/* --- FAQ STYLES --- */
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #198754; /* Zielone tło aktywnego pytania */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}
.accordion-button {
    color: #198754; /* Zielony tekst pytań */
    font-weight: 600;
}

/* --- CONTACT SECTION --- */
#kontakt {
    padding-top: 80px;
    padding-bottom: 0; /* Mapa jest bezpośrednio pod */
}
.contact-info {
    background-color: #198754; /* Firmowy zielony */
    color: #fff;
    padding: 40px;
    border-radius: 15px;
}
.contact-info h3 {
    color: #fff;
    margin-bottom: 30px;
}
.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info i {
    margin-right: 15px;
    font-size: 1.5rem;
    vertical-align: middle;
}
.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* --- CTA Block for subpages --- */
.cta-block {
    background-color: #f8f9fa; /* bg-light */
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid #e9ecef;
}
.cta-block h3 {
    color: #198754; /* text-primary */
}

/* --- CARD STYLES UPDATE --- */
.card-header h4 {
    color: inherit !important; /* Fixes visibility issue on dark backgrounds */
    margin-bottom: 0.5rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}
