/* ==========================================================================
   Bournemouth White Lining
   Recreates the look of the previous Divi build without Divi's CSS.
   Breakpoints match Divi: tablet <= 980px, phone <= 767px.
   ========================================================================== */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-italic.woff2") format("woff2");
}
/* Arial scaled to Open Sans's metrics: the page keeps its layout while the web font loads. */
@font-face {
    font-family: "Open Sans Fallback";
    src: local("Arial"), local("Helvetica"), local("Liberation Sans");
    size-adjust: 105.8%;
    ascent-override: 101%;
    descent-override: 27.7%;
    line-gap-override: 0%;
}

:root {
    /* House layout standard: content spans 80% of the viewport, no max-width. */
    --site-content-width: 80%;
    --site-mobile-gutter: 20px;

    --font: "Open Sans", "Open Sans Fallback", Arial, sans-serif;
    --text: #666;
    --heading: #333;
    --link: #2ea3f2;
    --brand: #a40a1e;          /* headings, post accents */
    --accent: #8c0000;         /* menu highlight, dropdown rule, CTA bars */
    --bright-red: #d90100;
    --charcoal: #1f2022;
    --grey-bg: #f4f4f4;
    --border: #d9d9d9;
    --topbar-bg: #e8e8e8;
    --topbar-text: #4c4c4c;
    --footer-bg: #222;

    --header-height: 89px;
    --header-height-scrolled: 78px;
    --module-gap: max(30px, 2.2vw);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
.text img, .slide__content img { vertical-align: baseline; }  /* inline images in copy sit on the text baseline, as in Divi */

a { color: var(--link); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding-bottom: 10px;
    color: var(--heading);
    font-weight: 400;
    line-height: 1em;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }

strong, b { font-weight: bolder; }  /* browser default, as on the old site: bold text inside a bold heading goes a step heavier */

button, input, select, textarea { font: inherit; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute; left: 10px; top: -60px; z-index: 1000;
    padding: 10px 16px; background: #fff; color: #333; font-weight: 600;
}
.skip-link:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------- Shared container (the one place the 80% width rule lives) ---------- */

.site-container {
    width: var(--site-content-width);
    max-width: none;
    margin-inline: auto;
}

@media (max-width: 767px) {
    .site-container { width: calc(100% - (var(--site-mobile-gutter) * 2)); }
}

/* ---------- Device visibility ---------- */

@media (min-width: 981px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 980px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-phone { display: none !important; } }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 0 7px rgba(0, 0, 0, .1); }

.top-bar {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.top-bar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 13px;
    padding: .75em 0;
}
.top-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding-block: 6px;         /* a 24px tap target; the negative margin keeps the bar's height */
    margin-block: -6px;
    color: inherit;
}
.top-bar__item svg { font-size: 11px; }

.social {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.social a { display: block; color: inherit; line-height: 1; transition: opacity .3s; }
.social a:hover { opacity: .7; }
.social svg { display: block; }
.social--top { margin-left: 7px; font-size: 14px; }
.social--top a { padding: 5px; margin: -5px; }  /* 24px tap target, icons stay put */

.main-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 30px;
    transition: min-height .4s;
}
.site-header.is-scrolled .main-header__inner { min-height: var(--header-height-scrolled); }

.logo { display: block; flex: none; line-height: 0; }
.logo img {
    display: block;
    width: auto;
    max-height: calc(var(--header-height) * .6);
    transition: max-height .4s;
}
.site-header.is-scrolled .logo img { max-height: calc(var(--header-height-scrolled) * .6); }

/* Desktop menu */
.menu, .menu__sub { margin: 0; padding: 0; list-style: none; }

.primary-nav .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.primary-nav .menu > .menu__item {
    position: relative;
    padding-right: 22px;
    font-size: 13px;
}
.primary-nav .menu > .menu__item:last-child { padding-right: 0; }
.primary-nav a {
    display: block;
    color: rgba(0, 0, 0, .6);
    font-size: 12px;
    font-weight: 600;
    line-height: 1em;
    transition: opacity .4s, color .4s;
}
.primary-nav .menu > .menu__item > a { padding: 33px 0; }
.site-header.is-scrolled .primary-nav .menu > .menu__item > a { padding: 27.5px 0; }
.primary-nav a:hover { opacity: .7; }
.primary-nav .is-current > a { color: var(--accent); }

