:root {
    --header-height-expanded: 120px;
    --header-height-shrunk: 80px;
    --font-h1: clamp(0.8rem, 2vw, 1.9rem);
    --font-h2: clamp(0.7rem, 1.3vw, 1.5rem);
    --logo-size: 90px;
    --text-primary: #222;
    --bg-header: #ffffff;
    --active-color: #D2AA53;
}

/* --- HEADERY --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: var(--bg-header);
    height: var(--header-height-expanded);
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.header-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* LOGO I NAPISY */
.brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    z-index: 1035;
    max-width: 80%;
    justify-content: center;
}

.site-logo {
    height: var(--logo-size);
    width: auto;
    transition: height 0.4s ease;
}

.site-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.site-titles h1 {
    font-size: var(--font-h1);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: #222;
    text-transform: uppercase;
}

.site-titles h2 {
    font-size: var(--font-h2);
    font-weight: 500;
    margin: 0;
    color: #555;
}

/* MENU DESKTOPOWE */
.desktop-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #222;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 0.5rem;
    transition: color 0.3s, font-weight 120ms;
}

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

.nav-link.active {
    color: var(--active-color) !important;
    font-weight: 700 !important;
}

/* HAMBURGER */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.25rem;
    z-index: 1040;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 1.8em;
    height: 1.8em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* MENU MOBILNE */
.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    max-width: 90vw;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 10px;
    text-align: right;
}

.mobile-dropdown .nav-link {
    display: block;
    padding: 10px 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown .nav-link:last-child {
    border-bottom: none;
}

.mobile-dropdown .nav-link.active {
    color: var(--active-color) !important;
    font-weight: 700 !important;
}

/* EFEKT SHRINK */
.site-header.shrink {
    height: var(--header-height-shrunk);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-header.shrink .brand-center {
    transform: translate(-50%, -50%) scale(0.85);
}

/* --- WSPÓLNE STYLE DLA USŁUG I KONTAKTU --- */
.services-section,
.contact-section {
    position: relative;
    background-size: cover;
    background-position: center 25%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.services-section {
    background-image: url('../data/kominiarz1.png');
}

.contact-section {
    background-image: url('../data/banner.jpg');
}

.services-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.services-section .container,
.contact-section .container {
    position: relative;
    z-index: 2;
}

.services-box,
.contact-box {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--active-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- USŁUGI --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0px 10px 35px -10px rgba(66, 68, 90, 0.84);
}

/* --- KONTAKT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
}

.icon-wrapper,
.big-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    background-color: #eef5ff;
    color: var(--active-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.big-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.text-wrapper h5,
.info-text h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #222;
}

.text-wrapper p,
.info-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.phone-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--active-color);
    text-decoration: none;
    transition: color 0.3s;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--active-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.google-review-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.review-stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.btn-write-review {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 0.5rem 0;
    margin-top: auto;
}

.copyright-text {
    font-size: 1rem;
    color: #6c757d;
}

/* 
   RESPONSYWNOŚĆ (MEDIA QUERIES)
*/

@media (max-width: 1199px) {
    :root {
        --header-height-expanded: 90px;
        --header-height-shrunk: 70px;
        --logo-size: 55px;
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 2. Urządzenia mobilne (tablety pionowo i telefony < 768px) */
@media (max-width: 991px) {

    .services-section,
    .contact-section {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        min-height: auto;
        padding: 80px 0 60px 0;
    }

    .services-box,
    .contact-box {
        padding: 2rem 1.5rem;
    }

    /* Wyśrodkowanie elementów kontaktu na mobile */
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .contact-info .d-flex {
        justify-content: center;
    }

    .map-wrapper {
        min-height: 350px;
    }
}

/* 3. Małe telefony (iPhone 14 i mniejsze) < 500px */
@media (max-width: 500px) {
    .site-titles h1 {
        font-size: 0.8rem;
    }

    .site-titles h2 {
        font-size: 0.7rem;
    }

    .brand-center {
        gap: 8px;
    }

    :root {
        --logo-size: 45px;
    }

    .brand-center {
        max-width: 70%;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

.phone-link {
    font-size: calc(1rem + 0.5rem) !important;
    line-height: 1.05;
}

.info-text p {
    font-size: calc(0.9rem + 3px) !important;
    line-height: 1.4;
}

.service-item .text-wrapper h5 {
    font-size: calc(1.1rem + 2px);
    line-height: 1.15;
    word-break: keep-all;
}

.service-item .text-wrapper p {
    font-size: calc(0.9rem + 2px);
    line-height: 1.5;
    color: #555;
}

/* --- STYLE DLA STRONY GŁÓWNEJ (INDEX) --- */

/* 1. HERO SECTION */
.hero-section {
    position: relative;
    background-image: url('../data/kominiar2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1px;
}

/* Przyciemnienie Hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 15px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background-color: var(--active-color);
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid var(--active-color);
}

.btn-hero:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
}


/* 2. SEKCJA "DLACZEGO WARTO?" */
.why-us-cards {
    position: relative;
    background-image: url('../data/photo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Paralaksa */
    background-repeat: no-repeat;
    padding: 80px 0;
    /* Więcej oddechu góra/dół */
}

/* Przyciemnienie tła*/
.why-us-cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.why-us-cards .container {
    position: relative;
    z-index: 2;
}

/* Nagłówki */
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.section-subheading {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Kafelki */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: #eef5ff;
    color: var(--active-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #222;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .why-us-cards {
        background-attachment: scroll;
        padding: 60px 0;
    }
}


/* 3. INFO GRID SECTION (Lokalizacja, Godziny, Kontakt) */
.info-grid-section {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #222;
}

.info-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.hours-list {
    display: inline-block;
    text-align: left;
}

.hours-list li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #444;
    display: flex;
    justify-content: space-between;
    min-width: 200px;
}

.hours-list li span {
    font-weight: 600;
    color: #222;
    margin-right: 15px;
}

.info-phone {
    font-size: 1.3rem;
}

.info-phone a {
    color: #222;
    text-decoration: none;
    font-weight: 700;
}

.info-phone a:hover {
    color: var(--active-color);
}

@media (min-width: 1200px) {
    .hero-section {
        background-attachment: fixed;
    }
}