/* ===========================================================
   The Aurelia — Stylesheet
   =========================================================== */

:root {
    --ink: #202D35;
    --ink-soft: #3a4a54;
    --cream: #f6f1ea;
    --sand: #ebe3d6;
    --gold: #c9a66b;
    --gold-deep: #8a6d3f;      /* AA contrast on cream */
    --white: #fff;
    --danger: #b3382c;
    --success: #2f6b4f;

    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

    --header-h: 76px;
    --radius: 4px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --pad-x: clamp(1.25rem, 5vw, 4.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; background: var(--sand); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: -100px; left: 1rem; z-index: 200;
    background: var(--gold); color: var(--ink);
    padding: .6rem 1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.line { display: block; }

/* ---------- Shared patterns ---------- */
.section-padding { padding: clamp(4rem, 9vw, 8rem) var(--pad-x); }

.eyebrow {
    font-size: .75rem; letter-spacing: .24em; text-transform: uppercase;
    font-weight: 600; color: var(--gold-deep); margin-bottom: 1.1rem;
}

.section-heading { max-width: 46rem; margin: 0 auto; text-align: center; }
.section-heading h2,
.section-top h2,
.experience-content h2,
.reservation-content h2,
.final-cta h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section-description,
.section-side-description,
.reservation-description { color: var(--ink-soft); font-size: 1.05rem; margin-top: 1.4rem; }

.button {
    display: inline-block; padding: 1rem 2rem; border-radius: var(--radius);
    font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; border: 1px solid transparent;
    transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: #d8b883; }
.button-dark { background: var(--ink); color: var(--cream); }
.button-dark:hover { background: #2c3e49; }
.button-light { background: transparent; color: var(--cream); border-color: rgba(246, 241, 234, .6); }
.button-light:hover { background: var(--cream); color: var(--ink); }

.text-link {
    display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--gold); padding-bottom: .15rem;
    transition: color .3s, border-color .3s;
}
.text-link:hover { color: var(--gold-deep); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--pad-x); color: var(--cream);
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(32, 45, 53, .96); box-shadow: 0 2px 20px rgba(0, 0, 0, .15); }
@supports (backdrop-filter: blur(10px)) {
    .site-header.is-scrolled { background: rgba(32, 45, 53, .85); backdrop-filter: blur(10px); }
}

.logo {
    font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: .28em;
    text-decoration: none; position: relative; z-index: 2;
}

.navigation { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.navigation a {
    text-decoration: none; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    position: relative; padding: .3rem 0;
}
.navigation a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.navigation a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
    border: 1px solid var(--gold); padding: .65rem 1.2rem !important; border-radius: var(--radius);
    transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; color: var(--cream); overflow: hidden;
}
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    background:
        linear-gradient(180deg, rgba(32, 45, 53, .55) 0%, rgba(32, 45, 53, .35) 45%, rgba(32, 45, 53, .8) 100%);
}
.hero-content { position: relative; z-index: 1; padding: calc(var(--header-h) + 2rem) var(--pad-x) 6rem; max-width: 56rem; }
.hero-content .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold); }
.hero-description { max-width: 34rem; font-size: 1.1rem; opacity: .92; margin-bottom: 2.2rem; }

.hero-scroll {
    position: absolute; z-index: 1; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .7rem;
    font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; opacity: .85;
}
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- About ---------- */
.about-features {
    max-width: 66rem; margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: center;
}
.about-features li { padding-top: 1.5rem; border-top: 1px solid var(--gold); }
.about-features h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.about-features p { color: var(--ink-soft); margin: 0; }

/* ---------- Rooms ---------- */
.rooms { background: var(--white); }
.section-top {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
    max-width: 78rem; margin: 0 auto 3.5rem;
}
.section-side-description { max-width: 24rem; margin: 0; }

