/* public.css - public website styles */

/* 1. Variables */
:root {
    /* colours */

    /* primary navy: nav, links, buttons */
    --navy: #858568;
    /* sliders: fast start that glides to a stop, like it has momentum */
    --glide: cubic-bezier(0.22, 1, 0.36, 1);
    /* headings and button hover */
    --navy-dark: #44382C;
    --sky: #BFA17D;
    /* light background */
    --sky-light: #FAF2E9;
    /* accent: buttons, icons, highlights */
    --accent: #858568;
    /* icon and badge background */
    --accent-light: #F0EBDD;
    /* readable accent for small text (light blue fails contrast) */
    --accent-text: #555B3C;

    /* hero sky gradient */
    --sky-top: #D9C2A8;
    --sky-bottom: #FAF2E9;

    /* backgrounds */
    --white: #FFFFFF;
    /* page background */
    --page-bg: #FAF8F4;
    /* booking card footer strip */
   --grey-bg: #F6F1E9;
    /* slider left panel */
    --grey-panel: #F0EBE3;

    /* text */
    --text: #625B52;
    /* subheadings */
    --text-soft: #797268;
    --heading: var(--navy-dark);

    /* borders and dividers */
    --border: #DDD3C5;

    /* form errors */
    --error: #B42318;

    /* fonts */
    --font-heading: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* corner radius */
    --radius-small: 6px;

    /* card shadow */
    --shadow: 0 2px 12px rgba(68, 56, 44, 0.08);
    --shadow-large: 0 10px 32px rgba(68, 56, 44, 0.14);

    /* max content width */
    --max-width: 1110px;

    /* desktop header height */
    --header-height: 88px;
}

/* 2. Base */

/* padding and border included in width */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* base font size */
html {
    font-size: 93.75%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem; /* 15px */
    line-height: 1.7;
    color: var(--text);
    background: var(--page-bg);
    /* smoother text on macOS / iOS */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0 0 0.5em;
    font-family: var(--font-heading);
    color: var(--heading);
    line-height: 1.2;
    font-weight: 700;
}

/* fluid heading sizes */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }

p {
    margin: 0 0 1em;
}

/* responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
}

/* keyboard focus outline */
:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

/* SVG icons from public-icons.php */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* 3. Helpers */

/* hidden visually but still read by screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 16px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-small);
}

/* shown when focused */
.skip-link:focus {
    top: 16px;
}

/* centred content wrapper */
.container {
    width: 100%;
    max-width: calc(var(--max-width) + 40px);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Buttons */

/* base button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* icon spacing */
    width: 100%;
    min-height: 48px; /* minimum touch target */
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* primary */
.btn-primary {
    background: var(--navy);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--navy-dark);
}

/* outline */
.btn-outline {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover {
    background: var(--sky-light);
}

/* light blue */
.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: #66694D; /* hover */
}

.btn-small {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* auto width from 640px */
@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

/* Cards */

/* white card with shadow */
.card {
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* card heading */
.card-heading {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Forms */

/* inputs and selects */
select,
input {
    width: 100%;
    min-height: 48px;
    padding: 0.625rem 0.875rem;
    border: 1px solid #DDD3C5;
    border-radius: 4px;
    background-color: var(--white);
    font-family: inherit;
    font-size: 16px; /* 16px minimum stops iOS zooming in on focus */
    color: var(--heading);
}

/* invalid field */
select[aria-invalid="true"],
input[aria-invalid="true"] {
    outline: 2px solid var(--error);
    outline-offset: -2px;
}

/* red ! icon on the right of an invalid field */
input[aria-invalid="true"]:not([type="date"]):not([type="checkbox"]):not([type="password"]) {
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC3545' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.3' r='.6' fill='%23DC3545'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.2rem;
}

/* cellphone input with the country flag (phone.js) */
.phone-field {
    position: relative;
    display: block;
}
.phone-field input {
    width: 100%;
}
.phone-flag {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transform: translateY(-50%);
    display: none;
}
.phone-field.has-flag .phone-flag {
    display: block;
}
.phone-field.has-flag input {
    padding-left: 2.75rem;
}

/* form error message */
.form-error {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--error);
}

/* hidden when empty */
.form-error:empty {
    display: none;
}

/* 4. Header and nav */

/* header bar */
/* white logo only for the transparent home header */
.brand-logo-white {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    /* fade when the transparent header turns solid */
    transition: background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}

/* logo left, nav right */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 20px;
}

/* logo + name */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.2;
    color: var(--navy);
}

/* hamburger (phones) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: var(--radius-small);
    background: transparent;
    cursor: pointer;
}

.menu-toggle-bar {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* hamburger turns into an X when open */
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav: drawer that slides in from the right */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(82vw, 340px);
    overflow-y: auto;
    padding: 4.5rem 20px 1.5rem;
    background: var(--white);
    box-shadow: -8px 0 24px rgba(68, 56, 44, 0.15);
    /* closed: off screen and not reachable with the keyboard */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
}

/* open state */
.site-nav.is-open {
    transform: none;
    visibility: visible;
}

/* dark layer behind the drawer, click it to close */
.site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(68, 56, 44, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.site-header:has(.site-nav.is-open)::after {
    opacity: 1;
    pointer-events: auto;
}

/* close button at the top of the drawer */
.nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    cursor: pointer;
}
.nav-close .icon {
    width: 26px;
    height: 26px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
    color: var(--navy);
    text-decoration: none;
}

/* current page */
.nav-link[aria-current="page"] {
    color: var(--accent-text);
    font-weight: 500;
}

/* nav buttons (Book Now, Log In) */
.btn-nav {
    margin-top: 0.75rem;
}

/* small "Need help?" link at the bottom of the phone menu */
.nav-help {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-soft);
    text-decoration: none;
}
.nav-help .icon {
    width: 16px;
    height: 16px;
}
@media (min-width: 960px) {
    .nav-help {
        display: none;
    }
}

/* account links stacked on phones */
.nav-account {
    display: flex;
    flex-direction: column;
}

