/* =========================================================
   D & D ELECTRICALS
   Bootstrap 5.3.3 - Complete Responsive Style
   ========================================================= */

/* =========================================================
   GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: #263238;
    background: #ffffff;

    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    z-index: 1050;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 700;
    white-space: nowrap;
}

.brand-logo {
    width: auto;
    height: 42px;

    max-width: 180px;

    object-fit: contain;
}

.navbar .nav-link {
    font-weight: 500;

    padding-left: 15px !important;
    padding-right: 15px !important;

    transition: all .2s ease;
}

.navbar .nav-link:hover {
    color: #0d6efd;
}

.navbar .nav-link.active {
    color: #ffffff;
    font-weight: 700;
}


/* =========================================================
   HERO CAROUSEL
   ========================================================= */

#homeCarousel {
    width: 100%;

    overflow: hidden;

    position: relative;
}

#homeCarousel .carousel-inner {
    width: 100%;
}

#homeCarousel .carousel-item {
    width: 100%;
}


/* ---------------------------------------------------------
   HERO IMAGE

   IMPORTANT:
   height uses VW so it automatically becomes smaller
   according to screen/device width.
   --------------------------------------------------------- */

.hero-slide {

    width: 100%;

    /*
       Desktop:
       42vw but limited between 300px and 720px
    */
    height: clamp(300px, 42vw, 720px);

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;
}


/* ---------------------------------------------------------
   DARK OVERLAY
   --------------------------------------------------------- */

.hero-slide::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.60) 30%,
            rgba(0, 0, 0, 0.30) 60%,
            rgba(0, 0, 0, 0.08) 100%
        );

    z-index: 1;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 760px;

    color: #ffffff;

    padding-top: 40px;

    padding-bottom: 40px;

    padding-left: 15px;

    padding-right: 15px;
}

.hero-content h1 {

    margin: 0 0 20px;

    font-size: clamp(
        1.8rem,
        4vw,
        4rem
    );

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -0.5px;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, .55);
}

.hero-content p {

    margin: 0 0 28px;

    max-width: 700px;

    font-size: clamp(
        .95rem,
        1.5vw,
        1.25rem
    );

    line-height: 1.6;

    color: #ffffff;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, .60);
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.hero-content .btn {

    padding: 12px 26px;

    font-weight: 600;

    border-radius: 6px;

    transition: all .25s ease;
}

.hero-content .btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .25);
}


/* =========================================================
   CAROUSEL CONTROLS
   ========================================================= */