.room-grid { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.room-card { display: flex; flex-direction: column; }
.room-image { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.room-card:hover .room-image img { transform: scale(1.05); }
.room-info { padding-top: 1.4rem; }
.room-category { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); margin-bottom: .5rem; }
.room-info h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.room-info p:not(.room-category) { color: var(--ink-soft); }

/* ---------- Experience ---------- */
.experience { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--cream); }
.experience-image img { width: 100%; height: 100%; min-height: 28rem; object-fit: cover; }
.experience-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(3rem, 7vw, 6rem) var(--pad-x); }
.experience-content .eyebrow { color: var(--gold); }
.experience-content h2 { margin-bottom: 1.5rem; }
.experience-content p:not(.eyebrow) { opacity: .88; max-width: 30rem; margin-bottom: 2rem; }
.experience .button-dark { background: var(--gold); color: var(--ink); }
.experience .button-dark:hover { background: #d8b883; }

/* ---------- Gallery ---------- */
.gallery-grid {
    max-width: 78rem; margin: 3.5rem auto 0;
    display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(14rem, 22rem)); gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-large { grid-row: span 2; }

/* ---------- Reservation ---------- */
.reservation { background: var(--sand); }
.reservation-content { max-width: 40rem; margin: 0 auto; text-align: center; }

#reservation-form { margin-top: 2.5rem; text-align: left; display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .7; }

input, select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--white);
    border: 1px solid #cfc5b4; border-radius: var(--radius); padding: .85rem 1rem; min-height: 3rem;
    transition: border-color .25s, box-shadow .25s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201, 166, 107, .35); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.reservation-button {
    font: inherit; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem;
    background: var(--ink); color: var(--cream); border: 0; border-radius: var(--radius);
    padding: 1.1rem 2rem; cursor: pointer; transition: background .3s, transform .3s var(--ease);
}
.reservation-button:hover:not(:disabled) { background: #2c3e49; transform: translateY(-2px); }
.reservation-button:disabled { opacity: .6; cursor: wait; }

.form-message { min-height: 1.5rem; margin: 0; font-weight: 500; text-align: center; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--success); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--ink); color: var(--cream); text-align: center; padding: clamp(4.5rem, 9vw, 8rem) var(--pad-x); }
.final-cta .eyebrow { color: var(--gold); }
.final-cta h2 { margin-bottom: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: #182229; color: rgba(246, 241, 234, .8); text-align: center; padding: 3.5rem var(--pad-x) 2.5rem; }
.footer-logo { font-family: var(--font-serif); letter-spacing: .28em; font-size: 1.2rem; text-decoration: none; color: var(--cream); }
.site-footer p { margin: .8rem 0 0; }
.footer-disclaimer { font-size: .8rem; opacity: .7; }
.back-to-top { display: inline-block; margin-top: 1.4rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.back-to-top:hover { text-decoration: underline; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .room-grid { grid-template-columns: 1fr 1fr; }
    .room-card:last-child { grid-column: 1 / -1; }
    .room-card:last-child .room-image { aspect-ratio: 16 / 9; }
    .experience { grid-template-columns: 1fr; }
    .section-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 7px;
        position: relative; z-index: 2; width: 44px; height: 44px; padding: 10px;
        background: none; border: 0; cursor: pointer;
    }
    .menu-toggle span { display: block; height: 2px; width: 100%; background: var(--cream); transition: transform .35s var(--ease); }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

    /* Without JS the nav simply wraps visibly; with JS it becomes an overlay */
    .js .navigation {
        position: fixed; inset: 0; background: var(--ink);
        flex-direction: column; justify-content: center; gap: 1.6rem;
        opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    }
    .js .navigation.is-open { opacity: 1; visibility: visible; }
    .js .navigation a { font-size: 1.15rem; }
    .site-header:not(.is-scrolled):has(.navigation.is-open) { background: transparent; }
}

@media (max-width: 680px) {
    .about-features { grid-template-columns: 1fr; gap: 2rem; }
    .room-grid { grid-template-columns: 1fr; }
    .room-card:last-child .room-image { aspect-ratio: 4 / 5; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 16rem; }
    .gallery-large { grid-row: auto; height: 20rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