/* Desktop nav (960px+) */
@media (min-width: 960px) {
    .header-inner {
        min-height: var(--header-height);
        padding: 0 28px;
    }

    .menu-toggle {
        display: none;
    }

    /* nav fills the space next to the logo (no drawer on desktop) */
    .site-nav {
        display: flex;
        align-items: center;
        flex: 1;
        position: static;
        width: auto;
        overflow: visible;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        transform: none;
        visibility: visible;
        transition: none;
    }
    .site-header::after,
    .nav-close {
        display: none;
    }

    /* page links and Book Now centred */
    .nav-main {
        display: flex;
        align-items: center;
        gap: 2rem;
        margin: 0 auto;
    }

    .nav-list {
        display: flex;
        gap: 1.75rem;
    }

    .nav-link {
        position: relative;
        padding: 0.25rem 0;
        border-bottom: 0;
        font-size: 1rem;
        color: var(--text);
        transition: color 0.25s ease;
    }
    .nav-link:hover,
    .nav-link[aria-current="page"] {
        color: var(--navy);
    }

    /* bar that drops into place just under the link on hover (and stays on the current page) */
    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -3px;
        height: 2px;
        border-radius: 2px;
        background: var(--accent);
        opacity: 0;
        transform: translateY(-5px);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .nav-link:hover::after,
    .nav-link[aria-current="page"]::after {
        opacity: 1;
        transform: translateY(0);
    }

    /* Sign Up and Log In on the right */
    .nav-account {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .btn-nav {
        margin-top: 0;
        min-height: 44px;
        padding: 0.5rem 1.25rem;
    }

    .nav-signup {
        border-bottom: 0;
        color: var(--navy); /* same blue as the Log In button */
    }

    /* keep each link on one line */
    .nav-link,
    .btn-nav {
        white-space: nowrap;
    }

    /* Transparent header (home page) */

    /* fixed so the hero sits under it */
    .site-header-overlay {
        position: fixed;
        left: 0;
        right: 0;
        background: transparent;
        border-bottom-color: transparent;
    }

    /* transparent state */
    .site-header-overlay:not(.is-scrolled) .brand-name,
    .site-header-overlay:not(.is-scrolled) .nav-link {
        color: var(--white);
        /* shadow for contrast over the photo */
        text-shadow: 0 1px 3px rgba(68, 56, 44, 0.35);
    }

    /* white underline over the photo */
    .site-header-overlay:not(.is-scrolled) .nav-link::after {
        background: var(--white);
    }

    /* white logo while transparent */
    .site-header-overlay:not(.is-scrolled) .brand-logo:not(.brand-logo-white) {
        display: none;
    }
    .site-header-overlay:not(.is-scrolled) .brand-logo-white {
        display: block;
    }
    .site-header-overlay:not(.is-scrolled) .btn-login {
        background: transparent;
        color: var(--white);
        border-color: var(--white);
    }
    .site-header-overlay:not(.is-scrolled) .btn-login:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    /* solid after scrolling */
    .site-header-overlay.is-scrolled {
        background: var(--white);
        border-bottom-color: var(--border);
        box-shadow: var(--shadow);
    }
}

/* 5. Hero */

/* Phones: heading above the photo */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    /* sky background behind the photos */
    background: linear-gradient(to right,
        #D9C2A8 0%, #E1CCB5 14%, #E9D9C7 26%, #EFE2D3 39%, #F2E8DC 51%,
        #F5ECE2 64%, #F7F0E8 76%, #FAF4ED 88%, #FAF8F4 100%);
}

/* heading and button */
.hero-content {
    position: relative;
    z-index: 1; /* above the photo */
    padding: 2.25rem 20px 1.25rem;
}

.hero-title {
    margin: 0 0 0.625rem;
}

/* heading image + heartbeat underline */
.hero-title-wrap {
    position: relative;
    display: block;
    width: min(540px, 90vw);
    margin: 0 auto;
    padding-bottom: 14px;
}

/* heading image (Coolvetica Regular) */
.hero-title-img {
    display: block;
    width: 100%; /* same width as the underline */
    height: auto;
    aspect-ratio: 10582 / 840; /* a little flatter (stretched wide) so it isn't so heavy */
}

/* heartbeat underline */
.hero-underline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 16px;
    overflow: visible; /* don't clip the round line caps */
}

/* light blue line, round caps and joins */
.hero-underline path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-line 1.6s ease-out 0.3s forwards;
}

/* line draw animation */
@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* wide Book Now button */
.btn-hero {
    width: 100%;
    max-width: 340px;
}

/* Hero photos */
.hero-photos {
    position: relative;
    height: 62vw;
}
.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* --focus-m (set per photo in index.php) for phones */
    object-position: var(--focus-m, var(--focus, 50% 30%));
    opacity: 0;
    transition: opacity 2.2s ease;
}
.hero-photo.is-active {
    opacity: 1;
}

/* every photo keeps slowly zooming in (5s between photos, 2.2s fade), still going while it fades out */
.hero-photo {
    transform-origin: 50% 25%;
    will-change: transform, opacity;
}
.hero-photo.is-active,
.hero-photo.is-leaving {
    animation: hero-zoom-in 7.2s linear forwards;
}
@keyframes hero-zoom-in {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
}

