/* --- Import czcionki i definicje kolorów z Brandbooka --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
    /* Kolory podstawowe z brandbooka (str. 18) */
    --color-dark-blue: #003C52;
    --color-blue: #3095B4;
    --color-yellow: #FAB600;

    /* Kolory uzupełniające (str. 19) */
    --color-bg-light-gray: #EDF1F3; /* Grey 1 */
    
    /* Kolory techniczne */
    --color-white: #ffffff;
    --color-text: #212529;
    --color-text-subtle: #5a5a5a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Globalne style i pomocniki --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    color: var(--color-dark-blue);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { color: var(--color-text-subtle); }

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px);
    background-color: #ffca28; /* Jaśniejszy żółty */
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -15px auto 60px auto;
    font-size: 1.1rem;
}

/* --- Nawigacja --- */
.navbar {
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

/* --- Logo odtworzone w CSS na podstawie Brandbooka --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-symbol {
    width: 38px;
    height: 38px;
    position: relative;
}
.logo-symbol::before { /* L-kształtny element litery T */
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--color-blue);
    bottom: 0;
    left: 0;
    clip-path: polygon(0% 0%, 35% 0%, 35% 65%, 100% 65%, 100% 100%, 0% 100%);
}
.logo-symbol::after { /* Kropka */
    content: '';
    position: absolute;
    width: 13px;
    height: 13px;
    background-color: var(--color-dark-blue);
    border-radius: 50%;
    top: 0;
    right: 0;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-dark-blue);
    line-height: 1;
}
.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--color-dark-blue); }
.nav-links .btn-nav { padding: 10px 25px; font-size: 0.9rem; margin-left: 30px; }

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-blue);
    transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Sekcja Hero --- */
.section-hero { padding-top: 160px; text-align: center; background-color: var(--color-white); }
.section-hero .tagline { color: var(--color-blue); font-weight: 700; margin-bottom: 10px; font-size: 1.1rem; }
.section-hero h1 { max-width: 800px; margin-left: auto; margin-right: auto; }
.section-hero p { font-size: 1.2rem; max-width: 700px; margin: 20px auto 40px auto; }

/* --- Sekcja Problem i Rozwiązanie --- */
.section-problem { background-color: var(--color-bg-light-gray); }
.problem-solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.problem-solution-grid h3 { border-bottom: 3px solid var(--color-blue); padding-bottom: 10px; display: inline-block; }

