/* --- Zmienne i Globalne Style --- */
:root {
    --primary-color: #1a1a1a;
    /* Głęboka czerń */
    --secondary-color: #555;
    /* Miękki szary dla tekstu */
    --accent-color: #A38560;
    /* Zgaszone, eleganckie złoto/brąz */
    --light-bg: #f7f7f7;
    --white-color: #ffffff;
    --border-color: #e5e5e5;
    --font-header: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    /* Outfit Light */
    line-height: 1.7;
    color: var(--primary-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-header);
    font-weight: 500;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 300;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.text-center {
    text-align: center;
}

/* --- Nagłówek i Nawigacja --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link-cta {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background-color: var(--accent-color);
    /* Wypełnienie kolorem akcentującym */
    color: var(--white-color);
    /* Biały tekst dla kontrastu */
}

/* Efekt po najechaniu dla przycisku "Kontakt" */
.nav-link-cta:hover {
    background-color: transparent;
    /* Tło staje się przezroczyste */
    color: var(--accent-color);
    /* Tekst przyjmuje kolor akcentujący */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--primary-color);
    transition: 0.4s;
}

/* --- Sekcje Główne --- */
.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

/* --- Sekcja Hero --- */
.hero {
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding-top: 90px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    max-width: 600px;
}

/* --- Przyciski --- */
.btn-hero {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-color);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--white-color);
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

.btn-hero:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* --- Sekcja O Mnie --- */
.about-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-text strong {
    font-weight: 500;
    color: var(--primary-color);
}

/* --- Sekcja Wartość --- */
.value-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.value-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.value-number {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--accent-color);
    line-height: 1;
}

.value-content p {
    margin-bottom: 0;
}

.value-summary {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-color);
}

/* --- Sekcja Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.portfolio-category ul {
    list-style: none;
    padding: 0;
}

/* --- Zastąp ten fragment w sekcji Portfolio --- */

.portfolio-category li {
    list-style: none;
    /* Upewniamy się, że nie ma domyślnych punktorów */
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.portfolio-category li::before {
    content: '–';
    /* Używamy myślnika */
    position: absolute;
    left: 0;
    top: 0;
    /* Wyrównujemy do góry */
    width: 1.5rem;
    /* Szerokość kontenera na punktor */
    text-align: center;
    /* Wyśrodkowanie punktora w jego kontenerze */
    color: var(--accent-color);
}

.portfolio-category li strong {
    font-weight: 400;
    color: var(--primary-color);
}

.portfolio-category li em {
    font-style: italic;
}

/* --- Sekcja Rekomendacje --- */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.recommendation-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.recommendation-card p {
    margin-bottom: 0;
}

.recommendation-card strong {
    font-weight: 400;
    color: var(--primary-color);
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}


.recommendation-list li {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.recommendation-list li:last-child {
    margin-bottom: 0;
}

.recommendation-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 5px;
    /* Drobna korekta pionowa dla lepszego efektu wizualnego */
    width: 1.5rem;
    text-align: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

/* --- Sekcja CTA --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section p {
    color: #ccc;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white-color);
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-color);
    margin-top: 2.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* --- Dodatkowe style dla kontenera kontaktowego i drugiego przycisku --- */
.cta-contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Zapewnia łamanie na mniejszych ekranach */
    gap: 1.5rem;
    /* Odstęp między przyciskami */
    margin-top: 2.5rem;
}

.cta-button {
    margin-top: 0;
    /* Usuwamy margines górny, bo jest już na wrapperze */
}

/* Styl dla drugiego przycisku (telefon) */
.cta-button-secondary {
    background-color: transparent;
    color: var(--accent-color);
}

.cta-button-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* --- Stopka --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .copyright {
    color: #aaa;
    font-size: 0.8rem;
    margin: 0;
}

.footer-contact {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.footer-contact a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact .separator {
    margin: 0 1rem;
    color: #ddd;
}

/* --- Responsywność --- */
@media(max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-image {
        margin: 0 auto;
        max-width: 300px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 4rem 0;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        left: 100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--white-color);
        width: 100%;
        height: 100vh;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        transform: rotate(45deg) translate(0px, 0px);
        width: 25px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}