/* Remove tap highlight color in WebKit-based mobile browsers (like Safari) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* playfair-display-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('assets/font/playfair-display-v37-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    src: url('assets/font/work-sans-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 700;
    src: url('assets/font/work-sans-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Light Mode Variables (default) */
:root {
    --primary: #1b1b1b;
    --secondary: #fff;
    --tertiary: #ffb2c5;
    --quarternary: #424242;
    --quinary: #555555;
    --accent: #02500c;
    --dark-mode-toggle: #ffef00;

    --section-padding-h: 16px;
    
    --section-margin-v: clamp(3.75rem, 8vw, 6.25rem);

    /* Always wrap .container content in a div - don't just plonk it in .container as this gap is wildly large */
    --container-gap: clamp(3rem, 6vw, 4rem);

    --single-margin: clamp(1rem, 2vw, 1.5rem);
    --double-margin: clamp(2rem, 4vw, 3rem); 

    --caption-margin: clamp(0.75rem, 2vw, 1.25rem);

    /* 48px - 72px */
    --page-title: clamp(3rem, 7.8vw, 4.5rem);
    /* 32px - 49px */
    --heading: clamp(2rem, 5vw, 3.0625rem);
    /* 24px - 36px */
    --subheading: clamp(1.5rem, 4vw, 2.25rem);
    /* 22px - 30px */
    --kicker: clamp(1.375rem, 3.4vw, 1.875rem);
    /* 20px */
    --body: 1.25rem;
    --caption: 1rem;
}

/* Apply Light Mode Styles */
body {
    margin: 0;
    padding: 0;
    background-color: var(--secondary);
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--primary);
}

/* Dark Mode Variables */
.dark-mode {
    --primary: #fff;
    --secondary: #1b1b1b;
    --tertiary: #424242;
    --quarternary: #aaaaaa;
    --quinary: #029d16;
    --accent: #ffb2c5;
    --dark-mode-toggle: #ffef00;
}

/* Apply Dark Mode Styles */
.dark-mode body {
    background-color: var(--secondary);
}

html {
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    overflow-wrap: break-word;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
}

/* !!!!!!!!!!!!!!!!!! */
/* DESIGN CONSISTENCY */
/* !!!!!!!!!!!!!!!!!! */

section {
    padding-left: var(--section-padding-h);
    padding-right: var(--section-padding-h);
    /* Margins used so we get collapses instead of large vertical gaps */
    margin-top: var(--section-margin-v);
    margin-bottom: var(--section-margin-v);
}

.container {
    width: 100%;
    margin: auto;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: var(--container-gap); */
    gap: 0;
    overflow: hidden; 
    /* justify-content: center; */
}

.page-title {
    text-align: center;
    text-transform: uppercase;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    font-size: var(--page-title);
    font-weight: 400;
    /* letter-spacing: +0.3em; */
    color: #fff;
    margin-bottom: var(--single-margin);
    line-height: 1.2;
    width: 100%;
}

.heading {
    text-align: left;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    font-size: var(--heading);
    font-weight: 400;
    /* letter-spacing: +0.3em; */
    color: var(--quarternary);
    margin-bottom: var(--single-margin);
    line-height: 1.2;
    width: 100%;
    max-width: 43.75rem;
}

/* .heading::after {
    content: '';
    display: inline-block;
    width: 0;
    margin-left: -0.3em;
} */

.subheading {
    text-align: left;
    font-family: 'Work Sans', Arial, Helvetica, sans-serif;
    font-size: var(--subheading);
    font-weight: 700;
    /* letter-spacing: +0.05em; */
    color: var(--primary);
    margin-bottom: var(--single-margin);
    line-height: 1.35;
    width: 100%;
    max-width: 43.75rem;
}

/* .subheading::after {
    content: ''; 
    display: inline-block;
    width: 0; 
    margin-left: -0.05em;
} */

.body {
    font-family: 'Work Sans', Arial, Helvetica, sans-serif;
    text-align: left;
    margin-bottom: var(--single-margin);
    font-weight: 400;
    font-size: var(--body);
    color: var(--primary);
    line-height: 1.75;
    width: 100%;
    max-width: 43.75rem;
    /* letter-spacing: +0.1em; */
}

@media only screen and (min-width: 48rem) {
    .heading,
    .subheading {
        text-align: center;
    }
}

/* .body::after {
    content: '';
    display: inline-block;
    width: 0;
    margin-left: -0.1em;
} */

.none {
    margin-bottom: 0;
}

.single {
    margin-bottom: var(--single-margin);
}

.double {
    margin-bottom: var(--double-margin);
}

.block {
    display: block;
}

@media only screen and (max-width: 47.96875rem) {
    #nav-wrapper .page-title .disable-on-mobile {
        display: none;
    }
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent);
    color: var(--secondary);
    font-family: 'Work Sans', Arial, Helvetica, sans-serif;
    border: 1px solid var(--secondary);
    border-radius: 15px;
    min-width: 100px;
    padding: 0.5rem;
    height: 50px;
    cursor: pointer;
    font-size: var(--body);
    font-weight: 700;
    text-decoration: none;
}

.button:hover,
.button:focus {
    background: none;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.hero-button,
#menu #nav-cta .hero-button {
    background: none;
    color: #fff;
    border: 1px solid #fff;
}

.hero-button:hover,
.hero-button:focus,
#menu #nav-cta .hero-button:hover,
#menu #nav-cta .hero-button:focus {
    background: #fff;
    border: 1px solid #1b1b1b;
    color: #1b1b1b;
}

