:root {
    /* Color palette */
    --black: #000000;
    --white: #FFFFFF;
    --blue: #021639;
    --orange: #F57333;
    --background-grey: #cfcaca;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-grey);
    color: var(--white);
}

img {
    max-width: 100%;
}

.site-container {
    width: 100%;
    max-width: 1900px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--background-grey);
}

.site-header,
.site-footer {
    background: var(--blue);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.site-header {
    padding-left: 0;
    padding-right: 0;
}

.site-header,
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-main {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    background-color: white;
}

.navbar-toggler-icons {
    color: var(--orange);
}

.navbar-custom {
    background-color: var(--blue);
    border-bottom: 3px solid var(--orange);
}

.navbar-custom .container-fluid {
    width: 100%;
    padding-left: clamp(15px, 3vw, 45px);
    padding-right: clamp(15px, 3vw, 45px);
}

.navbar-brand,
.nav-link,
.dropdown-item,
.site-footer a {
    color: var(--white);
    transition: color 0.3s ease-in-out;
}

.navbar-brand:hover,
.nav-link:hover,
.dropdown-item:hover,
.site-footer a:hover {
    color: var(--orange);
}

.nav-item i {
    margin-right: 8px;
}

.dropdown-menu {
    background-color: var(--blue);
    border: none;
}

.logo-resize {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
}

.site-footer {
    width: 100%;
    max-width: 100%;
    border-top: 3px solid var(--orange);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    color: white !important;
}

.footer-column {
    flex: 1;
    text-align: center;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--orange);
}

.modal {
    color: black;
}

#cookieConsentContainer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 10px;
    z-index: 1050;
}

#cookieConsentButton {
    color: var(--white);
    background-color: var(--orange);
    border: none;
    cursor: pointer;
}

#cookieConsentButton:hover {
    background-color: var(--blue);
}

/* Homepage colours */

:root {
    --light-grey: #f4f4f4;
    --dark-grey: #333;
    --blue: #021639;
    --orange: #F57333;
    --soft-grey: #f9f9f9;
    --mid-grey: #555;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    margin: 0;
    padding: 0;
}

.home-page {
    width: 100%;
    max-width: 100%;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    background-image: url('assets/personal-trainer-gym-bangor-hero.jpg');
    height: 75vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-text {
    width: min(100%, 850px);
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-text .tagline {
    color: var(--orange);
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
}

.hero-text .qualifications {
    color: var(--light-grey);
    font-size: 1em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

h1 {
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.service-card {
    width: 100%;
    background: linear-gradient(145deg, var(--blue), var(--orange));
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--white);
    margin-top: 30px;
    padding: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-img-top,
.card-image {
    width: 100%;
    max-height: 200px;
    background-position: center;
    background-size: cover;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
    margin-bottom: 15px;
}

.card-image {
    object-fit: cover;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

.container {
    padding: 50px 15px;
}

.btn-primary {
    background-color: var(--orange);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--blue);
}

.fade-in {
    animation: fadeInAnimation ease 2s;
    animation-fill-mode: both;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-section {
    width: 100%;
    max-width: 100%;
    padding: 50px 0;
    background-color: var(--soft-grey);
}

.testimonial-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--mid-grey);
    font-style: italic;
    margin-bottom: 10px;
}

.media-body strong {
    display: block;
    margin-top: 5px;
    font-size: 1.1rem;
    color: var(--dark-grey);
}

.card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: white;
}

.card-link:hover {
    color: white;
}

.img-top {
    object-position: top;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card p {
    margin: 0;
}

.card strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.card button {
    background-color: #ff5722;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.card button:hover {
    background-color: #e64a19;
}

.btn-close {
    font-size: 1.5rem;
    color: #021639;
}

.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    font-size: 1.5rem;
    color: #021639;
    font-weight: bold;
}

.modal-body {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    border-top: none;
    display: flex;
    justify-content: space-between;
}

.modal-footer .btn {
    background-color: #ff5722;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.modal-footer .btn:hover {
    background-color: #e64a19;
}

.modal-footer .btn-secondary {
    background-color: #021639;
}

.modal-footer .btn-secondary:hover {
    background-color: #021639d9;
}

.top-half-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Wider laptop and monitor screens */

@media (min-width: 1200px) {
    #services.container,
    .testimonial-section .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    #services.container,
    .testimonial-section .container {
        max-width: 1500px;
    }
}

/* Tablet and smaller laptop screens */

@media (max-width: 991.98px) {
    .navbar-collapse {
        width: 100%;
    }

    .navbar-nav {
        width: 100%;
    }

    .container {
        padding: 30px 15px;
    }

    .service-card {
        flex-direction: column;
    }

    .hero-text {
        width: min(100%, 850px);
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Mobile screens */

@media (max-width: 767.98px) {
    .site-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .logo-container {
        max-width: 100%;
    }

    .logo-resize {
        max-width: 70px;
        max-height: 70px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-image {
        min-height: 500px;
        height: auto;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-text .tagline,
    .hero-text .qualifications {
        font-size: 0.9em;
    }

    .service-card {
        width: 100%;
    }

    .testimonial-text {
        margin-left: 0;
    }
}

/* Very small mobile screens */

@media (max-width: 480px) {
    .site-header,
    .site-footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-custom .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .logo-resize {
        max-width: 55px;
        max-height: 55px;
    }

    .hero-text {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .tagline {
        font-size: 0.82rem;
    }

    .hero-text .qualifications {
        font-size: 0.8rem;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .service-card {
        padding: 15px;
    }

    #cookieConsentContainer {
        padding: 12px;
        font-size: 0.9rem;
    }

    #cookieConsentButton {
        display: block;
        margin: 8px auto 0;
    }
}
