/* =================================
   COLOUR VARIABLES
================================= */

:root {
    --primary-color: #102A43;
    --secondary-color: #2563EB;
    --background-color: #F1F5F9;
    --text-color: #374151;
    --white: #ffffff;
    --gold: #D4A017;
}


/* =================================
   GENERAL STYLING
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

section {
    padding: 70px 8%;
    text-align: center;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 32px;
}


/* =================================
   HEADER AND NAVIGATION
================================= */

header {
    background-color: var(--primary-color);
    padding: 15px 8%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

nav h2 {
    color: var(--white);
    font-size: 21px;
    white-space: nowrap;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--gold);
}


/* =================================
   HOMEPAGE / HERO SECTION
================================= */

#home {
    position: relative;
    isolation: isolate;
    color: var(--white);
    text-align: center;
    padding: 90px 15px;
    min-height: 45vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Background images */

#home::before,
#home::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: -1;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* First background image */

#home::before {
    left: 0;

    background-image:
        linear-gradient(
            rgba(16, 42, 67, 0.55),
            rgba(16, 42, 67, 0.55)
        ),
        url("../images/background1.jpg");
}

/* Second background image */

#home::after {
    right: 0;

    background-image:
        linear-gradient(
            rgba(16, 42, 67, 0.55),
            rgba(16, 42, 67, 0.55)
        ),
        url("../images/imagesFPAbg3.jpg");
}

#home h1 {
    font-size: 40px;
    line-height: 1.3;
    max-width: 750px;
    margin-bottom: 25px;
}

#home a {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#home a:hover {
    background-color: var(--primary-color);
}


/* =================================
   ABOUT US SECTION
================================= */

#about {
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.about-text h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 0;
}

.about-image img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}


/* =================================
   OUR SERVICES SECTION
================================= */

#services {
    background-color: var(--background-color);
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    padding: 30px 25px;
    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 15px;
}


/* =================================
   WHY CHOOSE US SECTION
================================= */

#why-choose-us {
    background-color: var(--primary-color);
    color: var(--white);
}

#why-choose-us h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 15px;
}

.why-intro {
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.reasons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.reason-card {
    background-color: var(--white);
    color: var(--text-color);
    padding: 30px 25px;
    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.reason-card p {
    font-size: 15px;
    line-height: 1.8;
}


/* =================================
   CONTACT US SECTION
================================= */

#contact {
    background-color: var(--white);
}

#contact h2 {
    font-size: 32px;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-card {
    background-color: var(--background-color);
    padding: 30px 20px;
    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.contact-card p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-card a {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-card a:hover {
    background-color: var(--primary-color);
}

.contact-location {
    margin-top: 40px;
}

.contact-location h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}


/* =================================
   FOOTER
================================= */

footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
}


/* =================================
   TABLET RESPONSIVENESS
================================= */

@media (max-width: 1000px) {

    nav {
        flex-direction: column;
        gap: 12px;
    }

    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =================================
   MOBILE RESPONSIVENESS
================================= */

@media (max-width: 768px) {

    /* GENERAL SECTIONS */

    section {
        padding: 45px 5%;
    }

    section h2 {
        font-size: 27px;
    }


    /* HEADER */

    header {
        padding: 12px 4%;
    }

    nav {
        flex-direction: column;
        gap: 8px;
    }

    nav h2 {
        font-size: 17px;
        text-align: center;
        white-space: normal;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px 13px;
    }

    nav ul li a {
        font-size: 13px;
        padding: 5px 2px;
    }


    /* HOMEPAGE */

    #home {
        padding: 65px 15px;
        min-height: 35vh;
    }

    #home h1 {
        font-size: 28px;
        line-height: 1.35;
        margin-bottom: 20px;
    }

    #home a {
        padding: 10px 22px;
        font-size: 14px;
    }

    /* Use one background image on mobile */

    #home::before {
        width: 100%;
        background-position: center;
    }

    #home::after {
        display: none;
    }


    /* ABOUT US */

    #about {
        padding: 45px 5%;
    }

    .about-container {
        flex-direction: column;
        gap: 20px;
    }

    .about-text {
        text-align: left;
    }

    .about-text h2 {
        font-size: 27px;
    }

    .about-text h3 {
        font-size: 20px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        height: 230px;
    }


    /* OUR SERVICES */

    .service-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 25px 20px;
    }


    /* WHY CHOOSE US */

    #why-choose-us h2 {
        font-size: 27px;
    }

    .why-intro {
        margin-bottom: 25px;
        font-size: 15px;
    }

    .reasons-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .reason-card {
        padding: 25px 20px;
    }


    /* CONTACT US */

    #contact h2 {
        font-size: 27px;
    }

    .contact-intro {
        margin-bottom: 25px;
        font-size: 15px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-location {
        margin-top: 30px;
    }


    /* FOOTER */

    footer {
        padding: 10px 8px;
        font-size: 12px;
    }

}


/* =================================
   SMALL MOBILE SCREENS
================================= */

@media (max-width: 380px) {

    nav h2 {
        font-size: 15px;
    }

    nav ul {
        gap: 2px 9px;
    }

    nav ul li a {
        font-size: 12px;
    }

    #home h1 {
        font-size: 25px;
    }

}