/* ============================================================
   Bear Hole — warm & cozy theme
   Palette: cream / warm beige / terracotta
   ============================================================ */

:root {
  --cream:      #FBF6EE;
  --cream-2:    #F4EAD9;
  --surface:    #FFFFFF;
  --beige:      #EADCC6;
  --beige-soft: #F2E8D8;
  --terracotta: #C36A45;
  --terracotta-dark: #A9542F;
  --ink:        #3A312A;
  --muted:      #7C6F60;
  --line:       #E7DAC6;
  --shadow:     0 18px 40px -20px rgba(90, 60, 30, .35);
  --shadow-sm:  0 8px 22px -14px rgba(90, 60, 30, .4);
  --radius:     20px;
  --radius-sm:  12px;
  --maxw:       1140px;
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Nunito", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  color: #fff; letter-spacing: .3px;
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-weight: 600; font-size: .96rem; color: #fff; opacity: .92; transition: opacity .2s; }
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--terracotta); color: #fff !important; opacity: 1 !important;
  padding: .5rem 1.1rem; border-radius: 999px;
}
.nav__cta:hover { background: var(--terracotta-dark); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: background .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,28,18,.45) 0%, rgba(40,28,18,.25) 40%, rgba(40,28,18,.65) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 700; opacity: .9; margin-bottom: 1rem; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.02; margin-bottom: 1rem; }
.hero__tagline { font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 30ch; opacity: .95; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #fff; font-size: 1.5rem; opacity: .85;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--beige-soft); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section__eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem; font-weight: 700; color: var(--terracotta); margin-bottom: .6rem; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; }
.section__sub { color: var(--muted); margin-top: .8rem; font-size: 1.05rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__lead { font-size: 1.12rem; color: var(--muted); margin-top: 1.2rem; }
.about__highlights { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.about__highlights li {
  position: relative; padding-left: 1.8rem; font-weight: 600; color: var(--ink);
}
.about__highlights li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--terracotta);
}

/* ---------- Rooms ---------- */
.rooms__floor + .rooms__floor { margin-top: clamp(40px, 6vw, 64px); }
.rooms__floor-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.rooms__floor-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); }
.rooms__floor-count { font-weight: 600; font-size: .85rem; color: #fff; background: var(--terracotta); padding: .25rem .7rem; border-radius: 999px; }
.rooms__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.room {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.room:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -24px rgba(90,60,30,.45); }
.room__media { position: relative; aspect-ratio: 4 / 3; background: var(--beige); cursor: pointer; overflow: hidden; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room:hover .room__media img { transform: scale(1.06); }
.room__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: .35rem .8rem; border-radius: 999px; color: #fff;
}
.room__badge--available { background: #5a8a5a; }
.room__badge--rented { background: #9a8f80; }
.room__badge--unavailable { background: #9a8f80; }

/* Unavailable room: greyed out, not interactive */
.room--unavailable { opacity: .6; box-shadow: var(--shadow-sm); pointer-events: none; }
.room--unavailable:hover { transform: none; box-shadow: var(--shadow-sm); }
.room--unavailable .room__media { cursor: default; }
.room--unavailable .room__media img { filter: grayscale(100%); transform: none; }
.room--unavailable .room__name { color: var(--muted); }
.room__gallery-hint {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; display: flex; align-items: center; gap: .35rem;
}
.room__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.room__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.room__name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; }
.room__price { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--terracotta); white-space: nowrap; }
.room__price small { font-family: var(--sans); font-size: .82rem; color: var(--muted); font-weight: 600; }
.room__meta { display: flex; gap: 1.2rem; margin: .5rem 0 .9rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.room__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.room__desc { color: var(--muted); font-size: .98rem; }
.room__features { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.3rem; }
.room__features li { background: var(--beige-soft); color: var(--ink); font-size: .82rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; }
.room__actions { margin-top: auto; display: flex; gap: .7rem; flex-wrap: wrap; }
.room__btn {
  flex: 1; text-align: center; font-weight: 700; font-size: .9rem; padding: .7rem 1rem;
  border-radius: 999px; border: 2px solid var(--beige); color: var(--ink); cursor: pointer;
  background: transparent; transition: background .2s, border-color .2s, color .2s;
}
.room__btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.room__btn--solid { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.room__btn--solid:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }

/* ---------- Shared spaces ---------- */
.shared__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.shared__card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; cursor: pointer; box-shadow: var(--shadow-sm); }
.shared__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shared__card:hover img { transform: scale(1.07); }
.shared__card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem .9rem;
  color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

/* ---------- Floor plan ---------- */
.floorplan__frame {
  background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 4vw, 42px);
  box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; cursor: zoom-in;
}
.floorplan__frame img { margin: 0 auto; border-radius: var(--radius-sm); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__intro .section__title { text-align: left; }
.contact__direct { margin-top: 1.8rem; display: flex; flex-direction: column; gap: .9rem; }
.contact__direct a {
  display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--ink);
  font-size: 1.05rem; transition: color .2s;
}
.contact__direct a:hover { color: var(--terracotta); }
.contact__row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.contact__copy {
  font-family: var(--sans); font-weight: 700; font-size: .82rem; cursor: pointer;
  color: var(--terracotta); background: var(--beige-soft); border: 0;
  padding: .35rem .8rem; border-radius: 999px; transition: background .2s, color .2s;
}
.contact__copy:hover { background: var(--terracotta); color: #fff; }
.contact__copy.is-copied { background: #5a8a5a; color: #fff; }
.contact__status a { text-decoration: underline; font-weight: 700; }
.contact__direct .ico {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--beige-soft); border-radius: 50%; color: var(--terracotta); font-size: 1.1rem;
}
.contact__form {
  background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.1rem;
}
.contact__form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 700; font-size: .92rem; }
.contact__form input, .contact__form textarea {
  font-family: var(--sans); font-size: 1rem; padding: .8rem 1rem; border: 2px solid var(--line);
  border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s;
  resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--terracotta); background: #fff; }
.contact__status { font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.contact__status.is-ok { color: #4d8a4d; }
.contact__status.is-err { color: #c0492f; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #efe4d4; padding: 32px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer [data-footer-name] { font-family: var(--serif); font-size: 1.2rem; }
.footer__muted { opacity: .7; font-size: .9rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(28,20,12,.92);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage { max-width: 90vw; max-height: 82vh; }
.lightbox__stage img, .lightbox__stage video, .lightbox__stage iframe {
  max-width: 90vw; max-height: 82vh; border-radius: 10px; background: #000;
}
.lightbox__stage iframe { width: 80vw; height: 45vw; max-height: 82vh; border: 0; }
.lightbox__caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; opacity: .9; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-radius: var(--radius); padding: 10px;
    box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { color: var(--ink) !important; padding: .8rem 1rem; border-radius: 10px; }
  .nav__links a:hover { background: var(--beige-soft); }
  .nav__cta { text-align: center; margin-top: 4px; }
}
@media (max-width: 520px) {
  .about__highlights { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
