:root {
    --motion-ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }
/* Column layout: the slide-progress container must not sit beside the text and squeeze it. */
.edge-hero--carousel { min-height: 650px; overflow: hidden; isolation: isolate; flex-direction: column; justify-content: center; }
.edge-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .8s ease, transform 6s var(--motion-ease);
    z-index: -2;
}
.edge-hero__slide.is-active { opacity: 1; transform: scale(1); z-index: -1; }
.edge-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 80%); }
.edge-hero--no-photos .edge-hero__slide { background: linear-gradient(110deg, #00183A, #0A2C5E); }
.edge-hero--no-photos .edge-hero__slide::after { display: none; }
.edge-hero__content h1, .edge-hero__content .lead { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
/* The hero is a flex container; without an explicit width the content shrinks against the left edge. */
.edge-hero__content { position: relative; z-index: 1; width: 100%; padding-top: 2rem; padding-bottom: 5.5rem; }
.hero-progress { position: absolute; bottom: 2.2rem; right: 0; z-index: 2; display: flex; gap: .55rem; }
.hero-progress button { width: 42px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.4); transition: background .3s, width .3s; }
.hero-progress button.is-active { width: 72px; background: var(--accent); }
/* Spinning "Visit our Linktree" badge: bold white text set on a circle, brand red disc. */
.hero-orbit {
    position: absolute; right: 9%; bottom: 16%; z-index: 3; width: 156px; height: 156px;
    border-radius: 50%; display: grid; place-items: center; text-decoration: none;
    background: #E40021; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 12px 30px rgba(0,0,0,.35);
}
.hero-orbit__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: orbit 16s linear infinite; }
.hero-orbit__ring text {
    fill: #fff; font-family: Roboto, Arial, sans-serif; font-size: 15px; font-weight: 900; letter-spacing: 1px;
}
.hero-orbit__icon {
    position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: #E40021; font-size: 1.45rem; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
/* Pause on hover/focus so the text can be read before clicking. */
.hero-orbit:hover .hero-orbit__ring, .hero-orbit:focus-visible .hero-orbit__ring { animation-play-state: paused; }
.hero-orbit:hover .hero-orbit__icon, .hero-orbit:focus-visible .hero-orbit__icon { background: #00183A; color: #fff; }

/* Listing captions over the hero carousel. */
.hero-captions { position: absolute; left: 0; right: 0; top: 1.5rem; z-index: 2; pointer-events: none; text-align: right; }
.hero-caption {
    display: none; text-align: left; max-width: 30rem; padding: .8rem 1.1rem; border-radius: 12px; pointer-events: auto;
    background: rgba(255,255,255,.94); color: #171b24; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero-caption.is-active { display: inline-block; }
.hero-caption:hover { color: #171b24; background: #fff; }
.hero-caption__label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #E40021; }
.hero-caption__title { display: block; font-weight: 700; font-size: 1.05rem; }
.hero-caption__meta { display: block; font-size: .85rem; color: #5b6472; }
.carousel-shell { position: relative; }
.carousel-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .35rem .15rem 1rem; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; }
.carousel-control {
    width: 42px; height: 42px; border: 1px solid #dce2e8; border-radius: 50%; background: #fff; color: var(--primary);
    transition: all .25s ease; box-shadow: 0 5px 15px rgba(0,24,58,.08);
}
.carousel-control:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); }
.carousel-control:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.category-carousel .category-tile { min-height: 210px; }
/* Only hide for the reveal animation when JavaScript is running to show it again. */
.js .reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--motion-ease), transform .7s var(--motion-ease); }
.js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }
.listing-card, .category-tile { will-change: transform; }
.counter-value { font-variant-numeric: tabular-nums; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter-orbit { to { transform: rotate(-360deg); } }
.mobile-action-bar { display: none; }
@media (max-width: 991px) {
    .edge-hero--carousel { min-height: 600px; }
    .carousel-track > * { flex-basis: calc((100% - 1.25rem) / 2); }
    .hero-orbit { right: 5%; bottom: 8%; scale: .8; }
}
@media (max-width: 575px) {
    .edge-hero--carousel { min-height: 610px; }
    .edge-hero__slide::after { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.3)); }
    .hero-captions { display: none; }
    .hero-caption { max-width: calc(100% - 2rem); }
    .carousel-track > * { flex-basis: 88%; }
    .hero-orbit { display: none; }
    .hero-progress { right: 1rem; bottom: 1.3rem; }
    .mobile-action-bar { position: fixed; display: flex; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000; padding: .45rem; gap: .4rem; background: rgba(0,24,58,.94); border-radius: 999px; box-shadow: 0 10px 30px rgba(0,24,58,.25); }
    .mobile-action-bar a { flex: 1; color: #fff; text-align: center; text-decoration: none; font-size: .75rem; padding: .55rem .35rem; border-radius: 999px; }
    .mobile-action-bar a:first-child { background: var(--accent); color: #fff; }
    footer { padding-bottom: 6rem !important; }
    /* Keep the floating buttons clear of the bottom action bar (which has its own Call button). */
    body:has(.mobile-action-bar) .fab-container { bottom: 5.25rem; right: 1rem; }
    body:has(.mobile-action-bar) .fab-phone { display: none; }
    .fab-container .fab-btn { width: 52px; height: 52px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Honeypot for enquiry forms: off-screen for people, still filled in by bots. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Accessibility: visible keyboard focus and a skip link. */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    /* Red ring with a white halo stays visible on both navy and white backgrounds. */
    outline: 3px solid #E40021;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #fff;
}
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 2000; padding: .6rem 1rem;
    background: #fff; color: #00183A; border-radius: 6px; font-weight: 700; }
main:focus { outline: none; }

/* Sort control: applies on change when JavaScript runs. */
.js .sort-apply { display: none; }

/* Removable active-filter chips on listing pages. */
.filter-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px;
    background: #fff; border: 1px solid #c9d1dc; color: #00183A; font-size: .85rem; text-decoration: none; }
.filter-chip:hover { border-color: #E40021; color: #E40021; }
