:root {
    --black: #000000;
    --white: #ffffff;
    --blue: #021639;
    --orange: #f57333;
    --background-grey: #cfcaca;
    --light-grey-bg: #f8f9fa;
    --mid-grey: #666666;
}

/* =========================================================
   RESET AND PAGE STRUCTURE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.site-main {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    overflow-x: hidden;
    background-color: var(--white);
}


/* =========================================================
   HEADER AND NAVIGATION
   ========================================================= */

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-right: 0;
    padding-left: 0;
}

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

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

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

.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-container {
    max-width: 100%;
}

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


/* =========================================================
   FOOTER
   ========================================================= */

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

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

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

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


/* =========================================================
   COOKIE NOTICE AND MODALS
   ========================================================= */

.modal {
    color: var(--black);
}

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

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

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


/* =========================================================
   SERVICES PAGE
   ========================================================= */

.business-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--light-grey-bg);
}

.business-page section {
    width: 100%;
    max-width: 100%;
}

.business-page .container {
    width: 100%;
    max-width: 1140px;
}

.business-page .row {
    max-width: 100%;
}

.business-page .row > * {
    min-width: 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-grey-bg) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.text-black {
    color: var(--black);
}

.text-orange {
    color: var(--orange);
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.business-intro-section {
    position: relative;
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
    background-color: var(--blue);
    color: var(--white);
}

.business-intro-section .container {
    position: relative;
    z-index: 3;
}

.business-intro-section h1 {
    margin-bottom: 20px;
    border-bottom: 3px solid var(--orange);
    color: var(--white);
    font-family: "Tenor Sans", sans-serif;
    font-size: 2.5rem;
}

.business-intro-section p {
    margin-bottom: 15px;
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
}

.intro-list {
    padding-left: 0;
    font-family: "Lato", sans-serif;
    font-size: 1.1rem;
    list-style: none;
}

.intro-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

/* Removes the unnecessary white curved shape */

.curve-container {
    display: none !important;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-top: 5px solid var(--orange);
    border-radius: 5px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-body {
    width: 100%;
    max-width: 100%;
    padding: 20px;
}

.card-title.gradient-text {
    color: var(--black);
}

.card-text {
    overflow-wrap: break-word;
}

.personal-training-card {
    padding: 5px;
    background-color: #f4f4f9;
    color: var(--black);
}


/* =========================================================
   GENERAL IMAGES
   ========================================================= */

.image-container {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.image-container img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    border-radius: 10px;
}

.image-container1 {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.full-height-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rounded-image {
    border-radius: 10px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn.btn-primary,
.btn-dark {
    max-width: 100%;
    border: none;
    background: linear-gradient(
        to right,
        var(--blue),
        var(--orange)
    );
    white-space: normal;
}

.btn.btn-primary:hover,
.btn-dark:hover {
    opacity: 0.9;
}


/* =========================================================
   SERVICE LISTS
   ========================================================= */

.services-list {
    width: 100%;
}

.services-list ul {
    padding: 0;
}

.services-list li {
    margin-bottom: 10px;
    overflow-wrap: break-word;
    list-style-type: none;
}


/* =========================================================
   SECTION DIVIDERS
   ========================================================= */

.orange-border {
    width: 50%;
    margin: 0 auto;
    border-top: 3px solid var(--orange);
}

.rt-feature-divider {
    width: 50%;
    margin: 0 auto;
    border-top: 2px solid var(--orange);
}

.rt-section-divider {
    width: 50%;
    margin: 0 auto;
    border-top: 3px solid var(--orange);
}


/* =========================================================
   SPORTS MASSAGE SECTION
   ========================================================= */

#sports-massage {
    width: 100%;
    max-width: 100%;
    color: var(--black);
}

#sports-massage .img-fluid {
    max-width: 100%;
    height: auto;
}

/*
   Qualifications row.

   This targets the four actual Bootstrap columns containing
   iTEC, FHT, Breese and Proactive Training.
*/

#sports-massage .card-body > .row.justify-content-center.py-4 {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

#sports-massage
.card-body
> .row.justify-content-center.py-4
> .row.justify-content-center.py-4 {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    align-items: flex-start;
}

#sports-massage
.card-body
> .row.justify-content-center.py-4
> .row.justify-content-center.py-4
> [class*="col-"] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/*
   Override Bootstrap's w-50 and spacing classes.
   All four logos receive an equal centred logo area.
*/

#sports-massage img[alt="iTEC certification seal for sports massage"],
#sports-massage img[alt="FHT Accredited"],
#sports-massage img[alt="Breese Academy Rehab"],
#sports-massage img[alt="Proactive Training Logo"] {
    display: block !important;
    width: auto !important;
    max-width: 220px !important;
    height: 110px !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;
    object-fit: contain;
    object-position: center;
}

/* Slightly wider logo allowance for iTEC */

#sports-massage img[alt="iTEC certification seal for sports massage"] {
    max-width: 240px !important;
}

