/* The Wexley Hotel — demo website. Layout modelled on a classic boutique-hotel site:
   light serif display, dark charcoal header, warm gold accent, generous whitespace. */
:root {
  --ink: #303030;
  --ink-soft: #5a5a5a;
  --gold: #d4aa6c;
  --gold-deep: #b8894a;
  --paper: #ffffff;
  --mist: #f2f2f2;
  --charcoal: #262422;
  --line: rgba(48, 48, 48, 0.12);
  --serif: 'Trirong', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7; font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .display { font-family: var(--serif); font-weight: 300; line-height: 1.15; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; margin: 0 0 0.9rem;
}
.wrap { width: min(1296px, calc(100% - 4rem)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 4rem)); margin: 0 auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.7rem; border-radius: 50px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; line-height: 1.2; border: 0; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-white { background: #fff; color: #000; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 74px;
  display: flex; align-items: center; color: #fff;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.75), rgba(20, 18, 16, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.solid, .site-header.scrolled { background: rgba(38, 36, 34, 0.96); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-left { display: flex; align-items: center; gap: 1.2rem; }
.header-left .btn { padding: 0.62rem 1.25rem; font-size: 0.88rem; white-space: nowrap; }
.header-left .parking { font-size: 0.85rem; font-weight: 500; opacity: 0.9; }
.header-left .parking::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: 6px; vertical-align: middle; }
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; white-space: nowrap; text-align: center; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 1.4rem; font-size: 0.88rem; font-weight: 500; }
.lang { opacity: 0.85; }
.lang span { opacity: 0.55; margin-left: 4px; }
.burger { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.burger svg { width: 26px; height: 26px; }

/* Navigation drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 60; background: rgba(38, 36, 34, 0.98); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer a { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); padding: 0.35rem 1rem; opacity: 0.9; transition: opacity 0.15s, color 0.15s; }
.nav-drawer a:hover, .nav-drawer a.current { color: var(--gold); opacity: 1; }
.nav-drawer .drawer-meta { margin-top: 2rem; font-size: 0.9rem; opacity: 0.7; text-align: center; font-family: var(--sans); }
.nav-close { position: absolute; top: 18px; right: 28px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero.short { min-height: 62vh; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)); z-index: -1; }
.hero-content { text-align: center; padding: 6rem 1.5rem 4rem; max-width: 900px; }
.hero-content h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); }
.hero-content p.lead { font-size: 1.1rem; max-width: 620px; margin: 1.4rem auto 0; opacity: 0.95; }
.hero-content .actions { margin-top: 2rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero.left .hero-content { text-align: left; margin-right: auto; padding-left: 0; }
.hero.left .hero-content p.lead { margin-left: 0; }
.hero.left .hero-content .actions { justify-content: flex-start; }
.monogram { width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.85); display: grid; place-items: center; margin: 2.2rem auto 0; font-family: var(--serif); font-size: 2rem; font-weight: 300; letter-spacing: 0.04em; backdrop-filter: blur(3px); background: rgba(0, 0, 0, 0.15); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; opacity: 0.85; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .text h2 { margin-bottom: 1.2rem; }
.split .text .btn { margin-top: 1rem; }
.rounded { border-radius: var(--radius); overflow: hidden; }

/* Room carousel card */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.carousel .slides { display: flex; transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
.carousel .slide { min-width: 100%; aspect-ratio: 4 / 3; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .caption { background: var(--gold); color: var(--ink); display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; min-height: 66px; }
.carousel .caption .title { text-align: center; font-size: 1.35rem; font-weight: 400; }
.carousel .caption button { background: transparent; border: 0; height: 66px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.carousel .caption button svg { width: 22px; height: 22px; }

/* Full-bleed band */
.band { position: relative; height: clamp(320px, 48vw, 620px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band .band-text { position: absolute; inset: auto 0 0 0; padding: 3rem 0; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55)); }
.band .band-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Two-photo grid */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.duo figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.duo figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.duo figure:hover img { transform: scale(1.03); }
.duo figcaption { position: absolute; left: 1.2rem; bottom: 1rem; color: #fff; font-family: var(--serif); font-size: 1.4rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }

/* Amenities */
.amenities { display: grid; grid-template-columns: 1fr 1fr; }
.amenities .grid-cell { background: var(--mist); padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; align-content: center; }
.amenities .photo { min-height: 100%; }
.amenities .photo img { width: 100%; height: 100%; object-fit: cover; }
.amenity { text-align: center; }
.amenity svg { width: 52px; height: 52px; margin: 0 auto 0.6rem; color: var(--ink); }
.amenity .name { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); }
.amenity:nth-child(odd) .name { color: var(--ink); }
.amenity p { font-size: 0.95rem; margin: 0.3rem 0 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 2.7; object-fit: cover; width: 100%; }
.card .card-title { background: var(--gold); color: var(--ink); text-align: center; font-family: var(--serif); font-size: 1.9rem; padding: 0.6rem 1rem; }
.card .card-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card .card-body .btn { align-self: flex-start; margin-top: auto; }
.card .hours { font-size: 0.95rem; }
.card .hours b { display: block; font-weight: 600; }

/* Dining trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); }
.trio .cell { position: relative; min-height: 520px; display: grid; place-items: center; text-align: center; color: #fff; padding: 3rem 1.5rem; isolation: isolate; }
.trio .cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.trio .cell::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: -1; transition: background 0.3s; }
.trio .cell:hover::after { background: rgba(0, 0, 0, 0.42); }
.trio .cell h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: 1rem; }
.trio .cell p { max-width: 320px; margin: 0 auto 1.6rem; }

/* Photo strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

/* Footer */
.site-footer { padding: 3.5rem 0 0; }
.site-footer .brand { color: var(--ink); font-size: 1.9rem; text-align: center; margin-bottom: 2.5rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; font-size: 0.85rem; }
.footer-cols h4 { margin: 0 0 0.6rem; font-size: 0.9rem; font-weight: 600; }
.footer-cols a { display: block; line-height: 1.9; }
.footer-cols a:hover { color: var(--gold-deep); }
.social { display: flex; gap: 0.9rem; margin-top: 0.8rem; }
.social svg { width: 22px; height: 22px; }
.footer-bar { background: var(--gold); color: #fff; text-align: center; font-size: 0.8rem; padding: 0.7rem 1rem; margin-top: 2.5rem; }
.footer-bar a { text-decoration: underline; text-underline-offset: 3px; }

/* Side dock */
.dock { position: fixed; right: 0; top: 40%; z-index: 40; display: flex; flex-direction: column; gap: 6px; }
.dock a { background: var(--gold); color: var(--ink); width: 66px; padding: 0.55rem 0.3rem; border-radius: 10px 0 0 10px; text-align: center; font-size: 0.66rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.dock a svg { width: 20px; height: 20px; display: block; margin: 0 auto 2px; }
.to-top { position: fixed; right: 26px; bottom: 110px; width: 44px; height: 44px; border-radius: 8px; background: var(--gold); color: #fff; display: grid; place-items: center; z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Booking bar + modal */
.book-form { display: flex; gap: 1rem; align-items: flex-end; justify-content: center; flex-wrap: wrap; margin: 2rem auto 0; }
.book-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.book-form input, .book-form select { font: inherit; font-weight: 400; padding: 0.55rem 0.8rem; border: 1px solid #333; border-radius: 6px; min-width: 170px; background: #fff; color: var(--ink); }
.book-form .btn { padding: 0.65rem 1.4rem; }
.note { font-size: 0.85rem; color: var(--ink-soft); text-align: center; max-width: 720px; margin: 1rem auto 0; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal .box { background: #fff; border-radius: var(--radius); width: min(620px, 100%); padding: 2rem 2rem 1.6rem; box-shadow: var(--shadow); position: relative; }
.modal .box h3 { margin-bottom: 0.5rem; }
.modal .close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; color: var(--ink-soft); }
.rate { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.rate:last-of-type { border-bottom: 1px solid var(--line); }
.rate .rname { font-weight: 500; }
.rate .rsub { font-size: 0.85rem; color: var(--ink-soft); }
.rate .price { font-family: var(--serif); font-size: 1.6rem; }
.rate .price small { font-family: var(--sans); font-size: 0.75rem; color: var(--ink-soft); }
.modal .ok { margin-top: 1.2rem; display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--charcoal); color: #fff; padding: 0.8rem 1.2rem; border-radius: 10px; font-size: 0.9rem; z-index: 80; opacity: 0; transition: all 0.3s; max-width: min(520px, calc(100% - 2rem)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Room list (rooms page) */
.room-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: 3rem 0; border-top: 1px solid var(--line); }
.room-row:nth-child(even) > :first-child { order: 2; }
.room-row img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.room-row h3 { font-size: 2rem; margin-bottom: 0.6rem; }
.room-row .facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.85rem; color: var(--ink-soft); margin: 0.8rem 0 1rem; }
.room-row .facts span::before { content: '·'; color: var(--gold); margin-right: 0.5rem; font-weight: 700; }
.room-row .from { font-family: var(--serif); font-size: 1.5rem; margin: 0.3rem 0 1rem; }
.room-row .from small { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }

/* Facts table */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.fact { border-top: 2px solid var(--gold); padding-top: 1rem; }
.fact h4 { margin: 0 0 0.3rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); }
.fact p { margin: 0; font-size: 0.95rem; }

/* Places list */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.place { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.place h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.place .dist { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.place p { margin: 0.5rem 0 0; font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.contact-grid form { display: grid; gap: 0.9rem; }
.contact-grid input, .contact-grid textarea, .contact-grid select { font: inherit; font-weight: 400; padding: 0.7rem 0.9rem; border: 1px solid #bbb; border-radius: 8px; width: 100%; }
.contact-grid textarea { min-height: 140px; resize: vertical; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); display: grid; place-items: center; color: var(--ink-soft); text-align: center; padding: 1rem; }
.legal { font-size: 0.95rem; }
.legal h2 { font-size: 1.6rem; margin: 2rem 0 0.6rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue { animation: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .cards, .trio, .strip { grid-template-columns: repeat(2, 1fr); }
  .trio .cell { min-height: 420px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .wrap, .narrow { width: min(100% - 2.4rem, 1296px); }
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .header-left .parking, .header-right .phone, .lang { display: none; }
  .brand { font-size: 1.05rem; }
  .header-left .btn { padding: 0.5rem 0.9rem; font-size: 0.78rem; }
  .split, .split.flip, .amenities, .duo, .room-row, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child, .room-row:nth-child(even) > :first-child { order: 0; }
  .amenities .grid-cell { grid-template-columns: 1fr 1fr; }
  .amenities .photo { min-height: 320px; }
  .cards, .trio, .strip { grid-template-columns: 1fr; }
  .strip img { aspect-ratio: 16 / 9; }
  .trio .cell { min-height: 380px; }
  .footer-cols { grid-template-columns: 1fr; }
  .dock { display: none; }
  .hero { min-height: 92vh; }
  .book-form label, .book-form input, .book-form select, .book-form .btn { width: 100%; min-width: 0; }
}
