/* public.css - public website styles */

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

    /* primary navy: nav, links, buttons */
    --navy: #004579;
    /* headings and button hover */
    --navy-dark: #032137;
    --sky: #4FA3E0;
    /* light background */
    --sky-light: #EAF2F8;
    /* accent: buttons, icons, highlights */
    --teal: #36C1B7;
    /* icon and badge background */
    --teal-light: #E4F6F5;
    /* readable accent for small text (teal fails contrast) */
    --teal-text: #0B4B77;

    /* hero sky gradient */
    --sky-top: #6AA8E0;
    --sky-bottom: #ACC5E5;

    /* backgrounds */
    --white: #FFFFFF;
    /* page background */
    --page-bg: #F8F8F8;
    /* booking card footer strip */
    --grey-bg: #F6F8FA;
    /* slider left panel */
    --grey-panel: #EEF0F3;

    /* text */
    --text: #8B909B;
    /* subheadings */
    --text-soft: #8B909B;
    --heading: var(--navy-dark);

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

    /* 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(0, 69, 121, 0.08);
    --shadow-large: 0 10px 32px rgba(0, 69, 121, 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);
}

/* teal */
.btn-teal {
    background: var(--teal);
    color: var(--white);
}
.btn-teal:hover {
    background: #2CBDB7; /* 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 #C9D2DD;
    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);
}

/* subtitle (unused for now) */
.brand-sub {
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--teal-text);
}

/* 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: dropdown under the header */
.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 20px 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* open state */
.site-nav.is-open {
    display: block;
}

.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(--teal-text);
    font-weight: 500;
}

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

/* 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 */
    .site-nav {
        display: flex;
        align-items: center;
        flex: 1;
        position: static;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: 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 {
        padding: 0.25rem 0;
        border-bottom: 2px solid transparent;
        font-size: 1rem;
        color: var(--text);
    }
    .nav-link:hover,
    .nav-link[aria-current="page"] {
        color: var(--navy);
    }

    /* underline for the current page and hover */
    .nav-link[aria-current="page"],
    .nav-link:hover {
        border-bottom-color: var(--teal);
    }

    /* 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;
    }

    /* 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(0, 69, 121, 0.35);
    }
    .site-header-overlay:not(.is-scrolled) .brand-sub {
        color: 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,
        #C6D6EB 0%, #C2D5ED 14%, #E5E6EA 26%, #DCE0EC 39%, #D7E1EB 51%,
        #E7E9EF 64%, #ECEDF1 76%, #EEEFF3 88%, #F0F1F3 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;
}

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

/* teal line, round caps and joins */
.hero-underline path {
    fill: none;
    stroke: var(--teal);
    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 1s ease;
}
.hero-photo.is-active {
    opacity: 1;
}

/* slow zoom: odd photos in, even photos out (6s shown + 1s fade), keeps going while fading out */
.hero-photo {
    will-change: transform, opacity;
}
.hero-photo:nth-child(odd).is-active,
.hero-photo:nth-child(odd).is-leaving {
    animation: hero-zoom-in 7s linear forwards;
}
.hero-photo:nth-child(even).is-active,
.hero-photo:nth-child(even).is-leaving {
    animation: hero-zoom-out 7s linear forwards;
}
@keyframes hero-zoom-in {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
@keyframes hero-zoom-out {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

/* 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 {
        height: 610px;
        /* fallback while the first photo loads */
        background: linear-gradient(to bottom, #8DB5DD 0%, #B9CFE6 30%, #DCE4EE 60%, #E8ECF1 100%);
    }

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

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

    .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(0, 69, 121, 0.35), rgba(0, 69, 121, 0));
        pointer-events: none;
    }
}