/* no fade or zoom for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-photo {
        transition: none;
    }
    .hero-photo.is-active {
        animation: none;
    }
}

/* Desktop hero */
@media (min-width: 960px) {
    .hero {
        /* taller on wide screens so less of each photo is cut off */
        height: clamp(610px, 38vw, 760px);
        /* fallback while the first photo loads */
       background: linear-gradient(to bottom, #D9C2A8 0%, #E7D5C0 30%, #F2E7DB 60%, #FAF2E9 100%);
    }

    /* 32px below the header */
    .hero-content {
        z-index: 2;
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-title-wrap {
        width: 375px;
    }

    .btn-hero {
        width: 340px;
        min-height: 40px;
        padding: 0.5rem 1rem;
        font-size: 0.9375rem;
    }

    /* photos fill the banner */
    .hero-photos {
        position: absolute;
        z-index: 1;
        inset: 0;
        height: auto;
    }
    .hero-photo {
        object-position: var(--focus, 50% 30%);
    }

    /* dark gradient at the top for header contrast */
    .hero::after {
        content: "";
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        right: 0;
        height: 150px;
        background: linear-gradient(to bottom, rgba(68, 56, 44, 0.35), rgba(68, 56, 44, 0));
        pointer-events: none;
    }
}

/* Phones and tablets */
@media (max-width: 959px) {
    /* short banner so the booking card stays in view */
    .hero {
        height: 380px;
        background: linear-gradient(to bottom, #D9C2A8 0%, #E7D5C0 30%, #F2E7DB 60%, #FAF2E9 100%);
    }

    .hero-content {
        z-index: 2;
        padding-top: calc(68px + 1.25rem);
    }

    .hero-title-wrap {
        width: min(255px, 64vw);
    }

    .btn-hero {
        width: min(420px, 86vw);
        max-width: none;
        min-height: 40px;
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    /* photos fill the banner */
    .hero-photos {
        position: absolute;
        z-index: 1;
        inset: 0;
        height: auto;
    }
    .hero-photo {
        bottom: auto;
        height: var(--h-m, 100%);
    }

    /* top shade */
    .hero::after {
        content: "";
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, rgba(68, 56, 44, 0.35), rgba(68, 56, 44, 0));
        pointer-events: none;
    }

    /* card overlaps the bottom 70px of the banner, 16px from the screen edges */
    .quick-card-wrap {
        margin-top: -70px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .quick-card-wrap .quick-card {
        border-radius: 6px;
    }
    .quick-card-wrap .quick-card-title {
        display: block;
        padding: 1.25rem 1.25rem 2.25rem;
        font-size: 25px;
        font-weight: 700;
        line-height: 1.25;
        color: var(--text);
    }
    .quick-card-wrap .quick-book-form {
        padding: 0;
    }
    .quick-card-wrap .quick-field {
        padding: 0.875rem 1.25rem;
        border-top: 1px solid var(--border);
        border-bottom: 0;
        border-radius: 0;
    }
    .quick-card-wrap .quick-submit {
        margin-top: 0;
        min-height: 60px;
        border-radius: 0;
    }

    .site-header-overlay {
        position: fixed;
        left: 0;
        right: 0;
        background: transparent;
        border-bottom-color: transparent;
    }
    .site-header-overlay:not(.is-scrolled):not(:has(.site-nav.is-open)) .brand-name {
        color: var(--white);
        text-shadow: 0 1px 3px rgba(68, 56, 44, 0.35);
    }
    .site-header-overlay:not(.is-scrolled):not(:has(.site-nav.is-open)) .brand-logo:not(.brand-logo-white) {
        display: none;
    }
    .site-header-overlay:not(.is-scrolled):not(:has(.site-nav.is-open)) .brand-logo-white {
        display: block;
    }
    .site-header-overlay:not(.is-scrolled):not(:has(.site-nav.is-open)) .menu-toggle-bar {
        background: var(--white);
    }
    .site-header-overlay.is-scrolled,
    .site-header-overlay:has(.site-nav.is-open) {
        background: var(--white);
        border-bottom-color: var(--border);
        box-shadow: var(--shadow);
    }
}

/* 6. Quick booking card */

/* negative margin pulls the card up over the hero */
.quick-card-wrap {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
}

.quick-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(68, 56, 44, 0.16);
    /* visible so the date picker can open past the card's edge */
    overflow: visible;
}

/* card title (desktop only) */
.quick-card-title {
    display: none;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* Phones: fields stacked */
.quick-book-form {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0.5rem 0.5rem;
}

/* label above the input */
.quick-field {
    padding: 0.75rem 0.75rem 0.625rem;
    border-bottom: 1px solid var(--border);
    border-radius: 8px;
    transition: background-color 0.2s;
}

/* active field highlight */
.quick-field:focus-within {
    background: var(--sky-light);
}

.quick-label {
    display: block;
    margin: 0 0 0.125rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.quick-field select,
.quick-field input {
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
}

.quick-field select:focus-visible,
.quick-field input:focus-visible {
    outline: none;
}

/* submit button */
.quick-submit {
    margin-top: 0.5rem;
    min-height: 52px;
    border-radius: 8px;
    white-space: nowrap;
}

.quick-book-error {
    margin: 0;
    padding: 0 1.25rem 0.75rem;
}

/* custom date button */
.quick-date-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft); /* placeholder colour */
    text-align: left;
    cursor: pointer;
}

.quick-date-button.has-value {
    color: var(--navy);
}

.quick-date-button .icon {
    width: 1.1em;
    height: 1.1em;
    color: var(--navy);
}

.quick-date-button:focus-visible {
    outline: none;
}

/* date not allowed */
.quick-date-button[aria-invalid="true"] {
    color: var(--error);
}

.quick-date-field {
    position: relative;
}

/* Native date input (hidden) */
.quick-date-input {
    position: absolute;
    left: 0.75rem;
    bottom: 0.5rem;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Touch screens: showPicker() is unreliable on hidden inputs, so the native input is laid transparently over the field */
@media (pointer: coarse) {
    .quick-date-input {
        inset: 0;
        z-index: 2;
        width: 100%;
        height: 100%;
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        pointer-events: auto;
    }
}

/* Desktop: one row */
@media (min-width: 960px) {
    .quick-card-wrap {
        margin-top: -110px;
    }
    .quick-card {
        max-width: none;
        border-radius: 4px;
    }

    .quick-card-title {
        display: block;
        padding: 1.75rem 1rem 0.5rem;
    }

    /* service | date | button */
    .quick-book-form {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        align-items: center;
        padding: 0.5rem;
    }

    .quick-field {
        padding: 0.625rem 1.25rem;
        border-bottom: 0;
    }

    /* divider between the fields */
    .quick-field + .quick-field {
        position: relative;
    }
    .quick-field + .quick-field::before {
        content: "";
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        border-left: 1px solid var(--border);
    }

    .quick-submit {
        margin: 0 0 0 0.5rem;
        padding: 0 1.75rem;
    }
}

/* 7. Home page sections */

/* consistent spacing between sections */
.home-block {
    margin-top: 2.25rem;
}

/* extra space before the footer */
.home-block-last {
    margin-bottom: 4rem;
}

/* 8. Slider */

.slider {
    position: relative;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(68, 56, 44, 0.08);
    overflow: hidden;
}

/* Phones: image above the text */
.slide {
    display: flex;
    flex-direction: column;
}

/* JS enabled */
.js .slider-track {
    display: flex;
    transition: transform 0.9s var(--glide);
}
.js .slide {
    flex: 0 0 100%;
}

/* no slide animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js .slider-track {
        transition: none;
    }
}

/* Medical aid logos slide */
.slide-logos,
.js .slide-logos {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem 3.5rem;
    background: var(--white);
}
.slide-logos-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}
.slide-logos-top .slide-heading {
    margin-bottom: 0;
}
.slide-logos-top .slide-link {
    margin-top: 0;
}
/* logos stacked on phones */
.slide-logos-row {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.5rem;
}
.slide-logo {
    display: grid;
    place-items: center;
    width: 220px;
    height: 72px;
}
.slide-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

@media (min-width: 960px) {
    .slide-logos,
    .js .slide-logos {
        padding: 2.25rem 5.5rem 3.25rem;
    }
    .slide-logos-top .slide-heading {
        font-size: 2rem;
    }
    /* desktop: heading above the logos */
    .slide-logos,
    .js .slide-logos {
        justify-content: center;
    }
    .slide-logos-row {
        order: 0;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 0;
    }
    .slide-logo {
        width: 270px;
        height: 96px;
    }
}

/* text side */
.slide-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.5rem 3.5rem;
}

.slide-box {
    margin: 0;
    padding: 0;
    background: none;
}

/* heading with heartbeat underline */
.slide-heading {
    margin: 0 0 0.875rem;
    padding-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-dark);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M1 6H50l5-5 6 10 5-7 3 2h50' fill='none' stroke='%23858568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left bottom / 110px 11px no-repeat;
}

.slide-subtitle {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: var(--accent-text);
}

.slide-body {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #625B52;
}

/* highlighted price */
.slide-body strong {
    font-weight: 700;
    color: var(--navy-dark);
}

.slide-contact {
    margin-top: 1rem;
}
.slide-contact .slide-subtitle {
    margin: 0 0 0.125rem;
    font-size: 0.9375rem;
    color: var(--navy);
}
.slide-contact .slide-body {
    font-size: 0.9375rem;
}
.slide-body a {
    font-weight: 600;
    color: var(--navy);
}

/* Book now link */
.slide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    background: var(--accent);
    box-shadow: 0 6px 16px rgba(133, 133, 104, 0.35);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.slide-link::after {
    content: "\2192"; /* arrow after the text */
}
.slide-link:hover {
    background: #66694D;
    transform: translateY(-1px);
}

/* image side (mint panel when there's no photo) */
.slide-media {
    position: relative;
    order: -1;
    display: grid;
    place-items: center;
    height: 220px;
    margin: 12px 12px 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #F0EBDD 0%, #F6F1E9 100%);
}

.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* icon fallback */
.slide-icon {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(68, 56, 44, 0.10);
    color: var(--accent);
}
.slide-icon .icon {
    width: 60px;
    height: 60px;
    stroke-width: 1.5;
}

/* button at the bottom of the image */
.slide-button {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%); /* centre horizontally */
    width: auto;
    border-radius: 4px;
}

