/* ============================================================
   Casa Serena — warm editorial palette + liquid glass
   ============================================================ */

:root {
  /* --- sonnette-style palette --- */
  --cream:      #F1E9DB;
  --cream-2:    #E9DECB;
  --ink:        #2A2520;
  --ink-soft:   #6B6154;
  --terracotta: #BC6247;
  --rust:       #A34E31;
  --sage:       #7E8C6A;
  --mustard:    #C89A4B;
  --rose:       #C08C82;

  /* --- liquid glass --- */
  --glass-bg:     rgba(255, 252, 246, 0.42);
  --glass-bg-2:   rgba(255, 252, 246, 0.28);
  --glass-brd:    rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 10px 30px rgba(70, 45, 25, 0.18);
  --glass-blur:   blur(20px) saturate(165%);

  --radius: 22px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* --- decorative colour blobs behind the glass (disabled — clean cream bg) --- */
.blobs { display: none; }
.blobs-off { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob--terracotta { background: var(--terracotta); top: -8vw;  left: -6vw; }
.blob--sage       { background: var(--sage);       top: 32vw;  right: -10vw; }
.blob--mustard    { background: var(--mustard);    top: 88vw;  left: -8vw; }
.blob--rose       { background: var(--rose);       top: 140vw; right: -6vw; }

/* ---------- shared type ---------- */
.display, .heading, .brand, .footer__brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.display {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  font-weight: 500;
}
.heading { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 1rem; font-weight: 600;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 38ch; margin-top: 1.4rem; }
.lede strong { color: var(--rust); font-weight: 600; }
.muted { color: var(--ink-soft); }

/* ---------- liquid glass base ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}
/* soft specular highlight across the top — the "liquid" sheen */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(150deg,
              rgba(255,255,255,0.55) 0%,
              rgba(255,255,255,0.05) 34%,
              rgba(255,255,255,0) 60%);
  pointer-events: none;
}

/* ---------- layout wrappers ---------- */
.hero, .contact, .gallery, .about, .footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.4rem);
}
/* offset so anchor links don't hide under the fixed nav */
#contact, #gallery, #about { scroll-margin-top: 90px; }

/* ============================================================
   NAVBAR — same technique as the Renmen site:
   flat & transparent at the top, floating glass pill on scroll
   ============================================================ */
.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), var(--maxw));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 22px;
  border-radius: 50px;

  /* warm liquid glass */
  background: rgba(255, 252, 246, 0.42);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.8);

  transition:
    top 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
    width 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
    border-radius 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
    background 0.35s ease, box-shadow 0.4s ease,
    padding 0.35s ease, border-color 0.3s ease,
    -webkit-backdrop-filter 0.35s ease, backdrop-filter 0.35s ease;
}
/* specular sheen */
.site-nav::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(150deg,
              rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0) 65%);
  pointer-events: none; z-index: 0;
  transition: opacity 0.35s ease;
}

/* TOP-OF-PAGE state: flat, full width, no curve, no glass */
.site-nav.at-top {
  top: 0;
  width: 100%;
  border-radius: 0;
  padding: 18px clamp(1.2rem, 4vw, 2.4rem);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}
.site-nav.at-top::before { opacity: 0; }

.nav-logo {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; z-index: 1; flex-shrink: 0;
}
.nav-center {
  display: flex; align-items: center; gap: 2px; z-index: 1;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.5); color: var(--rust); }
.nav-link.active { color: var(--rust); font-weight: 600; }

/* ---------- subpage layout ---------- */
.page { padding-top: clamp(6.5rem, 11vw, 9rem); padding-bottom: 2rem; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: var(--maxw); width: 100%;
  margin: 0 auto 1.2rem; padding-inline: clamp(1.2rem, 4vw, 2.4rem);
  color: var(--rust); font-weight: 600; text-decoration: none; font-size: 1rem;
}
.back-link:hover { text-decoration: underline; }
.page-head {
  max-width: var(--maxw); margin: 0 auto 1.8rem;
  padding-inline: clamp(1.2rem, 4vw, 2.4rem);
}
.page-head .display { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.page-head .muted { margin-top: 0.6rem; font-size: 1.05rem; }

/* home hero buttons */
.hero__links { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  padding: 0.8rem 1.5rem; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; transition: all 0.2s ease;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--terracotta); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(107,97,84,0.35); }
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

/* about page with a single column (no host aside) */
.about--single { grid-template-columns: 1fr; }

/* neighborhood / nearby lists */
.subheading {
  font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 500;
  margin-top: 1.8rem; margin-bottom: 0.8rem;
}
.nearby { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.nearby > li {
  position: relative; padding-left: 1.4rem; color: var(--ink-soft); max-width: 62ch;
}
.nearby > li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--rust);
}
.hospitals {
  list-style: none; margin: 0.6rem 0 0.2rem; padding: 0.9rem 1.1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1.2rem;
  background: rgba(126, 140, 106, 0.12); border: 1px solid rgba(126, 140, 106, 0.28);
  border-radius: 14px;
}
.hospitals li { color: var(--ink); font-size: 0.92rem; font-weight: 500; }

.text-link {
  display: inline-block; margin-top: 1.2rem; color: var(--rust);
  font-weight: 600; text-decoration: none; font-size: 0.95rem;
}
.text-link:hover { text-decoration: underline; }

