/* ==========================================================================
   Priora House — stylesheet
   ========================================================================== */

:root {
  --cream: #F5F0E8;
  --cream-alt: #ECE3D2;
  --walnut: #2C2416;
  --walnut-soft: #4A3F2B;
  --gold: #8B7355;
  --gold-light: #B5A084;
  --radius: 6px;
  --max-width: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--walnut);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-weight: 500;
  margin: 0;
  color: var(--walnut);
}

p {
  margin: 0 0 1em 0;
  text-align: justify;
  text-justify: inter-word;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2.5rem; }
}

/* ------------------------------ Ornaments ------------------------------ */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 320px;
  width: 100%;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}

.divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider--section {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ------------------------------- Wordmark ------------------------------- */

.wordmark {
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark--frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  width: 220px;
  height: 220px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  padding: 1rem;
}

.wordmark--frame::before,
.wordmark--frame::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.wordmark--frame .wordmark {
  font-size: 1.15rem;
}

/* -------------------------------- Header -------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

@media (min-width: 640px) {
  .site-header { padding: 1.4rem 2.5rem; }
}

.site-header.is-scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(44, 36, 22, 0.08);
  padding: 0.75rem 1.5rem;
}

@media (min-width: 640px) {
  .site-header.is-scrolled { padding: 0.85rem 2.5rem; }
}

.site-header .wordmark {
  font-size: 0.95rem;
  color: var(--walnut);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.site-header.is-scrolled .wordmark {
  opacity: 1;
  transform: translateY(0);
}

.site-header .header-contact {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-decoration: none;
  color: var(--walnut);
}

.site-header.is-scrolled .header-contact {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 6, 0.58) 0%, rgba(15, 11, 6, 0.62) 45%, rgba(15, 11, 6, 0.8) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: 2.75rem 2.25rem;
  margin: 0 1.5rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  background: rgba(15, 11, 6, 0.4);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: 10px;
}

.hero__mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  margin: 0;
  color: var(--cream);
}

.hero__rule {
  width: 60px;
  height: 1px;
  background: var(--gold-light);
  margin: 1.1rem auto;
}

.hero__location {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 0.4rem 0;
  color: var(--cream);
  text-align: center;
}

.hero__stats {
  font-size: clamp(2rem, 2vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin: 0;
  text-align: center;
}

.hero__tagline {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.92;
  margin: 0.9rem 0 0 0;
  text-align: center;
}

.hero__cta {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 6vh, 3.5rem);
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  background: rgba(15, 11, 6, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero__cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--walnut);
  text-shadow: none;
}

/* ---------------------------- Overview strip ----------------------------- */

.overview {
  background: var(--walnut);
  color: var(--cream);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.overview .container {
  text-align: center;
}

.overview__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  font-size: clamp(1.25rem, 3.1vw, 1.75rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem 0;
}

.overview__stats span:not(:last-child)::after {
  content: '·';
  color: var(--gold-light);
  margin: 0 0.6em;
}

.overview__note {
  font-style: italic;
  color: var(--gold-light);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  text-align: center;
  margin: 0;
}

/* -------------------------------- Sections -------------------------------- */

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.section--alt {
  background: var(--cream-alt);
}

.section__eyebrow {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.section__intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem) auto;
}

.section__intro p {
  text-align: center;
}

.value-line {
  font-style: italic;
  color: var(--walnut-soft);
  border-top: 1px solid var(--gold-light);
  padding-top: 1em;
  margin-top: 1.4em;
  text-align: left;
}

/* Two-column layout: text + gallery */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__text {
    order: 2;
  }
  .split--reverse .split__media {
    order: 1;
  }
}

.split__text p:last-of-type {
  margin-bottom: 0;
}

/* ------------------------------- Galleries -------------------------------- */

.gallery {
  position: relative;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.9rem;
  scrollbar-width: none;
  border-radius: var(--radius);
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.gallery--tall .gallery-slide img {
  aspect-ratio: 3 / 4;
}

.gallery--wide .gallery-slide img {
  aspect-ratio: 16 / 10;
}

.gallery--square .gallery-slide img {
  aspect-ratio: 1 / 1;
}

.gallery-slide figcaption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--walnut-soft);
  text-align: center;
  margin-top: 0.6rem;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1rem;
}

.gallery-arrow {
  background: none;
  border: 1px solid var(--gold-light);
  color: var(--walnut);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
}

.gallery-dots {
  display: flex;
  gap: 0.5rem;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-dot.is-active {
  background: var(--gold);
  transform: scale(1.35);
}

/* Desktop: 1–2 image galleries render as a static grid, not a carousel */
@media (min-width: 768px) {
  .gallery[data-count="1"] .gallery-track,
  .gallery[data-count="2"] .gallery-track {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(var(--count, 1), 1fr);
  }
  .gallery[data-count="1"] .gallery-nav,
  .gallery[data-count="2"] .gallery-nav {
    display: none;
  }
}

.gallery[data-count="1"] .gallery-nav {
  display: none;
}

/* ------------------------------- Room cards -------------------------------- */

.floor-block {
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.floor-block:last-of-type {
  margin-bottom: 0;
}

.floor-block__header {
  text-align: center;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.floor-block__title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 500;
}

.floor-block__meta {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 0.35rem;
}

.rooms {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 2.8rem);
}

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

.room {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(139, 115, 85, 0.18);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.room__title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.room__facts {
  font-size: 0.92rem;
  color: var(--walnut-soft);
  letter-spacing: 0.01em;
  text-align: left;
  margin-bottom: 1rem;
}

.floor-plan-only {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.floor-plan-only img {
  border-radius: var(--radius);
  margin: 0 auto 0.8rem auto;
}

.floor-plan-lead {
  margin-bottom: clamp(2rem, 5vw, 2.8rem);
}

.floor-plan-only p {
  text-align: center;
  color: var(--walnut-soft);
  font-size: 0.95rem;
}

.floor-closing {
  text-align: center;
  font-style: italic;
  max-width: 640px;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0 auto;
  color: var(--walnut-soft);
}

.floor-closing p {
  text-align: center;
}

/* ------------------------------- Hallway -------------------------------- */

.hallway {
  text-align: center;
}

.hallway__media {
  max-width: 480px;
  margin: 0 auto 1.6rem auto;
}

.hallway__media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hallway p {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* ------------------------------ Conclusion -------------------------------- */

.conclusion {
  text-align: center;
}

.conclusion__statement {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--walnut);
}

/* -------------------------------- Contact --------------------------------- */

.contact {
  background: var(--walnut);
  color: var(--cream);
  text-align: center;
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(2.5rem, 6vw, 3.5rem) 0;
}

.contact .divider::before,
.contact .divider::after {
  background: var(--gold);
}

.contact__title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 500;
  color: var(--cream);
  text-align: center;
  margin-bottom: 0.6rem;
}

.contact__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  color: var(--gold-light);
  text-align: center;
  max-width: 480px;
  margin: 0 auto clamp(2rem, 5vw, 2.8rem) auto;
}

.contact__frame {
  margin: 0 auto 1.8rem auto;
}

.contact__frame .wordmark--frame {
  border-color: var(--gold);
}

.contact__frame .wordmark {
  color: var(--cream);
}

.contact__location {
  font-style: italic;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 1.4rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.2rem;
  margin-bottom: 2.2rem;
}

.contact__details a {
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__details a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.contact__foot {
  font-size: 0.8rem;
  color: var(--gold-light);
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
