:root {
    --graphite: #292929;
    --primary-scarlet: #ff8800;
    --jet-black: #489fb5;
    --white: #ffffff;
    --pine-teal: #b20d30;
}

/* Kluczowe poprawki dla widoku mobilnego */
html,
body {
    max-width: 100%;
    font-family: "Inter", sans-serif;
    color: var(--graphite);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Nawigacja */
a.nav-link {
    color: var(--graphite) !important;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}
a.nav-link:hover {
    color: var(--primary-scarlet) !important;
}
.nav-link::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 3px;
    height: 3px;
    left: 50%;
    right: 50%;
    background-color: var(--primary-scarlet) !important;
    transition: all 0.3s ease;
}
a.nav-link.dropdown-toggle::before {
    content: inherit;
}
a.nav-link:hover::before {
    left: 0;
    right: 0;
    transition: all 0.3s ease;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 3px solid var(--primary-scarlet);
    padding-top: 0;
    padding-bottom: 0;
}
.navbar-brand {
    color: var(--primary-scarlet) !important;
    font-weight: 800;
}
.navbar-brand img {
    height: 50px;
    width: auto;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
}

/* Hero Section */
.hero {
    width: 100%;
    height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(58, 38, 38, 0.2), rgba(18, 44, 68, 0.1)),
        url("../img/home.jpg") no-repeat center center;
    background-size: cover;
}
.hero .content {
    position: relative;
    width: 100%;
    height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    background: linear-gradient(
            135deg,
            rgba(63, 63, 63, 0.8),
            rgba(18, 44, 68, 0.2)
        )
        no-repeat center center;
    background-size: cover;
    z-index: 1;
}
.hero .content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
}
.hero .content span.brand {
    color: var(--primary-scarlet);
}
.hero video {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -1;
}

/* Przyciski */
.btn-primary {
    background-color: var(--primary-scarlet);
    border-color: var(--primary-scarlet);
    font-weight: 600;
    padding: 12px 30px;
}

.btn-primary:hover {
    background-color: #e60;
    border-color: #e60;
}

/* Sekcje */
.section-padding {
    padding: 80px 0;
}

section.inner-shadow-top {
    box-shadow: 0 0.5em 0.5em inset rgba(0, 0, 0, 0.2);
}

.bg-graphite {
    background-color: var(--graphite);
    color: var(--white);
}

.bg-jet-black {
    background-color: var(--jet-black);
    color: var(--white);
}

.bg-primary-scarlet {
    background-color: var(--primary-scarlet);
    color: var(--white);
}
/* Karty */
.card-custom {
    background: var(--white);
    border-left: 5px solid var(--primary-scarlet);
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-scarlet {
    color: var(--primary-scarlet);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.red-accent {
    color: var(--jet-black);
    font-weight: 700;
}
.scarlet-accent {
    color: var(--primary-scarlet);
}

/* Stopka */
footer {
    background-color: var(--graphite);
    color: var(--white);
    padding: 60px 0 20px 0;
    border-top: 5px solid var(--primary-scarlet);
}

hr.scarlet-line {
    border-top: 2px solid var(--primary-scarlet);
    opacity: 1;
    width: 60px;
    margin: 20px 0;
}
.bg-primary-scarlet hr.scarlet-line {
    border-top: 2px solid var(--graphite);
}
footer .address p {
    margin-left: 24px !important;
    text-indent: -12px;
}
footer .address p:nth-of-type(1) {
    margin-left: 0 !important;
    text-indent: 0;
}

/* Poprawka dla kontenerów Bootstrap, aby nie powodowały overflow */
.row {
    margin-right: 0;
    margin-left: 0;
}
.container {
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}
@media screen and (min-width: 768px) {
    section .container::before {
        content: "";
        width: 500px;
        bottom: 0;
        top: 50px;
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    section#cta .container::before {
        content: none;
    }
    #stabilizacja .container::before {
        right: calc(100% - 110px);
        background-image: url("../img/fibrema_still_02.png");
        bottom: -50px;
    }
    #drenaz .container::before {
        left: calc(100% - 80px);
        background-image: url("../img/fibrema_still_01.png");
        bottom: 0;
        width: 400px;
    }
    #ochrona .container::before {
        right: calc(100% - 80px);
        background-image: url("../img/fibrema_still_03.png");
        bottom: -40px;
        width: 350px;
    }
    #ochrona_membran .container::before {
        left: calc(100% - 100px);
        background-image: url("../img/fibrema_still_04.png");
        bottom: -110px;
        width: 350px;
    }
    #ogrody .container::before {
        right: calc(100% - 80px);
        background-image: url("../img/fibrema_still_05.png");
        bottom: -30px;
        width: 350px;
    }
    #dachy .container::before {
        left: calc(100% - 100px);
        background-image: url("../img/fibrema_still_06.png");
        bottom: -100px;
        width: 320px;
    }
}
