/* Miami One One — site styles
   Colours match the Preno booking engine theme (see README). */
:root {
  --gold: #c0a739;
  --gold-dark: #a08a2a;
  --ink: #1e293b;
  --ink-soft: #334155;
  --muted: #64748b;
  --panel: #f6f6f6;
  --line: #e2e8f0;
  --white: #ffffff;
  --radius: 4px;
  /* Frosted glass, shared by the menu bar and the homepage logo */
  --glass-bg: rgba(255,255,255,.48);
  --glass-filter: saturate(180%) blur(18px);
  --glass-border: rgba(255,255,255,.45);
  --glass-bg-logo: rgba(255,255,255,.72); /* same glass, more white so the logo reads clearly */
  --wrap: 1200px;
  --head-font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-soft);
  font: 17px/1.65 var(--body-font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head-font); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--panel { background: var(--panel); }
.eyebrow {
  font-family: var(--head-font); font-size: .8rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .8em;
}
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--gold); color: #fff; text-decoration: none;
  font: 600 .95rem/1 var(--head-font); letter-spacing: .12em; text-transform: uppercase;
  padding: 20px 40px; border-radius: var(--radius);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.btn--small { padding: 13px 22px; font-size: .8rem; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Header */
/* Slim frosted-glass bar ("Apple glass"): the page shows through, blurred */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 12px rgba(15,23,42,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.logo { display: block; padding: 4px 0; }
.logo img { width: 54px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none;
  font: 500 .76rem var(--head-font); letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 0; border-bottom: 2px solid transparent;
}
.nav .btn--small { padding: 10px 18px; font-size: .74rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .site-header .wrap { min-height: 58px; }
  .logo img { width: 46px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; display: none;
  }
  .nav a:not(.btn) { font-size: .85rem; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; text-align: center; }
}

/* Homepage: header is clear over the hero, becomes frosted glass once you scroll.
   The small logo stays hidden (the big one is in the hero) and fades in after scrolling. */
.site-header--overlay {
  position: fixed; left: 0; right: 0;
  transition: background .4s, border-color .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.site-header--overlay:not(.is-solid) {
  background: transparent; border-bottom-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header--overlay .logo { transition: opacity .5s, transform .5s; }
.site-header--overlay:not(.is-solid) .logo { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.site-header--overlay:not(.is-solid) .nav-toggle { color: #fff; }
@media (min-width: 861px) {
  .site-header--overlay:not(.is-solid) .nav a:not(.btn) { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
  .site-header--overlay:not(.is-solid) .nav a[aria-current="page"] { border-bottom-color: transparent; }
  .site-header--overlay:not(.is-solid) .nav .btn { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
  .site-header--overlay:not(.is-solid) .nav .btn:hover { background: rgba(255,255,255,.15); }
}

/* Hero */
.hero.hero--full { min-height: 100vh; min-height: 100svh; padding-top: 84px; padding-bottom: 72px; }
.hero {
  position: relative; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
  display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate;
  padding: 64px 24px;
}
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-out both; }
/* Light touch only: a soft shade at the top for the menu and at the bottom for the tagline */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,42,.38) 0%, rgba(15,23,42,0) 22%, rgba(15,23,42,0) 62%, rgba(15,23,42,.42) 100%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero__badge {
  /* sized by the smaller of screen width/height so it always sits comfortably inside the photo */
  margin: 0; width: clamp(200px, min(29vw, 40vh), 346px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; padding: 3%;
  background: var(--glass-bg-logo);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(15,23,42,.18);
  animation: fade-rise 1.4s ease-out both .15s;
}
.hero__badge img { width: 94%; height: auto; margin-left: 4%; } /* nudge right: "Miami" overhangs the ring on the right */
.hero__tagline {
  font: italic 600 clamp(1rem, 1.8vw, 1.3rem) var(--head-font); margin: 22px 0 26px;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
  animation: fade-rise 1.4s ease-out both .5s;
}
.hero .btn { animation: fade-rise 1.4s ease-out both .7s; }
@keyframes fade-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Safety net (set by main.js after 2.5s): never leave the hero invisible if animations are paused */
.hero-shown .hero__badge, .hero-shown .hero__tagline, .hero-shown .hero .btn { animation: none; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .8; }
.hero__scroll svg { width: 26px; height: 26px; animation: bob 2s ease-in-out infinite; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .hero__img img, .hero__scroll svg, .hero__badge, .hero__tagline, .hero .btn { animation: none; }
  html { scroll-behavior: auto; }
}

/* Intro: slider + text */
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--panel); }
.intro__text { padding: 64px clamp(24px, 6vw, 88px); }
.intro__text .eyebrow { font-size: .95rem; letter-spacing: .08em; text-transform: none; color: var(--ink); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__text { padding: 48px 24px; } }

.slider { position: relative; height: 100%; min-height: 420px; background: #ddd; }
.slider__track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  position: absolute; inset: 0;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.88); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.slider__btn:hover { background: #fff; }
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }
.slider__count {
  position: absolute; right: 16px; bottom: 16px; background: rgba(15,23,42,.7); color: #fff;
  font: 500 .8rem var(--head-font); padding: 5px 10px; border-radius: 20px; letter-spacing: .05em;
}
@media (max-width: 900px) { .slider { min-height: 0; aspect-ratio: 3 / 2; } }

/* Amenities band */
.amenities { background: var(--ink-soft); color: #fff; padding: 34px 0; }
.amenities ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px;
}
.amenities li { display: flex; align-items: center; gap: 10px; font: 600 .95rem var(--head-font); letter-spacing: .03em; }
.amenities svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.amenities a { color: #fff; }

/* Room cards */
.rooms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1100px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rooms-grid { grid-template-columns: 1fr; } }
.room-card { display: flex; flex-direction: column; background: #fff; }
.room-card h3 { margin-bottom: .2em; }
.room-card__meta { font-style: italic; color: var(--muted); margin-bottom: 14px; }
.room-card__img { overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 3 / 2; }
.room-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room-card:hover .room-card__img img { transform: scale(1.05); }
.room-card__facts { list-style: none; padding: 0; margin: 0 0 20px; font-size: .95rem; }
.room-card__facts li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.room-card .btn { margin-top: auto; align-self: center; }
/* Line up titles, photos and buttons across cards even when text lengths differ */
@supports (grid-template-rows: subgrid) {
  .rooms-grid { grid-auto-rows: auto; }
  .room-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .room-card h3 { align-self: end; }
  .room-card .btn { justify-self: center; align-self: end; }
}

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } }
.facts-box { background: #fff; border-top: 4px solid var(--gold); padding: 32px; box-shadow: 0 6px 30px rgba(15,23,42,.06); }
.facts-box ul { list-style: none; padding: 0; margin: 0 0 8px; }
.facts-box li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts-box li:last-child { border-bottom: 0; }
.about__aside { display: grid; gap: 24px; }
.facts-box .rules li { display: block; }
.facts-box svg { width: 20px; height: 20px; color: var(--gold-dark); flex: none; margin-top: 3px; }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .location { grid-template-columns: 1fr; } }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--panel); }

/* CTA band */
.cta { position: relative; color: #fff; text-align: center; padding: 110px 24px; isolation: isolate; overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.55); z-index: -1; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { font-size: 1.1rem; margin-bottom: 32px; }

/* Page header (inner pages) */
.page-hero { position: relative; color: #fff; padding: 120px 24px 90px; text-align: center; isolation: isolate; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.5); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.page-hero p { font: italic 600 1.2rem var(--head-font); margin: .5em 0 0; }
.page-hero--plain { background: var(--ink-soft); padding: 70px 24px 60px; }
.page-hero--plain::after { display: none; }
@media (max-width: 600px) {
  .page-hero { padding: 56px 20px 44px; }
  .page-hero--plain { padding: 26px 20px 22px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p { font-size: .95rem; margin-top: .3em; }
  .page-hero + .section { padding-top: 32px; }
}

/* Room page */
.room-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .room-layout { grid-template-columns: 1fr; gap: 32px; } }
.room-aside { position: sticky; top: 90px; }
.room-aside .btn { width: 100%; text-align: center; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.breadcrumb { font-size: .9rem; margin-bottom: 24px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.other-rooms { display: flex; flex-wrap: wrap; gap: 12px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,15,25,.94); display: none; place-items: center; z-index: 200; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--radius); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; }
.lightbox svg { width: 32px; height: 32px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Booking page */
.booking-frame { min-height: 640px; background: #fff; }
.booking-help { margin-bottom: 32px; padding: 20px 24px; background: var(--panel); border-left: 4px solid var(--gold); font-size: .95rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label, legend { display: block; font: 600 .9rem var(--head-font); color: var(--ink); margin-bottom: 6px; }
.req, .opt { font-weight: 500; font-size: .8rem; margin-left: 2px; }
.req { color: rgba(180,35,24,.75); }
.opt { color: var(--muted); }
.checkbox-field { display: flex; align-items: flex-end; padding-bottom: 12px; }
.checkbox-field label { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; cursor: pointer; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--gold-dark); flex: none; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cbd5e1; border-radius: var(--radius); padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
textarea { min-height: 150px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; gap: 24px; flex-wrap: wrap; }
.radios label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.radios input { width: auto; accent-color: var(--gold-dark); }
.honeypot { display: none !important; }
/* Thank-you page "Is this urgent?" box */
.urgent {
  max-width: 560px; margin: 36px auto 0; padding: 40px 28px; background: var(--panel);
  border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: 0 6px 30px rgba(15,23,42,.06);
}
.urgent h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: .3em; }
.urgent__phone {
  display: inline-flex; align-items: center; gap: 12px; margin: 10px 0 22px;
  font: 700 clamp(1.7rem, 6vw, 2.4rem) var(--head-font); color: var(--ink); text-decoration: none; letter-spacing: .02em;
}
.urgent__phone svg { width: .9em; height: .9em; color: var(--gold-dark); }
.urgent__phone:hover { color: var(--gold-dark); }
.urgent__email { margin: 18px 0 0; color: var(--muted); }
.urgent__email a { overflow-wrap: anywhere; }
.form-alt { font-size: .95rem; color: var(--muted); margin: 4px 0 0; }
.site-footer a[href^="mailto:"], .contact-card a[href^="mailto:"] { overflow-wrap: anywhere; }
.char-count { font-size: .8rem; color: var(--muted); text-align: right; margin-top: 4px; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); display: none; }
.form-status.is-ok { display: block; background: #ecfdf3; color: #05603a; }
.form-status.is-err { display: block; background: #fef3f2; color: #b42318; }
.contact-card { background: var(--panel); padding: 32px; border-top: 4px solid var(--gold); }
.contact-card dl { margin: 0; }
.contact-card dt { font: 600 .8rem var(--head-font); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; color: var(--ink); }
.contact-card dd a { color: var(--ink); font-weight: 600; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 64px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer p { margin: 0 0 .6em; }
.site-footer a { color: var(--ink); }
.footer-logo img { width: 130px; }
.footer-bottom { background: var(--ink-soft); color: #fff; font-size: .85rem; padding: 18px 0; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #fff; }
.footer-bottom .credit { opacity: .7; text-decoration: none; font-size: .8rem; }
.footer-bottom .credit:hover { opacity: 1; text-decoration: underline; }

/* Sticky mobile book bar */
.mobile-book { display: none; }
@media (max-width: 860px) {
  .mobile-book {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; padding: 10px 12px;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.06);
  }
  .mobile-book .btn { flex: 1; text-align: center; padding: 15px 10px; }
  body.has-mobile-book { padding-bottom: 72px; }
}