.ghost-button {
    background: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.ghost-button:hover,
.ghost-button:focus {
    background: var(--primary);
    color: var(--secondary);
    border: var(--secondary);
}

/* Double margin above button, within sections, for consistency */

.section-button {
    margin-top: var(--double-margin);
}

.parallax-button {
    margin-bottom: var(--double-margin);
}

.parallax-button-last {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: var(--accent);
}

a:focus,
a:hover {
    color: var(--quinary);
}

/* Width reductions at end */

nav li button {
    background: none;
    border: none;
    width: auto;
    padding: 8px;
}

button:hover,
.button:hover {
    cursor: pointer;
}

/* Spans */

.lowercase {
    text-transform: lowercase;
}

.nowrap {
    white-space: nowrap;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: 700;
}

.spaced {
    letter-spacing: 0.05em;
}

#hide-on-desktop {
    margin-top: var(--double-margin);
}

@media only screen and (min-width: 64rem) {
    #hide-on-desktop {
        display: none;
    }
}

/* Jump to section */

#jump-to-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 43.75rem;
}

#jump-to-wrapper p {
    display: inline;
    width: 100%;
    max-width: 43.75rem;
    text-align: left;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.5;
}

#jump-to-wrapper p a {
    display: inline;
    width: 100%;
    max-width: 43.75rem;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
}

#jump-to-wrapper p a:focus,
#jump-to-wrapper p a:hover {
    color: var(--quinary);
} 

@media only screen and (min-width: 48rem) {
    #jump-to-wrapper {
        justify-content: center;
    }

    #jump-to-wrapper p {
        text-align: center;
    }
}

/* Section Intros */

.section-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 43.75rem;
}

@media only screen and (min-width: 48rem) {
    .section-wrapper {
        align-items: center;
    }   
}

/* New split feature */

#sf-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
}

#sf-wrapper .sf-item-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
    margin-bottom: var(--triple-margin);
}

#sf-wrapper .none {
    margin-bottom: 0;
}

#sf-wrapper .sf-item-wrapper .sf-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* width: 80%; */
    overflow: hidden;
    padding: 0;
    text-align: left;
}

#sf-wrapper .sf-item-wrapper .sf-text-wrapper > * {
    text-align: left;
    width: 100%;
    margin-bottom: var(--single-margin);
}

#sf-wrapper .sf-item-wrapper .sf-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    overflow: hidden;
    background: var(--accent);
    border-radius: 15px;
    box-shadow: 8px 8px 2px var(--accent);
    margin-bottom: 0.5rem;
}

#sf-wrapper .sf-item-wrapper .sf-image-wrapper img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

@media only screen and (min-width: 48rem) {
    #sf-wrapper .sf-item-wrapper {
        flex-direction: row;
    }

    #sf-wrapper .sf-item-wrapper .sf-text-wrapper {
        padding: 1rem;
    }

    #sf-wrapper .sf-reverse .sf-text-wrapper {
        order: 2;
    }
    
    #sf-wrapper .sf-reverse .sf-image-wrapper {
        order: 1;
    }

    #sf-wrapper .sf-item-wrapper .sf-text-wrapper {
        width: 65%;
    }
    #sf-wrapper .sf-item-wrapper .sf-image-wrapper {
        width: 35%;
        margin-right: 0.5rem;
    }

    #sf-wrapper .sf-item-wrapper .sf-text-wrapper > * {
        width: 80%;
    }

    #sf-wrapper .sf-item-wrapper .sf-text-wrapper .body {
        margin-bottom: 0;
    }
}

/* ///// */
/* CTA's */
/* ///// */

.cta-btn {
    margin-top: var(--double-margin);
}

.final-cta-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 41.75rem;
    background: var(--tertiary);
    border-radius: 15px;
    padding: 2rem;
}

@media only screen and (min-width: 48rem) {
    .final-cta-wrapper {
        align-items: center;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: var(--single-margin);
}

@media only screen and (min-width: 40rem) {
    .cta-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

@media only screen and (min-width: 48rem) {
    .cta-buttons {
        justify-content: center;
    }
}

/* ////////////// */
/* Section Images */
/* ////////////// */

.si-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 43.75rem;
    overflow: hidden;
    /* border-radius: 15px; */
}

.si-wrapper img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* ////////////////// */
/* Parallax Container */
/* ////////////////// */

.parallax-container {
    position: relative;
    /* Enough height to showcase scrolling */
    /* height: 200vh;  */
    min-height: 100vh;
}

/* Background Image */

.parallax-image-1 {
    position: sticky;
    top: 0;
    height: 90vh;
    background-image: url('assets/images/index/parallax-image-3.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.parallax-image-1 h2 {
    width: 100%;
    text-align: center;
    color: var(--primary);
}

.parallax-image-1 .button {
    z-index: 2;
}

.parallax-image-1 i {
    font-size: 3rem;
    color: var(--primary);
}

/* Foreground Content */

/* Needs controlling using flexbox */
.parallax-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
    padding: var(--section-margin-v) var(--section-padding-h);
    background-image: url('assets/images/index/parallax-image-4.webp');
    background-size: cover;
    background-position: center;
    /* filter: brightness(50%); */
    /* background: var(--secondary-overlay); */
    /* opacity: 0.2; */
    min-height: 100vh;
    /* max-width: 800px; */
    margin: 0 auto;
    text-align: center;
    /* gap: 75px; */
}

.parallax-content-wrapper .heading {
    color: var(--quarternary);
    margin-bottom: var(--double-margin);
    width: 100%;
    max-width: 800px;
}

.parallax-content-wrapper .parallax-content-text {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    /* margin-bottom: 20px; */
    color: var(--primary);
    text-wrap: balance;
    /* line-height: 1.2; */
    /* text-align: left; */
}

.parallax-content-wrapper .parallax-content-text a {
    font-weight: 700;
    color: var(--quinary);
}

.parallax-content-wrapper .parallax-content-text a:hover {
    color: var(--accent);
}

/* Section Unordered Lists */

.section-ul {
    /* display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    line-height: 1.5;
    /* border: 2px solid red; */
    list-style-type: disc;
    padding-left: 2.5rem;
}

.section-ul .section-ul-item {
    width: 100%;
    text-align: left;
    margin-bottom: var(--single-margin);
}

/* Icons to the left, text on the right */
.section-ul .section-ul-items-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    margin-bottom: var(--single-margin);
    gap: 1rem;
}

