/* =========================
   GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================
   TOP GREEN BAR
========================= */

.top-bar {
    background-color: #173F5F;
    color: white;
    height: 36px;
}

.top-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
}

.top-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 600;
}

.top-links a:hover {
    text-decoration: underline;
}


/* =========================
   MAIN HEADER
========================= */

.main-header {
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.header-container {
    max-width: 1400px;
    height: 120px;
    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    gap: 40px;
}


/* LOGO */

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 125px;
    width: auto;
    display: block;
}


/* =========================
   SEARCH
========================= */

.search-box {
    height: 58px;
    flex: 1;
    max-width: 570px;

    display: flex;

    border: 2px solid #d6d6d6;
    border-radius: 14px;

    overflow: hidden;

    margin-left: 20px;
}

.search-box input {
    flex: 1;

    border: none;
    outline: none;

    padding: 0 20px;

    font-size: 18px;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    width: 60px;

    border: none;
    border-left: 1px solid #ddd;

    background-color: white;

    font-size: 20px;

    cursor: pointer;
}

.search-box button:hover {
    background-color: #f3f3f3;
}


/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 18px;
}

.login-button {
    border: 2px solid #173F5F;

    color: #173F5F;

    padding: 16px 24px;

    border-radius: 10px;

    font-weight: 700;

    white-space: nowrap;
}

.login-button:hover {
    background-color: #f0fff6;
}

.quote-button {
    background-color: #173F5F;

    color: white;

    padding: 17px 25px;

    border-radius: 10px;

    font-weight: 700;

    white-space: nowrap;
}

.quote-button:hover {
    background-color: #0F2F46;
}


/* =========================
   NAVIGATION
========================= */

.navigation {
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1400px;

    margin: 0 auto;

    padding: 0 30px;

    height: 70px;

    display: flex;
    align-items: center;

    gap: 55px;
}

.nav-container a {
    font-size: 18px;
    font-weight: 600;

    color: #222;

    position: relative;
}

.nav-container a:hover {
    color: #173F5F;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 590px;

    display: flex;
    align-items: center;

    background-image:
        url("../images/hero.jpg");

    background-size: cover;

    background-position: center;

    color: white;
}


/* Dark overlay */

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.60),
            rgba(0, 0, 0, 0.25)
        );
}


/* Hero content */

.hero-content {
    position: relative;

    z-index: 2;

    width: 1400px;

    max-width: calc(100% - 60px);

    margin: 0 auto;

    padding: 70px 0;
}

.hero h1 {
    font-size: 58px;

    line-height: 1.08;

    font-weight: 700;

    margin-bottom: 18px;
}

.hero p {
    font-size: 22px;

    margin-bottom: 35px;
}


/* =========================
   RENTAL BOX
========================= */

.rental-box {
    background-color: white;

    color: #333;

    border-radius: 14px;

    min-height: 105px;

    display: flex;

    align-items: stretch;

    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18);

    max-width: 1300px;
}


/* Rental item */

.rental-item {
    flex: 1;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px 25px;

    border-right: 1px solid #ddd;
}

.rental-icon {
    font-size: 25px;
}

.rental-item small {
    display: block;

    color: #777;

    font-size: 15px;

    margin-bottom: 6px;
}

.rental-item strong {
    display: block;

    font-size: 17px;
}


/* Pickup / delivery */

.rental-choice {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 0 20px;

    white-space: nowrap;
}

.rental-choice label {
    cursor: pointer;

    font-weight: 600;
}

.rental-choice input {
    accent-color: #173F5F;

    margin-right: 6px;
}


/* Start button */

.start-button {
    border: none;

    background-color: #173F5F;

    color: white;

    padding: 0 30px;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;
}

.start-button:hover {
    background-color: #0F2F46;
}


/* Hero button */

.hero-button {
    display: inline-block;

    margin-top: 28px;

    background-color: #173F5F;

    color: white;

    padding: 17px 30px;

    border-radius: 7px;

    font-weight: 700;
}

.hero-button:hover {
    background-color: #0F2F46;
}


/* =========================
   GENERAL SECTION
========================= */

.section-container {
    max-width: 1300px;

    margin: 0 auto;

    padding: 90px 30px;
}

.section-heading {
    text-align: center;

    margin-bottom: 50px;
}