.carousel-control-prev,
.carousel-control-next {

    width: 7%;

    z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {

    width: 35px;

    height: 35px;
}


/* =========================================================
   CAROUSEL INDICATORS
   ========================================================= */

.carousel-indicators {

    z-index: 6;

    margin-bottom: 18px;
}

.carousel-indicators button {

    width: 35px;

    height: 4px;

    border: 0;

    border-radius: 10px;

    margin-left: 4px;

    margin-right: 4px;
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section-padding {

    padding-top: 80px;

    padding-bottom: 80px;
}

.section-title {

    margin-bottom: 15px;

    font-size: clamp(
        1.8rem,
        3vw,
        2.7rem
    );

    line-height: 1.2;

    font-weight: 800;
}

.section-subtitle {

    max-width: 850px;

    margin-left: auto;

    margin-right: auto;

    margin-bottom: 40px;

    color: #6c757d;

    font-size: 1.05rem;

    line-height: 1.7;
}


/* =========================================================
   INFORMATION CARDS
   ========================================================= */

.info-card,
.service-card,
.portfolio-card {

    border: 0;

    border-radius: 16px;

    height: 100%;

    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.info-card:hover,
.service-card:hover,
.portfolio-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .14);
}

.info-card h4,
.service-card h4 {

    font-weight: 700;

    margin-bottom: 12px;
}

.info-card p,
.service-card p {

    line-height: 1.6;

    color: #5f6368;
}


/* =========================================================
   ICON BOX
   ========================================================= */

.icon-box {

    width: 56px;

    height: 56px;

    border-radius: 12px;

    background: #0d6efd;

    color: #ffffff;

    display: grid;

    place-items: center;

    font-size: 24px;
}

.service-icon {

    font-size: 36px;

    color: #0d6efd;

    margin-bottom: 15px;
}


/* =========================================================
   PAGE BANNER
   ========================================================= */

.page-banner {

    padding: 80px 0;

    color: #ffffff;

    background:
        linear-gradient(
            120deg,
            #0b1f33,
            #0d6efd
        );
}

.page-banner h1 {

    margin-bottom: 10px;

    font-size: clamp(
        2rem,
        5vw,
        4rem
    );

    font-weight: 800;
}

.page-banner p {

    margin-bottom: 0;

    font-size: 1.1rem;
}


/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio-card img {

    width: 100%;

    height: 230px;

    object-fit: cover;

    transition: transform .3s ease;
}

.portfolio-card:hover img {

    transform: scale(1.03);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-box {

    height: 100%;

    padding: 30px;

    border-radius: 16px;

    background: #f8f9fa;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .06);
}

.contact-box h3 {

    font-weight: 700;
}

.contact-box address {

    line-height: 1.8;
}

.map-placeholder {

    min-height: 350px;

    width: 100%;

    border-radius: 16px;

    background: #e9ecef;

    display: grid;

    place-items: center;

    color: #6c757d;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    margin-top: 0;
}

footer a {

    color: #ffffff;
}

footer a:hover {

    color: #0d6efd;
}

.social {

    display: inline-grid;

    place-items: center;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: #212529;

    color: #ffffff;

    margin-left: 6px;

    text-decoration: none;

    transition: all .2s ease;
}

.social:hover {

    background: #0d6efd;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   LARGE DESKTOP
   1200px+
   ========================================================= */

@media (min-width: 1200px) {

    .hero-slide {

        height: min(42vw, 720px);
    }

    .hero-content {

        max-width: 780px;
    }
}


/* =========================================================
   DESKTOP / LAPTOP
   992px - 1199px
   ========================================================= */

@media (min-width: 992px) and (max-width: 1199.98px) {

    .brand-logo {

        height: 40px;

        max-width: 165px;
    }

    .hero-slide {

        height: 48vw;

        min-height: 480px;

        max-height: 600px;
    }

    .hero-content {

        max-width: 680px;
    }

    .hero-content h1 {

        font-size: 3rem;
    }
}


/* =========================================================
   TABLET
   768px - 991px
   ========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .brand-logo {

        height: 38px;

        max-width: 150px;
    }

    .hero-slide {

        /*
           Tablet compact image
        */
        height: 52vw;

        min-height: 380px;

        max-height: 520px;
    }

    .hero-content {

        max-width: 620px;

        padding-left: 30px;

        padding-right: 30px;
    }

    .hero-content h1 {

        font-size: clamp(
            2rem,
            5vw,
            3rem
        );
    }

    .hero-content p {

        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {

        width: 8%;
    }

    .section-padding {

        padding-top: 65px;

        padding-bottom: 65px;
    }
}


/* =========================================================
   MOBILE
   576px - 767px
   ========================================================= */

@media (min-width: 576px) and (max-width: 767.98px) {

    .navbar-brand span {

        font-size: 15px;
    }

    .brand-logo {

        height: 35px;

        max-width: 135px;
    }

    .hero-slide {

        /*
           Mobile image automatically compact
        */
        height: 58vw;

        min-height: 300px;

        max-height: 430px;

        background-position: center center;
    }

    .hero-slide::before {

        background:
            linear-gradient(
                90deg,
                rgba(0,0,0,.78),
                rgba(0,0,0,.38)
            );
    }

    .hero-content {

        max-width: 600px;

        padding-top: 25px;

        padding-bottom: 25px;

        padding-left: 25px;

        padding-right: 50px;
    }

    .hero-content h1 {

        font-size: clamp(
            1.6rem,
            6vw,
            2.4rem
        );

        margin-bottom: 12px;
    }

    .hero-content p {

        font-size: .9rem;

        line-height: 1.45;

        max-width: 90%;

        margin-bottom: 18px;
    }

    .hero-content .btn {

        font-size: .85rem;

        padding: 8px 17px;
    }

    .carousel-control-prev,
    .carousel-control-next {

        width: 11%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {

        width: 25px;

        height: 25px;
    }

    .carousel-indicators {

        margin-bottom: 10px;
    }

    .carousel-indicators button {

        width: 25px;

        height: 3px;
    }

    .section-padding {

        padding-top: 55px;

        padding-bottom: 55px;
    }

    .section-title {

        font-size: 2rem;
    }

    .section-subtitle {

        font-size: 1rem;
    }

    .portfolio-card img {

        height: 220px;
    }
}


/* =========================================================
   SMALL MOBILE
   400px - 575px
   ========================================================= */

@media (max-width: 575.98px) {

    .navbar-brand {

        gap: 6px;
    }

    .navbar-brand span {

        font-size: 13px;
    }

    .brand-logo {

        height: 31px;

        max-width: 115px;
    }

    /*
       Compact mobile carousel
    */

    .hero-slide {

        height: 62vw;

        min-height: 245px;

        max-height: 350px;

        background-position: center center;
    }

    .hero-slide::before {

        background:
            linear-gradient(
                90deg,
                rgba(0,0,0,.80),
                rgba(0,0,0,.40)
            );
    }

    .hero-content {

        padding-top: 15px;

        padding-bottom: 15px;

        padding-left: 20px;

        padding-right: 35px;
    }

    .hero-content h1 {

        font-size: 1.55rem;

        line-height: 1.15;

        margin-bottom: 10px;
    }

    .hero-content p {

        font-size: .78rem;

        line-height: 1.35;

        margin-bottom: 14px;

        max-width: 92%;
    }

    .hero-content .btn {

        font-size: .75rem;

        padding: 7px 13px;
    }

    .carousel-control-prev,
    .carousel-control-next {

        width: 10%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {

        width: 22px;

        height: 22px;
    }

    .carousel-indicators {

        margin-bottom: 7px;
    }

    .carousel-indicators button {

        width: 22px;

        height: 3px;

        margin-left: 2px;

        margin-right: 2px;
    }

    .section-padding {

        padding: 45px 12px;
    }

    .section-title {

        font-size: 1.8rem;
    }

    .section-subtitle {

        font-size: .95rem;

        line-height: 1.6;
    }

    .info-card {

        padding: 22px !important;
    }

    .icon-box {

        width: 50px;

        height: 50px;

        font-size: 21px;
    }

    .portfolio-card img {

        height: 200px;
    }

    .page-banner {

        padding: 55px 15px;
    }

    .page-banner h1 {

        font-size: 2.1rem;
    }

    .page-banner p {

        font-size: .95rem;
    }

    .contact-box {

        padding: 22px;
    }

    .map-placeholder {

        min-height: 280px;
    }

    footer {

        text-align: center;
    }

    footer .text-md-end {

        text-align: center !important;
    }

    .social {

        margin: 5px 3px;
    }
}


/* =========================================================
   VERY SMALL PHONE
   360px - 399px
   ========================================================= */

@media (max-width: 399.98px) {

    .navbar-brand span {

        display: none;
    }

    .brand-logo {

        height: 30px;

        max-width: 110px;
    }

    .hero-slide {

        height: 65vw;

        min-height: 220px;

        max-height: 300px;
    }

    .hero-content {

        padding-left: 18px;

        padding-right: 30px;
    }

    .hero-content h1 {

        font-size: 1.3rem;

        line-height: 1.15;
    }

    .hero-content p {

        font-size: .68rem;

        line-height: 1.3;

        margin-bottom: 10px;
    }

    .hero-content .btn {

        font-size: .7rem;

        padding: 6px 11px;
    }

    .carousel-control-prev,
    .carousel-control-next {

        width: 9%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {

        width: 19px;

        height: 19px;
    }

    .section-title {

        font-size: 1.6rem;
    }

    .section-subtitle {

        font-size: .9rem;
    }
}


/* =========================================================
   EXTRA SMALL PHONE
   320px and below
   ========================================================= */

@media (max-width: 320px) {

    .hero-slide {

        height: 68vw;

        min-height: 205px;

        max-height: 270px;
    }

    .hero-content h1 {

        font-size: 1.15rem;
    }

    .hero-content p {

        font-size: .62rem;
    }

    .hero-content .btn {

        font-size: .65rem;

        padding: 5px 9px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-width: 767.98px) and (orientation: landscape) {

    .hero-slide {

        height: 75vh;

        min-height: 280px;

        max-height: 500px;
    }

    .hero-content h1 {

        font-size: 1.7rem;
    }

    .hero-content p {

        font-size: .8rem;

        max-width: 75%;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}