.menu__item--parent > a { padding-right: 20px !important; position: relative; }
.menu__item--parent > a::after {
    content: "";
    position: absolute;
    right: 3px;
    top: calc(50% - 5px);
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.menu__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 240px;
    padding: 20px 0;
    background: #fff;
    border-top: 3px solid var(--accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    text-align: left;
}
/* Hover opens it only with a mouse: iOS would otherwise swallow the first tap. On touch screens
   site.js opens it on the first tap (.is-open) and follows the link on the second. */
@media (hover: hover) {
    .menu__item--parent:hover > .menu__sub { opacity: 1; visibility: visible; }
}
.menu__item--parent:focus-within > .menu__sub,
.menu__item--parent.is-open > .menu__sub { opacity: 1; visibility: visible; }
.menu__sub .menu__item { padding: 0 20px; }
.menu__sub a { padding: 6px 20px; width: 200px; line-height: 2em; }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    align-items: center;
    padding: 11px 6px;          /* a 44px tap target around the 32x22 icon, which stays where it was */
    margin: -11px -6px;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--accent);
}
.nav-toggle__label {  /* read out by screen readers, not shown */
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}
.nav-toggle__bars {
    position: relative;
    display: block;
    width: 32px; height: 22px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
    content: "";
    position: absolute;
    left: 4px; right: 4px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s, opacity .25s;
}
.nav-toggle__bars::before { top: 2px; }
.nav-toggle__bars span { top: 10px; }
.nav-toggle__bars::after { top: 18px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
    .site-header { position: relative; }
    .top-bar__inner { justify-content: center; flex-wrap: wrap; row-gap: 8px; }
    .social--top { display: none; }

    .main-header__inner { position: static; min-height: 80px; }
    .logo img { max-height: 48px; }
    .nav-toggle { display: inline-flex; }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 5%;
        background: #fff;
        border-top: 3px solid var(--accent);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    }
    .primary-nav.is-open { display: block; }
    .primary-nav .menu { display: block; }
    .primary-nav .menu > .menu__item { padding: 0; font-size: 14px; }
    .primary-nav .menu > .menu__item > a,
    .primary-nav a {
        padding: 10px 5% !important;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, .03);
    }
    .menu__item--parent > a::after { display: none; }
    .menu__sub {
        position: static;
        width: auto;
        padding: 0 0 0 5%;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }
    .menu__sub .menu__item { padding: 0; }
    .menu__sub a { width: auto; }
}

/* ==========================================================================
   Layout: sections, rows, columns (Divi's grid maths)
   ========================================================================== */

.section {
    position: relative;
    padding-block: var(--pad-top, 4vw) var(--pad-bottom, 4vw);
    background-color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.section--bg { background-image: var(--bg); }
@media (max-width: 767px) { .section--bg { background-image: var(--bg-m, var(--bg)); } }
.section--parallax { background-attachment: fixed; }
.section--fullwidth { padding-block: var(--pad-top, 0px) var(--pad-bottom, 0px); }

.row {
    position: relative;
    display: flex;
    align-items: flex-start;
    column-gap: var(--gutter);
    padding-block: var(--row-pad-top, 2vw) var(--row-pad-bottom, 2vw);
    --gutter: 5.5%;
}
.row--g1 { --gutter: 0%; }
.row--g2 { --gutter: 3%; }
.row--g3 { --gutter: 5.5%; }
.row--g4 { --gutter: 8%; }
.row--equal { align-items: stretch; }
.row--inner { padding-block: var(--row-pad-top, 0px) var(--row-pad-bottom, 0px); width: 100%; }

.col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--module-gap);
    flex: none;
    width: calc(var(--span, 1) * (100% + var(--gutter)) - var(--gutter));
    min-width: 0;
    background-position: center;
    background-size: cover;
}
.col > .module { flex: none; }

/* Tablet and phone spacing: Divi's defaults (sections 50px, rows 30px), a desktop value that
   applied to every device, or a per-device value (--*-t tablet, --*-p phone) from the generator. */
