/* Redbooth Sans: custom face drawn from the logo wordmark (source in ../fonts).
   One weight; the wide weight range stops browsers faking a bold. */
@font-face {
  font-family: "Redbooth Sans";
  src: url("fonts/RedboothSans-Regular.woff2") format("woff2"),
       url("fonts/RedboothSans-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* Dark and intimate: warm blacks that fade into the logo crimson, cream type,
   red kept for accents. --red is the exact logo red; --red-bright is the same hue
   lifted so small red text stays readable on black. */
:root {
  --red: #c30011;          /* sampled from the logo */
  --red-bright: #e3263a;
  --red-deep: #5c000b;
  --bg: #0b0909;
  --bg-2: #120e0f;
  --ink: #f4ece8;          /* titles */
  --text: #cdc3bf;
  --muted: #92888a;
  --line: rgba(244, 236, 232, 0.12);
  --wrap: 1160px;
  --font-title: "Redbooth Sans", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-logo: "Redbooth Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
/* faint film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0;
}
h2 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
a { color: var(--red-bright); text-underline-offset: 3px; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font: 500 0.72rem/1 var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 9, 9, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 9, 9, 0.88); }
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font: 700 1.6rem/1 var(--font-logo);
  color: var(--red-bright); text-decoration: none; letter-spacing: 0.01em;
}
.wordmark--light { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__links a {
  color: var(--text); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__cta {
  color: var(--ink); border: 1px solid var(--red); padding: 11px 20px;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav__links .nav__cta:hover { background: var(--red); box-shadow: 0 0 28px rgba(195, 0, 17, 0.45); }
.nav__toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 0.78rem/1 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 18px 30px; text-decoration: none;
  border: 1px solid var(--red); cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-bright); border-color: var(--red-bright); box-shadow: 0 0 34px rgba(195, 0, 17, 0.5); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(244, 236, 232, 0.35); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(244, 236, 232, 0.06); }

/* Hero: full-bleed, black fading into crimson towards the logo */
.hero {
  min-height: calc(100svh - 76px);
  padding: clamp(70px, 10vw, 130px) max(32px, calc((100% - var(--wrap)) / 2 + 32px));
  display: grid; align-items: center;
  background:
    radial-gradient(ellipse 60% 70% at 82% 70%, rgba(195, 0, 17, 0.55), transparent 70%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(195, 0, 17, 0.35), transparent 75%),
    linear-gradient(155deg, #070506 0%, #0b0708 40%, #22030a 70%, var(--red-deep) 100%);
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 700; color: var(--ink); }
.hero__copy { max-width: 560px; margin-top: 30px; font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--text); }
.hero__tagline {
  font: 700 clamp(1.3rem, 2.2vw, 1.65rem)/1.35 var(--font-title);
  color: var(--ink); margin: 14px 0 40px;
}
.hero__tagline em { color: var(--red-bright); font-style: normal; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 210px)); gap: 28px 48px;
  max-width: 820px; margin: 72px 0 0; padding-top: 32px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat dd { order: -1; }   /* number above its label, both aligned to the top */
.stat[hidden] { display: none; }
.stat dd {
  margin: 0; font: 700 clamp(2.6rem, 4.8vw, 3.6rem)/1 var(--font-title); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat dd span { color: var(--red-bright); }
.stat dt { font: 500 0.7rem/1.4 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Sections: alternating warm blacks with a low red glow */
.section { padding: clamp(90px, 12vw, 150px) 0; }
.section__head { max-width: 700px; margin-bottom: 64px; }
.section__intro { font-size: 1.15rem; color: var(--muted); margin-top: 24px; }

/* Photo frames: graded shots from assets/photos/grade_photos.py; empty ones show a labelled placeholder */
.photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1213, #2a0d11);
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.photo::after {
  content: attr(data-label) " · photo";
  position: absolute; left: 18px; bottom: 16px;
  font: 400 0.7rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-bright); opacity: 0.7;
}
.photo--tall { aspect-ratio: 4 / 5; margin-top: 40px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.photo:hover img { transform: scale(1.03); }
.photo:has(img) { background: none; }
.photo:has(img)::after { content: none; }

/* Room carousels: swipe / scroll-snap track; arrows and dots are added by script.js */
.carousel__track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--red-bright); outline-offset: -2px; }
.carousel__track img { flex: 0 0 100%; scroll-snap-align: start; }
.photo.carousel:hover img { transform: none; }
.carousel__btn {
  position: absolute; top: 50%; z-index: 2;
  width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11, 9, 9, 0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 236, 232, 0.25); color: var(--ink);
  cursor: pointer; opacity: 0; transition: opacity 0.3s ease, background 0.2s ease;
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel:hover .carousel__btn, .carousel__btn:focus-visible { opacity: 1; }
.carousel__btn:hover { background: var(--red); border-color: var(--red); }
.carousel__btn[disabled] { opacity: 0 !important; pointer-events: none; }
.carousel__dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: center; gap: 4px;
}
.carousel__dots button {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.carousel__dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(244, 236, 232, 0.5); box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__dots button[aria-current="true"]::before { background: var(--ink); transform: scale(1.3); }
@media (hover: none) { .carousel__btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

/* Story */
.story {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(195, 0, 17, 0.14), transparent 70%),
    var(--bg-2);
}
.story__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.story__head { position: sticky; top: 110px; }
.prose { max-width: 620px; }
.prose .lead {
  font: 500 1.3rem/1.6 var(--font-body); color: var(--ink); margin-bottom: 1.4em;
}

/* Rooms */
.studio { background: var(--bg); }
.room-index { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 80px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.room-index a {
  text-decoration: none; color: var(--muted);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.25s;
}
.room-index a:hover { color: var(--ink); }
.rooms { display: grid; gap: clamp(80px, 10vw, 130px); }
.room { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.room:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.room:nth-child(even) .photo { order: 2; }
.room__num { font: 700 1rem/1 var(--font-title); color: var(--red-bright); display: block; margin-bottom: 14px; }
.room h4 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 24px; }
.room--attached .room__num { font-size: 0.9rem; }
.room__text > p { color: var(--ink); font-size: 1.05rem; }
.specs { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specs li {
  position: relative; padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--text);
}
.specs li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 8px; height: 1px; background: var(--red-bright);
}

/* Studio groups: the three studios, then the amenities as a card grid */
.room-index__label {
  flex-basis: 100%; margin-top: 10px;
  font: 700 0.95rem/1 var(--font-title); color: var(--red-bright);
}
.room-index__label:first-child { margin-top: 0; }
.studio__group {
  display: flex; align-items: center; gap: 18px;
  font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 56px;
}
.studio__group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.amenities-head { margin-top: clamp(110px, 13vw, 170px); margin-bottom: 48px; }
.amenities-head .studio__group { margin-bottom: 14px; }
.amenities-head p { color: var(--muted); max-width: 560px; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 56px 36px; }
.amenity .photo { margin-bottom: 26px; }
.amenity h4 { font-size: 1.45rem; margin-bottom: 14px; }
.amenity p { font-size: 0.95rem; }
.amenity p + p { margin-top: 12px; }

/* Services */
.services {
  background:
    radial-gradient(ellipse 50% 45% at 100% 0%, rgba(195, 0, 17, 0.12), transparent 70%),
    var(--bg-2);
}
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 90px);
}
.service-list li {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; align-content: start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.service-list .num { font: 700 0.95rem/2 var(--font-title); color: var(--red-bright); grid-row: span 2; }
.service-list h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-list h3 small {
  font: 400 0.9rem/1 var(--font-body); color: var(--muted); margin-left: 6px;
}
.service-list p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* Call to action closing each section */
.cta {
  margin-top: clamp(64px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.cta__line {
  font: 700 clamp(1.35rem, 2.4vw, 1.8rem)/1.3 var(--font-title); color: var(--ink);
  margin: 0; max-width: 620px;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta--stacked { flex-direction: column; align-items: flex-start; margin-top: 48px; }

/* Contact: the page ends the way it began, black fading into crimson */
.contact {
  background:
    radial-gradient(ellipse 70% 50% at 20% 100%, rgba(195, 0, 17, 0.4), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #14070a 55%, #3d0108 100%);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact .btn--wa { margin: 10px 0 44px; }
.contact__details { list-style: none; padding: 0; margin: 0; }
.contact__details li { padding: 16px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; color: var(--ink); }
.contact__details a { color: var(--ink); text-decoration-color: rgba(244, 236, 232, 0.3); }
.contact__details a:hover { color: var(--red-bright); }
.contact__details span {
  display: block; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.form {
  border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 22px;
  background: rgba(11, 9, 9, 0.55); backdrop-filter: blur(6px);
}
.form__note { font: 700 1.1rem/1.45 var(--font-title); color: var(--ink); margin: 0; }
.form label {
  display: grid; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.form input, .form select, .form textarea {
  font: 400 1rem/1.5 var(--font-body); letter-spacing: 0; text-transform: none;
  padding: 10px 0; border: 0; border-bottom: 1px solid rgba(244, 236, 232, 0.22); border-radius: 0;
  background: transparent; color: var(--ink); width: 100%;
}
.form select option { background: var(--bg-2); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--red-bright); }
.form .btn { justify-self: start; margin-top: 6px; }

/* Footer */
.footer {
  background: linear-gradient(90deg, #3d0108, var(--red) 140%);
  color: rgba(255, 255, 255, 0.75); padding: 44px 0; font-size: 0.85rem; letter-spacing: 0.04em;
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer p { margin: 0; }

/* Mobile */
@media (max-width: 860px) {
  .nav__toggle {
    display: grid; gap: 7px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform 0.25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 24px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { text-align: center; margin-top: 18px; border-bottom: 1px solid var(--red); }

  .wrap, .nav__inner { padding-left: 16px; padding-right: 16px; }
  .hero {
    padding: 64px 16px 80px; min-height: 0;
    background:
      radial-gradient(ellipse 120% 50% at 50% 100%, rgba(195, 0, 17, 0.5), transparent 70%),
      linear-gradient(180deg, #070506 0%, #0b0708 45%, #22030a 75%, var(--red-deep) 100%);
  }
  .story__grid, .room, .room:nth-child(even), .contact__grid, .service-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 56px; }
  .story__head { position: static; }
  .room:nth-child(even) .photo { order: 0; }
}
