/* ============= MAIN & BODY ============= */
:root {
    --body-pt: 100px;
    --bg-color: #ffffff;
    --text-color: #000000;
}

@media screen and (max-width: 768px) {
    :root { --body-pt: 80px; }
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter.woff2") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

body {
    margin: 0;
    padding-top: var(--body-pt);
    font-family: "Inter", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease; 
}

/* DARK MODE */
body.darkmode-active {
    --bg-color: #121212;
    --text-color: #ffffff;
}

/* RESET LINKÓW */
a[href^="tel"], a[href^="mailto"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* ============= HEADER ============= */
header {
    --header-bg: #fff;
    --header-pad: 20px 15%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    padding: var(--header-pad);
    background: var(--header-bg);
    transition: background 0.3s ease;
}

/* DARK MODE */
body.darkmode-active header {
    --header-bg: #1e1e1e;
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 768px) {
    header {
        --header-pad: 10px 25px;
    }
}

/* ============= LOGO ============= */
.logo {
    --logo-h: 60px; 
    height: var(--logo-h);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .logo {
    filter: brightness(0) invert(1);
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 768px) {
    .logo {
        --logo-h: 50px;
        margin-left: -5px;
    }
}

/* ============= NAV & UI ELEMENTS ============= */
nav {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 56px;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    color: #1f54a3;
    padding: 10px 16px;
    border-radius: 6px;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

nav a:not(.umowwizyte):not(.darkmode):not(.phone-link):hover {
    transform: scale(1.1);
    color: #1275ff;
}

nav a.umowwizyte {
    background: #1275ff;
    color: #fff !important;
    padding: 10px 20px;
    font-weight: 700;
}

nav a.umowwizyte:hover {
    transform: scale(1.1);
    background: #1f54a3;
}

/* ============= DARKMODE SWITCHER ============= */
nav .darkmode {
    width: 50px;
    height: 30px;
    border-radius: 15px;
    background: #fff;
    border: 2px solid #000;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

nav .darkmode::after {
    content: "";
    position: absolute;
    top: -2px; left: -1px;
    width: 60%; height: calc(100% + 4px);
    border-radius: 15px;
    background: #000;
    transition: transform 0.3s ease;
}

nav .darkmode.dark { background: #000; border-color: #fff; }
nav .darkmode.dark::after { transform: translateX(20px); background: #fff; }

/* ============= HAMBURGER & DROPDOWN ============= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1002;
}

.hamburger span {
    height: 3px; width: 100%;
    background-color: #1f54a3;
    border-radius: 4px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-dropdown {
    position: absolute;
    top: 70px; right: 0;
    width: 150px;
    background: #fff;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999;
}

.nav-dropdown.active { display: flex; }
.nav-dropdown a { display: block !important; color: #1f54a3; }
.nav-dropdown a:hover { background: #cccccc; transform: scale(1.1); }

.nav-dropdown a.umowwizyte-dropdown {
    background-color: #1275ff !important; 
    color: #ffffff !important;          
    font-weight: 700 !important;
    text-align: center;
    border-radius: 8px;                
    margin-top: 5px;                     
    padding: 12px 10px !important;       
    transition: background 0.3s ease;
}

.nav-dropdown a.umowwizyte-dropdown:hover {
    background-color: #1f54a3 !important; 
    transform: none !important;            
}

/* PHONE */
.phone-link { display: none; align-items: center; justify-content: center; }
.phone-icon {
    height: 35px;
    cursor: pointer;
    transition: transform 0.25s ease;
}
.phone-icon:hover { transform: scale(1.15); }

/* UMÓW WIZYTĘ */
.nav-appointment-btn {
    display: none !important;
}

/* RESPONSYWNOŚĆ */
@media screen and (min-width: 1400px) and (max-width: 1600px) {
    header { padding: 20px 10%; }
}

@media screen and (max-width: 1890px) {
    header { padding: 15px 5% !important; }
    body { padding-top: 70px !important; }
    
    .hamburger { display: flex !important; }
    
    nav a:not(.darkmode):not(.lang-icon-wrapper):not(.lang-icon):not(.phone-link):not(.umowwizyte) {
        display: none;
    }
    
    .phone-link { display: flex !important; margin-right: -10px; }
    nav .darkmode { margin-right: -5px; }
}

@media screen and (max-width: 768px) {
    nav {
        gap: 12px !important; 
        justify-content: flex-end;
    }

    .phone-icon { 
        height: 33px !important; 
    }

    .phone-link { 
        display: flex !important;
        margin-left: 0px; 
        margin-right: -15px; 
    }

    nav .darkmode {
        margin-right: 10px !important;
        margin-left: 0px !important;
    }

    .hamburger {
        margin-left: -10px !important; 
    }

    nav a.umowwizyte, 
    .nav-appointment-btn {
        display: none !important;
    }
}

/* DARK MODE */
body.darkmode-active nav a { color: #fff; }
body.darkmode-active .hamburger span { background-color: #fff; }
body.darkmode-active .nav-dropdown { background: #1e1e1e; }
body.darkmode-active .nav-dropdown a { color: #fff; }
body.darkmode-active .nav-dropdown a:hover { background: #ffffff; }
body.darkmode-active .phone-icon { filter: brightness(0) invert(1); }

/*==========*/

nav a.kimjestesmy {
    color: #1275ff !important;
    font-weight: 800;
    font-size: 19px;
}

nav a.kimjestesmy:hover {
    transform: scale(1) !important; 
    background: transparent !important; 
}

.nav-dropdown a.kimjestesmy-dropdown {
    color: #1275ff !important;
    font-weight: 800; 
    font-size: 19px;
}

.nav-dropdown a.kimjestesmy-dropdown:hover {
    transform: scale(1) !important; 
    background: transparent !important; 
}

/*==========*/

/* ============= LANG EN ICON ============= */
.lang-icon {
    height: 50px;
    width: auto;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.lang-icon:hover {
    transform: scale(1.15);
}

.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 50px;
    border-radius: 20px;
    text-align: center;
    border: 6px solid #ff0000;
    box-shadow: none;
    max-width: 400px;
    font-family: "Inter", sans-serif;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content p {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-close-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.modal-close-btn:hover {
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .modal-content {
    background: #1e1e1e;
}

body.darkmode-active .modal-content p {
    color: #ffffff;
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 20px 25px;
        width: 85%;
        max-width: 300px;
    }

    .modal-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .modal-close-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 1890px) {
    .lang-icon {
        margin-right: -5px;
        margin-left: 5px;
    }
}

@media screen and (max-width: 768px) {
    .lang-icon {
        display: none !important;
    }

    .lang-icon-wrapper {
        display: none !important;
    }
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece,::-webkit-scrollbar-corner {
    background: transparent !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

::-webkit-scrollbar-button {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

::-webkit-scrollbar-thumb {
    background-color: #1f54a3 !important;
    border-radius: 10px !important;
    border: none !important;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2e72d2 !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1f54a3 transparent !important;
}

/* ============= COOKIES ============= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 2px solid #1275ff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10000;
    visibility: hidden;
}

.cookie-banner.active {
    visibility: visible;
}

.cookie-banner p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.cookie-banner button {
    background: #1275ff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.cookie-banner button:hover {
    background: #0056cc;
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .cookie-banner {
    background: #1e1e1e;
    border-color: #1275ff; 
}

body.darkmode-active .cookie-banner p {
    color: #ffffff;
}

body.darkmode-active .cookie-banner button {
    background: #1275ff;
    color: #ffffff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner button {
        margin-top: 10px;
        width: 100%;
    }
}

/* ============= FOOTER ============= */
.footer {
    background-color: #f8f9fa;
    color: #1f1f1f;
    padding: 40px 20px 20px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 3px solid #0056b3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-column h4 {
    color: #0056b3;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.footer-column ul li:hover {
    transform: scale(1.1);
}

.footer-column ul li a {
    text-decoration: none;
    color: #1f1f1f;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: #0056b3;
}

.footer-column p a.footer-link-highlight {
    color: #1275ff !important;
    text-decoration: underline !important;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    backface-visibility: hidden;
}

.footer-column p a.footer-link-highlight:hover {
    transform: scale(1.03);
    text-decoration: underline !important;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 20px;
    margin-top: 30px;
    border-top: 1px solid #0056b3;
    font-size: 0.85rem;
}

.footer-bottom p {
    grid-column: 2;
    margin: 0;
    text-align: center;
}

.made-by {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.made-by span {
    font-size: 0.9rem;
    color: #555;
}

.made-by img {
    height: 17px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    margin-top: 2.5px;
}

.made-by img:hover {
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .footer {
    background-color: #1e1e1e;
    color: #ffffff;
}

body.darkmode-active .footer-column h4 {
    color: #1275ff;
}

body.darkmode-active .footer-column ul li a {
    color: #ffffff;
}

body.darkmode-active .footer-column ul li a:hover {
    color: #1275ff;
}

body.darkmode-active .made-by span {
    color: #ffffff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .made-by {
        justify-content: center;
    }
}

/* ============= FADE IN ============= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Podpowiada przeglądarce, że to będzie animowane */
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ============= BODY ============= */
.team-profile-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.profile-layout-wrapper {
    display: flex;
    align-items: stretch; 
    gap: 40px;
}

/* KONTENER ZEWNĘTRZNY (Niebieski) */
.profile-outer-card {
    flex: 1;
    background: #f0f7ff; 
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

body.darkmode-active .profile-outer-card {
    background: #1f1f1f; 
}

.profile-photo-column {
    flex: 0 0 400px; 
}

.side-box {
    height: 100%;
}

/* NAGŁÓWKI */
.main-team-title {
    color: #1275ff;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 35px;
    margin-top: -20px;
}

.lekarz-title {
    color: #000000;
    font-size: 35px;
    font-weight: 700;
    display: block;
    margin-bottom: 35px;
    margin-top: 10px;
}

/* KONTENER WEWNĘTRZNY */
.inner-content-white {
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    flex-grow: 1; 
}

body.darkmode-active .inner-content-white {
    background: #2a2a2a; 
}

/* Zdjęcie i ID */
.photo-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    margin-top: -50px;
}

.icon {
    width: 60px;         
    height: auto;
    object-fit: contain;
    transform: translateY(17.5px);
}

.profile-id-card h3 { color: #1f54a3; margin-bottom: 5px; font-size: 1.5rem; }

.pwzf-badge {
    background: #f0f4f8;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1275ff;
}

/* BIO I LISTY */
.bio-section h2 { color: #1275ff; margin-bottom: 15px; font-size: 30px; margin-top: 0px; }
.bio-section p { line-height: 1.7; color: #444; margin-bottom: 20px; }

.profile-id-card h3 { color: #1275ff; }

body.darkmode-active .bio-section p { color: #ffffff; }

.skills-flex-container { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.skills-group h3 { font-size: 1.1rem; color: #1f54a3; border-bottom: 2px solid #1275ff; display: inline-block; margin-bottom: 15px; }

body.darkmode-active .skills-group h3 { color: #ffffff; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #1275ff; font-weight: 900; }

.tags-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-flex span { background: #f0f7ff; color: #1275ff; padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; border: 1px solid #ddecff; }

/* RESPONSYWNOŚĆ */
@media (max-width: 1100px) {
    .profile-layout-wrapper { flex-direction: column; align-items: center; }
    .profile-photo-column { width: 100%; max-width: 450px; margin-bottom: 100px;}
    .inner-content-white { padding: 30px; }
}

@media (max-width: 768px) {
    .main-team-title {
        font-size: 32px;
    }

    .profile-img {
        width: 110%;
    }

    .profile-photo-column { 
        width: 100%;
        max-width: 700px;
    }

    .profile-img {
        max-width: 100%;    
        height: auto;
    }

    .inner-content-white {
        padding: 45px 10px;
    }

    .bio-section h2 {
        margin-left: 15px;
        font-size: 25px;
    }

    .bio-section p {
        margin-left: 15px;
        margin-right: 15px;
    }

    .skills-group {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* === SEKCJA IKON ZAUFANIA === */
.trust-icons-section {
    max-width: 1300px;
    margin: 150px auto 100px auto;
    padding: 0 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

/* ZEWNĘTRZNY BOX*/
.trust-outer-card {
    background: #f0f7ff;
    padding: 25px 30px 55px 30px; 
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

body.darkmode-active .trust-outer-card {
    background: #1f1f1f;
}

/* WEWNĘTRZNY BOX */
.trust-inner-white {
    background: #ffffff;
    padding: 25px 20px 10px 20px;
    border-radius: 15px;
    height: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

body.darkmode-active .trust-inner-white {
    background: #2a2a2a;
}

/* IKONA I TEKST */
.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trust-inner-white h4 {
    color: #1275ff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

body.darkmode-active .trust-inner-white h4 {
    color: #ffffff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .trust-grid {
        grid-template-columns: 1fr; 
    }
    .trust-inner-white {
        padding: 20px;
    }
}