/* arrows hidden without JS */
.slider-arrow {
    display: none;
}

.js .slider-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 3;
    top: 122px; /* middle of the 220px image */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(68, 56, 44, 0.18);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.js .slider-arrow:hover {
    background: var(--white);
    color: var(--accent-text);
}
.js .slider-arrow .icon {
    width: 22px;
    height: 22px;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Dots */
.slider-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 0.875rem;
    display: flex;
    gap: 4px;
    padding: 0 8px;
    border-radius: 12px;
    background: rgba(68, 56, 44, 0.35);
    transform: translateX(-50%);
}

.slider-dot {
    width: 28px;
    height: 22px; /* bigger tap area */
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.slider-dot::before {
    content: "";
    display: block;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
}
.slider-dot[aria-current="true"]::before {
    background: var(--white);
}

/* Desktop: text left, image right */
@media (min-width: 960px) {
    /* image takes about 42%, slides are 1110 x 340 */
    .slide {
        flex-direction: row;
        height: 340px;
    }

    .slide-text {
        flex: 1.4;
        padding: 2rem 2.5rem 2.75rem 5.5rem;
    }

    .slide-box {
        max-width: 470px;
    }

    .slide-heading {
        font-size: 2rem;
    }

    .slide-media {
        order: 0;
        flex: 1;
        height: auto;
        margin: 0;
        border-radius: 150px 0 0 150px / 50% 0 0 50%;
    }

    .slide-icon {
        width: 168px;
        height: 168px;
    }
    .slide-icon .icon {
        width: 76px;
        height: 76px;
    }

    .slide-button {
        bottom: 2rem;
    }

    .js .slider-arrow {
        top: 50%;
    }
}

/* 9. Service tiles */

/* 2 per row */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* icon above the name */
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    min-height: 130px;
    padding: 1.25rem 1rem;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

/* hover lift */
.tile:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-2px);
}

.tile .icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.75;
}

/* short line under the service name */
.tile-blurb {
    max-width: 30ch;
    margin-top: -0.35rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
}

/* more spacing from 768px */
@media (min-width: 768px) {
    .tile-grid {
        gap: 1.25rem;
    }
}

/* 10. Reviews (hidden until real reviews are added) */

.review-grid {
    display: grid;
    gap: 1.25rem;
}

/* stars, text, name */
.review-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1.75rem 1.5rem 1.5rem;
}

.review-stars {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-align: center;
}

.review-text {
    flex: 1;
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
}

.review-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #44382C;
}

/* 3 columns from 768px */
@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 12. About card */

.about-card {
    padding: 1.5rem;
}

/* image above text on phones */
.about-body {
    display: grid;
    gap: 1.5rem;
}

/* image panel */
.about-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3; /* 4:3 */
    background: linear-gradient(135deg, var(--sky-light), #D9C2A8);
    overflow: hidden;
}

.about-media img {
    width: 38%;
}

.about-media img[src$=".jpg"],
.about-media img[src$=".png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    font-size: 1.0625rem;
}

/* image left, text right from 768px */
@media (min-width: 768px) {
    .about-card {
        padding: 1.5rem 2rem 2rem;
    }
    .about-body {
        grid-template-columns: 1fr 1.25fr;
        gap: 2.5rem;
        align-items: center;
    }
}

/* About photo slideshow */
/* stacked photos, only the active one visible */
.about-slideshow {
    position: relative;
    display: block;
    aspect-ratio: 7 / 4;
    background: var(--grey-panel);
    border: 5px solid var(--sky-light);
    border-radius: var(--radius-small);
    box-shadow: 0 0 0 1px #BFA17D, var(--shadow);
}
.about-slideshow img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.8s ease;
}
.about-slideshow img.is-active {
    opacity: 1;
}

/* arrows */
.photo-arrow {
    display: none;
}
.js .photo-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s;
}
.js .photo-arrow:hover {
    background: var(--white);
    color: var(--accent-text);
}
.js .photo-arrow .icon {
    width: 20px;
    height: 20px;
}
.photo-prev { left: 8px; }
.photo-next { right: 8px; }
.js .photo-arrow:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* no fade for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-slideshow img {
        transition: none;
    }
}

/* 14. Footer */

.site-footer {
    padding: 2.5rem 0 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
}

.site-footer a {
    color: var(--text);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* Phones: collapsible columns */
.footer-section {
    border-top: 1px solid var(--border);
}
.footer-section:first-child {
    border-top: 0;
}

/* reset heading styles */
.footer-heading {
    margin: 0;
    font-size: 1.125rem;
}

/* full-width toggle button */
.footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    border: 0;
    background: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
}

/* arrow flips when open */
.footer-toggle .icon {
    transition: transform 0.35s ease;
}
.footer-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* collapsed only when JS is running, slides open and shut (0fr to 1fr grows to the list's own height) */
.js .footer-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.35s ease, visibility 0.35s;
}
.js .footer-panel > * {
    min-height: 0;
    overflow: hidden;
}
/* the space under the list goes inside it, so a shut panel is fully shut */
.js .footer-panel > .footer-list {
    padding-bottom: 0;
}
.js .footer-panel > .footer-list > li:last-child {
    margin-bottom: 1rem;
}

/* open column */
.js .footer-section.is-open .footer-panel {
    grid-template-rows: 1fr;
    visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
    .js .footer-panel {
        transition: none;
    }
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0 0 1rem;
}

/* icon + text */
.footer-list li,
.footer-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-list li {
    padding: 0.3rem 0;
}

.footer-list .icon {
    color: var(--accent-text);
}

/* map at the bottom of the footer */
.footer-map-block {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.footer-map-frame {
    position: relative;
}
.footer-map {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.footer-map iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: 0;
}
/* address under the map */
.footer-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.footer-address .icon {
    flex-shrink: 0;
    color: var(--accent-text);
}

/* day left, time right */
.footer-hours {
    padding-bottom: 0;
}
.footer-hours li {
    justify-content: space-between;
    gap: 1rem;
}
/* keep times on one line */
.footer-hours li span:last-child {
    white-space: nowrap;
}

/* bottom strip: logo, copyright, links */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
}
.footer-bottom p {
    margin: 0;
}
.footer-legal {
    color: var(--text-soft);
}