@media (max-width: 980px) {
    .section { padding-block: var(--pad-top-t, var(--pad-top, 50px)) var(--pad-bottom-t, var(--pad-bottom, 50px)); }
    .section--fullwidth { padding-block: var(--pad-top-t, var(--pad-top, 0px)) var(--pad-bottom-t, var(--pad-bottom, 0px)); }
    .section--parallax { background-attachment: scroll; }
    .row { flex-wrap: wrap; row-gap: 30px; padding-block: var(--row-pad-top-t, var(--row-pad-top, 30px)) var(--row-pad-bottom-t, var(--row-pad-bottom, 30px)); }
    .row--inner { padding-block: var(--row-pad-top-t, var(--row-pad-top, 0px)) var(--row-pad-bottom-t, var(--row-pad-bottom, 0px)); }
    .col { width: 100%; }
    .row--4col > .col { width: calc(50% - var(--gutter) / 2); }  /* four-column rows go two across */
}
@media (max-width: 479px) {
    .row--4col > .col { width: 100%; }
}
@media (max-width: 767px) {
    .section { padding-block: var(--pad-top-p, var(--pad-top-t, var(--pad-top, 50px))) var(--pad-bottom-p, var(--pad-bottom-t, var(--pad-bottom, 50px))); }
    .section--fullwidth { padding-block: var(--pad-top-p, var(--pad-top-t, var(--pad-top, 0px))) var(--pad-bottom-p, var(--pad-bottom-t, var(--pad-bottom, 0px))); }
    .row { padding-block: var(--row-pad-top-p, var(--row-pad-top-t, var(--row-pad-top, 30px))) var(--row-pad-bottom-p, var(--row-pad-bottom-t, var(--row-pad-bottom, 30px))); }
    .row--inner { padding-block: var(--row-pad-top-p, var(--row-pad-top-t, var(--row-pad-top, 0px))) var(--row-pad-bottom-p, var(--row-pad-bottom-t, var(--row-pad-bottom, 0px))); }
}

/* Alignment helpers used by text, images and buttons */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }
@media (max-width: 980px) {
    .align-tablet-left { text-align: left; }
    .align-tablet-center { text-align: center; }
    .align-tablet-right { text-align: right; }
}
@media (max-width: 767px) {
    .align-phone-left { text-align: left; }
    .align-phone-center { text-align: center; }
    .align-phone-right { text-align: right; }
}

/* ==========================================================================
   Modules
   ========================================================================== */

.module { position: relative; }
/* As Divi's modules: a word too long for its box breaks instead of spilling out (e.g. slide titles on phones). */
.module, .text, .slide__body, .archive-post, .widget { overflow-wrap: break-word; }

/* ---------- Text ---------- */

