@import url(https://fonts.bunny.net/css?family=lato:300,300i,400,700|pt-sans:400,700);

:root {
    /* Variables */
    --borderColor: #eee;
    --darkColor: #1d1a31;
    --lightColor: #ffffff;
    --greyColor: #f7f7f7;
    --darkGreyColor: #979797;
    --bodyText: "Lato", sans-serif;
    --headerText: sans-serif;
    --textColor: #000000;
    --buttonColor: #0092c5;
    --buttonDisabledColor: #fcf5ed;
    --lightOrange: #fcf5ed;
    --darkOrange: #d70014;
    --orange: #0092c5;
    --errorColorLight: pink;
    --errorColor: red;
    --headerBackground: #ffffff;
    --textColorWhite: #ffffff;
    --blockOne: #f2efea;
    --blockTwo: #dff4f3;
    --blockThree: #ffffff;
}

/* RESET! */

* {
    background: none repeat scroll 0 0 transparent;
    border: medium none;
    border-spacing: 0;
    font-weight: normal;
    line-height: 1.4rem;
    list-style: none outside none;
    margin: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
    text-indent: 0;
}

/* Html */

html {
    background-color: var(--backgroundColor);
    color: var(--textColor);
    font-family: var(--bodyText);
    margin: 0;
    padding: 0;
    padding-bottom: 6rem;
    height: 100vh;
}

body {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

p,
li {
    font-size: 1rem;
}

header,
footer {
    background-color: var(--headerBackground);
    color: var(--textColor);
    justify-content: space-between;
    padding: 1rem;
}

footer {
    background-color: var(--orange);
    color: var(--textColorWhite);
}

header,
footer .container {
    display: flex;
    max-width: 70rem;
    flex: 1;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    align-self: center;
    margin-top: 1rem;
}
footer {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}
footer .container {
    flex-direction: column;
}
footer p {
    max-width: 50vw;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
    display: none;
}
header a {
    color: var(--textColor);
}
header p,
header div {
    font-size: 1.2rem;
}
header .logo {
    width: 300px;
}
header .logo img {
    width: 100%;
}
header .tagline {
    font-family: var(--bodyText);
    font-size: 1.3rem;
    line-height: 1.5rem;
    padding-top: 0.5rem;
    /*border-top: 1px solid grey;*/
    margin-top: 0.5rem;
}
header .phone {
    font-family: var(--bodyText);
    font-size: 2.25rem;
    line-height: 2.5rem;
}
header .email {
    margin-top: 0.5rem;
}

.rating {
    background-image: url(../images/rating.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 2.5rem;
    text-align: right;
    color: var(--textColorWhite);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    box-sizing: border-box;
    font-size: 1.2rem;
}

header,
div.row,
form section div.row,
form section div.questions.row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
div.row,
form section div.row,
form section div.questions.row {
    gap: 0.5rem;
}
div.column {
    display: flex;
    flex-direction: column;
}
.space-between {
    justify-content: space-between;
}
.center {
    justify-content: center;
}
.right {
    align-items: flex-end;
    align-self: flex-end;
}
.right div,
.right p {
    align-self: flex-end;
}
nav {
    font-family: "PT Sans";
    font-size: 1.1rem;
    padding: 0;
    border-bottom: 1px solid var(--darkOrange);
    display: flex;
    display: flex;
    flex: 1;
    justify-content: center;
}
nav li {
    display: inline-block;
    margin: 0;
}
nav li.admin {
    float: right;
}
nav ul {
    margin-bottom: 0;
    margin-left: 0.25rem;
    display: flex;
    width: 100%;
    max-width: 70rem;
    flex: 1;
    align-self: center;
}
nav a {
    font-weight: 700;
    color: var(--textColor);
    display: inline-block;
    padding: 0.8rem;
}
nav a:hover {
    text-decoration: none;
    background-color: var(--lightOrange);
}

h1 {
    font-size: 2rem;
    line-height: 2.2rem;
    margin-bottom: 2rem;
}

section:first-of-tyype > h1:first-of-type {
    margin-top: 1rem;
}

p.subtitle {
    margin-top: -1.5rem;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8rem;
}

h2 {
    font-weight: 400;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    margin-top: 1rem;
    line-height: 1.8rem;
}
h2.home {
    margin-top: 3rem;
}

h3 {
    padding-bottom: 0.5rem;
    padding-top: 1rem;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

p,
ul {
    font-weight: 300;
    margin-bottom: 1rem;
}
ul {
    margin-left: 0.75rem;
}
li {
    margin-left: 1rem;
    list-style: disc;
    font-weight: 300;
}
li::marker {
    color: var(--darkOrange);
    font-size: 1.8rem;
}

input,
textarea,
select {
    font-size: 1rem;
}

input,
textarea,
select {
    font-weight: 300;
    min-width: 0; /* Stops right-hand elements in this design exceeding their bounding element and pushing into label */
}
select {
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}
label {
    font-weight: 300;
}

/* main {
    padding-top: 1rem;
} */

main > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

section {
    max-width: 70rem;
    margin: auto;
    margin-top: 1rem;
    box-sizing: border-box;
    padding: 1rem;
}
section.wide {
    max-width: 80rem;
}
section.detail {
    max-width: 50rem;
}
section.detail table {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
section.detail table tr td {
    padding: 0.2rem 0.5rem;
    border: 1px solid #eee;
    vertical-align: top;
    font-weight: 200;
}

section.detail table tr th,
section.detail table tr td:not(:first-of-type) {
    text-align: center;
}

div.image-left {
    display: flex;
    gap: 1.5rem;
}
section.detail div.image-left img {
    height: 8rem;
}

ul.emphasis {
    margin-bottom: 1rem;
}
ul.emphasis li {
    font-size: 1.3rem;
    line-height: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.3rem;
    list-style: none;
    margin-left: 0;
}
ul.emphasis li::before {
    content: url(../images/tickbul.png);
    vertical-align: middle;
    margin-right: 0.5rem;
}

.teaser {
    padding: 1rem 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.teaser img {
    width: 150px;
    margin-right: 2rem;
}
.teaser p {
    font-family: "PT Sans";
    font-size: 1.1rem;
    line-height: 1.8rem;
    max-width: 35rem;
}
.teaser h3 {
    padding-top: 0;
}

.block {
    margin-top: 1rem;
    padding: 4rem 4rem 3rem 4rem;
    border-radius: 8px;
}
.block.form {
    background-color: #f8f6f5;
    padding: 2rem;
    margin-top: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.block.form:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 4px 16px var(--lightOrange);*/
}
.block.form p {
    padding: 0.5rem;
    margin-bottom: 0;
}
.block.one {
    background-color: var(--blockOne);
}
.block.two {
    background-color: var(--blockTwo);
}
.block.three,
.block.four {
    background-color: var(--blockThree);
    padding: 0;
}
.block h2 {
    margin-bottom: 1rem;
}
.block.three h2 {
    color: var(--darkOrange);
}
.block p,
.block ul {
    display: block;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.5rem;
}
.block ul li {
    font-size: 1.2rem;
    margin-left: 1.6rem;
}

.break {
    background-color: var(--orange);
    max-height: 10rem;
    display: flex;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.break img {
    max-width: 60rem;
    overflow: hidden;
    margin: auto;
}

/* Enquiry form styling */

form div input[type="text"],
form div input[type="password"],
form div input[type="email"],
form div input[type="phone"],
form div textarea {
    flex: 1;
    border: 1px solid #f8f6f5;
    padding: 0.3rem;
    align-self: center;
    background-color: var(--lightColor);
    margin: 0.3rem;
    min-width: 18rem;
}
form div input[type="checkbox"] {
    align-self: center;
}
form div input:disabled,
form div textarea:disabled {
    border: none;
}
form div textarea {
    align-self: stretch;
    /* min-width: 25rem; */
    min-height: 6.5rem;
    padding: 0.5rem;
}
/*form .row.header {
    margin-bottom: 2rem;
}*/
form .set div {
    margin: 0.3rem;
}
/* form .set p {
    margin-bottom: 0.3rem;
} */
form .set > .row {
    gap: 0.8rem;
}
form .textarea {
    display: flex;
}
form div.select {
    position: relative;
    border-radius: 0.25em;
    padding: 0.2em 0.5em;
    cursor: pointer;
    line-height: 1.2;
    background-color: #fff;
    /* background-image: linear-gradient(to top, #f9f9f9, #fff 33%); */
    height: 1.5rem;
    /* width: 3rem !important; */
    flex-direction: row !important;
    /* font-weight: 400; */
    margin: 0.3rem;
    border: 1px solid var(--greyColor);
    font-size: 1.1rem;
    z-index: 0;
    width: fit-content;
}
form div.select::after {
    content: "";
    justify-self: end;
    width: 0.8em;
    height: 0.5em;
    background-color: var(--darkGreyColor);
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    position: absolute;
    top: 0.8rem;
    right: 0.5rem;
    pointer-events: none;
}
form div.select select {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0.1em 1em 0.1em 0.1em;
    margin: 0;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: inherit;
    line-height: inherit;
    z-index: 1;
    outline: none;
    /* font-weight: 400; */
    width: 100%;
}
span.button,
a.button,
input.button,
button {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 0.3rem;
    font-weight: 400;
    background-color: var(--greyColor);
    color: var(--textColor);
    margin-right: 0.3rem;
    cursor: pointer;
}
.buttons.right {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    padding-bottom: 0;
    margin-top: 1rem;
}
.buttons.right button {
    margin-right: 0rem;
    margin-left: 0.3rem;
}
span.button,
a.button,
input.button,
button:hover {
    background-color: var(--darkGreyColor);
    color: var(--lightColor);
}
span.button.primary,
a.button.primary,
input.button.primary,
button.primary {
    background-color: var(--buttonColor);
    color: var(--lightColor);
}
span.button.primary:hover,
a.button.primary:hover,
input.button.primary:hover,
button.primary:hover {
    background-color: var(--darkOrange);
}

p.error {
    margin: 1rem;
    color: var(--errorColor);
}

input.error,
textarea.error {
    border: 1px solid var(--errorColor) !important;
}

/* .submission {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1rem;
}

.submission p {
    margin-left: .5rem;
    margin-bottom: 0.5rem;
} */

footer {
    margin-top: 2rem;
}

@media screen and (max-width: 800px) {
    header .logo {
        width: 150px;
    }
    header h1 {
        margin-left: 0;
        font-size: 1.2rem;
    }
    header .tagline {
        font-size: 1rem;
        width: 10rem;
        margin-top: 0rem;
    }
    header .phone {
        font-size: 1.5rem;
    }
    header div,
    header p {
        font-size: 1rem;
    }
    form .row.header {
        margin-bottom: 0;
    }
    div.row.collapse {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    header {
        flex-direction: column;
    }
    header h1 {
        margin-bottom: 0;
    }
    p.subtitle {
        margin-top: 0;
    }
    .rating {
        font-size: 1rem;
    }
    nav ul {
        margin-left: 0.25rem;
    }
    nav li {
        margin-bottom: 0.3rem;
    }
    nav a {
        padding: 0.5rem;
    }
    h1 {
        margin-top: 0;
    }
    .teaser img {
        margin-right: 1rem;
    }
    .teaser p {
        font-size: 1.1rem;
        line-height: 1.5rem;
    }
    .block {
        padding: 2rem 2rem 1rem 2rem;
    }
    ul.emphasis li {
        font-size: 1.3rem;
        line-height: 1.5rem;
        padding-left: 2rem;
    }
    ul.emphasis li::before {
        margin-left: -2.1rem;
    }
    h1 {
        font-size: 1.8rem;
        line-height: 2rem;
        margin-bottom: 1rem;
    }
    div.row.address {
        flex-direction: column;
    }
}

.searchbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.searchbar .button-container {
    display: flex;
    justify-content: flex-start;
}

.searchbar .filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.searchbar .filters > div {
    flex: 1;
}

.searchbar .filters > div:last-child {
    flex: 0 0 auto;
}

form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

form .form-group.row {
    flex-direction: row;
}

form .form-group label {
    font-weight: 400;
    margin-bottom: 0.2rem;
}

a.button:disabled,
input.button:disabled,
button:disabled,
a.button.disabled,
input.button.disabled,
button.disabled {
    color: var(--darkGreyColor);
    background-color: var(--greyColor);
}
a.button.primary.disabled,
a.button.primary:disabled,
input.button.primary.disabled,
input.button.primary:disabled,
button.primary.disabled,
button.primary:disabled {
    background-color: var(--buttonDisabledColor);
}

.error-content {
    min-height: 50vh;
}

/* ALTCHA Widget Styling */
.altcha-widget {
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.altcha-widget iframe {
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ALTCHA error styling */
input.error[data-altcha-error="true"],
textarea.error[data-altcha-error="true"] {
    border-color: var(--errorColor);
    background-color: var(--errorColorLight);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.grid.small {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.business-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px var(--lightOrange);
}

.business-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    flex: 1;
}

.top {
    flex: 1;
}

.business-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--backgroundColor);
    display: flex;
    align-items: center;
    justify-content: center;
}
.small .business-card-image {
    height: 100px;
}

.business-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.business-card:hover .business-card-image img {
    transform: scale(1.05);
}

.business-card h3 {
    color: var(--darkOrange);
    margin: 0.5rem 2rem 0rem 2rem;
    font-size: 1.3rem;
    line-height: 1.4rem;
}
.small .business-card h3 {
    font-size: 1rem;
    margin: 0rem 1rem 1rem 1rem;
}

.business-card p {
    color: var(--textColor);
    margin: 0 2rem 0.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.business-card .button {
    margin: 2rem;
    text-decoration: none;
    display: inline-block;
}

.hero-text {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 60rem;
    line-height: 1.6;
    padding: 1rem;
    background-color: var(--blockTwo);
    margin: 0;
}

div.drilldown {
    padding-top: 1rem;
    margin-left: 1rem;
    top: 0rem;
    background-color: var(--white);
    flex: 1;
    display: flex;
    padding-right: 1rem;
    z-index: 400;
}
div.drilldown a {
    color: var(--textColor);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease;
}
div.drilldown a::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    margin-left: 0.5rem;
    /*transition: transform 0.2s ease;*/
}
div.drilldown ul {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-left: 0;
}
div.drilldown ul li {
    list-style: none;
    margin-left: 0;
}
figure {
    margin-bottom: 1rem;
}
figcaption {
    font-size: 0.9rem;
    font-style: italic;
}