/* Breese logo benefits from a slightly taller area */

#sports-massage img[alt="Breese Academy Rehab"] {
    height: 120px !important;
}

/* Keep all qualification descriptions centred and aligned */

#sports-massage
.card-body
> .row.justify-content-center.py-4
> .row.justify-content-center.py-4
> [class*="col-"]
p {
    width: 100%;
    max-width: 330px;
    margin: 0 auto !important;
    padding: 0 8px;
    color: var(--black);
    text-align: center;
}

/* Centre the booking button below the qualification logos */

#sports-massage
.card-body
> .row.justify-content-center.py-4
> .row.text-center {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

#sports-massage
.card-body
> .row.justify-content-center.py-4
> .row.text-center
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   PERSONAL TRAINING SECTION
   ========================================================= */

#personal-training {
    width: 100%;
    max-width: 100%;
}

.areas-served-dropdown {
    max-width: 100%;
}

.areas-served-dropdown .dropdown-menu {
    max-width: calc(100vw - 30px);
}

/* Centre the CIMSPA logo */

#personal-training img[alt="CIMSPA Certified"] {
    display: block !important;
    width: auto !important;
    max-width: 380px !important;
    height: auto !important;
    margin-right: auto !important;
    margin-left: auto !important;
    object-fit: contain;
    object-position: center;
}

/* Centre the entire CIMSPA logo and button area */

#personal-training .col-12.text-center.mt-3 {
    width: 100%;
    text-align: center;
}

#personal-training .col-12.text-center.mt-3 > .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    justify-content: center;
}

#personal-training .col-12.text-center.mt-3 .col-12 {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#personal-training .col-12.text-center.mt-3 .btn {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   REHABILITATION SECTION
   ========================================================= */

#rehab-therapy {
    width: 100%;
    max-width: 100%;
}

.rt-feature-title {
    color: var(--black);
    font-size: 1.25rem;
}

.rt-feature-description {
    color: var(--black);
}

.rt-section-title {
    color: var(--black);
    font-size: 1.5rem;
}

.rt-icon {
    color: var(--orange);
}

.rt-feature-list {
    padding: 0;
    list-style-type: none;
}

.rt-feature-list li {
    margin-bottom: 10px;
    overflow-wrap: break-word;
}


/* =========================================================
   LARGE LAPTOPS AND MONITORS
   ========================================================= */

@media (min-width: 1200px) {
    .business-page .container {
        max-width: 1320px;
    }

    .business-intro-section .container {
        max-width: 1140px;
    }
}

@media (min-width: 1600px) {
    .business-page .container {
        max-width: 1450px;
    }

    .business-intro-section .container {
        max-width: 1250px;
    }
}