/* --- Sekcja "Dla kogo" i "Co zyskasz" --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background-color: var(--color-white); padding: 35px; border-radius: 12px; border: 1px solid #e0e0e0; }

.section-benefits { background-color: var(--color-bg-light-gray); }
.section-benefits .card { border: none; }

.card ul { list-style: none; padding-left: 0; }
.card li { padding-left: 35px; position: relative; margin-bottom: 15px; }
.card li::before {
    content: '✓'; position: absolute; left: 0; top: -2px;
    color: var(--color-blue); font-weight: bold; font-size: 1.5rem;
}

/* --- Sekcja Program Szkolenia --- */
.accordion-item { background: var(--color-white); margin-bottom: 10px; border-radius: 10px; border: 1px solid #e0e0e0; overflow: hidden; }
.accordion-header {
    width: 100%; background: var(--color-white); border: none; padding: 20px 25px; text-align: left;
    font-size: 1.2rem; font-weight: 700; color: var(--color-dark-blue); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s;
}
.accordion-header:hover { background-color: #fafafa; }
.accordion-header .date { font-size: 0.9rem; font-weight: 600; color: var(--color-text-subtle); }
.accordion-icon { font-size: 1.8rem; transition: transform 0.4s ease; color: var(--color-blue); font-weight: 400; }
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.accordion-content-inner { padding: 5px 25px 25px 25px; border-top: 1px solid #e0e0e0; margin: 0 25px; }
.accordion-content-inner ul { list-style-type: '— '; padding-left: 20px; margin-top: 20px; }
.accordion-content-inner li { margin-bottom: 8px; }

/* --- Sekcja Wykładowca --- */
.section-instructor { background: var(--color-dark-blue); color: var(--color-white); }
.section-instructor h2, .section-instructor h3 { color: var(--color-white); }
.section-instructor p { color: #e0e0e0; }
.instructor-card { display: flex; gap: 40px; align-items: center; margin-bottom: 40px; }
.instructor-card:last-child { margin-bottom: 0; }
.instructor-avatar {
    min-width: 150px; height: 150px; background: var(--color-yellow); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 800; color: var(--color-dark-blue);
}

/* --- Sekcja "Dla kogo" i "Program" --- */
.section-audience { background-color: var(--color-white); }
.section-program { background-color: var(--color-bg-light-gray); }

/* --- Sekcja "Dlaczego TAXGURU" --- */
.section-why-us { background-color: var(--color-white); }
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: left; }
.why-us-item h3 { color: var(--color-blue); }
.why-us-item .icon { font-size: 2.5rem; color: var(--color-blue); margin-bottom: 15px; }

/* --- Sekcja Klienci --- */
.section-clients { padding: 80px 0; background-color: var(--color-bg-light-gray); overflow: hidden; white-space: nowrap; }
.section-clients h2 { color: var(--color-dark-blue); margin-bottom: 40px; }
.clients-marquee { display: inline-block; animation: marquee 120s linear infinite; }
.client-logo { display: inline-block; font-size: 1.5rem; font-weight: 700; color: #a0a0a0; margin: 0 40px; }
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

/* --- Sekcja Zakup --- */
.section-purchase { background-color: var(--color-white); text-align: center; }
.section-purchase p { max-width: 650px; margin-left: auto; margin-right: auto; }
.section-purchase .btn { margin-top: 30px; }

.purchase-summary-table {
    background-color: var(--color-bg-light-gray);
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 700px;
    text-align: left;
}

.purchase-summary-table h3 {
    color: var(--color-dark-blue);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.summary-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 2px solid var(--color-blue);
    margin-bottom: 15px;
}

.summary-header-content,
.summary-header-availability {
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 1.1rem;
}

.summary-header-availability {
    text-align: center;
}

.summary-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 60, 82, 0.1);
    align-items: center;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-text);
    font-weight: 600;
}

.summary-checkmark {
    color: var(--color-blue);
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

.summary-availability {
    text-align: center;
    color: var(--color-text-subtle);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    background-color: rgba(48, 149, 180, 0.1);
    border: 1px solid rgba(48, 149, 180, 0.2);
}

/* --- Stopka --- */
footer { background-color: var(--color-dark-blue); color: #a0a0a0; text-align: center; padding: 40px 0; }
footer p { color: #ccc; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 60, 82, 0.7); backdrop-filter: blur(5px);
    z-index: 2000; display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content {
    background: var(--color-white); padding: 40px; border-radius: 12px;
    text-align: center; max-width: 500px;
    transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-content h3 { color: var(--color-dark-blue); }
.modal-content p { margin: 15px 0 25px 0; }
.modal-content .icon-success {
    width: 80px; height: 80px; border: 4px solid var(--color-blue); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 20px auto; color: var(--color-blue);
    font-size: 3rem; font-weight: bold;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 80px 0; }
    .navbar { backdrop-filter: none; background: rgba(255, 255, 255, 0.95); }
    .navbar .container { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        padding-bottom: 15px;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle { display: flex; }
    
    /* Hide navigation links by default */
    .nav-links { 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(15px);
        border-top: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    /* Show navigation when active */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a { margin: 0; text-align: center; }
    .nav-links .btn-nav { margin: 10px 0 0 0; }
    
    .section-hero { padding-top: 160px; }
    .problem-solution-grid { grid-template-columns: 1fr; }
    .instructor-card { flex-direction: column; text-align: center; }
    
    /* Mobile styles for summary table */
    .summary-table-header,
    .summary-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .summary-table-header {
        text-align: center;
        padding: 10px 0;
    }
    
    .summary-header-availability,
    .summary-availability {
        text-align: center;
    }
    
    .summary-content {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    
    .summary-availability {
        margin-top: 8px;
        font-size: 0.85rem;
    }
}