.section-ul .suic-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    min-width: 48px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.section-ul .suic-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    text-align: left;
    gap: 0;
}

.section-ul .section-ul-item-last {
    margin-bottom: 0;
}

.section-ul .section-ul-item span {
    text-align: left;
}

@media only screen and (min-width: 48rem) {
    .section-ul .section-ul-items-container {
        align-items: center;
    }
}

/* Section Ordered Lists */

.section-ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    line-height: 1.5;
    list-style-type: decimal;
    padding-left: 2.5rem;
}

.section-ol .section-ol-item {
    width: 100%;
    text-align: left;
    margin-bottom: var(--single-margin);
}

.section-ol .section-ol-item-last {
    margin-bottom: 0;
}

.section-ol .section-ol-item span {
    text-align: left;
}

@media only screen and (min-width: 48rem) {
    .section-ol {
        width: 70%;
    }
}

@media only screen and (min-width: 64rem) {
    .section-ol {
        width: 60%;
    }
}

/* Gallery */

@media only screen and (max-width: 48rem) {
    /* #gallery .container .gallery-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1rem;
    } */

}


#gallery .container .gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(27, 1fr);
    grid-gap: 1rem;
    align-items: stretch;
    width: 100%;
}

#gallery .container .gallery-wrapper figure {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 15px;
    height: auto;
    overflow: hidden;
    position: relative;
}

#gallery .container .gallery-wrapper figure img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#gallery .container .gallery-wrapper figure .tall {
    aspect-ratio: 3/4;
}

#gallery .container .gallery-wrapper figure .square {
    aspect-ratio: 1/1;
}

#gallery .container .gallery-wrapper .gallery-item-1 {
    grid-area: 1 / 1 / span 3 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-2 {
    grid-area: 4 / 1 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-3 {
    grid-area: 8 / 1 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-4 {
    grid-area: 12 / 1 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-5 {
    grid-area: 16 / 1 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-6 {
    grid-area: 20 / 1 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-7 {
    grid-area: 24 / 1 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-8 {
    grid-area: 1 / 2 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-9 {
    grid-area: 5 / 2 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-10 {
    grid-area: 9 / 2 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-11 {
    grid-area: 13 / 2 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-12 {
    grid-area: 17 / 2 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-13 {
    grid-area: 21 / 2 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-14 {
    grid-area: 25 / 2 / span 3 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-15 {
    grid-area: 1 / 3 / span 3 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-16 {
    grid-area: 4 / 3 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-17 {
    grid-area: 8 / 3 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-18 {
    grid-area: 12 / 3 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-19 {
    grid-area: 16 / 3 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-20 {
    grid-area: 20 / 3 / span 4 / span 1;
}

#gallery .container .gallery-wrapper .gallery-item-21 {
    grid-area: 24 / 3 / span 4 / span 1;
}

/* Not needed as no modal (nothing to click) */
/* #gallery .container .gallery-wrapper .gallery .gallery-item:hover {
    cursor: pointer;
} */

/* !!!!!!!!!!!!!!! */
/* ON EVERY PAGE */
/* !!!!!!!!!!!!!!! */

/* Navigation Bar */

nav {
    /* background: var(--secondary); */
    z-index: 10000;
}

#nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 120vh;
    overflow: hidden;
    position: relative;
}

@media only screen and (min-width: 64rem) {
    #nav-wrapper {
        height: 90vh;
    }
}

#nav-wrapper img,
#nav-wrapper picture {
    display: block;
    /* z-index: -5; */
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#nav-wrapper h1 {
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    text-wrap: balance;
    /* top: 20%; */
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    opacity: 0;
    animation: fadeIn 0.5s 0.5s forwards;
    margin-bottom: 0;
    padding: 1rem;
}

/* .fade-in-1 {
    opacity: 0;
    animation: fadeIn 0.5s 1s forwards;
}

.fade-in-2 {
    opacity: 0;
    animation: fadeIn 0.5s 1.5s forwards;
}

.fade-in-3 {
    opacity: 0;
    animation: fadeIn 0.5s 2s forwards;
} */

/* Keyframes for the fade-in effect */
@keyframes fadeIn {
    to {
        opacity: 1; /* Make text visible */
    }
}

#nav-wrapper #scroll-down {
    position: absolute;
    bottom: 30%;
}

@media only screen and (min-width: 64rem) {
    #nav-wrapper #scroll-down {
        bottom: 1.25rem;
    }
}

#nav-wrapper .index-menu {
    position: absolute;
    top: 0;
}

#menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
}

#logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
    padding: 1rem;
    margin-right: auto;
}

#logo a {
    line-height: 0;
}

#logo a img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#dark-mode-toggle button i,
#menu-toggle button i {
    font-size: 2rem;
    padding: 8px;
}

#dark-mode-toggle button i {
    color: var(--dark-mode-toggle);
}

/* Not needed as we have separated the rules for icon-menu (always white) and icon-cancel (black in light mode, white in dark mode) */

/* #menu-toggle button i {
    color: #fff;
} */

/* Separating the rules for icon-menu (always white) and icon-cancel (black in light mode, white in dark mode) */

#menu-toggle button i.icon-menu {
    color: #fff;
}

#menu-toggle button i.icon-cancel {
    color: #1b1b1b;
}

.dark-mode #menu-toggle button i.icon-cancel {
    color: #fff;
}

#menu > li > a {
    display: block;
    text-align: left;
    text-decoration: none;
    padding: 0.75rem 0;
    text-transform: uppercase;
    /* letter-spacing: 0.1em; */
    color: var(--primary);
}

#menu #logo a {
    padding: 0;
}

@media only screen and (min-width: 64rem) {
    #menu .item a,
    #nav-wrapper #menu .item a {
        color: #fff;
    }
    /* #menu #nav-cta .hero-button,
    #nav-wrapper #menu #nav-cta .hero-button {
        color: var(--secondary);
    } */
}