.section-label {
    color: #173F5F;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 40px;

    margin-bottom: 15px;
}

.section-heading > p:last-child {
    color: #666;

    font-size: 18px;
}


/* =========================
   EQUIPMENT
========================= */

.equipment-section {
    background-color: #f6f6f6;
}

.equipment-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}

.equipment-card {
    background-color: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.08);

    transition: transform 0.2s;
}

.equipment-card:hover {
    transform: translateY(-5px);
}


/* Temporary equipment images */

.equipment-image {
    height: 250px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15)
        ),
        url("../images/hero.jpg");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 24px;

    font-weight: 800;
}

.equipment-image.compactor {
    background-position: center;
}

.equipment-image.trailer {
    background-position: center;
}


.equipment-info {
    padding: 25px;
}

.equipment-info h3 {
    font-size: 25px;

    margin-bottom: 12px;
}

.equipment-info p {
    color: #666;

    line-height: 1.6;

    margin-bottom: 25px;
}

.equipment-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;
}

.equipment-bottom span {
    font-weight: 700;
}

.equipment-bottom a {
    color: #173F5F;

    font-weight: 700;
}


/* =========================
   SERVICES
========================= */

.services-section {
    background-color: white;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}

.service-item {
    text-align: center;

    padding: 20px;
}

.service-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background-color: #EAF0F4;

    color: #173F5F;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 25px;

    font-weight: 800;
}

.service-item h3 {
    margin-bottom: 12px;

    font-size: 20px;
}

.service-item p {
    color: #666;

    line-height: 1.6;
}


/* =========================
   ABOUT
========================= */

.about-section {
    background-color: #eeeeee;
}

.about-container {
    max-width: 1300px;

    margin: 0 auto;

    padding: 90px 30px;
}

.about-text {
    max-width: 650px;
}

.about-text h2 {
    font-size: 42px;

    margin-bottom: 25px;
}

.about-text p:not(.section-label) {
    color: #555;

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 18px;
}

.dark-button {
    display: inline-block;

    margin-top: 15px;

    background-color: #222;

    color: white;

    padding: 15px 25px;

    border-radius: 6px;

    font-weight: 700;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    background-color: #173F5F;

    color: white;
}

.contact-container {
    max-width: 1300px;

    margin: 0 auto;

    padding: 70px 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;
}

.contact-container .section-label {
    color: white;
}

.contact-container h2 {
    font-size: 40px;

    margin-bottom: 12px;
}

.contact-container p:not(.section-label) {
    font-size: 18px;
}

.contact-button {
    background-color: white;

    color: #173F5F;

    padding: 18px 30px;

    border-radius: 7px;

    font-weight: 800;

    white-space: nowrap;
}


/* =========================
   FOOTER
========================= */

footer {
    background-color: #1c1c1c;

    color: white;
}

.footer-container {
    max-width: 1300px;

    margin: 0 auto;

    padding: 60px 30px;

    display: flex;

    justify-content: space-between;

    gap: 50px;
}

.footer-logo img {
    height: 45px;

    width: auto;

    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links {
    display: flex;

    gap: 30px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #333;

    text-align: center;

    padding: 20px;

    color: #888;

    font-size: 14px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {

    .header-container {
        height: auto;

        padding-top: 20px;
        padding-bottom: 20px;

        flex-wrap: wrap;
    }

    .search-box {
        order: 3;

        max-width: none;

        width: 100%;

        margin-left: 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .nav-container {
        gap: 25px;

        overflow-x: auto;

        white-space: nowrap;
    }

    .hero h1 {
        font-size: 44px;
    }

    .rental-box {
        flex-direction: column;
    }

    .rental-item {
        border-right: none;

        border-bottom: 1px solid #ddd;
    }

    .rental-choice {
        padding: 20px;
    }

    .start-button {
        min-height: 60px;
    }

    .equipment-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .top-links {
        gap: 15px;

        font-size: 12px;
    }

    .logo {
        height: 45px;
    }

    .header-actions {
        width: 100%;
    }

    .login-button,
    .quote-button {
        flex: 1;

        text-align: center;
    }

    .nav-container {
        height: 55px;

        padding: 0 20px;
    }

    .nav-container a {
        font-size: 15px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        max-width: calc(100% - 40px);
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}