:root {
  --cream: #F2EEE6;
  --paper: #FAF7F1;
  --card: #FFFDF9;
  --taupe: #C9BBA6;
  --sage: #A9B38A;
  --mist: #E6E9D9;
  --brown: #5E4E40;
  --ink: #3B3028;
  --line: rgba(94, 78, 64, 0.22);

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 74rem;
  /* Side padding that keeps content inside --max and aligned across sections */
  --inset: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

html.is-booking { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Headings */

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid var(--brown);
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--ink); border-color: var(--ink); }

.btn-outline { background: transparent; color: var(--brown); }
.btn-outline:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }

.btn-light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-small { min-height: 44px; padding: 0.5rem 1.3rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
}

/* Header: floats over the hero photo, turns solid after scrolling */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--inset);
  background: rgba(242, 238, 230, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark { width: 44px; height: 44px; border-radius: 50%; }

.brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.5rem 0;
}

.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }

.site-header.is-over-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
}

.site-header.is-over-hero .btn-nav { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.site-header.is-over-hero .btn-nav:hover { background: #fff; border-color: #fff; }

/* Hero: a photo of the room with the headline over it */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(34rem, 92svh, 58rem);
  padding: 8rem var(--inset) clamp(3rem, 8vw, 6rem);
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(40, 31, 25, 0.78) 0%, rgba(40, 31, 25, 0.45) 48%, rgba(40, 31, 25, 0.08) 100%),
    linear-gradient(0deg, rgba(40, 31, 25, 0.45), rgba(40, 31, 25, 0) 45%);
}

.hero-inner { position: relative; z-index: 1; max-width: 40rem; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06;
}

.hero .lead {
  max-width: 32rem;
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
}

/* Sections */

.section { padding: clamp(4rem, 9vw, 7rem) var(--inset); }

.section-mist { background: var(--mist); }

.section h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; }

.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--brown); }

/* Faint swirl line art, like the ribbon in Duo's own graphics */

.has-swirl { position: relative; overflow: hidden; }

.has-swirl::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -6%;
  width: min(48vw, 42rem);
  aspect-ratio: 640 / 420;
  background: url(assets/swirl.svg) center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.has-swirl > * { position: relative; }

/* Welcome */

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.welcome h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }

.welcome-text { display: grid; gap: 1.1rem; justify-items: start; color: var(--brown); }
.welcome-text .btn { margin-top: 0.5rem; }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; margin: 0 auto; }

.card {
  padding: 1.9rem 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(59, 48, 40, 0.06), 0 6px 20px rgba(59, 48, 40, 0.05);
}

.card h3 { margin-top: 1.25rem; }
.cards-two .card h3 { margin-top: 0; font-size: 1.35rem; }
.card p { margin-top: 0.6rem; color: var(--brown); font-size: 1rem; }

.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--brown);
}

.note { max-width: 36rem; margin: 2.5rem auto 0; text-align: center; color: var(--brown); }

/* Photo tiles with a soft fade under the caption */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--taupe);
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 0.6s ease;
}

.tile:hover img { transform: scale(1.03); }

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4rem 1rem 1.1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  background: linear-gradient(0deg, rgba(234, 228, 216, 0.98) 0%, rgba(234, 228, 216, 0.78) 45%, rgba(234, 228, 216, 0) 100%);
}

/* Photo and text side by side */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-photo { margin: 0; }

.split-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
}

.split-copy { display: grid; gap: 1.1rem; justify-items: start; }
.split-copy > p { color: var(--brown); }

.uses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0.5rem 0 0.75rem;
}

.uses h3 { font-size: 1.05rem; }

.uses ul { margin: 0.5rem 0 0; padding: 0; list-style: none; color: var(--brown); }
.uses li { padding: 0.3rem 0; border-top: 1px solid var(--line); }

.split-text { align-items: end; }

address {
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.3;
}

.split-text p { margin-top: 1rem; color: var(--brown); }
.split-text .btn { margin-top: 1.75rem; }

.sign p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.15;
  color: var(--brown);
  text-align: right;
}

/* Footer */

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 4.5rem) var(--inset) 7rem;
  background: var(--ink);
  color: var(--cream);
}

.footer-brand p { margin-top: 1rem; max-width: 22rem; color: rgba(242, 238, 230, 0.75); }

.footer-links { display: grid; gap: 0.25rem; }
.footer-links a { padding: 0.35rem 0; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 238, 230, 0.2);
  font-size: 0.92rem;
  color: rgba(242, 238, 230, 0.7);
}

/* Floating booking button */

.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font: 500 1.05rem/1 var(--font-body);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(59, 48, 40, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fab:hover { background: var(--ink); transform: translateY(-2px); }
.fab:focus-visible { outline-color: var(--ink); outline-offset: 4px; }

/* Booking dialog */

.booking {
  width: min(100vw, 46rem);
  max-width: 100vw;
  height: min(100dvh, 52rem);
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.booking[open] {
  display: flex;
  flex-direction: column;
  animation: rise 0.25s ease-out;
}

.booking::backdrop { background: rgba(59, 48, 40, 0.6); }

@keyframes rise {
  from { transform: translateY(1.5rem); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.booking-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.booking-title { flex: 1; margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }

.booking-ext { font-size: 0.95rem; padding: 0.5rem 0; }

.booking-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.booking-close:hover { background: var(--mist); }

.booking-body { position: relative; flex: 1; min-height: 0; }

.booking-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--brown);
}

.booking iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

/* Layout on narrower screens */

@media (max-width: 1080px) {
  .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 860px) {
  .welcome-grid, .split { grid-template-columns: 1fr; }
  .split-text { align-items: start; }
  .sign p { text-align: left; }

  .cards { grid-template-columns: 1fr; }
  .cards-two { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr; }
  .tile img { aspect-ratio: 4 / 3; }

  .uses { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }

  .booking { width: 100vw; height: 100dvh; border-radius: 0; }
  .booking-ext { display: none; }
}

@media (max-width: 480px) {
  .actions .btn, .center .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .booking[open] { animation: none; }
  .btn, .fab, .tile img, .site-header { transition: none; }
  .fab:hover, .tile:hover img { transform: none; }
}