#menu .item {
    display: none;
    width: 100%;
    text-indent: 10px;
}

/* SUBMENU REMOVED */

/* #menu li ul .subitem {
    padding: 0.5rem 0;
    text-indent: 30px;
} */

/* Includes subitems, neutralises global link line earlier */
#menu a {
    color: var(--primary);
}

#menu.active .item {
    display: block;
}

/* #menu .has-submenu {
    position: relative;
} */

/* #menu .has-submenu > a::after {
    content: "\e801";
    font-family: 'Fontello';
    font-size: 0.75rem;
    color: #fff;
    padding-left: 5px;
} */

/* #menu li .submenu {
    display: none;
    position: static;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 15;
    background: var(--secondary);
} */

/* #menu .has-submenu.submenu-active .submenu {
    display: block;
} */

/* #menu-toggle button i:hover,
#menu-toggle button i:focus {
    color: var(--accent);
}

#menu .item:hover,
#menu .item:focus,
#menu .subitem:hover,
#menu .subitem:focus {
    background: var(--tertiary);
} */

/* #first-nav-item {
    margin-top: var(--single-margin);
}

#last-nav-item {
    margin-bottom: var(--single-margin);
} */

#nav-cta {
    display: none;
}

@media only screen and (min-width: 64rem) {
    #menu-toggle {
        display: none;
    }

    #nav-cta {
        display: block;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
        margin-left: auto;
    }

    #menu {
        justify-content: center;
    }

    #menu li a {
        font-weight: 700;
        letter-spacing: normal;
    }

    #menu .item {
        width: auto;
        display: block;
        text-indent: 0;
        padding: 0 0.75rem;
    }

    /* #menu li ul .subitem {
        text-indent: 0;
        line-height: 1.5;
        text-align: left;
        padding: 0.5rem 0;
    } */

    /* #menu li .submenu {
        position: absolute;
        width: 150%;
        border-top: 2px solid #ffef00;
        padding-left: 10px;
        padding-right: 10px;
        background: none;
    } */

    /* #menu .has-submenu {
        padding-top: 1.875rem;
        padding-bottom: 1.875rem;
    } */

    /* #menu .has-submenu:hover .submenu {
        display: block;
    } */

    /* Although it appears repetitive, it caters for the basic page templates (FAQ, contact, privacy and refund) that don't have #nav-wrapper */

    #nav-wrapper #menu .item:hover,
    #nav-wrapper #menu .item:focus,
    #nav-wrapper #menu .item a:hover,
    #nav-wrapper #menu .item a:focus,
    /* #nav-wrapper #menu #nav-cta a:hover, */
    /* #nav-wrapper #menu #nav-cta a:focus, */
    #menu .item:hover,
    #menu .item:focus,
    #menu .item a:hover,
    #menu .item a:focus,
    /* Enormous specificty used - eventually adding the parent #nav-wrapper did it, to match the clashing style */
    #nav-wrapper #menu li.item.has-submenu ul.submenu li.subitem:hover a,
    #nav-wrapper #menu li.item.has-submenu ul.submenu li.subitem:focus a {
    /* #menu #nav-cta a:hover, */
    /* #menu #nav-cta a:focus { */
        background: none;
        color: #ffef00;
    }

    #menu .has-submenu a:hover::after {
        color: #ffef00;
    }

    #first-nav-item {
        /* margin-bottom: var(--double-margin); */
        margin-top: 0;
    }

    #last-nav-item {
        margin-bottom: 0;
    }

}

#menu #nav-cta a {
    display: flex;
}

/* !!!!!!!!!!!!!!!!!!!!!!!! */
/* UNIQUE FEATURES, BY PAGE */
/* !!!!!!!!!!!!!!!!!!!!!!!! */

/* INDEX/HOME */

.parallax-container {
    position: relative;
    /* Enough height to showcase scrolling */
    /* height: 200vh;  */
    min-height: 100vh;
}

/* Background Image */

#index-parallax-image-1 {
    height: 100vh;
    background-image: url('assets/images/index/parallax-image-1.webp');
}

#index-parallax-image-1 h2 {
    width: 100%;
    text-align: center;
    color: #000;
}

#index-parallax-image-1 .heading::after {
    content: ''; /* No visible content */
    display: inline-block;
    width: 0; /* Ensures it doesn't add size */
    /* I dont know why but the pseudoelement was knocking the centring out here. Making it zero neutralises it. */
    margin-left: 0em; 
}

/* Foreground Content */
#index-parallax-content-wrapper {
    background-image: url('assets/images/index/parallax-image-2.webp');
}

#index-parallax-content-wrapper .heading {
    color: #ff6a13;
    margin-bottom: var(--double-margin);
    width: 100%;
    max-width: 800px;
}

#index-parallax-content-wrapper .parallax-content-text {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    /* margin-bottom: 20px; */
    color: #000;
    text-wrap: balance;
    /* line-height: 1.2; */
    /* text-align: left; */
}

#index-parallax-content-wrapper .parallax-content-text a {
    font-weight: 700;
    color: #555555;
}

#index-parallax-content-wrapper .parallax-content-text a:hover {
    color: #1a4e8c;
}

#index-memberships .section-wrapper .heading,
#index-memberships .section-wrapper .subheading,
#index-memberships .section-wrapper p {
    text-align: center;
    /* text-wrap: balance; */
}

#index-memberships-group-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#index-memberships-group-wrapper .index-memberships-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: var(--single-margin);
    /* margin-bottom: var(--double-margin); */
}

#index-memberships-group-wrapper .index-memberships-group .index-memberships-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* max-width: 17rem; */
    padding: 2rem;
    background-color: var(--tertiary);
    border-radius: 15px;
    /* margin-bottom: var(--single-margin); */
    /* border-radius: 10px; */
}

