
:root {
    /* Brand colors (from your brief) */
    --color-main: #39739d;
    --color-secondary: #558cb8;
    --color-sub-0: #afc6d8;
    --color-sub-1: #c0ddf5;
    --color-sub-2: #c4c4c4;

    /* Neutrals */
    --color-bg: #f5f6f9;
    --color-white: #ffffff;
    --color-text: #222222;
    --color-border: #dfdfdf;

    /* Feedback */
    --color-success: #2f855a;
    --color-warning: #b7791f;
    --color-error: #b54a4a;

    /* Layout */
    --container-width: 100%;
    --radius-md: 8px;
    --radius-lg: 16px;
    --btn-radius: 999px;

    /* Spacing (4/8px scale) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 48px;
    --space-9: 50px;
    --space-10: 100px;
    --space-11: 200px;

    /* fonts */
    --buttton-1: 1.2rem;
}
.hero {
    position: relative;
    overflow: hidden;
    text-align: left;
    width: auto;
    height: 100vh;
    padding: var(--space-7) 0;
    padding-top: 100px;
    background-color: var(--color-main-dark-2);
    background:
        url('../img/hero-img/mine-pit-with-heavy-equipment-2500.webp') center/cover no-repeat;
}
/* Overlay */
/* .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-secondary);
    z-index: 1;
    opacity: 40%;
} */
.hero .container{
    padding-top: var(--space-11);
    margin-left: 10%;
    position: relative;
    z-index: 2;
    text-align: left;
}
.hero-actions{
    margin-top: 220px;
}

.hero-title{
    max-width: 40ch;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    
}
.hero-lead{
    max-width: 45ch;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    
}
/* 1920 ish screens */
@media (min-width: 1500px) and (max-width: 2000px) {
    .hero .container{
        padding-top: var(--space-9);
    }
    .hero{
        width: 100%;
        height: 100vh;
        background:
        url('../img/hero-img/mine-pit-with-heavy-equipment-1920.webp') center/cover no-repeat;
    }
    .hero-actions{
        margin-top: 220px;
    }
    .hero-title{
        max-width: 40ch;
        margin-left: 0;
        margin-right: auto;
        text-align: left;
        
    }
    .hero-lead{
        max-width: 45ch;
        margin-left: 0;
        margin-right: auto;
        text-align: left;
        
    }

    
}
    
@media (max-width: 768px) {
    .hero{
        width: 100vw;
        background:
        url('../img/hero-img/mine-pit-with-heavy-equipment-850.webp') center/cover no-repeat;
    }
    .hero .container{
        padding-top: var(--space-9);
        margin-left: 5%;
        text-align: center;
    }
    .hero-title{
        text-align: center;
    }
    .hero-lead{
        text-align: center;
    }


    
}

@media (max-width: 450px) {
    .hero .container{
        padding-top: 10px;
    }
    .hero-title{
        font-size: 1.5rem;
    }
    .hero-lead{
        font-size: 1.2rem;
    }

}

/* page styling */
.services header{
    margin-left: 10%;
    margin-top: var(--space-10);
}
.services header p{
    width: 90ch;
}
.service-content{
    margin-left: 10%;
}
.service-content-r{
    margin-right: 10%;
}

.services article {
    margin-top: var(--space-10);
    display: flex;
    flex-direction: row;
    align-items: center; /* ✅ THIS FIXES VERTICAL ALIGNMENT */
    gap: 150px; /* 150px is too aggressive */
}

/* TEXT SIDE (IMPORTANT) */
.services article > .service-content {
    flex: 1;
}
.services article > .service-content-r {
    flex: 1;
}

/* IMAGE SIDE */
.service-img {
    margin: 0;
    flex: 1;
}

.service-img img {
    width: 100%;
    height: auto;
    display: block;
}

.services-cta{
    margin-top: var(--space-10);
    margin-bottom: var(--space-10);
}
ul {
    list-style: none;
    padding: 0;
}
li{
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--color-main);

}
ul li .bi {
    font-size: 1.5rem;
    color: var(--color-secondary);
    padding-right: 20px;
}
.wrapper{
    display: flex;
    flex-direction: row;
}
.wrapper ul{
    margin-top: -5px;
}
.wrapper-2{
    display: flex;
    flex-direction: column;
    text-align: center;
}
.qr{
    width: 150px;
    margin-left: 150px;
}
.wrapper-2 a{
    margin-left: 149px;
    text-decoration: underline;
    font-size: 1.1rem;
    color: var(--color-main);
    font-weight: 500;
}

@media (max-width: 768px) {
    .services header{
        margin-left: 5%;
        margin-top: var(--space-7);
    }
    .service-content{
        margin-left: 5%;
    }
    .service-content-r{
        margin-right: 0%;
        margin-left: 5%;
    }
    .wrapper{
        display: flex;
        flex-direction: column;
    }
    .wrapper-2 img{
        display: none;
    }
    .wrapper-2 a{
        text-align: left;
        margin-left: 0;
    }
    ul li .bi {
        font-size: 1.5rem;
        color: var(--color-secondary);
        padding-right: 10px;
    }
    .services article {
        margin-top: var(--space-7);
        display: flex;
        flex-direction: column;
        gap: 30px; /* 150px is too aggressive */
    } 

    .services-cta{
        margin-top: var(--space-7);
        margin-bottom: var(--space-7);
    }
    .services-cta .btn{
        border-radius: 999px;
        margin-bottom: 20px;
    }
    .cta-actions{
        margin-top: var(--space-7);
    }
    p{
        max-width: 90%;
    }
  
}
@media (max-width: 360px) {
    .cta-actions a{
        font-size: 1rem;
    }
    li{
        text-decoration: none;
        font-size: 1rem;
        color: var(--color-main);

    }
}