/* =========================================
   GENERAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-description {
    color: #555555;
    margin-bottom: 45px;
    font-size: 1rem;
}



/* =========================================
   HEADER
========================================= */

header {
    background-color: #ffffff;
}


/* =========================================
   TOP BAR
========================================= */

.top-bar {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 0;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 180px;
    height: auto;
}


/* =========================================
   HEADER CONTACT INFO
========================================= */

.contact-info {
    display: flex;
    align-items: center;

    gap: 30px;

    color: #222222;

    font-size: 0.95rem;
    font-weight: 500;
}


/* EMAIL + PHONE */

.contact-info a {
    position: relative;

    display: flex;
    align-items: center;

    padding-left: 24px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.contact-info a:hover {
    color: #d60000;
}


/* EMAIL ICON */

.contact-info a:first-child::before {
    content: "✉";

    position: absolute;
    left: 0;
    top: 50%;

    transform: translateY(-50%);

    color: #d60000;

    font-size: 0.9rem;
}


/* PHONE ICON */

.contact-info a:last-child::before {
    content: "☎";

    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #d60000;

    font-size: 0.9rem;
}


/* DIVIDER BETWEEN EMAIL AND PHONE */

.contact-info a + a {
    border-left: 1px solid #dddddd;

    padding-left: 38px;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    background-color: #111111;

    position: sticky;
    top: 0;

    z-index: 1000;
}

.navbar ul {
    list-style: none;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 45px;

    padding: 17px 20px;
}

.navbar a {
    position: relative;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 600;

    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #d60000;
}


/* SMALL RED LINE ON HOVER */

.navbar a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background-color: #d60000;

    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: #ffffff;

    font-size: 2rem;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 75vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../images/construction2.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    min-height: 75vh;

    background-color: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
}

.hero-content {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    color: #ffffff;
}

.hero-content h1 {
    max-width: 800px;

    font-size: 3.5rem;
    line-height: 1.15;

    font-weight: 700;
}

.hero-content h2 {
    margin-top: 15px;

    font-size: 1.4rem;
    font-weight: 400;
}

.hero-content p {
    max-width: 600px;

    margin-top: 20px;

    font-size: 1.1rem;

    color: #eeeeee;
}

.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 30px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-block;

    padding: 13px 24px;

    border: 2px solid #d60000;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.btn-primary {
    background-color: #d60000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #aa0000;
    border-color: #aa0000;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #d60000;
    color: #ffffff;
}


/* =========================================
   PROJECTS
========================================= */

.projects-wrapper {
    position: relative;
}

.projects-slider {
    display: flex;

    gap: 20px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.projects-slider::-webkit-scrollbar {
    display: none;
}


/* PROJECT CARD */

.project-card {
    position: relative;

    flex: 0 0 calc(33.333% - 14px);

    overflow: hidden;

    scroll-snap-align: start;

    background-color: #111111;
}

.project-card img {
    width: 100%;
    height: 350px;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}


/* PROJECT TEXT */

.project-info {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 45px 25px 22px;

    color: #ffffff;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.project-info p {
    margin-top: 3px;

    font-size: 0.9rem;

    color: #dddddd;
}


/* =========================================
   PROJECT SLIDER BUTTONS
========================================= */

.slider-btn {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border: none;

    background-color: #111111;
    color: #ffffff;

    font-size: 2rem;

    cursor: pointer;

    z-index: 10;

    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: #d60000;
}

.slider-btn.left {
    left: -20px;
}

.slider-btn.right {
    right: -20px;
}


/* =========================================
   SERVICES
========================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 60px 80px;
}


/* SERVICE ITEM */

.service-item h3 {
    font-size: 1.35rem;
    font-weight: 700;

    text-transform: uppercase;
}


/* RED LINE */

.service-line {
    width: 55px;
    height: 3px;

    margin: 12px 0 18px;

    background-color: #d60000;

    transition: width 0.3s ease;
}

.service-item:hover .service-line {
    width: 100px;
}


/* SERVICE DESCRIPTION */

.service-item p {
    max-width: 460px;

    color: #555555;

    font-size: 1rem;
}


/* =========================================
   CONTACT SECTION
========================================= */

.contact-layout {
    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 80px;

    align-items: start;
}


/* LEFT CONTACT SIDE */

.contact-text h3 {
    margin-bottom: 20px;

    font-size: 1.8rem;

    line-height: 1.3;
}

.contact-text p {
    margin-bottom: 15px;

    color: #444444;
}

.contact-text a {
    color: #d60000;

    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #aa0000;
}


/* =========================================
   CONTACT FORM
========================================= */

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #cccccc;

    background-color: #ffffff;

    color: #111111;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.form-group textarea {
    min-height: 140px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #d60000;

    box-shadow: 0 0 0 2px rgba(214, 0, 0, 0.08);
}

#form-status {
    margin-top: 15px;
    font-weight: 600;
}

.form-success {
    color: #198754;
}

.form-error {
    color: #dc3545;
}

/* FORM BUTTON */

.contact-form .btn {
    align-self: flex-start;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background-color: #111111;

    color: #ffffff;

    text-align: center;

    padding: 35px 0;
}

footer p {
    margin: 4px 0;

    font-size: 0.9rem;
}

footer p:last-child {
    color: #bbbbbb;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .top-bar {
        width: 92%;
    }

    .logo img {
        width: 130px;
    }

    .contact-info {
        gap: 20px;

        font-size: 0.88rem;
    }

    .navbar ul {
        gap: 35px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .services-grid {
        gap: 50px;
    }

    .contact-layout {
        gap: 50px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    /* GENERAL */

    .section {
        padding: 65px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        margin-bottom: 35px;
    }


    /* HEADER */

    .top-bar {
        width: 92%;

        padding: 8px 0;
    }

    .logo img {
        width: 120px;
    }


    /* Hide header contact information on small screens */

    .contact-info {
        display: none;
    }


    /* NAVIGATION */

    .navbar {
        padding: 9px 5%;
    }

    .menu-toggle {
        display: block;

        margin-left: auto;
    }

    .navbar ul {
        display: none;

        flex-direction: column;

        align-items: center;

        gap: 20px;

        padding: 20px 0;
    }

    .navbar ul.active {
        display: flex;
    }


    /* HERO */

    .hero {
        min-height: 70vh;
    }

    .hero-overlay {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content h2 {
        font-size: 1.15rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }


    /* PROJECTS */

    .project-card {
        flex: 0 0 85%;
    }

    .project-card img {
        height: 320px;
    }

    .slider-btn {
        display: none;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    /* CONTACT */

    .contact-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }


    /* HEADER */

    .logo img {
        width: 110px;
    }


    /* HERO */

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }


    /* BUTTONS */

    .btn {
        padding: 11px 18px;

        font-size: 0.9rem;
    }


    /* PROJECTS */

    .project-card {
        flex: 0 0 92%;
    }

    .project-card img {
        height: 280px;
    }


    /* SERVICES */

    .service-item h3 {
        font-size: 1.2rem;
    }


    /* CONTACT */

    .contact-text h3 {
        font-size: 1.5rem;
    }

}