#index-memberships-group-wrapper .index-memberships-group .index-memberships-item .headline {
    display: block;
    width: 100%;
    text-align: center;
    font-size: var(--kicker);
    font-weight: 700;
    /* text-transform: uppercase; */
    color: var(--primary);
    margin-bottom: var(--single-margin);
    line-height: 1.2;
}

#index-memberships-group-wrapper .index-memberships-group .index-memberships-item .price {
    display: block;
    width: 100%;
    text-align: center;
    font-size: var(--kicker);
    font-weight: 700;
    /* text-transform: uppercase; */
    color: var(--primary);
    /* margin-bottom: var(--single-margin); */
    line-height: 1.2;
    margin-bottom: auto;
}

#index-memberships-group-wrapper .index-memberships-group .index-memberships-item .none {
    margin-bottom: 0;
}

@media only screen and (min-width: 36rem) {
    #index-memberships-group-wrapper .index-memberships-group {
        display: grid;
        flex-direction: row;
        flex-wrap: wrap;
        grid-template-columns: repeat(12, 1fr);
        /* flex-direction: column; */
        justify-content: center;
        align-items: stretch;
        /* width: 100%;
        gap: var(--single-margin); */
    }   

    #index-memberships-group-wrapper .index-memberships-group .index-memberships-item {
        grid-column: span 6;
    }
}

@media only screen and (min-width: 72rem) {
    #index-memberships-group-wrapper .index-memberships-group {
        display: grid;
        flex-direction: row;
        flex-wrap: wrap;
        grid-template-columns: repeat(12, 1fr);
        /* flex-direction: column; */
        justify-content: center;
        align-items: stretch;
        /* width: 100%;
        gap: var(--single-margin); */
    }   

    #index-memberships-group-wrapper .index-memberships-group .index-memberships-item {
        grid-column: span 3;
    }
}

#facilities-ul .section-ul {
    padding-left: 0;
}

#facilities-ul .section-ul .section-ul-items-container {
    align-items: center;
}

/* Mobile up to 639.px */
@media only screen and (max-width: 39.96875rem) {
    #index-gallery .container .gallery-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    #index-gallery .container .gallery-wrapper .gallery {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    #index-gallery .container .gallery-wrapper .gallery figure {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: 15px;
        height: auto;
        overflow: hidden;
        position: relative;
    }

    #index-gallery .container .gallery-wrapper .gallery figure img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-1,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-2,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-3,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-4,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-5,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-6,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-8,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-9,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-10,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-12,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-14,
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-15 {
        display: none;
    }
}

/* 640px+ */

