/* =========================================================
   D & D ELECTRICALS - RESPONSIVE BOOTSTRAP 5.3.3
   Desktop + Tablet + Mobile
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #263238;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

.brand-logo {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.navbar-brand {
    white-space: nowrap;
}

.navbar .nav-link {
    font-weight: 500;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.navbar .nav-link.active {
    color: #fff;
}

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

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

.hero-slide {
    width: 100%;
    min-height: 620px;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;
}

/* Dark overlay for text readability */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.55) 35%,
            rgba(0, 0, 0, 0.15) 75%,
            rgba(0, 0, 0, 0.05) 100%
        );

    z-index: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;

    color: #fff;

    width: 100%;
    max-width: 760px;

    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.08;
    font-weight: 800;

    margin-bottom: 20px;

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

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;

    margin-bottom: 28px;

    max-width: 700px;

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

.hero-content .btn {
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 6px;
}

/* 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;
}

/* Indicators */
.carousel-indicators {
    z-index: 6;
}

.carousel-indicators button {
    width: 35px;
    height: 4px;
    border-radius: 10px;
}

/* =========================
   SECTIONS
   ========================= */

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 850px;
    margin: 0 auto 40px;

    color: #6c757d;

    font-size: 1.05rem;
    line-height: 1.7;
}

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

.info-card,
.service-card,
.portfolio-card {
    border: 0;
    border-radius: 16px;

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

    height: 100%;

    transition: all .25s ease;
}

.info-card:hover,
.service-card:hover,
.portfolio-card:hover {
    transform: translateY(-5px);

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

.info-card h4,
.service-card h4 {
    font-weight: 700;
}

.info-card p,
.service-card p {
    line-height: 1.6;
}

/* Icons */

.icon-box {
    width: 56px;
    height: 56px;

    border-radius: 12px;

    background: #0d6efd;
    color: #fff;

    display: grid;
    place-items: center;

    font-size: 24px;
}

.service-icon {
    font-size: 36px;
    color: #0d6efd;
}

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

.page-banner {
    background:
        linear-gradient(
            120deg,
            #0b1f33,
            #0d6efd
        );

    color: #fff;

    padding: 80px 0;
}

.page-banner h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
}

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

.portfolio-card img {
    width: 100%;
    height: 230px;

    object-fit: cover;
}

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

.contact-box {
    background: #f8f9fa;

    border-radius: 16px;

    padding: 30px;

    height: 100%;
}

.map-placeholder {
    min-height: 350px;

    background: #e9ecef;

    border-radius: 16px;

    display: grid;
    place-items: center;

    color: #6c757d;
}

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

.social {
    display: inline-grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #212529;
    color: #fff;

    margin-left: 6px;

    text-decoration: none;

    transition: .2s;
}

.social:hover {
    background: #0d6efd;
    color: #fff;
}


/* =========================================================
   TABLET
   992px and below
   ========================================================= */

@media (max-width: 991.98px) {

    .brand-logo {
        height: 38px;
        max-width: 150px;
    }

    .hero-slide {
        min-height: 560px;
    }

    .hero-content {
        max-width: 650px;

        padding-left: 55px;
        padding-right: 55px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }

    .section-padding {
        padding: 65px 0;
    }
}


/* =========================================================
   MOBILE
   768px and below
   ========================================================= */

@media (max-width: 767.98px) {

    .navbar-brand span {
        font-size: 15px;
    }

    .brand-logo {
        height: 34px;
        max-width: 130px;
    }

    /* Mobile carousel */

    .hero-slide {
        min-height: 520px;

        background-position: center center;
    }

    .hero-slide::before {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, .78),
                rgba(0, 0, 0, .35)
            );
    }

    .hero-content {
        padding: 70px 55px 70px 35px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);

        line-height: 1.15;

        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;

        line-height: 1.5;

        margin-bottom: 22px;
    }

    .hero-content .btn {
        font-size: .95rem;

        padding: 10px 20px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }

    .section-padding {
        padding: 55px 15px;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .info-card {
        padding: 25px !important;
    }

    .portfolio-card img {
        height: 220px;
    }

    .page-banner {
        padding: 60px 15px;
    }

    .contact-box {
        padding: 22px;
    }

    .map-placeholder {
        min-height: 280px;
    }
}


/* =========================================================
   SMALL MOBILE
   576px and below
   ========================================================= */

@media (max-width: 575.98px) {

    .navbar-brand span {
        font-size: 13px;
    }

    .brand-logo {
        height: 30px;
        max-width: 110px;
    }

    .hero-slide {
        min-height: 500px;
    }

    .hero-content {
        padding: 60px 40px 60px 22px;
    }

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

    .hero-content p {
        font-size: .95rem;
        line-height: 1.45;
    }

    .hero-content .btn {
        width: auto;

        font-size: .9rem;

        padding: 9px 17px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-indicators button {
        width: 25px;
    }

    .section-padding {
        padding: 45px 12px;
    }

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

    .info-card {
        padding: 22px !important;
    }

    footer {
        text-align: center;
    }

    footer .text-md-end {
        text-align: center !important;
    }

    .social {
        margin: 5px 3px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   400px and below
   ========================================================= */

@media (max-width: 400px) {

    .navbar-brand span {
        display: none;
    }

    .hero-slide {
        min-height: 480px;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 35px;
    }

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

    .hero-content p {
        font-size: .9rem;
    }

    .hero-content .btn {
        font-size: .85rem;
        padding: 8px 15px;
    }
}