/* Phones and tablets */
@media (max-width: 959px) {

    /* short banner so the booking card stays in view */
    .hero {
        height: 440px;
        background: linear-gradient(to bottom, #8DB5DD 0%, #B9CFE6 30%, #DCE4EE 60%, #E8ECF1 100%);
    }

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

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

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

    /* 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(0, 69, 121, 0.35), rgba(0, 69, 121, 0));
        pointer-events: none;
    }

    /* card overlaps the bottom 96px of the banner */
    .quick-card-wrap {
        margin-top: -96px;
    }

    .quick-card-wrap .quick-card {
        border-radius: 6px;
    }
    .quick-card-wrap .quick-card-title {
        display: block;
        padding: 1.5rem 1.25rem 1.25rem;
        font-size: 1.5rem;
        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: 56px;
        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(0, 69, 121, 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(0, 69, 121, 0.16);
    overflow: hidden;
}

/* 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;
    }
}

/* fallback when there's no picker */
.quick-date-input.is-visible {
    position: static;
    width: 100%;
    height: auto;
    min-height: 30px;
    opacity: 1;
    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(0, 69, 121, 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.6s ease;
}
.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='%2336C1B7' 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(--teal-text);
}

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

/* 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: 999px;
    background: var(--teal);
    box-shadow: 0 6px 16px rgba(54, 193, 183, 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: #2CBDB7;
    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, #E4F6F5 0%, #EAF2F8 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(0, 69, 121, 0.10);
    color: var(--teal);
}
.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: 999px;
}

/* 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(0, 69, 121, 0.18);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.js .slider-arrow:hover {
    background: var(--white);
    color: var(--teal-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(3, 33, 55, 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;
}

/* 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(--teal);
    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: #1F2933;
}

/* 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), #BFDFF5);
    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 #8FC3EC, var(--shadow);
}
.about-slideshow img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.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(--teal-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;
    }
}

/* 13. More ways we can help */

/* Phones: links above the new patient box */
.help-card {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

/* link list with chevrons */
.chevron-list {
    display: grid;
    gap: 0.25rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* chevron + text */
.chevron-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    font-size: 1.0625rem;
    color: var(--navy);
    text-decoration: none;
}
.chevron-list a:hover {
    text-decoration: underline;
}

.chevron-list .icon {
    width: 1em;
    height: 1em;
    stroke-width: 2.75;
}

/* new patient promo box */
.promo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--white) 30%, var(--sky-light) 100%);
}

.promo-title {
    margin-bottom: 0.875rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}

.promo-image {
    width: 96px;
    height: 96px;
}

/* two columns from 768px */
@media (min-width: 768px) {
    .chevron-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* links left, promo right from 960px */
@media (min-width: 960px) {
    .help-card {
        grid-template-columns: 1fr 340px;
        align-items: center;
        gap: 2.5rem;
        padding: 1.5rem 1.25rem 1.5rem 2rem;
    }
}

/* 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.2s;
}
.footer-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* collapsed only when JS is running */
.js .footer-panel {
    display: none;
}

/* open column */
.js .footer-section.is-open .footer-panel {
    display: block;
}

.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(--teal-text);
}

/* map at the bottom of the footer */
.footer-map-block {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.footer-map-block {
    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 img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: 50% 40%;
}
.footer-map:hover {
    box-shadow: var(--shadow);
}
/* OpenStreetMap credit (required), in the map corner */
.footer-map-credit {
    position: absolute;
    right: 1px;
    bottom: 1px;
    margin: 0;
    padding: 0.1rem 0.4rem;
    border-top-left-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.6875rem;
}

/* 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-bottom .brand-name {
    font-size: 0.9375rem;
}

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

.site-footer .footer-bottom .brand:hover {
    text-decoration: none;
}

/* emergency number emphasis */
.footer-legal a {
    font-weight: 600;
    text-decoration: underline;
}

/* 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 same height as the hours */
    .footer-map {
        position: relative;
        flex: 1;
        min-height: 150px;
    }
    .footer-map img {
        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;
    }

    /* 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 */

/* page area */
.auth-page {
    padding: 2rem 16px 3.5rem;
    background: linear-gradient(to bottom, #DCE6F2 0, var(--page-bg) 340px);
}

.auth-card {
    display: grid;
    max-width: 1040px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-large);
    overflow: hidden; /* clip the photo to the rounded corners */
}

/* Photo side */

/* 170px strip on phones */
.auth-side {
    position: relative;
    min-height: 170px;
}

/* cover-fit photo */
.auth-side-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 35%;
}

/* navy shade for text contrast */
.auth-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 47, 77, 0.88) 0%, rgba(10, 47, 77, 0.35) 55%, rgba(10, 47, 77, 0) 80%);
}