.text { overflow-wrap: break-word; }
.text ul {
    list-style: disc;
    margin: 0;
    padding: 0 0 23px 1em;
    line-height: 26px;
}
.text ol {
    list-style: decimal;
    list-style-position: inside;
    margin: 0;
    padding: 0 0 23px;
    line-height: 26px;
}
.text li ul, .text li ol { padding: 2px 0 2px 20px; }
.text ul:last-child, .text ol:last-child { padding-bottom: 0; }
.text blockquote {
    margin: 20px 0 30px;
    padding-left: 20px;
    border-left: 5px solid var(--link);
    font-style: italic;
}
.text blockquote p:last-child { padding-bottom: 0; }
.text em, .text i { font-style: italic; }
.text hr { border: 0; border-top: 1px solid #ddd; margin: 1em 0; }
.text table {
    width: 100%;
    margin: 0 0 24px;
    border: 1px solid #eee;
    border-collapse: collapse;
    text-align: left;
}
.text th, .text td { padding: 7px 12px; border-top: 1px solid #eee; }
.text th { color: #555; font-weight: 700; }
/* Inline padding: text links get a 24px tap target (e.g. a post's list of contents), same layout.
   Zero specificity, so links styled as blocks or buttons keep their own padding. */
:where(.text p, .text li, .text td) a { padding-block: 3px; }
/* Phones: a layout table (no header cells, e.g. the homepage's list of services) is too wide in three
   columns, so its cells flow into two. */
@media (max-width: 767px) {
    .text table:not(:has(th)), .text table:not(:has(th)) tbody { display: block; }
    .text table:not(:has(th)) tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .text table:not(:has(th)) tr { display: contents; }
    .text table:not(:has(th)) td { display: block; padding-inline: 8px; }
}
.text iframe { display: block; }
.text .alignleft { float: left; margin: 0 15px 15px 0; }
.text .alignright { float: right; margin: 0 0 15px 15px; }
.text .aligncenter { display: block; margin-inline: auto; clear: both; }
.text::after { content: ""; display: table; clear: both; }

.text--dark, .text--dark h1, .text--dark h2, .text--dark h3, .text--dark h4, .text--dark h5, .text--dark h6 { color: #fff; }

/* ---------- Image ---------- */

.image { margin: 0; line-height: 0; }
.image img { display: inline-block; max-width: 100%; }
.image--full img { width: 100%; }
.image a { display: inline-block; max-width: 100%; }

/* ---------- Button ---------- */

.btn {
    display: inline-block;
    padding: .3em 1em;
    font-size: var(--btn-size, 20px);
    font-weight: var(--btn-weight, 400);
    line-height: 1.7em;
    color: var(--btn-color, #fff);
    background: var(--btn-bg, var(--charcoal));
    border: var(--btn-border, 0 solid transparent);
    border-radius: var(--btn-radius, 3px);
    transition: filter .3s, background-color .3s;
}
.btn:hover { filter: brightness(1.3); }
/* A phone number never breaks over two lines. In a narrow column (a quarter column on 981-1100px
   screens) the side padding gives way instead. */
.btn--nowrap { white-space: nowrap; }
.button-wrap:has(> .btn--nowrap) { container-type: inline-size; }
@container (max-width: 180px) {
    .btn--nowrap { padding-inline: .6em; }
}

/* ---------- Gallery ---------- */

.gallery { container-type: inline-size; }
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols, 4), minmax(0, 1fr));
    gap: 5.5cqi;               /* Divi's 5.5% gutter, measured against the gallery width */
}
.gallery[data-per-page] .gallery__grid { margin-bottom: 5.5cqi; }  /* room above the page links; none under a single page */
.gallery__item { margin: 0; }
.gallery__item[hidden] { display: none; }
.gallery__item a { position: relative; display: block; overflow: hidden; }
.gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 284;
    object-fit: cover;
}
.gallery__zoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #e5e5e5;
    color: var(--accent);
    font-size: 32px;
    opacity: 0;
    transition: opacity .3s;
}
.gallery__item a:hover .gallery__zoom,
.gallery__item a:focus-visible .gallery__zoom { opacity: 1; }
.gallery__item figcaption { padding-top: 8px; font-weight: 600; }
.gallery__pages {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 23px 0 22px;
    border-top: 1px solid #e2e2e2;
    font-size: 16px;
}
.gallery__pages button {
    padding: 8px;               /* a 24x43px tap target; the margin keeps the old spacing */
    margin: -8px -4px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.gallery__pages button[aria-current="true"] { color: var(--link); }
.gallery--dark { color: #fff; }
.gallery--on-dark .gallery__pages button:not([aria-current="true"]) { color: #999; }  /* 6:1 on the dark band */

/* Divi's gallery below desktop: 3 / 2 / 1 columns, a wider row gap, and the same space kept
   under the last row (with or without page links). Single-column phones show the whole photo. */
@media (max-width: 980px) {
    .gallery__grid,
    .gallery[data-per-page] .gallery__grid { grid-template-columns: repeat(min(var(--gallery-cols, 4), 3), minmax(0, 1fr)); row-gap: 7.5cqi; margin-bottom: 7.5cqi; }
}
@media (max-width: 767px) {
    .gallery__grid,
    .gallery[data-per-page] .gallery__grid { grid-template-columns: repeat(min(var(--gallery-cols, 4), 2), minmax(0, 1fr)); row-gap: 9.5cqi; margin-bottom: 9.5cqi; }
}
@media (max-width: 479px) {
    .gallery__grid,
    .gallery[data-per-page] .gallery__grid { grid-template-columns: minmax(0, 1fr); row-gap: 11.5cqi; margin-bottom: 11.5cqi; }
    .gallery__item img { aspect-ratio: auto; }
}

/* Lightbox (built by site.js) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 40px 60px;
    background: rgba(11, 11, 11, .8);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.lightbox__caption { color: #f3f3f3; padding-top: 8px; }
.lightbox button {
    position: absolute;
    padding: 8px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 40px;
    line-height: 0;
    cursor: pointer;
    opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lightbox__close {
    top: 5px; right: 5px;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0 !important;
    font-size: 30px !important;
}
.lightbox__prev { left: 5px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 5px; top: 50%; transform: translateY(-50%); }
.lightbox { touch-action: pan-y pinch-zoom; }  /* sideways swipes go to site.js */
/* Phones: the photo uses the full width and the arrows sit over its edges. */
@media (max-width: 767px) {
    .lightbox { padding: 60px 10px; }
    .lightbox__prev, .lightbox__next { filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
}

/* ---------- Slider ---------- */

.slider { position: relative; overflow: hidden; touch-action: pan-y; }  /* sideways swipes go to site.js */
.slider__track { display: grid; }
.slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    padding: 0 6%;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    min-height: var(--slide-min-h, 0px);
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}
.slide.is-active,
.slider:not(.is-ready) .slide:first-child { opacity: 1; visibility: visible; }
/* Each slide's photo (see x-slide): the first with the page, the others once site.js marks them
   "is-seen" (showing, or next), so six photos don't all download at once. */
.slide:first-child, .slide.is-seen { background-image: var(--slide-bg, none); }
@media (max-width: 767px) {
    .slide:first-child, .slide.is-seen { background-image: var(--slide-bg-m, var(--slide-bg, none)); }
}
.slide__body { width: 100%; padding: var(--slide-pad, 16% 8%); }
.slide__title,
.slide .slide__title {
    padding-bottom: 10px;
    font-size: 46px;
    font-weight: 400;
    line-height: 1em;
    color: inherit;
}
.slide__content { font-size: 16px; line-height: 1.7; }
/* Divi's slider type below desktop: h2 titles 26px on tablet and 20px on phones (h1 titles keep
   their size), all titles weight 500; copy 13px, then 14px. */
@media (max-width: 980px) {
    .slide .slide__title { font-weight: 500; }
    .slide h2.slide__title { font-size: 26px; }
    .slide__content { font-size: 13px; line-height: 23.8px; }
}

/* Divi's map module heights below desktop (embedded maps keep their own size). */
@media (max-width: 980px) { .map--module iframe { height: 350px; } }
@media (max-width: 767px) { .map--module iframe { height: 220px; } }
@media (max-width: 479px) { .map--module iframe { height: 200px; } }
.slide__content h1, .slide__content h2, .slide__content h3, .slide__content h4 { color: inherit; }
.slide--dark { color: #fff; }
.slide--dark .slide__title, .slide--dark .slide__content { text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
/* The old "LEARN MORE" / "CONTACT US" button images (114x42 PNGs) as real buttons, same size and
   look. overflow:hidden puts the baseline at the bottom edge, as it was for the image. */
.btn-legacy {
    display: inline-block;
    overflow: hidden;
    width: 114px; height: 42px;
    border-radius: 4px;
    background: #8c0000;
    color: #fff;
    font: 700 14px/42px Arial, "Helvetica Neue", Helvetica, sans-serif;
    text-align: center;
    white-space: nowrap;
}
.btn-legacy--line {
    width: 111px; height: 43px;
    border: 2px solid #fff;
    background: transparent;
    line-height: 39px;
}
.btn--slide {
    margin-top: 20px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 48px;
    line-height: 0;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .3s, left .3s, right .3s;
}
.slider__arrow--prev { left: -22px; }
.slider__arrow--next { right: -22px; }
.slider:hover .slider__arrow,
.slider__arrow:focus-visible { opacity: 1; }
.slider:hover .slider__arrow--prev { left: 22px; }
.slider:hover .slider__arrow--next { right: 22px; }
.slider__dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 17px;
}
/* Each dot is a 24x31px tap target; the 7px dot is drawn inside. */
.slider__dots button {
    position: relative;
    width: 24px; height: 31px;
    margin: -12px -8.5px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.slider__dots button::before {
    content: "";
    position: absolute;
    inset: 12px 8.5px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .5);
}
.slider__dots button[aria-current="true"]::before { background: #fff; }

@media (max-width: 767px) {
    .slide__body { padding-inline: 8%; }  /* Divi: 8% on phones, even where desktop padding was custom */
    /* Big titles (h1s, the homepage's project names) shrink with the screen, so a long word such
       as "Bournemouth" fits instead of breaking; Divi kept them at 46px. */
    .slide .slide__title { font-size: min(46px, 10vw); }
    .slide h2.slide__title { font-size: 20px; }
    .slide__content { font-size: 14px; }
    .slider__arrow { display: none; }
}

/* ---------- Video ---------- */

.video--embed { aspect-ratio: var(--ratio, 16 / 9); }
.video--embed iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Poster + play button standing in for the Vimeo player until it's pressed (site.js) */
.video--embed { position: relative; }
/* Absolutely placed, so a tall poster can't stretch the box (an aspect-ratio box grows to fit
   its content otherwise). */
.video__facade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%; height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}
.video__facade img { display: block; width: 100%; height: 100%; object-fit: contain; }
.video__play {
    position: absolute;
    left: 50%; top: 50%;
    width: 65px; height: 40px;
    border-radius: 5px;
    background: rgba(23, 35, 34, .75);
    transform: translate(-50%, -50%);
    transition: background-color .2s;
}
.video__play::after {
    content: "";
    position: absolute;
    left: 26px; top: 11px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
}
.video__facade:hover .video__play,
.video__facade:focus-visible .video__play { background: #00adef; }
.video video { display: block; width: 100%; height: auto; background: #000; }

/* ---------- Toggle ---------- */

.toggle {
    --toggle-pad: 20px;
    padding: var(--toggle-pad);
    border: 1px solid var(--border);
    background: var(--grey-bg);
    transition: background-color .3s;
}
.toggle[open] { background: #fff; }
/* The title covers the panel's padding, so the whole bar is the tap target; nothing moves. */
.toggle__title {
    position: relative;
    margin: calc(-1 * var(--toggle-pad));
    padding: var(--toggle-pad) calc(var(--toggle-pad) + 30px) var(--toggle-pad) var(--toggle-pad);
    list-style: none;
    cursor: pointer;
}
.toggle__title::-webkit-details-marker { display: none; }
.toggle__title > * { padding: 0; font-size: 16px; font-weight: 400; line-height: 1em; color: #666; }
.toggle[open] .toggle__title > * { color: #333; }
.toggle__title::after,
.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #ccc;
}
.toggle__title::after { right: var(--toggle-pad); box-shadow: none; }
.toggle__title::before {
    content: "";
    position: absolute;
    right: calc(var(--toggle-pad) + 6px);
    top: calc(50% - 6px);
    width: 2px;
    height: 14px;
    background: #ccc;
    transition: transform .2s;
}
.toggle[open] .toggle__title::before { transform: scaleY(0); }
.toggle__content { padding-top: 20px; }

/* ---------- FAQ accordion ---------- */

.faq__item {
    --faq-pad: 20px;
    margin-bottom: 10px;
    padding: var(--faq-pad);
    border: 1px solid var(--border);
    background: var(--grey-bg);
    transition: background-color .3s;
}
.faq__item:last-child { margin-bottom: 0; }
/* The question covers the item's padding, so the whole bar is the tap target; nothing moves. */
.faq__question {
    position: relative;
    display: block;
    margin: calc(-1 * var(--faq-pad));
    padding: var(--faq-pad) var(--faq-pad) var(--faq-pad) calc(var(--faq-pad) + 32px);
    list-style: none;
    cursor: pointer;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question > h1, .faq__question > h2, .faq__question > h3,
.faq__question > h4, .faq__question > h5, .faq__question > h6 { padding: 0; line-height: 1em; color: inherit; }
/* centred on the 22px title line, like the old Supreme Modules icon */
.faq__icon { position: absolute; left: var(--faq-pad); top: calc(var(--faq-pad) + 3px); width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { left: 1px; top: 7px; width: 14px; background: currentColor; }
.faq__icon::after { transform: rotate(90deg); transition: transform .2s; }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { padding-top: 10px; }

/* The narrowest phones (under 367px) get slightly smaller questions, down to 19px at 320px, so long
   words such as "environmentally" fit the FAQs inside blog posts instead of breaking. */
.faq__question > h3 { font-size: min(22px, 6vw); }

/* FAQs pasted into a post body kept Divi's module spacing below them. */
.post-content > .faq { margin-bottom: 16px; }

/* Accent variant: solid bars that turn white when opened (FAQ page). */
.faq--accent .faq__item { background: var(--faq-accent, var(--bright-red)); }
.faq--accent .faq__item[open] { background: #fff; }
.faq--accent .faq__question { color: #fff; }
.faq--accent .faq__item[open] .faq__question { color: var(--faq-accent, var(--bright-red)); }
.faq--accent .faq__question > * { font-weight: 700; }

/* ---------- Tabs ---------- */

.tabs__nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--grey-bg);
}
.tabs__nav button {
    padding: 8px 58px;         /* Divi padded both the tab (4px 28px) and its link (4px 30px) */
    line-height: 28px;
    border: 0;
    border-right: 1px solid var(--border);
    background: none;
    color: #666;
    font-weight: 600;
    cursor: pointer;
}
.tabs__nav button[aria-selected="true"] { background: #fff; color: #333; }
.tabs__panels { padding: 24px 0; background: #fff; }
.tabs__panel { padding: 24px 30px; line-height: 28px; }
.tabs.is-ready .tabs__fallback-title { display: none; }
.tabs.is-ready .tabs__panel:not(.is-active) { display: none; }
/* Phones, as Divi: the tabs stack full width. Their text lines up with the panel's (30px in), so a
   long title keeps to two lines instead of four. */
@media (max-width: 767px) {
    .tabs__nav button {
        flex: 1 1 100%;
        padding-inline: 30px;
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .tabs__nav button[aria-selected="true"] { border-bottom-color: transparent; }
}
@media (max-width: 479px) {
    .tabs__nav button, .tabs__panel { padding-inline: 20px; }
}

/* ---------- Blurb ---------- */

.blurb--top .blurb__media { margin-bottom: 30px; text-align: center; }
.blurb--left { display: flex; align-items: flex-start; }
.blurb--left .blurb__media { flex: none; line-height: 0; }
.blurb--left .blurb__body { padding-left: 15px; min-width: 0; }
.blurb__icon {
    display: inline-block;
    color: var(--link);
    font-size: 96px;
    line-height: 1;
}
.blurb__icon svg { display: block; }
.blurb__icon--circle { padding: .5em; border-radius: 50%; background: var(--grey-bg); }
.blurb__media img { display: inline-block; max-width: 100%; }
.blurb__title { padding-bottom: 10px; font-size: 18px; }
.blurb__title a { color: inherit; }

/* ---------- Embeds ---------- */

.map, .enquiry-form { display: block; }  /* <span> wrappers so they can sit inside a <p> */
.enquiry-form iframe { display: block; width: 99%; border: 0; }
.map iframe { display: block; width: 100%; border: 0; }

/* ==========================================================================
   Page-specific hooks from the old child theme (were element IDs there)
   ========================================================================== */

.travelledby { margin: 5rem 5rem 5rem 0; }
.travelledby h2 { color: #fff; font-weight: 700; margin-bottom: 10px; }
.travelledby h3 { color: #fff; margin-bottom: 20px; }

.carparks { margin: 9rem 5rem 9rem 0; }
.carparks1 { margin: 7rem 5rem 7rem 0; }
.carparks h2, .carparks1 h2 { color: #fff; font-weight: 700; margin-bottom: 10px; }
.carparks h3, .carparks1 h3 { color: #fff; line-height: 30px; margin-bottom: 20px; }
/* Banners ending in a floated "contact us" button (5 pages). In Divi the float and the
   subheading's bottom margin hung outside the text module at every width, so the banner kept
   its height; a flex item contains both. Let them hang out the same way (the button stays 20px
   below the subheading, inside the module's large bottom margin). */
.carparks1 > h3:has(+ p:last-child > a:only-child > .alignleft:only-child) { margin-bottom: 0; }
.carparks1 > p:last-child > a:only-child > .alignleft:only-child { margin: 20px 15px -63px 0; }

.homeservices { margin-inline: auto; max-width: 286px; }
.varietyservices h2 { font-weight: 600; margin-top: 10px; }
.newcarpark h2 { font-weight: 600; }
.roadcall h2 { font-weight: 600; font-size: 24px; margin-top: 10px; text-align: left !important; }
.roadbullet h1 { text-transform: uppercase; }

@media (max-width: 600px) {
    .travelledby { margin: 1rem !important; text-align: center; }
    .carparks { margin: 1rem !important; }  /* not .carparks1: the old child theme left it out */
    .button-wrap.align-right { text-align: center; }
    .varietyservices h2 { font-size: 21px; font-weight: 600; text-align: center; }
}

/* ==========================================================================
   Blog post template
   ========================================================================== */

.post-hero { border-bottom: 5px solid var(--brand); }
.post-hero__title {
    padding-bottom: 10px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1em;
    color: #fff;
    text-align: center;
}

.post-layout__main {
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}
.post-layout__sidebar {
    gap: 17px;
    background: #fff;
    border-left: 5px solid var(--brand);
    border-radius: 0 0 20px 0;
    overflow: hidden;
}

.post-content a { color: var(--brand); }
.post-content blockquote { border-color: var(--brand); }
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 { font-weight: 700; color: var(--brand); }
/* ...but FAQ questions keep their own colour (white on the red bars, not brand red on red). */
.post-content .faq__question > * { color: inherit; }

.post-sidebar__image { margin-bottom: -17px; }
.post-sidebar__image img { width: auto; max-width: 100%; }  /* natural size, like Divi's image module: small featured images aren't stretched */
.post-sidebar__contact { margin-bottom: -17px; padding: 30px 30px 0; }
.post-sidebar__contact h2 { font-size: 23px; font-weight: 700; color: var(--brand); }
.post-sidebar__form { padding: 0 15px 15px; }
@media (max-width: 980px) {
    /* Divi's module spacing is 30px below desktop; image and heading still sit flush on what follows. */
    .post-layout__sidebar { gap: 30px; }
    .post-sidebar__image, .post-sidebar__contact { margin-bottom: -30px; }
}

.post-sidebar__links { border: 0; background: var(--brand); }
.post-sidebar__links[open] { background: var(--brand); }
.post-sidebar__links .toggle__title > *,
.post-sidebar__links[open] .toggle__title > * { font-weight: 700; color: #fff; }  /* white when open too, as on the old site */
.post-sidebar__links .toggle__title::before,
.post-sidebar__links .toggle__title::after { background: #fff; }
.post-links {
    margin: 0;
    padding: 0 !important;
    list-style: none !important;
    background: #fff;
    line-height: 1.4 !important;
}
.post-links a {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    font-size: 12px;
    color: #000;
    transition: background-color .2s;
}
.post-links a:hover { background: var(--grey-bg); }
.post-links .is-current a { color: var(--brand); font-weight: 600; }

@media (max-width: 980px) {
    .post-hero__title { font-size: 30px; }
    .post-layout { --pad-top: 20px !important; --pad-bottom: 20px !important; }
}
@media (max-width: 767px) {
    .post-hero__title { font-size: 25px; }
    .post-layout { --pad-top: 0px !important; --pad-bottom: 0px !important; }
}

/* ==========================================================================
   Blog archive / search
   ========================================================================== */

.archive-layout {
    display: flex;
    gap: 5.5%;
    padding-block: 58px;
}
.archive-layout__main {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 5.5%;
    border-right: 1px solid #e2e2e2;
}
.archive-layout__sidebar { flex: 0 0 21%; min-width: 0; }
.archive-title { padding-bottom: 30px; }
.archive-post { margin-bottom: 60px; }
.archive-post__image { display: block; margin-bottom: 30px; }
.archive-post__image img { width: 100%; }
.archive-post__title { font-size: 26px; padding-bottom: 10px; }
.archive-post__title a { color: #333; }
.archive-post__meta { padding-bottom: 15px; }
.archive-post__meta a { color: var(--link); }
.archive-pagination { display: flex; justify-content: space-between; }
.archive-pagination__newer { margin-left: auto; }
.archive-pagination a { padding-block: 10px; color: var(--link); font-weight: 600; }  /* inline padding: a bigger tap target, same layout */

.widget { margin-bottom: 30px; }
.widget__title { padding-bottom: 10px; font-size: 18px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { margin-bottom: .5em; line-height: 1.7; }
.widget a { padding-block: 3px; color: #666; }  /* inline padding: a 24px tap target, same layout */
.widget a:hover { color: #2ea3f2; }
.search-form { display: flex; }
.search-form input {
    flex: 1;
    min-width: 0;
    height: 33px;
    padding: .7em;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 3px 0 0 3px;
    color: #666;
}
.search-form button {
    height: 33px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 0 3px 3px 0;
    background: var(--grey-bg);
    color: #666;
    cursor: pointer;
}
/* Phones and tablets: 16px text, or iOS zooms the page when the field is tapped; a taller field to tap. */
@media (max-width: 980px) {
    .search-form input { height: 40px; padding: 0 .7em; font-size: 16px; }
    .search-form button { height: 40px; }
}

@media (max-width: 980px) {
    .archive-layout { flex-direction: column; }
    .archive-layout__main { padding-right: 0; border-right: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--footer-bg); }
.footer-bottom {
    padding: 15px 0 5px;
    background: rgba(0, 0, 0, .32);
}
.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-credits { padding-bottom: 10px; font-size: 12px; color: #888; }  /* 5.1:1 on the dark bar */
.footer-credits a { padding-block: 4px; color: #888; }  /* inline padding: a 24px tap target, same layout */
.social--footer { padding-bottom: 10px; font-size: 24px; color: #888; }
.social--footer li + li { margin-left: 8px; }

@media (max-width: 980px) {
    .footer-bottom__inner { flex-direction: column-reverse; text-align: center; }
}

.scroll-top {
    position: fixed;
    right: 0;
    bottom: 125px;
    z-index: 99;
    display: grid;
    place-items: center;
    padding: 5px;
    border: 0;
    border-radius: 5px 0 0 5px;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 30px;
    line-height: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   Privacy: cookie banner, "Cookie settings" links, policy page
   ========================================================================== */

.link-button {
    padding: 4px 0;             /* a taller tap target; the negative margin keeps the line height */
    margin: -4px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.footer-credits .link-button:hover { text-decoration: underline; }
.policy .link-button { color: var(--link); }

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 200;
    padding: 16px 0;
    background: var(--charcoal);
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 30px;
}
.cookie-banner p { padding: 0; font-size: 14px; line-height: 1.5; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex: none; gap: 10px; }
.cookie-banner__btn {
    min-width: 110px;
    padding: 8px 18px;
    border: 2px solid #fff;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: filter .3s, background-color .3s;
}
.cookie-banner__btn:hover { background: rgba(255, 255, 255, .12); }
.cookie-banner__btn--accept { border-color: var(--bright-red); background: var(--bright-red); }
.cookie-banner__btn--accept:hover { background: var(--bright-red); filter: brightness(1.15); }

@media (max-width: 767px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .cookie-banner__btn { flex: 1; }
}

.policy h2 { padding-top: 20px; }
.policy-table { overflow-x: auto; padding-bottom: 1em; }
.policy-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.policy-table th, .policy-table td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.policy-table th { background: var(--grey-bg); color: var(--heading); font-weight: 700; }

@media (max-width: 767px) {
    .policy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .policy-table tr, .policy-table td { display: block; }
    .policy-table tr { margin-bottom: 12px; border: 1px solid var(--border); }
    .policy-table td { border: 0; border-bottom: 1px solid var(--border); }
    .policy-table td:last-child { border-bottom: 0; }
    .policy-table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--heading); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
