/* ==========================================================================
   Accessibility & layout overrides — loaded after style-min.css
   ========================================================================== */

:root {
    --gold: #aa8453;          /* brand gold: decoration, icons, text on dark */
    --gold-text: #8a6a3f;     /* darker gold: text on light bg (≥4.5:1) */
    --ink: #1b1b1b;
    --focus: #1b6fd6;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--ink);
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: 16px;
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Visible keyboard focus (theme removed all outlines) ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus) !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #fff;
}
.footer a:focus-visible,
.kenburns-section a:focus-visible {
    outline-color: #fff !important;
    box-shadow: 0 0 0 5px var(--ink);
}

/* ---------- Screen-reader-only helper ---------- */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------- Typography: readable body text ---------- */
p { font-size: 16px; font-weight: 400; }
.footer .bottom p { font-size: 14px; }
.section-title span { color: var(--gold-text); }
.bg-white .section-title span,
.room4 .section-title span { color: var(--gold-text); }

/* Headings converted from <div> keep the theme look */
h2.section-title { font-family: 'Libre Caslon Display', serif; color: var(--ink); }
.caption .hero-eyebrow {
    font-family: Outfit, sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px !important;
}

/* section-title used float:left, which broke the flow of following
   paragraphs on narrow screens — let it be a normal block */
.section-title { float: none; display: block; }

/* Long welcome copy: keep line length readable */
.about .aboutText { max-width: 75ch; margin-bottom: 15px !important; }
.about .about-more { margin-top: 30px; }

/* ---------- Hero ---------- */
.kenburns-section { min-height: 560px; height: 100svh; }
.butn-light a { display: inline-block; min-height: 48px; font-size: 14px; }

/* Scroll-down indicator: give it a real target size */
.mouse { min-width: 44px; min-height: 44px; padding: 0 9px; }

/* ---------- Back-to-top button (was a non-focusable div) ---------- */
button.progress-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    width: 46px;
    height: 46px;
}

/* ---------- Touch targets ---------- */
.rooms3 .icon-btn,
.footer .top .item .social a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
}
.footer .top .item .social a { margin-right: 8px; }
.footer-explore-list li a { padding-top: 6px; padding-bottom: 6px; }
.footer .top .item p a { display: inline-block; padding: 4px 0; }
.footer .bottom .legal-links { gap: 24px; flex-wrap: wrap; }
.footer .bottom .legal-links p { margin: 0; }

/* ---------- Room cards ----------
   Details were only revealed on :hover — invisible for keyboard
   and touch users. Reveal on focus too, and make the whole card a link. */
.rooms3 { cursor: pointer; }
.rooms3 .room-label { display: block; font-family: 'Libre Caslon Display', serif; }

/* visibility:hidden made the "details" link unfocusable — keep it in the
   accessibility tree and hide visually with opacity only */
.rooms3 .room-wrap,
.rooms3 .room-title,
.rooms3 .room-text,
.rooms3 .room-facilities ul { visibility: visible; }

.rooms3:focus-within .room-header {
    transform: translateX(-150%);
    opacity: 0;
    visibility: hidden;
}
.rooms3:focus-within .room-wrap,
.rooms3:focus-within .room-title,
.rooms3:focus-within .room-text,
.rooms3:focus-within .room-facilities ul {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}
.rooms3 .room-label { text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* Touch devices: no hover — show a readable label strip on the image */
@media (hover: none) {
    .rooms3 .room-header {
        left: 0; right: 0; bottom: 0; top: auto;
        padding: 16px 20px;
        background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    }
    .rooms3 .room-label {
        writing-mode: horizontal-tb;
        transform: none;
        white-space: normal;
        font-size: 24px;
        line-height: 1.2;
    }
}

/* ---------- Images: width/height attributes reserve space (no layout shift);
   zero-specificity rule keeps the aspect ratio unless a component sets its own height ---------- */
:where(img) { height: auto; max-width: 100%; }

/* ---------- Staggered gallery offset (width/height attributes already prevent jumping) ---------- */
.about .gallery-offset { margin-top: 25%; }

/* ---------- Mobile layout ---------- */
@media (max-width: 767.98px) {
    .section-title { font-size: 34px; }
    .about .row.g-3 { margin-top: 30px; }
    .about .gallery-offset { margin-top: 15%; }
    .footer .bottom .legal-links { justify-content: flex-start !important; }
    .kenburns-section .caption h1 { font-size: 44px; }
}

/* ---------- Contact form: visible labels ---------- */
.contact__form .form-label {
    display: block;
    margin-bottom: 6px;
    font-family: Outfit, sans-serif;
    font-size: 15px;
    color: var(--ink);
}
.contact__form .form-note { font-size: 14px; margin-bottom: 15px !important; }
input[type=tel] {
    max-width: 100%; width: 100%; display: block; margin-bottom: 0;
    padding: 10px 0; height: auto; line-height: 1.5em;
    background: transparent; box-shadow: none;
    border: 0; border-bottom: 1px solid #e5dddc;
    font-family: Outfit, sans-serif; font-weight: 300; color: #3b3b3b;
}
.contact__form input,
.contact__form textarea {
    min-height: 48px;
    font-size: 16px;
    border-bottom-color: #8c8280; /* field boundary ≥3:1 against background */
}
.contact__form ::placeholder { color: #6f6866; }

/* ---------- Room list page (rooms.html): titles converted to h2 ---------- */
h2.room-title { font-family: 'Libre Caslon Display', serif; }

/* ---------- Headings converted from h5/h6 to h2 keep their old look ---------- */
.services3-content .services3-text h2.svc-title {
    font-family: 'Libre Caslon Display', serif;
    font-size: 30px; font-weight: 400; line-height: 1.2em;
    color: #1b1b1b; margin: 0 0 15px;
}
h2.room-subtitle {
    font-family: 'Libre Caslon Display', serif;
    font-size: 24px; font-weight: 400; line-height: 1.2em;
    color: #1b1b1b; margin: 0 0 15px;
}

/* ---------- Room detail pages: title converted to h1 ---------- */
.room-details2 .wrap .caption h1.title { margin-bottom: 10px; }

/* ---------- Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .wow { visibility: visible !important; }
}