/* welcome text over the shade */
.auth-side-text {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.5rem;
    color: var(--white);
}

.auth-side-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

/* benefit list hidden on phones */
.auth-benefits {
    display: none;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
}
.auth-benefits .icon {
    color: var(--teal);
    stroke-width: 3;
}

/* Form side */

.auth-main {
    padding: 1.75rem 1.5rem 2rem;
}

.auth-title {
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.auth-intro {
    margin-bottom: 1.5rem;
    color: var(--text-soft);
}

/* 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;
}
.auth-alert-success {
    background: #ECFDF3;
    border-color: #ABEFC6;
    color: #067647;
}

/* two fields per row (stacked on phones) */
.auth-row {
    display: grid;
    gap: 0 1rem;
}

.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(79, 163, 224, 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);
}

/* hint text */
.field-hint {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    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;
}
.password-toggle:hover {
    color: var(--navy);
}

.auth-forgot {
    display: block;
    width: fit-content;
    margin: 0.5rem 0 0 auto; /* right aligned */
    font-size: 0.8125rem;
    font-weight: 500;
}

/* full-width submit */
.auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 0.5rem;
    border-radius: 8px;
}

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

/* paired fields from 640px */
@media (min-width: 640px) {
    .auth-row {
        grid-template-columns: 1fr 1fr;
    }
    .auth-main {
        padding: 2.25rem 2.5rem 2.5rem;
    }
}

/* Desktop: photo left, form right */
@media (min-width: 960px) {
    .auth-page {
        padding: 3.5rem 20px 5rem;
    }

    /* 45 / 55 split */
    .auth-card {
        grid-template-columns: 0.85fr 1fr;
    }

    .auth-side {
        min-height: 560px;
    }

    .auth-side-text {
        padding: 2rem 2.25rem;
    }

    .auth-side-title {
        font-size: 1.625rem;
    }

    .auth-benefits {
        display: block;
    }

    /* vertically centred form */
    .auth-main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 3rem 3.5rem;
    }

    .auth-title {
        font-size: 2rem;
    }
}

/* 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: 1rem 20px;
    background: #E9EAEC;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 69, 121, 0.08);
}
.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: 0.8125rem;
    line-height: 1.6;
    color: var(--text);
}
.cookie-text a {
    font-weight: 700;
    color: var(--teal-text);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.cookie-manage {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-text);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-accept {
    min-height: 40px;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 2px;
    background: var(--teal);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
}
.cookie-accept:hover {
    background: #2CBDB7;
}

/* 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 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(3, 33, 55, 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;
}

/* side by side on desktop, stacked on phones */
.info-grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-box {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.info-box h2 {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.125rem;
}
.info-box .icon {
    width: 32px;
    height: 32px;
    color: var(--teal);
}
.info-box .btn {
    width: auto;
    margin-top: 0.5rem;
}

/* 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);
}

/* what to bring box */
.booking-info {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: var(--sky-light);
    text-align: left;
}
.booking-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
.booking-info ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}
.booking-info p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* guest booking button */
.auth-guest {
    width: 100%;
    margin-top: 0.75rem;
}

/* Gallery page */
.gallery-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.gallery-item {
    margin: 0;
}
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.gallery-item figcaption {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--heading);
}