.footer-small-links {
    display: flex;
    gap: 1.25rem;
}
.site-footer .footer-small-links a {
    color: var(--text-soft);
}

/* Tablet up: columns always open */
@media (min-width: 768px) {
    .site-footer {
        padding-top: 3.5rem;
    }

    /* 4 equal columns, then hours and map side by side */
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem 2rem;
    }
    .footer-section:nth-child(5) {
        grid-column: 1 / 3;
    }
    .footer-map-block {
        grid-column: 3 / 5;
        display: flex;
        flex-direction: column;
        padding-top: 0;
        border-top: 0;
    }
    /* map fills the space left above the address, so the block ends with the hours */
    .footer-map-frame {
        display: flex;
        flex: 1;
        min-height: 120px;
    }
    .footer-map {
        position: relative;
        flex: 1;
    }
    .footer-map iframe {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .footer-section {
        border-top: 0;
    }

    /* toggle styled as a plain heading */
    .footer-toggle {
        padding: 0 0 0.75rem;
        font-size: 1.1875rem;
        pointer-events: none;
        cursor: default;
    }

    .footer-toggle .icon {
        display: none;
    }

    .js .footer-panel {
        display: block;
        visibility: visible;
    }

    /* logo left, copyright centre, links right */
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 2.5rem;
    }
}

/* 15. Login and register pages */

/* error / success alerts */
.auth-alert {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid;
    border-radius: 8px;
    font-size: 0.9375rem;
}
.auth-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}
.auth-alert-error {
    background: #F8D7DA;
    border-color: #F5C2C7;
    color: #842029;
}
.auth-alert-error ul {
    padding-left: 0;
    list-style: none;
}
.auth-alert[hidden] {
    display: none;
}

/* two fields per row (stacked on phones) */

.auth-field {
    margin-bottom: 1.125rem;
}

.auth-field label {
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-field input {
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* focus */
.auth-field input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(133, 133, 104, 0.25);
}

/* invalid */
.auth-field input[aria-invalid="true"] {
    outline: none;
    border-color: var(--error);
}

/* grey placeholder text for an empty date */
.auth-field input[type="date"]:invalid {
    color: var(--text-soft);
}

/* field error, hidden when empty */
.field-error {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: var(--error);
}
.field-error:empty {
    display: none;
}

/* password input with the show/hide button */
.password-wrap {
    position: relative;
}

/* room for the button */
.password-wrap input {
    padding-right: 3rem;
}

/* show/hide button */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--text-soft);
    cursor: pointer;
}
/* hide Edge's own eye button, we have ours */
.password-wrap input::-ms-reveal,
.password-wrap input::-ms-clear {
    display: none;
}

/* only one eye shows at a time (aria-pressed is set by public.js) */
.password-toggle span {
    display: flex;
}
.password-toggle[aria-pressed="false"] .pw-icon-shown,
.password-toggle[aria-pressed="true"] .pw-icon-hidden {
    display: none;
}

.password-toggle:hover {
    color: var(--navy);
}

/* full-width submit */

.auth-switch {
    margin: 1.5rem 0 0;
    font-size: 0.9375rem;
    text-align: center;
}
.auth-switch a {
    font-weight: 600;
}

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

    /* show the underline without animating */
    .hero-underline path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* Cookie banner */

/* fixed bar at the bottom */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 1.25rem 38px 1.5rem;
    background: #F6F1E9;
    border-top: 1px solid #BFA17D;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
    /* slides up from the bottom of the screen when it shows */
    animation: cookie-up 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes cookie-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: none;
    }
}
/* answered: slides back down off the screen (public.js hides it afterwards) */
.cookie-banner.is-closing {
    animation: cookie-down 0.6s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}
@keyframes cookie-down {
    from {
        transform: none;
    }
    to {
        transform: translateY(100%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        animation: none;
    }
}
.cookie-banner[hidden] {
    display: none;
}

/* stacked on phones, inline on desktop */
.cookie-banner-inner {
    display: grid;
    gap: 0.75rem;
    max-width: 1300px;
    margin: 0 auto;
}
.cookie-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #797268;
}
.cookie-text a {
    font-weight: 700;
    color: #555B3C;
}

/* buttons in the middle on phones */
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cookie-manage {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #555B3C;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-accept {
    min-height: 40px;
    padding: 0.75rem 0.75rem;
    border: 0;
    border-radius: 2px;
    background: #555B3C;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
}
.cookie-accept:hover {
    background: #44382C;
}

/* settings panel */
.cookie-settings {
    display: grid;
    gap: 0.5rem;
    max-width: 1300px;
    margin: 0.75rem auto 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text);
}
.cookie-settings[hidden] {
    display: none;
}
.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.cookie-option input {
    width: auto;
    min-height: 0;
    margin-top: 0.2rem;
}
.cookie-save {
    justify-self: start;
}

@media (min-width: 960px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 3rem;
    }
    .cookie-actions {
        margin-top: 0;
    }
}

/* cookie notice page */
.cookie-page p {
    max-width: 720px;
}
.cookie-subheading {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.125rem;
}
.cookie-table {
    width: 100%;
    max-width: 720px;
    margin-bottom: 1rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.cookie-table th,
.cookie-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.cookie-table th {
    background: var(--page-bg);
    color: var(--heading);
}

/* POPIA modal and checkbox (register page) */

.popia-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
}
.popia-check input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin-top: 0.2rem;
}
.popia-check span {
    display: block;
    font-weight: 400;
}
.auth-form .popia-check {
    display: flex;
    font-weight: 400;
}

/* modal overlay */
.popia-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(68, 56, 44, 0.55);
}
.popia-modal[hidden] {
    display: none;
}

/* modal box */
.popia-box {
    width: 100%;
    max-width: 480px;
    padding: 1.75rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-large);
}
.popia-box h2 {
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}
.popia-box p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.popia-box .btn {
    width: 100%;
}

/* Info pages (about, services, contact, medical aids, POPIA) */

.info-page p {
    max-width: 760px;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.info-subheading {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.125rem;
}

.info-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    line-height: 1.8;
}

/* hours table (today in bold) */
.info-hours td {
    padding: 0.35rem 2rem 0.35rem 0;
}
.info-hours .is-today td {
    font-weight: 700;
    color: var(--navy);
}

/* Gallery page */
.gallery-intro {
    margin-bottom: 1.5rem;
}

/* gallery card a bit wider than other pages so the photos are bigger */
.gallery-page {
    max-width: calc(1500px + 40px);
}

.gallery-grid {
    display: grid;
    gap: 1.75rem 1rem;
}
@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 960px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.gallery-item {
    margin: 0;
}

