/* Zmienne kolorów */
:root {
    --primary-color: #00502e;
    --primary-light: #2a8a4f;
    --primary-dark: #00502e;
    --secondary-color: #c2ab75;
    /*--secondary-color: #b59422;*/
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

ó
    /* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Nawigacja */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .brand-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }

    .navbar-brand {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 0.8rem;
        letter-spacing: 0.2px;
    }

    .navbar-brand {
        max-width: 180px;
    }
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 60px !important;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.external-link {
    position: relative;
    margin-left: 20px;
    padding-left: 20px;
}

.external-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: var(--text-light);
    opacity: 0.5;
}

.external-link i {
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.external-link:hover i {
    opacity: 1;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(24, 108, 62, 0.25);
}

/* Sekcja główna */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Dodaję padding-top aby logo nie było zasłonięte przez nawigację */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .row {
    text-align: center;
}

.hero-section .col-lg-6:first-child {
    text-align: center;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo-img {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-logo-img:hover {
    transform: scale(1.05);
}

/* Tytuły sekcji */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Sekcja Zespół */
.team-member {
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

.member-photo img {
    width: 200px;
    height: 200px;
    border: 5px solid var(--primary-color);
}

.member-contact {
    color: var(--primary-color);
    font-weight: 500;
}

.social-links {
    margin-top: 20px;
}

.social-links-top {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.6em;
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
    padding: 12px;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.linkedin-link:hover {
    background-color: #0077b5;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.linkedin-link i {
    font-size: 1.1em;
}

.achievement-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.achievement-icon {
    color: var(--primary-color);
}

/* Sekcja Specjalizacje */
.specialization-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.specialization-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.specialization-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.specialization-card ul li:hover {
    color: var(--primary-color);
}

.specialization-card ul li i {
    color: var(--primary-color);
}

/* Sekcja Opinie */
.testimonial-item {
    padding: 40px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
    height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonial-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.testimonial-item:hover .testimonial-photo img {
    transform: scale(1.1);
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
    font-size: 1.1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-top: auto;
}

.testimonial-rating i {
    margin: 0 2px;
}

.testimonial-author {
    margin-bottom: 15px;
}

.testimonial-photo {
    margin-bottom: 20px;
}

/* Karuzela opinii */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    margin: 0 5px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
}

.carousel-indicators button:hover {
    opacity: 0.8;
}

/* Sekcja Kontakt */
.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2em;
    width: 30px;
}

.contact-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-header {
    display: flex;
    align-items: center;
}

.contact-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.contact-avatar:hover {
    transform: scale(1.05);
}

.contact-avatar.fas {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 2rem;
    border: 3px solid var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(24, 108, 62, 0.25);
}

/* Przyciski */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 108, 62, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Stopka */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
}

.creator {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
}

.creator:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-links {
    margin-top: 1rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-link i {
    color: var(--secondary-color);
    margin-right: 0.25rem;
}

/* Responsywność */
@media (max-width: 1199px) {
    .hero-logo-img {
        max-width: 180px;
    }
}

@media (max-width: 991px) {
    .external-link {
        margin-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 10px;
        margin-top: 10px;
    }

    .external-link::before {
        display: none;
    }

    .hero-logo-img {
        max-width: 160px;
    }

    .hero-section .row {
        text-align: center;
    }

    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 120px 0 50px; /* Zwiększam padding-top na małych ekranach */
        background-attachment: scroll;
    }

    .footer .row {
        text-align: center;
    }

    .footer .col-lg-4 {
        margin-bottom: 1rem;
    }

    .footer-links {
        margin-top: 0.5rem;
    }

    .footer-link {
        display: block;
        margin-bottom: 0.75rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-logo-img {
        max-width: 140px;
    }

    .team-member {
        margin-bottom: 30px;
    }

    .member-photo img {
        width: 150px;
        height: 150px;
    }

    .specialization-card {
        margin-bottom: 30px;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .contact-avatar {
        width: 50px;
        height: 50px;
    }

    .contact-avatar.fas {
        font-size: 1.5rem;
    }

    .testimonial-item {
        padding: 30px 15px;
        margin: 0 10px;
        height: 400px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: -20px;
    }

    .carousel-control-next {
        right: -20px;
    }

    .achievement-card {
        padding: 30px 20px;
    }

    .map-container {
        padding: 20px;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

/* Mapa Google */
.map-container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    display: block;
}

@media (max-width: 576px) {
    .hero-section {
        padding: 140px 0 50px; /* Jeszcze większy padding-top na bardzo małych ekranach */
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.2rem;
    }

    .hero-logo-img {
        max-width: 120px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .team-member,
    .specialization-card,
    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .achievement-card {
        padding: 25px 15px;
    }

    .testimonial-item {
        padding: 25px 15px;
        margin: 0 5px;
        height: 500px;
    }

    .testimonial-photo img {
        width: 80px;
        height: 80px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev {
        left: -15px;
    }

    .carousel-control-next {
        right: -15px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 16px; /* Zapobiega zoom na iOS */
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section h2 {
        font-size: 1.1rem;
    }

    .hero-logo-img {
        max-width: 100px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .team-member,
    .specialization-card,
    .contact-info,
    .contact-form {
        padding: 15px;
    }

    .achievement-card {
        padding: 20px 12px;
    }

    .testimonial-item {
        padding: 20px 12px;
        height: 360px;
    }

    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .navbar {
        padding: 10px 0;
    }
}

@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section h2 {
        font-size: 1rem;
    }

    .hero-logo-img {
        max-width: 80px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .team-member,
    .specialization-card,
    .contact-info,
    .contact-form {
        padding: 12px;
    }

    .achievement-card {
        padding: 18px 10px;
    }

    .testimonial-item {
        padding: 18px 10px;
        height: 360px;
    }

    .btn-lg {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .map-container {
        padding: 15px;
    }

    .map-wrapper iframe {
        height: 250px;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Płynne przewijanie */
html {
    scroll-behavior: smooth;
}

/* Hover effects dla obrazów */
.img-fluid {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Dodatkowe style dla lepszej czytelności */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

/* Style dla formularza */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Efekt parallax dla sekcji głównej */
.hero-section {
    background-attachment: fixed;
}

/* Responsywność dla orientacji landscape na urządzeniach mobilnych */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero-logo-img {
        max-width: 80px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-section p {
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Poprawki dla tabletów w orientacji portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-logo-img {
        max-width: 150px;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .team-member {
        padding: 25px;
    }

    .member-photo img {
        width: 180px;
        height: 180px;
    }
}

/* Dodatkowe optymalizacje dla urządzeń mobilnych */
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Optymalizacje dla urządzeń z wysoką rozdzielczością */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo-img,
    .member-photo img,
    .testimonial-photo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Poprawki dla formularza na urządzeniach mobilnych */
@media (max-width: 576px) {
    .form-control {
        font-size: 16px; /* Zapobiega zoom na iOS */
        -webkit-appearance: none;
        border-radius: 8px;
    }

    .btn {
        -webkit-appearance: none;
        border-radius: 8px;
        touch-action: manipulation;
    }

    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Poprawki dla karuzeli na małych ekranach */
@media (max-width: 480px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none; /* Ukryj strzałki na bardzo małych ekranach */
    }

    .testimonial-item {
        margin: 0;
        border-radius: 10px;
    }
}

/* Style dla tooltipa - tylko podstawowe */
.external-link[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.7;
}
