:root {
    --brand-primary: #133d5a;
    --brand-secondary: #c5923c;
    --brand-dark: #0a1f30;
    --brand-light: #f4f3ef;
    --text-main: #25313a;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.65;
    overflow-x: hidden;
}

.site-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 0;
    transition: background-color 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(0, 0, 0, 1);
    box-shadow: none;
}

.navbar-brand {
    letter-spacing: 0.03em;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.navbar {
    --bs-navbar-nav-link-padding-x: 24px;
}

.center{text-align:center;}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff;
    background: #ff0000;
}

.navbar .nav-link.active {
    background: #ff0000;
    color: #ffffff;
}

main {
    margin-top: 62px;
}

.hero-section,
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    min-height: calc(100vh - 58px);
}

.hero-section .carousel-inner {
    background: #000;
}

.hero-image {
    width: 100%;
    height: calc(100vh - 58px);
    object-fit: cover;
    filter: saturate(0.88) contrast(1.05);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease;
    transform: none !important;
    will-change: opacity;
    backface-visibility: hidden;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    opacity: 0;
    transform: none !important;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-caption-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(8, 24, 36, 0.7) 0%, rgba(8, 24, 36, 0.26) 55%, rgba(8, 24, 36, 0.05) 100%);
}

.hero-content {
    max-width: 640px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 1.6rem;
}

.btn-brand {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #1d1302;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.7rem 1.4rem;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #d4a14d;
    border-color: #d4a14d;
    color: #1d1302;
}

.section {
    padding: 5.5rem 0;
}

.section div.container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.section-light {
    background: #ffffff;
}

.section-dark {
    background: #2c2e30;
}

.section-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.section-parallax {
    background-image: url('../img/asphalt__shingle_texture.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 17, 27, 0.72);
}

.product-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    overflow: hidden;
    padding: 1rem;
    box-shadow: 0 18px 28px rgba(2, 12, 20, 0.25);
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.product-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card .carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

.supplier-logo {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%) saturate(20%) opacity(0.88);
    transition: filter 0.35s ease, transform 0.3s ease;
}

.supplier-item:hover .supplier-logo,
.supplier-item:focus-within .supplier-logo {
    filter: grayscale(0%) saturate(100%) opacity(1);
    transform: scale(1.03);
}

.suppliers-mosaic {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: center;
}

.supplier-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.contact-form .form-label {
    color: #ffffff;
    font-weight: 600;
}

.contact-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.contact-form-feedback:empty {
    display: none;
}

.contact-form-feedback {
    margin-bottom: 1rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.map-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem;
}

.contact-map-col {
    display: flex;
}

.contact-map-col .map-wrap {
    display: flex;
    flex: 1;
}

.map-frame {
    width: 100%;
    min-height: 420px;
    height: 100%;
    flex: 1;
    border: 0;
    border-radius: 10px;
}

.map-frame.map-frame-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
}

.map-error-text {
    margin: 0;
    color: #1f2a33;
    font-weight: 600;
    text-align: center;
}

.site-footer {
    background: #131313;
    color: rgba(255, 255, 255, 0.75);
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.footer-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.footer-social {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    color: #ffffff;
    line-height: 1;
    text-decoration: none;
}

.footer-social i {
    font-size: 64px;
}

.footer-social a:hover,
.footer-social a:focus {
    color: var(--brand-secondary);
}

.footer-text {
    margin: 0;
}

.footer-text a {
    color: #ffffff;
    text-decoration: none;
}

.footer-text a:hover,
.footer-text a:focus {
    text-decoration: underline;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.16rem 0;
}

#copyright {
    padding-top: 1rem;
}



@media (max-width: 991px) {
    main {
        margin-top: 62px;
    }

    .site-header,
    .site-header .navbar {
        min-height: 62px;
    }

    .brand-logo {
        height: 46px;
    }

    .navbar-collapse {
        padding-top: 20px;
    }

    .navbar-toggler,
    .navbar-toggler:hover,
    .navbar-toggler:focus,
    .navbar-toggler:focus-visible,
    .navbar-toggler:active {
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .navbar-toggler .navbar-toggler-icon {
        box-shadow: none !important;
    }

    .navbar .nav-link {
        height: auto;
        min-height: 56px;
        justify-content: flex-start;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .hero-content {
        padding-top: 4rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-parallax {
        background-attachment: scroll;
    }

    .suppliers-mosaic {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .suppliers-mosaic.is-mobile-carousel {
        display: block;
        position: relative;
        min-height: 120px;
        max-width: 420px;
        margin: 1.25rem auto 0;
    }

    .suppliers-mosaic.is-mobile-carousel .supplier-item {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.7s ease;
    }

    .suppliers-mosaic.is-mobile-carousel .supplier-item.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .suppliers-mosaic.is-mobile-carousel .supplier-logo {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 180px;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .site-header .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-brand {
        margin-left: 4px;
    }

    .navbar-toggler {
        margin-right: 0;
    }

    .suppliers-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .supplier-item {
        min-height: 90px;
    }

}

@media (max-width: 575px) {
    main {
        margin-top: 62px;
    }

    .hero-section,
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-image {
        min-height: 72vh;
        height: 72vh;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .footer-hours li {
        flex-direction: column;
        gap: 0;
    }
}