/* photo zooms in a little on hover */
.gallery-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-link:hover img,
.gallery-link:focus-visible img {
    transform: scale(1.04);
}

/* small grey italic caption */
.gallery-item figcaption,
.gallery-viewer figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text);
}

/* bigger view */
.gallery-viewer {
    width: min(800px, 92vw);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
}
.gallery-viewer::backdrop {
    background: rgba(68, 56, 44, 0.85);
}
.gallery-viewer figure {
    margin: 0;
}
.gallery-viewer img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}
.gallery-viewer figcaption {
    color: rgba(255, 255, 255, 0.8);
}
.gallery-close,
.gallery-arrow {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    cursor: pointer;
}
.gallery-close {
    top: 12px;
    right: 12px;
    z-index: 1;
    font-size: 1.75rem;
    line-height: 1;
}
.gallery-arrow {
    top: calc(50% - 40px);
}
.gallery-prev {
    left: 12px;
}
.gallery-next {
    right: 12px;
}
.gallery-close:hover,
.gallery-arrow:hover {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item img {
        transition: none;
    }
}

/* Small laptops - tighter menu so it fits */
@media (min-width: 960px) and (max-width: 1199px) {
    .nav-main {
        gap: 1.25rem;
    }
    .nav-list {
        gap: 1.1rem;
    }
    .nav-link {
        font-size: 0.9375rem;
    }
    .nav-account {
        gap: 1rem;
    }
    .btn-nav {
        padding: 0.5rem 1rem;
    }
}

/* Narrow laptops - even tighter */
@media (min-width: 960px) and (max-width: 1079px) {
    .header-inner {
        padding: 0 16px;
    }
    .site-nav {
        margin-left: 1.25rem;
    }
    .nav-main {
        gap: 1rem;
    }
    .nav-list {
        gap: 0.85rem;
    }
    .nav-account {
        gap: 0.85rem;
        margin-left: 1rem;
    }
    .btn-nav {
        padding: 0.5rem 0.85rem;
    }
}

/* Contact page */

.contact-intro {
    margin-bottom: 1.5rem;
}

/* three quick contact tiles: stacked on phones, side by side from 768px */
.contact-tiles {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .contact-tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
.contact-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #FAF8F4;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.contact-tile:hover,
.contact-tile:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(68, 56, 44, 0.08);
    transform: translateY(-2px);
}
/* round icon badge */
.contact-tile-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--navy);
}
.contact-tile-icon .icon {
    width: 20px;
    height: 20px;
}
.contact-tile-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.contact-tile-label {
    font-weight: 600;
    color: var(--navy);
}
.contact-tile-value {
    overflow-wrap: anywhere;
    font-size: 0.9375rem;
    color: var(--text-soft);
}

/* message form first, then the other ways to reach us */
.contact-help {
    margin-bottom: 1.75rem;
}
.contact-more {
    margin: 0 0 0.85rem;
    font-size: 1.125rem;
}

/* hours and map: stacked on phones, side by side from 900px */
.contact-layout {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 1.5rem;
    }
}

.contact-box {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.contact-box h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}
/* small line under each heading */
.contact-box h2::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 0.6rem;
    background: var(--accent);
    opacity: 0.7;
}

/* day left, time right */
.contact-hours {
    width: 100%;
    border-collapse: collapse;
}
.contact-hours td {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-hours tr:last-child td {
    border-bottom: 0;
}
.contact-hours td:last-child {
    padding-left: 1rem;
    text-align: right;
    white-space: nowrap;
}

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 1rem;
}
.contact-address .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    color: var(--accent);
}

.contact-map {
    position: relative;
    height: 260px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    overflow: hidden;
}
.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* phones: a little less padding inside the boxes */
@media (max-width: 479px) {
    .contact-box {
        padding: 1.15rem;
    }
    .contact-map {
        height: 230px;
    }
}

/* staff login link: computers only (also left out on phones and tablets by public-footer.php) */
@media (max-width: 959px), (pointer: coarse) {
    .footer-staff-link {
        display: none;
    }
}

/* phones: the card no longer clips, so the full-width button keeps the card's bottom corners itself */
@media (max-width: 959px) {
    .quick-card .quick-submit {
        border-radius: 0 0 12px 12px;
    }
}

/* home page "When do you need it?" calendar: Sundays and public holidays greyed out */
.quick-date-field {
    position: relative;
}
.date-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    width: 300px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(68, 56, 44, 0.18);
    animation: appear-down 0.25s var(--glide);
}
.date-picker[hidden] {
    display: none;
}
.date-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--navy);
}
.date-picker-move {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: 18px;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
}
.date-picker-move:disabled {
    opacity: 0.35;
    cursor: default;
}
.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.date-picker-name {
    padding: 4px 0;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--text-soft);
}
.date-picker-day {
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: none;
    font: inherit;
    font-size: 14px;
    color: var(--navy);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.date-picker-day:hover:not(:disabled) {
    background: var(--accent-light);
}
.date-picker-day.is-today {
    box-shadow: inset 0 0 0 1px var(--accent);
}
.date-picker-day.is-chosen {
    background: var(--navy);
    color: var(--white);
}
/* past, too far ahead, Sundays and public holidays */
.date-picker-day:disabled {
    color: #DDD3C5;
    cursor: not-allowed;
}
.date-picker-day.is-closed {
    text-decoration: line-through;
}
.date-picker-note {
    margin: 10px 0 0;
    font-size: 12px;
    text-align: center;
    color: var(--text-soft);
}
@media (max-width: 480px) {
    .date-picker {
        width: auto;
        right: 0;
    }
}

/* phone and email links stay clickable, no underline */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

/* sign up after Book now: book without an account instead */
.auth-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--muted, #8a8f98);
    font-size: 0.875rem;
}
.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}
.auth-guest-wide {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Login page: benefits panel left, log in right */
.login-page {
    padding: 2.5rem 16px 3.5rem;
    background: var(--page-bg);
}
.login-split {
    display: grid;
    gap: 2rem;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}
.login-info {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
}
.login-info-title {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    text-wrap: balance;
}
.login-benefits {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    color: var(--navy);
}
.login-benefits li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.login-benefits svg {
    flex: none;
    width: 18px;
    height: 18px;
    stroke: var(--navy);
    stroke-width: 3;
}
.login-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}
.login-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.login-intro {
    margin: 0.25rem 0 1.75rem;
}
.login-form .auth-field {
    margin-bottom: 1rem;
}
.login-form input {
    border: 1px solid transparent;
    border-radius: 2px;
    background: #F0EBE3;
}
.login-form input:focus {
    background: var(--white);
}
.login-button {
    display: flex;
    justify-content: center;
    width: 100%;
    border-radius: 2px;
}
.login-form .login-button {
    margin-bottom: 1rem;
}
.login-signup {
    margin: 1.75rem 0 0;
    text-align: center;
    font-weight: 700;
}
.login-signup a,
.login-forgot a {
    color: var(--text);
    text-decoration: none;
}
.login-signup a:hover,
.login-forgot a:hover {
    color: var(--navy);
}
.login-forgot {
    margin: 1.25rem 0 0;
    text-align: center;
}
@media (min-width: 900px) {
    .login-split {
        grid-template-columns: 1.05fr 1fr;
        gap: 2.5rem;
    }
}