@media only screen and (min-width: 40rem) {
    #index-gallery .container .gallery-wrapper {
        width: 100%;
    }

    #index-gallery .container .gallery-wrapper .gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(17, 1fr);
        grid-gap: 1rem;
        align-items: stretch;
    }

    #index-gallery .container .gallery-wrapper .gallery figure {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: 15px;
        height: auto;
        overflow: hidden;
        position: relative;
    }

    #index-gallery .container .gallery-wrapper .gallery figure img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    #index-gallery .container .gallery-wrapper .gallery figure .tall {
        aspect-ratio: 2/3;
    }
    
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-1 {
        grid-area: 1 / 1 / span 3 / span 1;
    }
    
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-2 {
        grid-area: 2 / 2 / span 3 / span 1;
    }
    
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-3 {
        grid-area: 3 / 3 / span 3 / span 1;
    }
    
    #index-gallery .container .gallery-wrapper .gallery .gallery-item-4 {
        grid-area: 4 / 1 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-5 {
        grid-area: 5 / 2 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-6 {
        grid-area: 6 / 3 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-7 {
        grid-area: 7 / 1 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-8 {
        grid-area: 8 / 2 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-9 {
        grid-area: 9 / 3 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-10 {
        grid-area: 10 / 1 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-11 {
        grid-area: 11 / 2 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-12 {
        grid-area: 12 / 3 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-13 {
        grid-area: 13 / 1 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-14 {
        grid-area: 14 / 2 / span 3 / span 1;
    }

    #index-gallery .container .gallery-wrapper .gallery .gallery-item-15 {
        grid-area: 15 / 3 / span 3 / span 1;
    }
}

#index-pt .section-wrapper .heading,
#index-pt .section-wrapper .subheading,
#index-pt .section-wrapper p {
    text-align: center;
    /* text-wrap: balance; */
}

#index-pt .section-wrapper .body {
    margin-bottom: var(--double-margin);
}

/* Mobile up to 639.px */
@media only screen and (max-width: 39.96875rem) {
    #index-pt-gallery .container .gallery-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: 15px;
        height: auto;
        overflow: hidden;
        position: relative;
        background: #ff6a13;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div:hover {
        background: none;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        mix-blend-mode: multiply;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div img:hover {
        filter: none;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div .square {
        aspect-ratio: 1/1;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div .kicker {
        position: absolute;
        display: block;
        color: #fff;
        font-weight: 700;
        font-size: 2rem;
        bottom: 1rem;
        right: 1rem;
        width: auto;
        line-height: normal;
        margin-bottom: 0;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-5 {
        display: none;
    }
}

/* 640px to 1023.5px */

@media only screen and (min-width: 40rem) and (max-width: 63.96875rem) {
    #index-pt-gallery .container .gallery-wrapper {
        width: 100%;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-gap: 1rem;
        align-items: stretch;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: 15px;
        height: auto;
        overflow: hidden;
        position: relative;
        background: #ff6a13;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div:hover {
        background: none;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        mix-blend-mode: multiply;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div img:hover {
        filter: none;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div .kicker {
        position: absolute;
        display: block;
        color: #fff;
        font-weight: 700;
        font-size: 2rem;
        bottom: 1rem;
        right: 1rem;
        width: auto;
        line-height: normal;
        margin-bottom: 0;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery div .square {
        aspect-ratio: 1/1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-1 {
        grid-area: 1 / 1 / span 1 / span 1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-2 {
        grid-area: 1 / 2 / span 1 / span 1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-3 {
        grid-area: 2 / 1 / span 1 / span 1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-4 {
        grid-area: 2 / 2 / span 1 / span 1;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-5 {
        display: none;
    }
}

/* 1024px+ */

@media only screen and (min-width: 64rem) {
    #index-pt-gallery .container .gallery-wrapper {
        width: 100%;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-gap: 1rem;
        align-items: stretch;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div {
        display: flex;
        justify-content: center;
        /* A-I center leaves the image not filling the container right now. This is caused by the long image being 32px wider than the total of the three squares (3*320=960), and it is longer to account for the grid gap between the squares (2*16px). 992/3=330.66 - this becomes the new height for rows in the grid. Hence the squares end up being 320*330.66. Track & Field has the same issue, I just hadn't noticed. */
        /* align-items: center; */
        /* Stretch is the default, and that works as the image is slightly stretched to cover the extra 10.66px*/
        align-items: stretch;
        width: 100%;
        border-radius: 15px;
        height: auto;
        overflow: hidden;
        position: relative;
        background: #ff6a13;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div:hover {
        background: none;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        mix-blend-mode: multiply;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div img:hover {
        filter: none;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div .kicker {
        position: absolute;
        display: block;
        color: #fff;
        font-weight: 700;
        font-size: 2rem;
        bottom: 1rem;
        right: 1rem;
        width: auto;
        line-height: normal;
        margin-bottom: 0;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery div .square {
        aspect-ratio: 1/1;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery div .wide {
        aspect-ratio: 3/1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-1 {
        grid-area: 1 / 1 / span 1 / span 1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-2 {
        grid-area: 1 / 2 / span 1 / span 1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-3 {
        grid-area: 1 / 3 / span 1 / span 1;
    }
    
    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-4 {
        display: none;
    }

    #index-pt-gallery .container .gallery-wrapper .gallery .gallery-item-5 {
        grid-area: 2 / 1 / span 1 / span 3;
    }

}

/* ABOUT */

/* #no-ego .container .section-wrapper,
#train-your-way .container .section-wrapper,
#gym-gallery .container .section-wrapper {
    text-align: center;
} */

#no-ego .container .section-wrapper .heading,
#train-your-way .container .section-wrapper .heading,
#gym-gallery .container .section-wrapper .heading,
#gym-gallery .container .section-wrapper .subheading {
    max-width: none;
    text-align: center;
}

#no-ego .container .section-wrapper .body,
#train-your-way .container .section-wrapper .body,
#gym-gallery .container .section-wrapper .body {
    text-align: center;
}

/* REVIEWS */

#reviews .container .section-wrapper h2,
#reviews .container .section-wrapper h3,
#reviews .container .section-wrapper p {
    text-align: left;
    width: 100%;
    max-width: 700px;
}

#reviews-group-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#reviews-group-wrapper .reviews-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: var(--single-margin);
}

#reviews-group-wrapper .reviews-group .reviews-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 40rem;
    padding: 0 1rem;
    background-color: var(--tertiary);
    border-radius: 15px;
}

#reviews-group-wrapper .reviews-group .reviews-item img {
    display: block;
    width: 32px;
    height: auto;
    margin-top: var(--single-margin);
    margin-bottom: var(--single-margin);
}

#reviews-group-wrapper .reviews-group .reviews-item .kicker {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--accent);
    margin-bottom: var(--single-margin);
}

#reviews-group-wrapper .reviews-group .reviews-item .review {
    display: block;
    width: 100%;
    text-align: left;
    font-style: italic;
    color: var(--primary);
    margin-bottom: var(--single-margin);
}

#reviews-group-wrapper .reviews-group .reviews-item .name {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
    line-height: 1.5;
}

#reviews-group-wrapper .reviews-group .reviews-item .location {
    display: block;
    width: 100%;
    text-align: left;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary);
    margin-bottom: var(--single-margin);
}

#reviews-group-wrapper .reviews-group .none {
    margin-bottom: 0;
}

@media only screen and (min-width: 40rem) {
    #reviews .container .section-wrapper h2,
    #reviews .container .section-wrapper h3,
    #reviews .container .section-wrapper p {
        text-align: center;
    }
}

@media only screen and (min-width: 64rem) {
    #reviews-group-wrapper .reviews-group {
        display: grid;
        flex-direction: row;
        flex-wrap: wrap;
        grid-template-columns: repeat(12, 1fr);
        /* flex-direction: column; */
        justify-content: center;
        align-items: stretch;
        /* width: 100%;
        gap: var(--single-margin); */
    }   

    #reviews-group-wrapper .reviews-group .reviews-item {
        grid-column: span 4;
    }
}

/* FAQ */

.faq-section .container .section-wrapper .heading {
    text-align: center;
}

.faq-group {
    /* max-width: 90%; */
    width: 100%;
    /* margin: 3.125rem auto; */
    background: var(--tertiary);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.faq-item {
    margin-bottom: 0.625rem;
}

.faq-group .none {
    margin-bottom: 0;
}

.faq-question {
    background-color: var(--secondary);
    color: var(--accent);
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 15px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between; /* Align content to left and right */
    align-items: center;
    line-height: 1.35;
}

.faq-question:hover {
    background-color: var(--quarternary);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 0.625rem;
    transition: transform 0.3s ease; /* Smooth transition for the minus sign */
}

.faq-answer {
    background-color: var(--tertiary);
    color: var(--primary);
    padding: 1rem;
    font-size: 1rem;
    display: none;  /* Hidden by default */
    /* border: 2px solid var(--primary); */
    border-radius: 15px;
    /* margin-top: 0.625rem; */
    transition: all 0.3s ease;
    line-height: 1.5;
}

.faq-answer a {
    color: var(--accent);
}

.faq-answer a:hover,
.faq-answer a:focus {
    color: var(--quinary);
}

/* When the FAQ is open, change the plus to a minus */
.faq-item.open .faq-question::after {
    content: "-";
    transform: rotate(180deg); /* Optional: smooth flip of the icon */
}

@media only screen and (min-width: 48rem) {
    .faq-group {
        width: 70%;
    }    
}

@media only screen and (min-width: 64rem) {
    .faq-group {
        width: 60%;
    }    
}

/* What We Do */

@media only screen and (min-width: 48rem) {
    #whatwedo-intro .body {
        text-align: center;
        text-wrap: balance;
    }
}

/* #whatwedo-bios .container .section-wrapper {
    max-width: 72rem;
} */

.bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-width: 43.75rem; */
    /* border-radius: 15px;
    border: 1px solid var(--primary); */
    gap: var(--single-margin);
    margin-bottom: var(--double-margin);
}

#whatwedo-bios .none {
    margin-bottom: 0;
}

.bio .bio-image {
    display: flex;
    justify-content: center;
    align-items: center;
    /* max-width: 13.125rem; */
    /* height: ; */
    /* width: ; */
    overflow: hidden;
    /* flex: 0 0 30%; */
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.bio .bio-image img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.bio .bio-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.bio .bio-text .bio-text-inner {
    display: flex;
    flex-direction: column;
}

.bio .bio-text #bio-text-name {
    margin-bottom: 0.25rem;
    line-height: 0.75;
    width: auto;
}

.bio .bio-text #bio-text-role {
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: var(--single-margin);
}

.bio .bio-text #bio-text-specialisms {
}

@media only screen and (min-width: 48rem) {
    .bio {
        flex-direction: row;
        align-items: flex-start;
    }

    /* .bio-alternate {
        flex-direction: row-reverse;
    } */

    .bio .bio-image {
        /* flex: 0 0 30%; */
        width: 30%;
    }

    .bio .bio-text {
        /* flex: 0 0 70%; */
        width: 70%;
        /* align-items: center; */
        height: 100%;
        padding-top: 0.25rem;
        /* text-align: left; */
    }

    /* .bio-alternate .bio-text {
        align-items: flex-end;
    } */
}

/* SUNBED */

#payg-table,
#courses-table,
#unlimited-table {
    width: 100%;
    max-width: 16rem;
    border-collapse: collapse;
    margin-bottom: var(--single-margin);
}

#payg-table td,
#courses-table td,
#unlimited-table td {
    text-align: left;
    padding: 5px;
    font-size: var(--body);
    color: var(--primary);
}

