:root {
    --ink: #2f3a45;
    --dark: #202932;
    --orange: #f5a400;
    --muted: #687481;
    --line: #dfe5ea;
    --bg: #f4f6f8;
    --white: #fff;
    --shadow: 0 22px 70px rgba(32, 41, 50, .14)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55
}

a {
    text-decoration: none;
    color: inherit
}

.topbar {
    background: var(--dark);
    color: #dfe7ee;
    font-size: .9rem
}

.topbar > div {
    max-width: 1240px;
    margin: auto;
    padding: 9px 22px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

.topbar a {
    margin-left: 16px;
    color: #fff
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(22px, calc((100% - 1240px) / 2 + 22px))
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 950;
    color: var(--dark)
}

.brand img {
    width: 72px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    font-weight: 850
}

.nav-links a:hover {
    color: var(--orange)
}

.nav-cta {
    background: var(--orange);
    color: var(--dark) !important;
    border-radius: 999px;
    padding: 10px 18px
}

.text-white {
    color: white
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    margin: 5px;
    border-radius: 6px
}

.hero {
    max-width: 1240px;
    margin: auto;
    padding: 74px 22px;
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 38px;
    align-items: center;

    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),url('assets/pexels-digger-1867268.jpg');
    background-size: cover;       /* fills the section */
    background-position: center;  /* centers the image */
    background-repeat: no-repeat;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--orange);
    font-weight: 950;
    font-size: .78rem;
    margin-bottom: 12px
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.7rem);
    line-height: .95;
    letter-spacing: -.055em;
    color: var(--dark);
    margin-bottom: 22px
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--dark);
    margin-bottom: 16px
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark)
}


.hero p.hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
}

.hero p {
    font-size: 1.13rem;
    color: var(--muted);
    max-width: 760px
}



.search-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 18px;
    margin-top: 28px;
    box-shadow: var(--shadow)
}

.search-row {
    display: grid;
    grid-template-columns:1.3fr .7fr auto;
    gap: 12px
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 15px;
    font: inherit;
    background: #fbfcfd;
    color: var(--dark)
}

button, .search-row button {
    border: 0;
    border-radius: 16px;
    background: var(--orange);
    color: var(--dark);
    font-weight: 950;
    padding: 14px 22px;
    cursor: pointer
}

.quick-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px
}

.quick-tags span, .badge {
    background: #fff7df;
    color: #775100;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 900
}

.hero-card {
    background: var(--dark);
    color: white;
    border-radius: 34px;
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--orange);
    right: -70px;
    top: -70px;
    opacity: .18
}

.hero-card strong {
    font-size: 2.4rem;
    color: var(--orange)
}

.hero-card p {
    color: #d8e0e7;
    margin: 12px 0 28px
}

.metric-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.metric-grid div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    padding: 18px
}

.metric-grid b {
    display: block;
    font-size: 1.6rem;
    color: white
}

.metric-grid small {
    color: #cad4de
}

.section {
    max-width: 1240px;
    margin: auto;
    padding: 86px 22px
}

.section-heading {
    text-align: center;
    max-width: 830px;
    margin: 0 auto 42px
}

.section-heading.left {
    text-align: left;
    margin-left: 0
}

.category-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px
}

.category-grid article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(32, 41, 50, .08);
    transition: .25s
}

.category-grid article:hover {
    transform: translateY(-7px)
}

.category-grid img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 14px
}

.category-grid p {
    color: var(--muted)
}

.equipment-section {
    max-width: 1280px
}

.toolbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px
}

.filter {
    background: white;
    border: 1px solid var(--line);
    padding: 11px 16px;
    border-radius: 999px
}

.filter.active, .filter:hover {
    background: var(--dark);
    color: white
}

.listing-grid {
    display: grid;
    gap: 20px
}

.listing-card {
    display: grid;
    grid-template-columns:300px 1fr;
    background: white;
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(32, 41, 50, .09)
}

.listing-card.hide, .category-grid article.hide {
    display: none
}

.listing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.listing-body {
    padding: 26px
}

.specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0
}

.specs span {
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--muted);
    font-weight: 700
}

.listing-body a {
    display: inline-flex;
    background: var(--orange);
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 950;
    color: var(--dark)
}

.dark {
    background: var(--dark);
    max-width: none;
    padding-left: max(22px, calc((100% - 1240px) / 2 + 22px));
    padding-right: max(22px, calc((100% - 1240px) / 2 + 22px))
}

.dark h2 {
    color: white
}

.projects-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 18px;
    max-width: 1240px;
    margin: auto
}

.projects-grid div {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    padding: 22px;
    color: white
}

.projects-grid strong {
    color: var(--orange)
}

.projects-grid p {
    color: #dbe4eb;
    margin-top: 8px
}

.company {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 36px;
    align-items: start
}

.company p {
    color: var(--muted)
}

.company-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow)
}

.company-card p {
    margin: 10px 0
}

.contact {
    padding: 90px 22px;
    background: linear-gradient(135deg, var(--dark), #121820)
}

.contact-card {
    max-width: 860px;
    margin: auto;
    background: white;
    border-radius: 34px;
    padding: 36px;
    box-shadow: var(--shadow)
}

.contact-card p {
    color: var(--muted)
}

form {
    display: grid;
    gap: 13px;
    margin-top: 24px
}

form button {
    border-radius: 999px
}

#formMessage {
    font-weight: 900;
    color: var(--orange)
}

footer {
    text-align: center;
    background: #111820;
    color: #d8e0e7;
    padding: 38px 22px
}

footer img {
    width: 90px;
    height: 55px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        left: 18px;
        right: 18px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 22px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: flex-start
    }

    .nav-links.active {
        display: flex
    }

    .hero, .company, .listing-card {
        grid-template-columns:1fr
    }

    .search-row {
        grid-template-columns:1fr
    }

    .category-grid, .projects-grid {
        grid-template-columns:1fr
    }

    .listing-card img {
        height: 220px
    }
}


/* ── Carousel ── */
.carousel-section {
    position: relative;
    overflow: hidden;
    background: #111;
    margin-top: 3rem;
}

.carousel-track-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* remove default button padding */
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-btn.prev { left: 1.5rem; }
.carousel-btn.next { right: 1.5rem; }

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dots span.active {
    background: white;
}