/* 5. Name and avatar in the site header (logged in) */

.user-menu {
    position: relative;
}
.user-menu summary {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--navy);
    list-style: none;
    cursor: pointer;
}
.user-menu summary::-webkit-details-marker {
    display: none;
}
.user-menu summary .icon {
    width: 14px;
    height: 14px;
}
.user-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #DDD3C5;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 700;
}
.user-menu-list {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 60;
    min-width: 220px;
    padding: 0.5rem 0;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 6px 24px rgba(68, 56, 44, 0.16);
}
.user-menu-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    text-decoration: none;
}
.user-menu-list a:hover {
    background: var(--sky-light);
    color: var(--navy);
}
.user-menu-list hr {
    margin: 0.375rem 0;
    border: 0;
    border-top: 1px solid #F0EBE3;
}
.user-menu-list .icon {
    width: 16px;
    height: 16px;
}

/* services page: two service cards, then one "before your visit" panel with three columns */
.info-page .svc-intro {
    margin: 0 0 1.75rem;
    color: var(--text-soft);
}
.svc-heading {
    margin: 0 0 0.9rem;
    font-size: 1.125rem;
    color: var(--navy-dark);
}
.svc-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

/* service card: icon and name on one line, button at the bottom so both cards line up */
.svc-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 10px;
    background: #FFFFFF;
}
.svc-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.svc-card h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--navy-dark);
}
.svc-card p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #625B52;
}
.svc-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.svc-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-text);
}
.svc-icon .icon {
    width: 20px;
    height: 20px;
}
.svc-icon-small {
    width: 32px;
    height: 32px;
}
.svc-icon-small .icon {
    width: 16px;
    height: 16px;
}

/* time and price pills */
.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}
.svc-tags li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #F6F1E9;
    color: var(--navy-dark);
    font-size: 0.85rem;
    font-weight: 600;
}
.svc-tags .icon {
    width: 16px;
    height: 16px;
    color: var(--accent-text);
}

/* one light panel, three columns with thin lines between (stacked on phones) */
.svc-info {
    display: grid;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #FAF8F4;
}
.svc-info-col {
    padding: 1.25rem 1.4rem;
}
.svc-info-col + .svc-info-col {
    border-top: 1px solid var(--border);
}
.svc-info-col h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.85rem;
    font-size: 1rem;
    color: var(--navy-dark);
}

/* short ticked points */
.svc-checks {
    margin: 0;
    padding: 0;
    list-style: none;
}
.svc-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.55;
    color: #625B52;
}
.svc-checks li:last-child {
    margin-bottom: 0;
}
.svc-checks .icon {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 0.22rem;
    color: var(--accent-text);
}

@media (min-width: 760px) {
    .svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 960px) {
    .svc-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .svc-info-col + .svc-info-col {
        border-top: 0;
        border-left: 1px solid var(--border);
    }
}

/* "More ways to connect with us" card above the footer */
.more-ways {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.more-ways-card {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(68, 56, 44, 0.1);
}
.more-ways-text h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: var(--navy-dark);
}
.more-ways-list {
    display: grid;
    gap: 0.6rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.more-ways-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--navy);
    font-size: 1.05rem;
    text-decoration: none;
}
.more-ways-list a:hover {
    text-decoration: underline;
}
.more-ways-list .icon {
    width: 16px;
    height: 16px;
    stroke-width: 3;
    transition: transform 0.2s ease;
}
.more-ways-list a:hover .icon {
    transform: translateX(3px);
}
.more-ways-promo {
    position: relative;
    display: block;
    min-height: 170px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    text-decoration: none;
}
.more-ways-promo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}
.more-ways-promo-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    min-height: 170px;
    padding: 1.1rem 1.25rem;
    /* white behind the words so they stay readable over the photo */
    background: linear-gradient(90deg, #FFFFFF 38%, rgba(255, 255, 255, 0) 80%);
}
.more-ways-promo-text strong {
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--navy);
}
.more-ways-button {
    padding: 0.4rem 1rem;
    border-radius: 2px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}
@media (min-width: 700px) {
    .more-ways-list {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 960px) {
    .more-ways-card {
        grid-template-columns: 1fr minmax(300px, 380px);
        align-items: center;
        padding: 1.75rem 2rem;
    }
}

/* sign up step 1: full width Continue button */
#signup-next {
    width: 100%;
}

