/* ===========================
   ER Groundworks
   Premium Contractor Website
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0f1115;
    color:white;
}

/* NAVIGATION */

.navbar{
    position:fixed;
    top:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:rgba(15,17,21,.85);
    backdrop-filter:blur(12px);
    z-index:1000;
}

.logo img{
    height:70px;
}

.nav-links{
    display:flex;
    gap:35px;
    list-style:none;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.nav-links a:hover{
    color:#d6a329;
}

.btn{
    background:#d6a329;
    color:black;
    padding:12px 24px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
}

/* HERO */

.hero{
    height:100vh;
    background:
    linear-gradient(rgba(0,0,0,.60),rgba(0,0,0,.60)),
    url("../images/skidsteer.jpeg");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.hero h1{
    font-size:60px;
    margin-bottom:20px;
}

.hero p{
    font-size:22px;
    color:#ddd;
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.gold-btn,
.dark-btn{
    padding:16px 34px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.gold-btn{
    background:#d6a329;
    color:black;
}

.dark-btn{
    border:2px solid white;
    color:white;
}

.gold-btn:hover,
.dark-btn:hover{
    transform:translateY(-3px);
}

/* SERVICES */

.services{
    padding:100px 8%;
}

.services h2{
    text-align:center;
    font-size:40px;
    margin-bottom:50px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.service-card{
    background:#1a1d22;
    padding:35px;
    border-radius:18px;
    transition:.3s;
    border:1px solid rgba(255,255,255,.08);
}

.service-card:hover{
    transform:translateY(-8px);
    border-color:#d6a329;
}

.service-card h3{
    margin-bottom:15px;
    color:#d6a329;
}

/* ABOUT */

.about{
    padding:100px 12%;
    text-align:center;
}

.about h2{
    font-size:40px;
    margin-bottom:25px;
}

.about p{
    max-width:900px;
    margin:auto;
    color:#cfcfcf;
    line-height:1.8;
}

/* CTA */

.cta{
    background:#d6a329;
    color:black;
    padding:90px 20px;
    text-align:center;
}

.cta h2{
    font-size:42px;
    margin-bottom:20px;
}

.cta p{
    margin-bottom:35px;
}

/* FOOTER */

footer{
    background:#090909;
    text-align:center;
    padding:60px 20px;
}

footer img{
    height:90px;
    margin-bottom:20px;
}

footer p{
    margin:8px 0;
    color:#aaa;
}

/* MOBILE */

@media(max-width:900px){

.navbar{
flex-direction:column;
gap:20px;
}

.nav-links{
flex-wrap:wrap;
justify-content:center;
}

.hero h1{
font-size:42px;
}

.hero p{
font-size:18px;
}

}

.before-after{
    padding:100px 8%;
    text-align:center;
}

.before-after h2{
    font-size:40px;
    margin-bottom:40px;
}

.ba-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:30px;
    max-width:1000px;
    margin:auto;
}

.ba-box{
    background:#1a1d22;
    padding:20px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.ba-box:hover{
    transform:translateY(-6px);
    border-color:#d6a329;
}

.ba-box h3{
    margin-bottom:15px;
    color:#d6a329;
}

.ba-box img{
    width:100%;
    border-radius:12px;
    display:block;
}

.floating-call{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#d6a329;
    color:black;
    padding:15px 20px;
    border-radius:50px;
    font-weight:700;
    text-decoration:none;
    z-index:9999;
}

.contact-page{
    min-height:100vh;
    position:relative;
    background:#0f1115;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:120px 20px;
    overflow:hidden;
}

/* FADED LOGO BACKGROUND */
.contact-page::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:500px;
    height:500px;
    background:url("../images/logo.png") no-repeat center;
    background-size:contain;
    opacity:0.06;
    z-index:0;
}

/* DARK OVERLAY */
.contact-overlay{
    position:relative;
    z-index:1;
    width:100%;
    display:flex;
    justify-content:center;
}

/* CARD */
.contact-card{
    background:#1a1d22;
    padding:50px;
    border-radius:20px;
    max-width:600px;
    width:100%;
    text-align:center;
    border:1px solid rgba(255,255,255,.08);
}

/* TEXT */
.contact-card h1{
    margin-bottom:10px;
}

.sub{
    color:#aaa;
    margin-bottom:15px;
}

.info{
    margin-bottom:25px;
    color:#d6a329;
    font-weight:600;
    line-height:1.6;
}

/* FORM */
.contact-card form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.contact-card input,
.contact-card textarea{
    padding:15px;
    border:none;
    border-radius:10px;
    background:#0f1115;
    color:white;
}

.contact-card textarea{
    min-height:120px;
}

.contact-card button{
    background:#d6a329;
    color:black;
    padding:15px;
    border:none;
    border-radius:30px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.contact-card button:hover{
    transform:translateY(-3px);
}

/* FOOTER */
.footer{
    text-align:center;
    padding:60px 20px;
    background:#090909;
}

.footer img{
    height:80px;
    margin-bottom:15px;
}

.footer p{
    color:#aaa;
    margin:5px 0;
}

.navbar{
    position:fixed;
    top:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(15,17,21,.85);
    backdrop-filter:blur(12px);
    z-index:1000;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.hero-content{
    text-align:center;
    max-width:900px;
    padding:20px;
}

/* TRUST BADGE */
.badge{
    display:inline-block;
    background:#d6a329;
    color:black;
    padding:8px 16px;
    border-radius:30px;
    font-weight:700;
    margin-bottom:20px;
    font-size:14px;
}

/* HERO TITLE UPGRADE */
.hero h1{
    font-size:64px;
    line-height:1.1;
    margin-bottom:20px;
}

/* SUB TEXT */
.hero p{
    font-size:20px;
    color:#ddd;
    margin-bottom:35px;
}

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    padding:80px 8%;
    background:#0f1115;
    text-align:center;
}

.stat-box{
    background:#1a1d22;
    padding:40px 20px;
    border-radius:15px;
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.stat-box:hover{
    transform:translateY(-5px);
    border-color:#d6a329;
}

.stat-box h2{
    color:#d6a329;
    font-size:36px;
    margin-bottom:10px;
}

.stat-box p{
    color:#aaa;
}

.gallery-hero{
    height:55vh;
    background:
    linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
    url("../images/skidsteer.jpg");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.gallery-hero-content h1{
    font-size:58px;
    margin-bottom:15px;
}

.gallery-hero-content p{
    font-size:20px;
    color:#ddd;
}

.gallery-section{
    padding:80px 8%;
    background:#0f1115;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:30px;
}

.gallery-item{
    background:#1a1d22;
    border-radius:18px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    transition:.35s;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.gallery-item:hover{
    transform:translateY(-8px);
    border-color:#d6a329;
}

.gallery-item img{
    width:100%;
    height:280px;
    object-fit:cover;
    transition:.4s;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

.gallery-info{
    padding:22px;
}

.gallery-info h3{
    color:#d6a329;
    margin-bottom:10px;
}

.gallery-info p{
    color:#bbb;
    line-height:1.6;
}

.gallery-hero{
    height:60vh;
    background:
    linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
    url("../images/skidsteer.jpg");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.gallery-hero-content{
    max-width:800px;
}

.gallery-hero h1{
    font-size:60px;
    margin-bottom:20px;
}

.gallery-hero p{
    color:#ddd;
    font-size:20px;
    line-height:1.7;
}

.gallery-section{
    padding:90px 8%;
    background:#0f1115;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:35px;
}

.gallery-card{
    background:#1a1d22;
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    transition:.35s;
}

.gallery-card:hover{
    transform:translateY(-8px);
    border-color:#d6a329;
}

.gallery-card img{
    width:100%;
    height:300px;
    object-fit:cover;
    transition:.4s;
}

.gallery-card:hover img{
    transform:scale(1.05);
}

.gallery-large{
    grid-column:span 2;
}

.gallery-large img{
    height:450px;
}

.gallery-info{
    padding:30px;
}

.gallery-info h2,
.gallery-info h3{
    color:#d6a329;
    margin-bottom:15px;
}

.gallery-info p{
    color:#bbb;
    line-height:1.8;
}

.gallery-cta{
    padding:100px 8%;
    background:#15181d;
    text-align:center;
}

.gallery-cta h2{
    font-size:42px;
    margin-bottom:20px;
}

.gallery-cta p{
    max-width:700px;
    margin:auto;
    color:#bbb;
    margin-bottom:35px;
    line-height:1.8;
}


.gallery-large{
    grid-column:span 1;
}

.gallery-large img{
    height:300px;
}

.gallery-hero h1{
    font-size:42px;
}

.gallery-card img{
    width:100%;
    height:300px;
    object-fit:cover;
    object-position:center;
    transition:.4s;
}

.gallery-card:first-child img{
    object-fit:contain;
    background:#181b20;
    padding:20px;
}

.gallery-card img[alt="Grading"]{
    object-position:center 40%;
}

.gallery-card img[alt="Before"]{
    object-fit:contain;
    background:#181b20;
    padding:10px;
}

.gallery-card img[alt="After"]{
    object-position:center;
}

.gallery-card:hover img{
    transform:scale(1.03);
}

/* ---------- ABOUT HERO ---------- */

.about-hero{
    min-height:65vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:140px 20px 80px;
    background:
        linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
        url("../images/skidsteer.jpg") center/cover;
}

.about-hero-content{
    max-width:850px;
}

.about-hero h1{
    font-size:clamp(42px,6vw,68px);
    line-height:1.1;
    margin:20px 0;
}

.about-hero p{
    max-width:700px;
    margin:0 auto;
    color:#d3d3d3;
    line-height:1.8;
    font-size:18px;
}

/* ---------- MAIN SECTION ---------- */

.about-story{
    max-width:1300px;
    margin:100px auto;
    padding:0 40px;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.about-image img{
    width:100%;
    border-radius:20px;
    box-shadow:0 20px 45px rgba(0,0,0,.35);
}

.about-text{
    background:#181b20;
    padding:50px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.08);
}

.about-text h2{
    font-size:38px;
    margin-bottom:25px;
}

.about-text p{
    line-height:1.9;
    color:#c8c8c8;
    margin-bottom:20px;
}

/* ---------- VALUES ---------- */

.values-section{
    max-width:1300px;
    margin:0 auto 100px;
    padding:0 40px;
}

.values-section h2{
    text-align:center;
    margin-bottom:50px;
    font-size:42px;
}

.values-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.value-card{
    background:#181b20;
    padding:40px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.value-card:hover{
    transform:translateY(-8px);
    border-color:#d6a329;
}

.value-card h3{
    color:#d6a329;
    margin-bottom:15px;
}

.value-card p{
    color:#c7c7c7;
    line-height:1.8;
}

/* ---------- SERVICE AREA ---------- */

.service-area{
    max-width:900px;
    margin:0 auto 100px;
    padding:50px;
    text-align:center;

    background:#181b20;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.08);
}

.service-area h2{
    margin-bottom:20px;
}

.service-area p{
    color:#c7c7c7;
    line-height:1.8;
}

/* ---------- MOBILE ---------- */

@media(max-width:900px){

.about-story{
    grid-template-columns:1fr;
}

.values-grid{
    grid-template-columns:1fr;
}

.about-text{
    padding:35px;
}

.about-hero h1 span{
    color:#d6a329;
}

}

/* SERVICES */

.services-hero{
height:60vh;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
padding:20px;

background:
linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
url("../images/skidsteer.jpg");

background-size:cover;
background-position:center;
}

.services-hero-content{
max-width:800px;
}

.services-hero h1{
font-size:60px;
margin:20px 0;
}

.services-hero h1 span{
color:#d6a329;
}

.services-grid{
max-width:1300px;
margin:90px auto;
padding:0 40px;

display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:30px;
}

.service-box{
background:#181b20;
padding:40px;
border-radius:18px;
border:1px solid rgba(255,255,255,.08);
transition:.3s;
}

.service-box:hover{
transform:translateY(-8px);
border-color:#d6a329;
}

.service-box h2{
color:#d6a329;
margin-bottom:15px;
}

.service-box p{
line-height:1.8;
color:#c8c8c8;
}

.process{
padding:80px 40px;
text-align:center;
}

.process-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
max-width:1000px;
margin:auto;
}

.process-grid div{
background:#181b20;
padding:35px;
border-radius:18px;
}

.process-grid h3{
font-size:48px;
color:#d6a329;
margin-bottom:10px;
}

@media(max-width:900px){

.process-grid{
grid-template-columns:1fr;
}

}

.service-map{
    padding:100px 8%;
    background:#0f1115;
    text-align:center;
}

.map-content{
    max-width:800px;
    margin:0 auto 40px;
}

.map-content h2{
    font-size:42px;
    margin-bottom:15px;
}

.map-content p{
    color:#cfcfcf;
    line-height:1.8;
}

.map-frame{
    max-width:1100px;
    margin:auto;
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 50px rgba(0,0,0,.4);
}

.service-map iframe{
    border-radius:20px;
    box-shadow:0 20px 50px rgba(0,0,0,.4);
}

/* ===========================
   PROJECT SHOWCASE
=========================== */

.project-showcase{
    max-width:1200px;
    margin:90px auto;
    padding:0 25px;
}

.project-header{
    text-align:center;
    margin-bottom:50px;
}

.project-header span{
    color:#c8a75a;
    font-weight:600;
    letter-spacing:3px;
    text-transform:uppercase;
}

.project-header h2{
    margin:15px 0;
    font-size:42px;
}

.project-header p{
    max-width:700px;
    margin:auto;
    color:#666;
    line-height:1.8;
}

.click-note{
    text-align:center;
    color:#777;
    margin-bottom:35px;
    font-style:italic;
}

/* Sections */

.project-section{
    margin-bottom:60px;
}

.project-section h3{
    text-align:center;
    background:#111;
    color:white;
    padding:18px;
    border-radius:12px;
    margin-bottom:20px;
    font-size:26px;
}

/* Images */

.project-image{
    width:100%;
    height:auto;
    display:block;
    border-radius:15px;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.project-image:hover{
    transform:scale(1.02);
}

/* AFTER GRID */

.after-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.after-grid img{
    width:100%;
    height:auto;
}

/* LIGHTBOX */

.lightbox{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.92);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.lightbox img{
    max-width:95%;
    max-height:92%;
    border-radius:10px;
}

.close-lightbox{
    position:absolute;
    top:20px;
    right:40px;
    color:white;
    font-size:55px;
    cursor:pointer;
}

/* Mobile */

@media(max-width:850px){

.after-grid{
    grid-template-columns:1fr;
}

.project-header h2{
    font-size:34px;
}

}

/* BEFORE AND AFTER SECTION */

.project-comparison {
    padding: 80px 5%;
    background: #111;
    color: #fff;
}

.comparison-heading {
    max-width: 750px;
    margin: 0 auto 35px;
    text-align: center;
}

.comparison-heading span {
    display: block;
    margin-bottom: 8px;
    color: #d5a83f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.comparison-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 52px);
}

.comparison-heading p {
    margin: 0;
    color: #c7c7c7;
    line-height: 1.7;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-slide {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.comparison-slide.active {
    display: grid;
    animation: comparisonFade 0.6s ease;
}

.comparison-image {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #1b1b1b;
}

.comparison-image {
    background: #1b1b1b;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-image img {
    width: 100%;
    max-height: 420px;   /* Adjust as needed */
    object-fit: contain; /* Shows the whole image */
    border-radius: 12px;
}

.driveway-project .comparison-image img {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.comparison-image:hover img {
    transform: scale(1.025);
}

.image-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
}

.before-label {
    background: rgba(25, 25, 25, 0.9);
}

.after-label {
    background: #b88924;
}

.comparison-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.25s ease;
}

.comparison-arrow:hover {
    border-color: #d5a83f;
    background: #d5a83f;
    color: #111;
}

.comparison-arrow.previous {
    left: 16px;
}

.comparison-arrow.next {
    right: 16px;
}

.comparison-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.comparison-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
}

.comparison-dot.active {
    background: #d5a83f;
    transform: scale(1.2);
}

.project-caption {
    max-width: 850px;
    margin: 28px auto 0;
    text-align: center;
}

.project-caption h3 {
    margin: 0 0 10px;
    font-size: 25px;
}

.project-caption p {
    margin: 0;
    color: #c7c7c7;
    line-height: 1.7;
}

@keyframes comparisonFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .project-comparison {
        padding: 60px 18px;
    }

    .comparison-slide {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .comparison-image,
    .comparison-image img {
        min-height: 300px;
    }

    .image-label {
        top: 10px;
        left: 10px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .comparison-arrow {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .comparison-arrow.previous {
        left: 8px;
    }

    .comparison-arrow.next {
        right: 8px;
    }
}