@media (max-width: 560px) { .hospitals { grid-template-columns: 1fr; } }

/* ---------- booking chooser modal ---------- */
.book-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(30, 22, 16, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 1.5rem;
}
.book-modal.is-open { display: flex; }
.book-modal__card {
  max-width: 640px; width: 100%; border-radius: 24px; padding: 2rem;
  position: relative; background: rgba(255, 252, 246, 0.9);
  max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
/* close button pinned to the screen — always visible while the popup scrolls */
.book-modal__close {
  position: fixed; top: 14px; right: 14px; z-index: 210;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 37, 32, 0.85); color: #fff; border: none;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.book-modal__close:hover { background: var(--rust); }
.book-modal__title { font-family: "Fraunces", serif; font-size: 1.8rem; }
.book-modal__sub { color: var(--ink-soft); margin: 0.35rem 0 1.5rem; }
.book-modal__options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.book-opt {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(107, 97, 84, 0.18);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.book-opt:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(70, 45, 25, 0.2); }
.book-opt__img { display: block; height: 130px; background-size: cover; background-position: center; }
.book-opt__label { font-family: "Fraunces", serif; font-size: 1.25rem; padding: 0.8rem 1rem 0; }
.book-opt__desc { font-size: 0.85rem; color: var(--ink-soft); padding: 0.15rem 1rem 0.7rem; }
.book-opt__cta {
  margin: 0 1rem 1rem; padding: 0.55rem; text-align: center; border-radius: 999px;
  background: var(--rust); color: #fff; font-weight: 600; font-size: 0.85rem;
}
.book-ff {
  display: block; margin-top: 1rem; padding: 0.85rem; text-align: center;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--ink); border: 1px solid rgba(107, 97, 84, 0.3);
  background: rgba(255, 255, 255, 0.4); transition: all 0.18s ease;
}
.book-ff:hover { border-color: var(--rust); color: var(--rust); }

@media (max-width: 520px) { .book-modal__options { grid-template-columns: 1fr; } }

.nav-right { display: flex; align-items: center; gap: 10px; z-index: 1; }
.pill {
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; color: var(--rust); white-space: nowrap;
}
.nav-cta {
  padding: 0.55rem 1.1rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  background: var(--rust); color: #fff; text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--terracotta); transform: translateY(-1px); }

/* give the hero room under the fixed nav */
.hero { padding-top: clamp(6.5rem, 15vw, 8rem); }

@media (max-width: 720px) {
  .nav-center { display: none; }
  .site-nav .pill { display: none; }
}

/* ---------- hero ---------- */
.hero {
  display: block; padding-bottom: 2rem;
}
.hero__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; background-size: cover;
  box-shadow: 0 24px 60px rgba(70, 45, 25, 0.24);
}
.hero__photo img, .shot img, .host__avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- contact glass buttons ---------- */
.contact {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding-top: 1rem; padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.action {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 1.1rem 1.2rem; border-radius: 18px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.action:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(70,45,25,0.24); }
.action__icon  { display: flex; color: var(--rust); }
.action__icon .ic { width: 26px; height: 26px; }
.action--accent .action__icon { color: #fff; }
.action__label { font-weight: 600; margin-top: 0.35rem; }
.action__value { font-size: 0.82rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.action--accent {
  background: linear-gradient(150deg, rgba(188,98,71,0.85), rgba(163,78,49,0.78));
  color: #fff;
}
.action--accent .action__value { color: rgba(255,255,255,0.85); }

/* ---------- gallery ---------- */
.gallery { padding-top: 1rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head { margin-bottom: 1.4rem; }
/* two rooms side by side */
.rooms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.room {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3 / 2; box-shadow: 0 12px 30px rgba(70,45,25,0.18);
  cursor: zoom-in;
}
.room img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease; }
.room:hover img { transform: scale(1.04); }
.room__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(30,22,16,0.72), rgba(30,22,16,0) 100%);
  color: #fff;
}
.room__tag { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 500; }
.room__desc { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

@media (max-width: 720px) {
  .rooms { grid-template-columns: 1fr; }
}

/* ---------- about + host ---------- */
.about {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.about__text { padding: 2rem; border-radius: var(--radius); }
.about__text p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 52ch; }
.amenities { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; list-style: none; }
.chip {
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem;
  background: rgba(126, 140, 106, 0.16); color: var(--ink);
  border: 1px solid rgba(126, 140, 106, 0.32);
}
.host {
  padding: 2rem; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.host__avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 10px 24px rgba(70,45,25,0.24); margin-bottom: 1rem;
}
.host__name { font-family: "Fraunces", serif; font-size: 1.4rem; }
.host__cta {
  margin-top: 1.3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-weight: 500; transition: background 0.18s ease;
}
.host__cta:hover { background: var(--rust); }

/* ---------- footer ---------- */
.footer {
  text-align: center; padding-top: 2.5rem; padding-bottom: 3rem;
  border-top: 1px solid rgba(107, 97, 84, 0.18); margin-top: 1rem;
}
.footer__brand { font-size: 1.6rem; margin-bottom: 0.3rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 16 / 11; order: -1; }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .gallery__grid { grid-auto-rows: 160px; }
}
@media (max-width: 480px) {
  .contact { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .shot--wide { grid-column: span 2; }
}