/* privacy shield button (bottom left, every public page) */
.privacy-shield {
    position: fixed;
    left: 1%;
    bottom: 10px;
    z-index: 90;
    display: flex;
    align-items: center;
    height: 50px;
    min-width: 50px;
    padding: 0 11px;
    border: 0;
    background: none;
    color: var(--white);
    cursor: pointer;
    /* slides in from the left edge, just after the page has loaded */
    animation: shield-in 1s ease-out 0.2s both;
}
@keyframes shield-in {
    from {
        opacity: 0;
        transform: translateX(-75px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .privacy-shield,
    .privacy-shield-front,
    .privacy-shield-back {
        animation: none;
        transition: none;
    }
}
.privacy-shield-icon {
    flex: none;
    width: 30px;
    height: 37px;
}
/* two faces like a card: blue shield on the front, white X on the back (it flips over in 3D) */
.privacy-shield {
    perspective: 1000px;
    transform-style: preserve-3d;
}
.privacy-shield-front,
.privacy-shield-back {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s;
}
.privacy-shield-front {
    background: #858568;
    transform: rotateY(0deg);
}
.privacy-shield-back {
    background: #FFFFFF;
    transform: rotateY(-180deg);
}
.privacy-shield-back svg {
    width: 34px;
    height: 34px;
}
/* settings open: the shield turns round and the X comes into view */
.privacy-shield.is-open {
    z-index: 310;
}
.privacy-shield.is-open .privacy-shield-front {
    transform: rotateY(-180deg);
}
.privacy-shield.is-open .privacy-shield-back {
    transform: rotateY(0deg);
}
.privacy-shield.is-open .privacy-shield-text {
    display: none;
}
/* small dark "Manage settings" tooltip beside the shield on hover */
.privacy-shield {
    justify-content: center;
    padding: 0;
}
.privacy-shield-text {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    padding: 0.3rem 0.55rem;
    border-radius: 3px;
    background: #333333;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}
/* little arrow pointing at the shield */
.privacy-shield-text::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    border: 5px solid transparent;
    border-right-color: #333333;
    transform: translateY(-50%);
}
.privacy-shield:hover .privacy-shield-text,
.privacy-shield:focus-visible .privacy-shield-text {
    opacity: 1;
}
.privacy-shield:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* privacy settings window */
.privacy-centre {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
    /* fades in with the window, instead of just appearing */
    animation: privacy-fade-in 0.4s ease-in-out;
}
@keyframes privacy-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* closing: fades out the same way */
.privacy-centre.is-closing {
    animation: privacy-fade-out 0.3s ease-in-out forwards;
    pointer-events: none;
}
@keyframes privacy-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .privacy-centre {
        animation: none;
    }
}
.privacy-centre[hidden] {
    display: none;
}
/* phones: the settings take the whole screen */
@media (max-width: 600px) {
    .privacy-centre {
        padding: 0;
    }
    .privacy-centre .privacy-box {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    /* text fills the middle, Confirm stays at the bottom */
    .privacy-centre .privacy-body {
        flex: 1;
    }
}
.privacy-box {
    display: flex;
    flex-direction: column;
    width: min(100%, 575px);
    max-height: 80vh;
    overflow: hidden;
    border-radius: 2px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.privacy-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.privacy-brand {
    font-weight: 700;
    color: var(--navy);
}
.privacy-close {
    margin-left: auto;
    padding: 0.25rem;
    border: 0;
    background: none;
    color: var(--navy-dark);
    cursor: pointer;
}
.privacy-close .icon {
    width: 22px;
    height: 22px;
}
.privacy-body {
    overflow-y: auto;
    padding: 1.25rem 1.875rem;
    color: #797268;
    font-size: 0.8125rem;
    line-height: 1.5;
}
.privacy-body h2,
.privacy-body h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}
.privacy-body h3 {
    margin-top: 1.5rem;
}
.privacy-body > p {
    margin: 0;
}
.privacy-list {
    border: 1px solid var(--border);
}
.privacy-row + .privacy-row {
    border-top: 1px solid var(--border);
}
.privacy-row summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    list-style: none;
    cursor: pointer;
}
.privacy-row summary::-webkit-details-marker {
    display: none;
}
.privacy-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}
.privacy-always {
    font-size: 0.8125rem;
    color: #797268;
}
.privacy-row summary .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.privacy-row[open] summary .icon {
    transform: rotate(90deg);
}
.privacy-row p {
    margin: 0;
    padding: 0 1.2rem 1rem;
}
/* on/off switch */
.privacy-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.privacy-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.privacy-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid #DDDDDD;
    border-radius: 999px;
    background: #F2F1F1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    pointer-events: none;
}
.privacy-switch span::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7D7D7D;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.privacy-switch input:checked + span {
    border-color: #858568;
    background: #F0EBDD;
}
.privacy-switch input:checked + span::after {
    background: #555B3C;
    transform: translateX(20px);
}
.privacy-switch input:focus-visible + span {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}
.privacy-bottom {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}
.privacy-confirm,
.privacy-allow {
    padding: 0.8rem 1.9rem;
    border: 0;
    border-radius: 2px;
    background: #BFA17D;
    color: #44382C;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.privacy-confirm:hover,
.privacy-allow:hover {
    opacity: 0.85;
}
.privacy-allow {
    margin-top: 1.25rem;
}

/* the shield waits until the cookie banner has been answered */
.cookie-banner:not([hidden]) ~ .privacy-shield {
    display: none;
}

/* banner photo sits on the right, words on the white left side */
.more-ways-promo img {
    left: auto;
    width: 55%;
    object-position: 50% 15%;
}
.more-ways-promo-text {
    background: none;
}

/* 8. Health news slider */
.news-card {
    padding: 1.5rem;
}
.news-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.news-head .card-heading {
    margin-bottom: 0.25rem;
}

.news-arrows {
    display: flex;
    gap: 0.5rem;
}
.news-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.news-arrow:hover {
    background: var(--navy);
    color: var(--white);
}
.news-arrow .icon {
    width: 20px;
    height: 20px;
}
.news-meta {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: var(--text);
}
.news-source {
    margin-right: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
}
.news-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.35;
}
/* the whole card is clickable through the title link */
.news-item h3 a {
    color: var(--navy-dark);
    text-decoration: none;
}
.news-item h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}
.news-item:hover h3 a {
    text-decoration: underline;
}
.news-item p:not(.news-meta) {
    flex: 1;
    margin: 0 0 0.9rem;
    line-height: 1.55;
}
.news-read {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-text);
}
.news-read .icon {
    width: 14px;
    height: 14px;
}
@media (min-width: 1000px) {
    .news-card {
        padding: 2rem;
    }
}

/* news story cards: picture and text joined in one card, one at a time, the next one sliding in from the right */
.news-stage {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.news-item {
    position: absolute;
    inset: 0;
    display: grid;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #FAF8F4;
    /* waiting off to the right */
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.9s var(--glide), opacity 0.6s ease;
}
/* going back: the story comes in from the left instead */
.news-item.from-left {
    transform: translateX(-100%);
}
/* moves to its starting side straight away, without sliding */
.news-item.no-slide {
    transition: none;
}
/* the story leaving slides out the other side */
.news-item.leave-right {
    opacity: 0;
    transform: translateX(100%);
}
.news-item.leave-left {
    opacity: 0;
    transform: translateX(-100%);
}
/* the card on show sets the height, the others sit on top of it, see-through */
.news-item.is-active {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
/* the picture fills its half of the card (tall photos don't stretch the card) */
.news-photo {
    position: relative;
    display: block;
    min-height: 200px;
    background: #EAF1F8;
}
.news-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%; /* keeps faces in view */
}
.news-text {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--accent);
}
@media (min-width: 760px) {
    .news-item {
        grid-template-columns: 45% 1fr;
    }
    .news-photo {
        min-height: 260px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .news-item {
        transition: none;
    }
}

/* Smooth appearing: windows, menus, panels, steps and open sections
   (a CSS animation plays again every time something goes from hidden to shown) */

/* windows: the dark layer fades in, the box floats up into place */
.popia-modal,
.portal-modal {
    animation: appear-fade 0.3s ease;
}
.popia-modal .popia-box,
.portal-modal .portal-modal-box {
    animation: appear-up 0.45s var(--glide);
}

/* menus and small panels ease down into place */
.user-menu[open] .user-menu-list,
.portal-search-results,
.cookie-settings,
#date-note,
#id-fields,
details[open] > :not(summary) {
    animation: appear-down 0.35s var(--glide);
}

/* steps (sign up, booking) slide in from the side */
.signup-step,
#details-wrap,
#time-step {
    animation: appear-side 0.5s var(--glide);
}

@keyframes appear-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes appear-up {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@keyframes appear-down {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
@keyframes appear-side {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .popia-modal,
    .portal-modal,
    .popia-modal .popia-box,
    .portal-modal .portal-modal-box,
    .user-menu[open] .user-menu-list,
    .portal-search-results,
    .cookie-settings,
    #date-note,
    #id-fields,
    details[open] > :not(summary),
    .signup-step,
    #details-wrap,
    #time-step {
        animation: none;
    }
}
