body {
    font-family: var(--font-body);
    background: var(--colour-background);
    color: var(--colour-text);

    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

a,
a:visited {
    color: var(--colour-accent);
}

summary {
    font-size: 1.1em;
}

.contactButton {
    border-radius: 100px;
    padding: 10px 25px;
    font-size: 1em;
    font-weight: bold;
    outline: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background-color: var(--colour-primary);
    color: var(--colour-text);
    white-space: nowrap;
}

.contactButton:visited {
    color: var(--colour-text);
}

.contactButton:hover {
    background-color: var(--colour-primary-lighter)
}

.hero {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding-bottom: 10px;
    background: linear-gradient(180deg, #9ed6fc 0%, rgba(158, 214, 252, 1) 50%, rgba(158, 214, 252, 1) 100%);
    mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}

.heroContainer {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

.heroImage {
    flex: 10;
    max-height: 590px;
}

.heroImage img {
    object-fit: cover;
    object-position: top left;
    filter: drop-shadow(rgba(11, 15, 17, 0.25) 5px 5px 6px);
}

.heroContent {
    padding: 25px;
    padding-right: 0;
    margin-right: -100px;
    display: flex;
    flex-direction: column;
    flex: 10;
}

.brandName {
    margin: 0 5px;
    color: #222;
}

.heroHeading {
    font-size: min(8vw, 4.5em);
    margin: 5px;
    max-width: 600px;
    font-family: var(--font-heading);
    font-weight: normal;
}

.heroSubheading {
    margin: 30px 5px;
    font-size: 2em;
    font-weight: bold;
}

.heroButton {
    font-size: 2em;
    padding: 20px 50px;
    font-weight: normal;
    width: fit-content;
    filter: drop-shadow(rgba(11, 15, 17, 0.25) 4px 6px 3px);
}



section {
    width: 750px;
    max-width: calc(100vw - 60px);
    margin: 0 30px;
}

picture {
    display: block;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centreSection {
    text-align: center;
}

.centreSection h2 {
    font-size: 1.96em;
}


.horizontalRule {
    background-color: var(--colour-accent);
    opacity: 50%;
    width: 100%;
    height: 2px;
    margin: 25px 0;
    border: 0;
}

.featureIcon {
    width: 64px;
}

.featureTitle {
    margin-top: 10px;
    margin-bottom: 10px;
}

#servicesContainer {
    height: 400px;
}

#servicesContainer ul {
    font-size: 1.1em;
}

.rightPicture {
    height: 100%;
}

.fullWidth {
    width: 100%;
    max-width: 100vw;
}

.flexRow {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px
}

.flexRowItem {
    flex: 1;
}


.servicesRightContent {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.servicesRightContent p {
    margin: 0;
}

.servicesList {
    direction: rtl;
    padding-right: 20px;
    list-style: url("/Images/Icons/Tick.svg");
}

.servicesList>li::marker {
    font-size: 1.5em;
    line-height: 0;
}

.servicesCTA {
    width: fit-content;
    align-self: flex-end;
}

.imageCard {
    position: relative;
}

.imageCardTitle {
    margin: 1px;
    font-weight: normal;
    font-size: 1.5em;
}

.imageCardPicture {
    height: 150px;
}

.shadowBig {
    color: white;
    filter: drop-shadow(4px 4px 4px black);
}

.shadowSmall {
    font-size: 1.2em;
    color: white;
    filter: drop-shadow(2px 2px 3px black);
}


#about {
    height: 300px;
}

.newcastleBackground {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */

    padding: 40px 0 70px 0;

    margin: 30px 0;
}

/* Try to look good, but not use all the data ever */
@media screen and (max-width:1500px) {
    .newcastleBackground {
        background-image: url("../Images/Newcastle/newcastle_3k.webp");
        background-attachment: fixed;
    }
}

@media screen and (max-width:1000px) {
    .newcastleBackground {
        background-image: url("../Images/Newcastle/newcastle_2k.webp");
        background-attachment: fixed;
    }
}

@media screen and (max-width:600px) {
    .newcastleBackground {
        background-image: url("../Images/Newcastle/newcastle_phone_2k.webp");
        background-attachment: unset;
    }
}

@media screen and (max-width:400px) {
    .newcastleBackground {
        background-image: url("../Images/Newcastle/newcastle_phone_1k.webp");
        background-attachment: unset;
    }
}

@media screen and (max-width:250px) {
    .newcastleBackground {
        background-image: url("../Images/Newcastle/newcastle_phone_600.webp");
        background-attachment: unset;
    }
}

.newcastleBackground>p,
.newcastleBackground>h2 {
    margin: 20px;
}

#faq {
    height: 300px;
}

.detailsContainer {
    overflow-y: auto;
    height: calc(100% - 65px);
}

#contact {
    margin: 0;
    width: 100%;
    max-width: none;
    background: linear-gradient(180deg, #9ed6fc 0%, #96d5ff 100%);
    mask-image: linear-gradient(to top, black 90%, transparent 100%);
    padding-top: 40px;
    padding-bottom: 50px;
}

.ctaButton {
    font-size: 1.6em;
    margin: 30px;
    white-space: nowrap;
    width: fit-content;
    filter: drop-shadow(rgba(11, 15, 17, 0.25) 4px 6px 3px);
}

.contactContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 600px;
    width: calc(100% - 30px);
    padding: 0 15px;
}

footer {
    margin: 0;
    text-align: center;
    background-color: #96d5ff;
    padding: 10px 0;
}


@media screen and (max-width:600px) {
    .heroContainer {
        flex-direction: column;
    }

    .heroContent {
        max-width: calc(100% - 40px);
        margin-bottom: -10px;
    }

    .heroHeading {
        font-size: min(11vw, 4.5em);
    }

    .heroSubheading {
        font-size: min(8vw, 2em);
        margin-bottom: 20px;
    }

    .heroImage {
        position: initial;
        z-index: -1;
    }

    .heroImage img {
        object-fit: contain;
        object-position: center center;
    }

    .heroButton {
        padding: 10px 25px;
        font-size: min(8vw, 2em);
    }

    .imageCardTitle {
        /* this weird size prevents medical centers spanning 2 lines */
        font-size: 1.215em;
    }
}

@media screen and (max-width: 500px) {
    .flexRow {
        flex-direction: column;
    }

    #servicesContainer {
        flex-direction: column-reverse;
        height: auto;
    }

    .servicesRightContent {
        text-align: left;
    }

    .servicesList {
        direction: ltr;
    }


    .servicesCTA {
        align-self: unset;
    }

    #faq {
        height: auto;
    }

    .ctaButton {
        font-size: 6vw;
    }
}