:root {
    /* Brand Colours */
    --primary: #A5001E;
    --primary-hover: #870018;

    /* Text Colours */
    --dark: #2F3437;
    --text: #5F666B;

    /* Background Colours */
    --light: #FAFAF8;
    --section: #F1F3F4;
    --white: #FFFFFF;

    /* Borders & Shadows */
    --border: #D9DADB;
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}


body {
    margin: 0;
}

header {
    background-color: var(--section);
    color: var(--dark);
    height: 8rem;
}

#nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#nav-logo{
    flex: 1;
    height: 10rem;
    width: auto;
}

#navbar {
    display: flex;
    height: 4rem;
    justify-content: space-evenly;
    align-items: center;
    width: 50rem;
    flex: 2;
}

li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}


.nav-link:hover {
    text-decoration: underline;
    cursor: pointer;
}

#hamburger-btn {
    display: none;
}

#socials-container {
    flex: 1;
}

#social-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-icon-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.social-icon-container p {
    margin: 0;
}

.social-icon {
    width: 1rem;
    height: 1rem;
}

#flex-container {
    display: flex;
}

#hero {
    position: relative;
    width: 90%;
    height: 70vh;
    max-width: 1400px;
    margin: 0rem auto;
    overflow: hidden;
}

#main-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

#overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: rgba(47, 52, 55, 0.75);
    z-index: 1;
}

#company-name {
    position: absolute;
    top: 0;
    right: 0;

    width: 35%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 2rem;

    color: white;
    z-index: 2;
}

#company-name h1,
#company-name p {
    text-align: center;
}


.quote-button {
    width: 50%;
    background-color: var(--primary);
    color: var(--light);
    padding: 0.9rem 2rem;
    font-size: 1rem;;
    font-weight: bold;
    border: none;
    border-radius: 0.2rem;
}

.quote-button:hover {
    cursor: pointer;
    text-decoration: underline;
    background-color: var(--primary-hover);
}

#why-choose-us {
    padding: 2rem 0;
    background-color: var(--light);
}

.why-content {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.benefits-list {
    padding: 0;
    margin: 0;
}

.benefits-list li {
    list-style: none;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.1rem;
}

.benefits-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.75rem;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text);
    text-align: center;
    font-size: 0.9rem;
}

.why-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow);
}


#testimonials {
    background-color: var(--section);
    color: #1F2933;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
}

#testimonials h2 {
    text-align: center;
}

#testimonials a {
    text-decoration: underline;
}

#testimonials-container {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quote {
    font-style: italic;
    text-align: center;
    flex: 3;
    
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

#services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--section);
    margin-bottom: -3rem;
    
}

#services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    width: 70%;
    max-width: 1400px;
    position: relative;
    top: -9rem;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 2px 10px var(--primary);
    background-color: var(--border);
    padding: 1px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.service-card {
    background-color: var(--light);
}

.icon {
    width: 4rem;
    height: 4rem;
    
}

footer {

    text-align: center;

    padding: 2rem;

    background-color: var(--dark);

    color: white;
}

footer a {
    color: white;
}

/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 1000px) {

    header {
        height: auto;
        padding: 1rem 0;
    }


    #navbar {
        width: 100%;
        max-width: 700px;
    }

    #socials-container {
        margin-bottom: 1rem;
    }

    #services-container {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }

    .why-content {
        gap: 2rem;
    }

    #company-name {
        width: 45%;
    }

    #overlay {
        width: 45%;
    }

    #testimonials-container {
        flex-wrap: wrap;
    }
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {

    header {
        height: auto;
        padding: 1rem;
    }

/* Mobile Navigation */

#nav-container {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

#nav-logo {
    height: 5rem;
    flex: none;
}

#hamburger-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

#hamburger-btn img {
    width: 32px;
    height: 32px;
}

/* Hide menu by default */
#nav-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    background-color: var(--section);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    z-index: 999;
}

/* Show menu when JS adds .active */
#nav-menu.active {
    display: block;
}

#navbar {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 1rem 0;

    gap: 1rem;
}

#navbar li {
    text-align: center;
}

#socials-container {
    display: none;
}


    #social-icons-container {
        align-items: center;
    }

    .social-icon-container {
        justify-content: center;
    }

    /* HERO */

    #hero {
        width: 100%;
        height: auto;
        min-height: 500px;
    }

    #main-image {
        height: 500px;
    }

    #overlay {
        width: 100%;
        background: rgba(47, 52, 55, 0.65);
    }

    #company-name {
        width: 100%;
        padding: 2rem;
    }

    #company-name h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .quote-button {
        width: auto;
        min-width: 180px;
    }

    /* SERVICES */

    #services-container {
        grid-template-columns: 1fr;
        width: 95%;
        top: -4rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .icon {
        width: 3rem;
        height: 3rem;
    }

    /* WHY CHOOSE US */

    .why-content {
        grid-template-columns: 1fr;
    }

    .why-image {
        order: -1;
    }

    .why-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    /* TESTIMONIALS */

    #testimonials-container {
        flex-direction: column;
        width: 90%;
    }

    .quote {
        width: 100%;
    }

}


/* ==========================================
   SMALL PHONES
   ========================================== */

@media (max-width: 480px) {

    #nav-logo {
        height: 5rem;
    }

    #company-name h1 {
        font-size: 1.6rem;
    }

    #company-name p {
        font-size: 0.95rem;
    }

    .why-text h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    body {
        font-size: 0.95rem;
    }

    .quote-button {
        width: 100%;
        max-width: 250px;
    }

}