/* ==========================================================================
   Bolton White — polish layer
   Loaded after style.css on every page. Contrast fixes, a unified footer,
   and a calmer, cleaner baseline. Keep overrides here rather than editing
   the large legacy stylesheet.
   ========================================================================== */

:root {
    /* #8b7355 was 4.49:1 on white (fails AA). This is ~5.9:1. */
    --color-accent: #75603f;
    --color-text-light: #545454;
    --color-gray: #5f5f5f;
    --bw-ink: #14141f;
    --bw-line: rgba(20, 20, 31, 0.1);
}

html { -webkit-text-size-adjust: 100%; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Hero legibility
   -------------------------------------------------------------------------- */

/* Home video hero: darken top (for the nav) and bottom (for the booking bar) */
.hero .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 16, 0.55) 0%,
        rgba(8, 8, 16, 0.25) 30%,
        rgba(8, 8, 16, 0.3) 65%,
        rgba(8, 8, 16, 0.6) 100%
    );
}

/* Transparent header sits on imagery — give the links a soft lift */
.header:not(.scrolled) .nav-links > a,
.header:not(.scrolled) .nav-links .nav-item > a,
.header:not(.scrolled) .btn-outline {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.header .nav-links a { font-weight: 500; letter-spacing: 0.08em; }

/* Inner page heroes (rooms, room details): white text over bright photos */
.page-hero .hero-overlay:not([style]) {
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 16, 0.5) 0%,
        rgba(8, 8, 16, 0.38) 50%,
        rgba(8, 8, 16, 0.6) 100%
    );
}
.page-hero h1,
.page-hero p { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }

/* Accent-coloured eyebrow labels sitting on dark hero imagery */
.page-hero .subtitle.text-accent,
.page-hero .text-accent {
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 0.24em;
}

/* Events hero: copy sits over a bright white hall photo */
.events-clean-hero__text-overlay {
    background: linear-gradient(
        to top,
        rgba(8, 8, 16, 0.78) 0%,
        rgba(8, 8, 16, 0.45) 55%,
        rgba(8, 8, 16, 0) 100%
    );
    padding-top: 120px;
}
.events-clean-hero__subtitle { color: rgba(255, 255, 255, 0.92) !important; }

/* --------------------------------------------------------------------------
   Cards & touch devices
   -------------------------------------------------------------------------- */

/* Recreation / experience cards hide copy until hover — touch users never
   hovered, so they never saw the description or the button. */
@media (hover: none) {
    .rec-card .rec-desc { max-height: 120px !important; opacity: 1 !important; }
    .rec-card .rec-btn { opacity: 1 !important; transform: none !important; }
}
.rec-card-overlay span { color: #fff; }

/* Outline button used on light backgrounds (e.g. "Back to All Menus") */
main .btn-outline[href="menu.html"],
section .btn-outline[href="menu.html"] {
    color: var(--bw-ink) !important;
    border-color: var(--bw-ink) !important;
}
main .btn-outline[href="menu.html"]:hover,
section .btn-outline[href="menu.html"]:hover {
    background: var(--bw-ink) !important;
    color: #fff !important;
}

/* Calmer, flatter cards: one hairline, one soft shadow */
.room-card,
.offer-card,
.venue-card,
.exp-card {
    box-shadow: 0 1px 2px rgba(20, 20, 31, 0.04), 0 8px 24px rgba(20, 20, 31, 0.05);
}

/* Section eyebrows: consistent, readable */
.section-label {
    letter-spacing: 0.22em;
    font-weight: 600;
}

/* Comfortable tap targets */
.btn-primary,
.btn-outline,
.btn-book,
.btn-book-bar,
.offer-btn,
.room-card-btn { min-height: 44px; }

/* --------------------------------------------------------------------------
   Footer (unified across all pages)
   -------------------------------------------------------------------------- */
.bw-footer {
    background: #fbfaf8;
    border-top: 1px solid var(--bw-line);
    color: var(--bw-ink);
    padding: 88px 0 32px;
    font-family: var(--font-body);
    text-align: left;
}
.bw-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.bw-footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--bw-line);
}
.bw-footer__logo {
    height: 48px;
    width: auto;
    filter: brightness(0); /* source logo is white */
    margin-bottom: 20px;
}
.bw-footer__brand p {
    max-width: 300px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 24px;
}
.bw-footer__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--bw-ink);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.25s ease;
}
.bw-footer__cta:hover { background: #2b2b3d; }
.bw-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bw-footer__col h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 8px;
    text-align: left;
}
.bw-footer p, .bw-footer span, .bw-footer a { text-align: left; }
.bw-footer__col a,
.bw-footer__col span {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--bw-ink);
    text-decoration: none;
    width: fit-content;
}
.bw-footer__col span { color: var(--color-text-light); }
.bw-footer__col a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.3s ease;
}
.bw-footer__col a:hover { background-size: 100% 1px; }
.bw-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.bw-footer__bottom a { color: var(--bw-ink); text-decoration: none; font-weight: 500; }
.bw-footer__bottom a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .bw-footer__top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
    .bw-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .bw-footer { padding: 64px 0 28px; }
    .bw-footer__top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
    .bw-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
