/* AAHCL Hotels & Resorts: site styles
   Brand: Harbour Navy, Ambe Gold, Stone White. Jost + Cormorant Garamond. */

:root {
  --navy: #12474F;
  --navy-2: #1A5A63;
  --navy-line: #2C6A72;
  --gold: #F2B33D;
  --gold-soft: #F6C76A;
  --gold-deep: #8A5D08;
  --stone: #F6EFE2;
  --paper: #FFFFFF;
  --line: #E4D9C4;
  --ink: #12474F;
  --ink-2: #2F5257;
  --muted: #4F6B6E;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1200px;
  --arch: 999px 999px 16px 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: .005em; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 22px; line-height: 1.25; }
.soft { display: block; font-family: var(--serif); font-style: normal; font-weight: 300; }
.lede { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 34em; margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 239, 226, .94); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(18, 71, 79, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 27px; height: 42px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: 22px; letter-spacing: .16em; }
.brand-name .wordmark { display: block; align-self: flex-start; height: 19px; width: auto; margin-bottom: 4px; color: var(--ink); }
.site-footer .brand-name .wordmark { color: var(--stone); height: 22px; }
.brand-name small { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav .btn { border-bottom: none; padding: 0 22px; }
.site-nav .btn-navy, .site-nav .btn-navy:hover { color: var(--stone); }
.menu-toggle { display: none; }
.saved-link { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--stone); }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { color: inherit; box-shadow: inset 0 0 0 1px currentColor; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--stone); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 150px; }
.hero h1 .soft { color: var(--gold-soft); }
.hero .lede { color: #D7E6E4; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-mark { justify-self: center; width: min(380px, 100%); }
.hero-mark .light { fill: var(--gold); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: fillUp 1.4s 1.0s cubic-bezier(.6, 0, .2, 1) forwards; }
.hero-mark .frame { fill: none; stroke: var(--stone); stroke-width: 10; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes fillUp { to { transform: none; } }
.hero-mark .orbit { fill: none; stroke: var(--gold); stroke-opacity: .3; stroke-dasharray: 3 10; }
.hero-copy > * { animation: enter .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Booking bar ---------- */
.booking { position: relative; z-index: 2; max-width: 1100px; margin: -88px auto 0; background: var(--paper); border-radius: 22px; box-shadow: 0 24px 60px rgba(18, 71, 79, .18); padding: 22px; display: grid; grid-template-columns: 1fr 1fr .8fr auto; gap: 16px; align-items: end; }
.booking.inline { margin: 0; box-shadow: none; border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { min-height: 50px; padding: 0 14px; border: 1px solid #CCBFA6; border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFCF6; width: 100%; }
.field textarea { padding: 12px 14px; min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(242, 179, 61, .45); outline-offset: 0; }
.booking .btn { min-height: 50px; border-radius: 12px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head h2 .soft { color: var(--gold-deep); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro blockquote { margin: 0; font-family: var(--serif); font-style: normal; font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; color: var(--navy); }
.intro p { margin: 0 0 18px; color: var(--ink-2); font-size: 18px; line-height: 1.75; max-width: 32em; }

/* Arch-framed room showcase: the site's signature shape */
.arch-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.arch-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.arch-frame { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.arch-frame svg, .arch-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.arch-card:hover .arch-frame svg, .arch-card:hover .arch-frame img { transform: scale(1.04); }
.arch-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.arch-card .price { font-weight: 600; white-space: nowrap; }
.arch-card .price small { font-weight: 400; color: var(--muted); }
.arch-card p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Amenities */
.amenities { background: var(--paper); }
.amenity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; list-style: none; margin: 0; padding: 0; }
.amenity-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.amenity-list svg { width: 32px; height: 32px; color: var(--gold-deep); }
.amenity-list h3 { font-size: 20px; margin-bottom: 4px; }
.amenity-list p { margin: 0; color: var(--ink-2); }

/* Experiences split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.flip .split-media { order: 2; }
.split-media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; max-height: 620px; }
.split-media svg, .split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--ink-2); font-size: 18px; line-height: 1.75; max-width: 30em; }
.split ul { padding-left: 20px; color: var(--ink-2); }

/* CTA band */
.cta { background: var(--navy); color: var(--stone); text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 96px; padding-bottom: 96px; }
.cta h2 .soft { color: var(--gold-soft); }
.cta p { margin: 0; color: #D7E6E4; max-width: 34em; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--stone); }
.page-hero .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.page-hero h1 .soft { color: var(--gold-soft); }
.page-hero p { margin: 0; color: #D7E6E4; max-width: 30em; }

/* ---------- Rooms page ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 420px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #CCBFA6; background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--stone); border-color: var(--navy); }
.range { display: flex; align-items: center; gap: 12px; font-size: 15px; flex: 1 1 260px; }
.range input { flex: 1; accent-color: var(--navy); }
.sort select { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #CCBFA6; font: inherit; background: #FFFCF6; color: var(--ink); }
.result-line { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 40px 28px; }
.room { display: flex; flex-direction: column; gap: 16px; animation: enter .6s cubic-bezier(.2, .7, .2, 1) both; }
.room .arch-frame { position: relative; aspect-ratio: 5 / 5.4; }
.room .badge { position: absolute; bottom: 18px; left: 14px; background: rgba(255, 255, 255, .92); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.heart { position: absolute; bottom: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .94); display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.heart:hover { transform: scale(1.08); }
.heart svg { width: 20px; height: 20px; }
.heart path { fill: none; stroke: var(--navy); stroke-width: 1.8; transition: fill .2s; }
.heart[aria-pressed="true"] path { fill: var(--gold); stroke: var(--gold-deep); }
.heart[aria-pressed="true"] { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.2); } }
.room .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.room .price { font-size: 20px; font-weight: 600; white-space: nowrap; }
.room .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: 14px; vertical-align: middle; }
.room p { margin: 0; color: var(--ink-2); font-size: 16px; }
.room .stay { color: var(--gold-deep); font-weight: 500; font-size: 15px; }
.room .actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed #CCBFA6; border-radius: 20px; background: var(--paper); }
.empty p { margin: 0 0 16px; font-size: 19px; }

/* Compare bar */
.compare-bar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 45; display: flex; align-items: center; gap: 12px; background: var(--navy); color: var(--stone); padding: 8px 8px 8px 22px; border-radius: 999px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); transition: transform .35s cubic-bezier(.2, .7, .2, 1); max-width: calc(100% - 32px); }
.compare-bar.show { transform: translate(-50%, 0); }
.compare-bar .link { background: none; border: none; color: var(--gold-soft); font: inherit; cursor: pointer; min-height: 44px; padding: 0 10px; }

/* Dialogs */
dialog { border: none; padding: 0; overflow: auto; border-radius: 24px; width: min(960px, calc(100% - 32px)); max-height: 92vh; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(8, 36, 40, .64); }
dialog[open] { animation: sheet .45s cubic-bezier(.2, .7, .2, 1); }
dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes sheet { from { opacity: 0; transform: translateY(36px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .95); font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; z-index: 2; }
.room-dialog-body { display: grid; grid-template-columns: 1.2fr .8fr; }
.room-dialog-body .media { height: 260px; }
.room-dialog-body .media svg, .room-dialog-body .media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-main { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.dialog-main h2 { font-size: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.extras { display: flex; flex-direction: column; gap: 8px; border: none; padding: 0; margin: 0; }
.extras legend { font-weight: 600; margin-bottom: 8px; }
.extra { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.extra:hover { border-color: var(--gold); }
.extra:has(input:checked) { border-color: var(--navy); background: #FBF5E9; }
.extra input { width: 20px; height: 20px; accent-color: var(--navy); }
.extra small { display: block; color: var(--muted); }
.summary { background: var(--navy); color: var(--stone); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary .total { border-top: 1px solid var(--navy-line); padding-top: 14px; align-items: baseline; }
.summary .total strong { font-size: 32px; color: var(--gold-soft); }
.summary .note { font-size: 13px; color: #A9C4C2; margin: 0; }
.summary .error { color: #FFD7C2; font-size: 14px; margin: 0; }
.summary .field { color: #D7E6E4; }
.summary .field input { background: var(--navy-2); color: var(--stone); border-color: var(--navy-line); min-height: 46px; }
.summary h3 { color: var(--gold-soft); font-family: var(--serif); font-style: normal; font-weight: 500; font-size: 26px; }

.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0 28px 28px; }
.compare-col { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.compare-col .arch-frame { aspect-ratio: 4 / 3; border-radius: 0; }
.compare-col dl { margin: 0; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; font-size: 15px; }
.compare-col dt { color: var(--muted); }
.compare-col dd { margin: 0; text-align: right; }
.compare-col .btn { margin: 0 18px 18px; }
.dialog-head { padding: 28px 80px 20px 28px; }

.confirm { padding: 64px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.confirm svg path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1s .2s ease forwards; }
.confirm .ref { background: var(--navy); color: var(--stone); padding: 12px 22px; border-radius: 12px; letter-spacing: .1em; font-weight: 500; }
.confirm p { margin: 0; color: var(--ink-2); max-width: 32em; }
.confirm .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.contact-card { background: var(--navy); color: var(--stone); border-radius: var(--arch); padding: 120px 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.contact-card a { color: var(--gold-soft); }
.contact-card dt { color: #A9C4C2; font-size: 14px; }
.contact-card dd { margin: 0 0 14px; font-size: 18px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 24px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--navy); color: #D7E6E4; border-top: 1px solid var(--navy-line); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer .brand { color: var(--stone); }
.site-footer .brand-name small { color: #D7E6E4; }
.site-footer h3 { font-size: 15px; color: var(--stone); margin-bottom: 12px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #D7E6E4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--navy-line); padding-top: 24px; font-size: 14px; color: #A9C4C2; }

/* Toast */
.toast { position: fixed; top: 92px; right: 20px; z-index: 80; background: var(--paper); color: var(--ink); padding: 14px 20px; border-radius: 14px; box-shadow: 0 14px 34px rgba(18, 71, 79, .2); font-weight: 500; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }

/* ---------- Pre-launch ---------- */
.is-prelaunch .live-only, .is-live .pre-only { display: none !important; }
.announce { background: var(--gold); color: var(--navy); text-align: center; font-size: 15px; font-weight: 500; padding: 10px 20px; }
.announce a { color: var(--navy); font-weight: 600; }
.opening { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border: 1px solid var(--navy-line); border-radius: 999px; color: var(--gold-soft); font-weight: 500; }
.opening .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(242, 179, 61, .6); animation: beacon 2.4s ease-out infinite; }
@keyframes beacon { 70% { box-shadow: 0 0 0 10px rgba(242, 179, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 179, 61, 0); } }
.countdown { display: flex; gap: 12px; margin-top: 32px; }
.countdown[hidden] { display: none; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 12px 10px; border: 1px solid var(--navy-line); border-radius: 14px; }
.countdown strong { font-size: 30px; line-height: 1.1; color: var(--stone); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 13px; color: #A9C4C2; }
.early { background: var(--paper); padding: 112px 0; }
.early-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.early h2 .soft { color: var(--gold-deep); }
.early .lede { margin-top: 20px; }
.early-done h3 { font-family: var(--serif); font-style: normal; font-weight: 500; font-size: 32px; color: var(--gold-deep); }
.early-done p { color: var(--ink-2); }

/* ---------- Motion layer (only when motion is welcome) ---------- */
:root { --ease: cubic-bezier(.2, .75, .2, 1); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); transform-origin: 0 50%; transform: scaleX(0); z-index: 90; pointer-events: none; }
.site-header { transition: transform .4s var(--ease), box-shadow .3s; }
.site-header.tucked { transform: translateY(-100%); }

/* Page enter / leave */
.motion-ok body { animation: pagein .6s ease both; }
html.leaving body { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

/* Hero: masked headline lines, particles, floating and tilting mark */
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy > h1 { animation: none; }
.split-lines .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.split-lines .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) .1s forwards; }
.split-lines .line + .line > span { animation-delay: .28s; }
@keyframes lineUp { to { transform: none; } }
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particles span { position: absolute; bottom: -12px; width: var(--size); height: var(--size); border-radius: 50%; background: var(--gold-soft); opacity: 0; box-shadow: 0 0 10px rgba(246, 199, 106, .7); animation: floatUp var(--dur) linear var(--delay) infinite; }
@keyframes floatUp { 10% { opacity: .75; } 85% { opacity: .4; } 100% { transform: translate(var(--drift), -120vh); opacity: 0; } }
.hero-mark { transform: translate(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px))) rotate(var(--rot, 0deg)); transition: transform .8s var(--ease); animation: bob 7s ease-in-out 2.4s infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.hero-mark .orbit { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.hero-mark .light { animation: fillUp 1.4s 1.0s cubic-bezier(.6, 0, .2, 1) forwards, glow 4s 2.6s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 22px rgba(242, 179, 61, .6)); } }
@keyframes spin { to { transform: rotate(360deg); } }
.opening span:last-child { background: linear-gradient(100deg, var(--gold-soft) 40%, #FFF1CF 50%, var(--gold-soft) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.countdown strong.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-8px); opacity: .2; } }

/* Scroll reveals */
.motion-ok .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.motion-ok .reveal.in { opacity: 1; transform: none; }
.motion-ok .unveil { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1); }
.motion-ok .unveil.in { clip-path: inset(0 0 0 0); }
.motion-ok .unveil > svg, .motion-ok .unveil > img { transform: translateY(var(--py, 0px)) scale(1.1); transition: transform 1.2s var(--ease); }
.motion-ok .arch-card:hover .unveil > svg, .motion-ok .arch-card:hover .unveil > img { transform: translateY(var(--py, 0px)) scale(1.16); }
.motion-ok .amenity-list li svg * { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.6s ease calc(var(--d, 0ms) + 200ms); }
.motion-ok .amenity-list li.in svg * { stroke-dashoffset: 0; }

/* Arch frames: a fine inner outline on hover */
.arch-frame { position: relative; }
.arch-frame::after { content: ""; position: absolute; inset: 12px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: inherit; opacity: 0; transform: scale(1.05); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.arch-card:hover .arch-frame::after, .room:hover .arch-frame::after { opacity: 1; transform: none; }
.room .arch-frame svg, .room .arch-frame img { transition: transform .9s var(--ease); }
.room:hover .arch-frame svg, .room:hover .arch-frame img { transform: scale(1.06); }
.room .meta h3, .arch-card h3 { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); display: inline; }
.room:hover .meta h3, .arch-card:hover h3 { background-size: 100% 2px; }

/* Buttons: soft light sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:active, .chip:active { transform: scale(.97); }
a.bump svg { animation: pop .45s ease; }

/* Ribbon of taglines */
.ribbon { overflow: hidden; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ribbon-track { display: flex; align-items: center; gap: 40px; width: max-content; font-family: var(--serif); font-style: normal; font-weight: 300; font-size: clamp(28px, 3.4vw, 44px); color: var(--navy); white-space: nowrap; animation: marquee 45s linear infinite; }
.ribbon-track i { font-style: normal; color: var(--gold); font-size: .55em; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Inner page heroes */
.page-hero .wrap > * { animation: enter .9s var(--ease) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: .15s; }

/* Dialog contents arrive in sequence */
dialog[open] .dialog-main > *, dialog[open] .summary > *, dialog[open] .compare-col { animation: enter .6s var(--ease) both; }
dialog[open] .dialog-main > :nth-child(2), dialog[open] .summary > :nth-child(2), dialog[open] .compare-col:nth-child(2) { animation-delay: .06s; }
dialog[open] .dialog-main > :nth-child(3), dialog[open] .summary > :nth-child(3), dialog[open] .compare-col:nth-child(3) { animation-delay: .12s; }
dialog[open] .dialog-main > :nth-child(n+4), dialog[open] .summary > :nth-child(n+4) { animation-delay: .18s; }
.summary .total strong { display: inline-block; transition: transform .3s var(--ease); }
.extra input:checked + span { color: var(--navy); }
.faq details[open] p { animation: enter .45s var(--ease) both; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .intro, .split, .contact-grid, .room-dialog-body, .early-grid { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .hero-mark { width: 240px; order: -1; }
  .brand-name small { font-size: 8.5px; letter-spacing: .1em; }
  .hero .wrap { padding-top: 48px; }
  .booking { grid-template-columns: 1fr 1fr; margin-left: 16px; margin-right: 16px; }
  .booking .btn { grid-column: 1 / -1; }
  .arch-row { grid-template-columns: 1fr; max-width: 420px; }
  .amenity-list { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .room-dialog-body .media { height: 220px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s; }
  .menu-toggle .bars::before { position: absolute; top: -6px; }
  .menu-toggle .bars::after { position: absolute; top: 6px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--stone); padding: 8px 24px 24px; box-shadow: 0 16px 30px rgba(18, 71, 79, .12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .section { padding: 80px 0; }
  .form { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-mark .frame, .confirm svg path { stroke-dashoffset: 0; }
  .hero-mark .light { transform: none; }
  .split-lines .line > span { transform: none; }
  .hero-mark { transform: none; }
}
