html {
    scroll-behavior: smooth;
}
/* RESET PODSTAWOWY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GŁÓWNE USTAWIENIA TYPOGRAFII */
body {
    font-family: 'Open Sans', sans-serif; 
    color: #4a4a4a;
    line-height: 1.7; 
    background-color: #fafafa;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    font-weight: 700;
}

/* NAWIGACJA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}



/* Kropka w logo */
.accent {
    color: #d35400;
}

/* Ozdobna linia pod nagłówkami sekcji (H2) */
section h2::after {
    content: ''; 
    display: block;
    width: 60px; 
    height: 3px; 
    background-color: #d35400; 
    margin: 15px auto 0; 
}

/* WYRÓŻNIONY PRZYCISK "KONTAKT" W MENU */
.navbar a.nav-btn {
    background-color: #d35400;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 3px; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Zachowanie po najechaniu myszką */
.navbar a.nav-btn:hover {
    background-color: #e67e22; 
    color: #ffffff; 
    transform: translateY(-2px); 
}

/* Wyrównanie linii w sekcji kontaktowej */
#contact h2::after {
    margin: 15px 0 0; 
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #d35400; 
}


/* --- HERO SECTION  --- */
.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0; 
    width: 100%;
    max-width: none !important; 
}
/* Kontener dla podzielonych zdjęć */
.hero-split-images {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Pojedyncza połówka tła */
.hero-split {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* CIEMNA NAKŁADKA */
.hero-split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.7); 
    z-index: 2; 
}



/* Lewa strona: DOM */
.hero-split.home {
    z-index: 5;
    clip-path: polygon(0 0, 65% 0, 35% 100%, 0 100%);
    background-image: url('https://images.unsplash.com/photo-1721815693498-cc28507c0ba2?q=80&w=880&auto=format&fit=crop'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

/* Prawa strona: BIURO */
.hero-split.office {
    z-index: 10;
    clip-path: polygon(65% 0, 100% 0, 100% 100%, 35% 100%);
    background-image: url('https://plus.unsplash.com/premium_photo-1661962650430-9547442d54f4?q=80&w=1172&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
}

/* --- TEKST I PRZYCISK --- */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: #e0e0e0;
}

/* --- PRZYCISK --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #d35400; 
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

/* RESPONSYWNOŚĆ HERO DLA MAŁYCH EKRANÓW */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* PRZYCISKI */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #d35400; 
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-3px); 
}

/* WSPÓLNE DLA SEKCJI */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

/* USŁUGI (Grid) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background-color: #f9f9f9;
    padding: 40px 20px;
    border: 1px solid #eee;
}

.card h3 {
    margin-bottom: 15px;
}

/* PORTFOLIO  */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 16 / 10;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

/* NAKŁADKA  */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.85); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease; 
    padding: 20px;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

/* EFEKT NAJECHANIA (Hover) */
.portfolio-item:hover img {
    transform: scale(1.05); 
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; 
}

/* RESPONSYWNOŚĆ DLA MAŁYCH EKRANÓW */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; 
    }
}

/* KONTAKT */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: left; 
}

/* DANE FIRMY  */
.contact-info {
    flex: 1; 
}
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}

/* FORMULARZ  */
.contact-form {
    flex: 1.5; 
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Minimalistyczne pola tekstowe */
.contact-form input, 
.contact-form textarea {
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #ddd; 
    background-color: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease; 
}

/* Reakcja na kliknięcie w pole */
.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none; 
    border-bottom-color: #d35400; 
}

.contact-form .btn {
    align-self: flex-start; 
    margin-top: 10px;
}

/* RESPONSYWNOŚĆ DLA MAŁYCH EKRANÓW (Telefony) */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column; 
        gap: 40px;
    }
}

/* STOPKA */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


.footer {
    background-color: #1a1a1a; 
    color: #e0e0e0;
    padding: 70px 20px 20px;
    font-family: 'Open Sans', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; 
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}


.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #d35400;
    margin-top: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #d35400; 
}

/* Ikonki Social Media */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: #d35400;
    transform: translateY(-3px); 
}

/* Dolny pasek Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #888;
}

/* --- 8. USŁUGI --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: #ffffff;
    padding: 50px 30px;
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0; 
}

/* Efekt najechania (Hover) */
.card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); 
}

/* Ikony w kartach */
.card .icon {
    font-size: 2.5rem;
    color: #d35400; 
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsywność dla kart usług  */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PRZYCISK SCROLL TO TOP --- */
.scroll-top {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background-color: #d35400; 
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
    z-index: 999; 
}

.scroll-top.show {
    opacity: 1; 
    visibility: visible;
}

.scroll-top:hover {
    background-color: #e67e22; 
    transform: translateY(-5px); 
    color: white; 
}

/* ==========================================================================
   8. PEŁNA RESPONSYWNOŚĆ DLA TELEFONÓW
   ========================================================================== */

@media (max-width: 768px) {
    
    /* --- NAWIGACJA: Układamy elementy pionowo --- */
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .navbar ul {
        flex-wrap: wrap; /* Pozwala linkom zawinąć się do nowej linii, jeśli brakuje miejsca */
        justify-content: center;
        gap: 15px;
    }

    .navbar a.nav-btn {
        padding: 8px 15px; /* Trochę mniejszy przycisk kontaktu na telefonie */
    }

    /* --- HERO SECTION: Zmiana cięcia z pionowego na poziome --- */
    /* Dom będzie na górze, biuro na dole, a cięcie będzie ukośne w poprzek ekranu */
    .hero-split.home {
        clip-path: polygon(0% 0%, 100% 0%, 100% 55%, 0% 45%);
    }

    .hero-split.office {
        clip-path: polygon(0% 45%, 100% 55%, 100% 100%, 0% 100%);
    }

    /* Pomniejszamy tekst, żeby nie rozpychał ekranu */
    .hero-content {
        width: 95%;
    }

    .hero-content h1 {
        font-size: 2.2rem; 
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* --- OGÓLNE ODSTĘPY: Mniejsze marginesy dla sekcji na telefonie --- */
    section {
        padding: 60px 15px; 
    }

    section h2 {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
}