#sunbed-pricing .smaller {
    font-size: 1rem;
}

#sunbed-pricing h3 {
    max-width: 16rem;
    text-align: left;
    margin-bottom: 0;
}

@media only screen and (min-width: 48rem) {
    #sunbed-how-it-works .body,
    #sunbed-pricing .body,
    /* #sunbed-how-to-prep .body, */
    #sunbed-safety-guidelines .body {
        text-align: center;
        text-wrap: balance;
    }
}

ul .li-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: left;
    margin-bottom: var(--single-margin);
    gap: 1rem;
}

ul .li-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    min-width: 48px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

ul .li-icon-wrapper img {
    display: block;
    width: 32px;
    height: auto;
}

ul .li-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    text-align: left;
    gap: 0;
}

/* ABOUT */

#about-hannah .container .si-wrapper {
    flex-direction: column;
    max-width: 15rem;
    gap: var(--caption-margin);
}

#about-hannah .container .si-wrapper .caption {
    font-size: var(--caption);
}

@media only screen and (min-width: 48rem) {
    #about-hannah .container .si-wrapper {
        max-width: 20rem;
    }
}

/* CONTACT */

ul {
    margin-bottom: var(--single-margin);
    line-height: 2;
    max-width: 43.75rem;
}

ul li {
    font-size: var(--body);
}

ul li a {
    /* font-size: var(--body); */
    font-weight: 700;
}

#where .container .section-wrapper .address {
    text-align: left;
}

#where .container .section-wrapper .cta-buttons .button {
    min-width: 12rem;
}

@media only screen and (min-width: 48rem) {
    #where .container .section-wrapper .address {
        width: auto;
    }   
}

#where .container .section-wrapper h3 {
    font-weight: 700;
}

#contact-final-cta .button {
    min-width: 12rem;
}

/* PRIVACY */

#privacy-heading .container h1 {
    text-align: left;
    width: 100%;
    max-width: none;
}

#privacy-policy .body {
    text-align: left;
    text-wrap: auto;
}

/* Jump to section */

#pp-jump-to #jump-to-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
}

#pp-jump-to #jump-to-wrapper p {
    display: inline;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.5;
}

#pp-jump-to #jump-to-wrapper p a {
    display: inline;
    width: 100%;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
}

#pp-jump-to #jump-to-wrapper p a:focus,
#pp-jump-to #jump-to-wrapper p a:hover {
    color: var(--quinary);
} 

#privacy-policy .container ul {
    text-align: left;
    width: 100%;
    /* margin-bottom: var(--single-margin); */
    line-height: 1.5;
    list-style-type: disc;
    padding-left: 70px;
}

#privacy-policy .container .single {
    margin-bottom: var(--single-margin);
}

@media only screen and (min-width: 48rem) {
    #privacy-heading .container h1,
    #pp-jump-to #jump-to-wrapper p,
    #pp-jump-to #jump-to-wrapper p a,
    #privacy-policy .container h2,
    #privacy-policy .container p,
    #privacy-policy .container ul {
        width: 100%;
        max-width: 43.75rem;
    }
}

/* REFUND */

#refund-heading .container h1 {
    text-align: left;
    width: 100%;
    max-width: none;
}

#refund-policy .body {
    text-align: left;
    text-wrap: auto;
}

/* Jump to section */

#refund-jump-to #jump-to-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
}

#refund-jump-to #jump-to-wrapper p {
    display: inline;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.5;
}

#refund-jump-to #jump-to-wrapper p a {
    display: inline;
    width: 100%;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
}