/* =========================================================
   TABLETS AND SMALL LAPTOPS
   ========================================================= */

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

    .navbar-nav {
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
    }

    .business-page .container {
        max-width: 960px;
    }

    .business-intro-section {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .business-intro-section h1 {
        font-size: 2.2rem;
    }

    .business-intro-section p {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 18px;
    }

    .image-container1 {
        margin-bottom: 20px;
    }

    #rehab-therapy .w-75 {
        width: 90% !important;
    }

    .orange-border,
    .rt-feature-divider,
    .rt-section-divider {
        width: 65%;
    }

    #sports-massage img[alt="iTEC certification seal for sports massage"],
    #sports-massage img[alt="FHT Accredited"],
    #sports-massage img[alt="Breese Academy Rehab"],
    #sports-massage img[alt="Proactive Training Logo"] {
        height: 105px !important;
        max-width: 210px !important;
    }

    #personal-training img[alt="CIMSPA Certified"] {
        max-width: 340px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

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

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

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

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

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

    .business-page .container {
        width: 100%;
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .business-intro-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .business-intro-section h1 {
        font-size: 1.9rem;
    }

    .business-intro-section p {
        font-size: 1rem;
    }

    .card {
        margin-right: 0;
        margin-left: 0;
    }

    .card-body {
        padding: 15px;
    }

    .card-title {
        font-size: 1.4rem;
        line-height: 1.35;
    }

    .card-text,
    .services-list li,
    .rt-feature-description,
    .rt-feature-list li {
        font-size: 0.95rem;
    }

    .orange-border,
    .rt-feature-divider,
    .rt-section-divider {
        width: 75%;
    }

    .image-container {
        padding: 10px;
    }

    .image-container1 {
        width: 100%;
    }

    .full-height-image {
        height: auto;
        object-fit: contain;
    }

    #sports-massage img,
    #personal-training img,
    #rehab-therapy img {
        max-width: 100%;
        height: auto;
    }

    /*
       Qualification logos remain centred when Bootstrap
       changes the columns to two per row or one per row.
    */

    #sports-massage
    .card-body
    > .row.justify-content-center.py-4
    > .row.justify-content-center.py-4
    > [class*="col-"] {
        margin-bottom: 35px;
    }

    #sports-massage img[alt="iTEC certification seal for sports massage"],
    #sports-massage img[alt="FHT Accredited"],
    #sports-massage img[alt="Breese Academy Rehab"],
    #sports-massage img[alt="Proactive Training Logo"] {
        width: auto !important;
        max-width: 220px !important;
        height: 100px !important;
        margin: 0 auto 16px !important;
    }

    #personal-training img[alt="CIMSPA Certified"] {
        width: auto !important;
        max-width: 300px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    #rehab-therapy .w-75 {
        width: 100% !important;
    }

    .btn-lg {
        width: 100%;
        max-width: 420px;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 1rem;
    }

    .areas-served-dropdown {
        width: 100%;
        text-align: center;
    }

    .areas-served-dropdown .btn {
        width: 100%;
        max-width: 300px;
    }

    .areas-served-dropdown .dropdown-menu {
        width: 100%;
        max-width: 300px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

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

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

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

    .navbar-brand {
        max-width: calc(100% - 60px);
        font-size: 0.9rem;
    }

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

    .business-page .container {
        padding-right: 8px;
        padding-left: 8px;
    }

    .business-intro-section {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .business-intro-section h1 {
        font-size: 1.65rem;
    }

    .business-intro-section p {
        font-size: 0.95rem;
    }

    .card {
        padding-right: 5px !important;
        padding-left: 5px !important;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-text,
    .services-list li,
    .rt-feature-description,
    .rt-feature-list li {
        font-size: 0.9rem;
    }

    .orange-border,
    .rt-feature-divider,
    .rt-section-divider {
        width: 85%;
    }

    #sports-massage img[alt="iTEC certification seal for sports massage"],
    #sports-massage img[alt="FHT Accredited"],
    #sports-massage img[alt="Breese Academy Rehab"],
    #sports-massage img[alt="Proactive Training Logo"] {
        max-width: 190px !important;
        height: 90px !important;
    }

    #personal-training img[alt="CIMSPA Certified"] {
        max-width: 260px !important;
    }

    .btn-lg {
        font-size: 0.92rem;
    }

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

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

/* Centre logos in the final Rehab Therapy qualifications section */

#rehab-therapy .row.justify-content-center.py-4.text-black {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    align-items: flex-start;
}

#rehab-therapy .row.justify-content-center.py-4.text-black > [class*="col-"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#rehab-therapy .row.justify-content-center.py-4.text-black img {
    display: block !important;
    width: auto !important;
    max-width: 220px !important;
    height: 110px !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;
    object-fit: contain;
    object-position: center;
}

#rehab-therapy .row.justify-content-center.py-4.text-black p {
    width: 100%;
    max-width: 330px;
    margin: 0 auto !important;
    padding: 0 8px;
    text-align: center;
}

@media (max-width: 767.98px) {
    #rehab-therapy .row.justify-content-center.py-4.text-black > [class*="col-"] {
        margin-bottom: 35px;
    }

    #rehab-therapy .row.justify-content-center.py-4.text-black img {
        max-width: 200px !important;
        height: 95px !important;
    }
}