#refund-jump-to #jump-to-wrapper p a:focus,
#refund-jump-to #jump-to-wrapper p a:hover {
    color: var(--quinary);
} 

#refund-policy .container ul {
    text-align: left;
    width: 100%;
    /* margin-bottom: var(--single-margin); */
    line-height: 1.5;
    list-style-type: disc;
    padding-left: 70px;
}

#refund-policy .container ul li a:hover,
#refund-policy .container ul li a:focus {
    color: var(--quarternary);
}

@media only screen and (min-width: 48rem) {
    #refund-heading .container h1,
    #refund-jump-to #jump-to-wrapper p,
    #refund-jump-to #jump-to-wrapper p a,
    #refund-policy .container h2,
    #refund-policy .container p,
    #refund-policy .container ul {
        width: 100%;
        max-width: 43.75rem;
    }

    #refund-jump-to #jump-to-wrapper p {
        text-align: center;
    }
}

/* FOOTER */

#footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    overflow: hidden;
    gap: clamp(3rem, 6vw, 4rem);
}

#footer-primary-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    /* overflow: hidden; */
    gap: var(--container-gap);
}

#hours-wrapper,
#address-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 20rem;
    overflow: hidden;
}

/* #hours-wrapper br {
    display: inline;
} */

/* #hours-wrapper .slash {
    display: none;
} */

#hours-wrapper .footer-primary-title,
#address-wrapper .footer-primary-title {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    width: 100%;
    max-width: 20rem;
    margin-bottom: var(--single-margin);
}

#hours-wrapper .body,
#address-wrapper .body {
    width: 100%;
    max-width: 20rem;
    margin-bottom: var(--double-margin);
    text-align: left;
}

#hours-wrapper .body {
    width: auto;
}

#hours-wrapper .opening-hours {
    display: grid;
    grid-template-columns: auto 1fr;
    /* row-gap: 0.25rem; */
    column-gap: 0.5rem;
}

#hours-wrapper .opening-hours div {
        display: contents;
}

#hours-wrapper .opening-hours dt {
    text-align: left;
}

#hours-wrapper .opening-hours dd {
    text-align: right;
}

/* Make the table text, separated by slashes */

/* @media only screen and (min-width: 64rem) {
    #hours-wrapper .opening-hours {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #hours-wrapper .opening-hours div {
        display: flex;
        align-items: center;
    }

    #hours-wrapper .opening-hours dt::after {
        content: "\2014";
    }

    #hours-wrapper .opening-hours div::after {
        content: "\00a0/";
    }

    #hours-wrapper .opening-hours div:last-of-type::after {
        content: "";
    }
} */

#hours-wrapper .multiple-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 20rem;
    gap: var(--single-margin);
}

#hours-wrapper .multiple-cta .button {
    min-width: 12rem;
}

/* Wrap used as there are different items on the same line */
#footer-secondary-wrapper {
   display: flex;
   flex-wrap: wrap;
   justify-content: flex-start;
   align-items: center;
   width: 100%;
   max-width: 20rem; 
   gap: 1rem;
}

#footer-secondary-wrapper i {
    font-size: 1.75rem;
}

#footer-tertiary-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    gap: 0.5rem;
    line-height: 1.5;
}

#footer-quarternary-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

#footer-policies-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    gap: 1rem;
}

#footer-policies-wrapper a {
    font-size: 0.75rem;
}

#footer-final-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 20rem; 
    gap: 1rem;
}

#footer-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
    width: 75px;
    overflow: hidden;
}

#footer-logo-wrapper img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#footer-copyright-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    overflow: hidden;
}

#footer-copyright-wrapper {
    font-size: 0.75rem;
}

@media only screen and (min-width: 40rem) and (max-width: 63.96875rem) {
    #hours-wrapper,
    #address-wrapper {
        align-items: center;
    }

    #hours-wrapper .footer-primary-title,
    #address-wrapper .footer-primary-title {
        text-align: center;
    }

    #hours-wrapper .body,
    #address-wrapper .body {
        text-align: center;
    }

    #hours-wrapper .multiple-cta {
        align-items: center;
    }

    #footer-secondary-wrapper {
        justify-content: center;
    }

    #footer-tertiary-wrapper {
        justify-content: center;
    }

    #footer-final-wrapper {
        align-items: center;
    }

    #footer-policies-wrapper {
        justify-content: center;
    }

    #footer-copyright-wrapper {
        justify-content: center;
    }
}

@media only screen and (min-width: 64rem) {
    #footer-wrapper {
        max-width: none;
    }
    
    #footer-primary-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        max-width: none;
    }
    
    #hours-wrapper,
    #address-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: none;
        flex: 1;
    }
    
    #hours-wrapper .footer-primary-title,
    #address-wrapper .footer-primary-title {
        text-align: center;
        max-width: 31.25rem;
    }
    
    #hours-wrapper .body,
    #address-wrapper .body {
        max-width: 31.25rem;
    }
    
    #hours-wrapper .body {
        width: auto;
        text-align: center;
        text-wrap: balance;
    }

    #address-wrapper .body {
        text-align: left;
        width: auto;
    }
    
    #hours-wrapper .multiple-cta {
        flex-direction: row;
        align-items: center;
        max-width: none;
    }

    #hours-wrapper br {
        display: none;
    }

    #hours-wrapper .slash {
        display: inline;
    }
    
    /* Wrap used as there are different items on the same line */
    #footer-secondary-wrapper {
       justify-content: center;
       max-width: none;
    }
    
    #footer-tertiary-wrapper {
        justify-content: center;
        max-width: 43.75rem;
    }

    #footer-policies-wrapper {
        justify-content: center;
        max-width: none;
    }
    
    #footer-final-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        max-width: 31.25rem; 
        gap: 1rem;
    }
    
    #footer-logo-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 75px;
        width: 75px;
        overflow: hidden;
    }
    
    #footer-logo-wrapper img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    #footer-copyright-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: auto;
        max-width: none;
        overflow: hidden;
    }
}