/* === Base Reset === */
html, body {
  margin: 0;
  padding: 0;
  background: #F7F6F3; /* restore original light tone */
  font-family: Arial, sans-serif;
}

/* === Hero section === */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2rem 2rem;   /* trimmed top, kept some bottom for breathing room */
  background: #F7F6F3;
  margin-top: 0 !important;  /* eliminate stray top margin */
}

/* === Flip boxes === */
.flip-box {
  background: transparent;
  width: 576px;
  height: 384px;
  perspective: 1000px;
  position: relative;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.75s;
  transform-style: preserve-3d;
  will-change: transform;
}

.flipped { transform: rotateY(180deg); }

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
}

.flip-back { transform: rotateY(180deg); }

/* === Intro section === */
.intro {
  margin-top: -2em; /* subtle overlap effect */
  opacity: 1;
  transition: opacity 500ms ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.75rem 1rem;
  background: #F7F6F3;
}

.intro.hide { opacity: 0; pointer-events: none; }

.intro-inner { max-width: 960px; text-align: center; }

.intro-inner h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 37px;
  line-height: 1.2;
  color: #222;
}

/* === CTA section === */
.cta {
  margin-top: -3em;
  opacity: 0;
  transition: opacity 1700ms ease 0ms;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.75rem 1rem 2rem;
  background: #F7F6F3;
}

.cta.show { opacity: 1; }

.cta-inner { max-width: 960px; text-align: center; }

.cta-inner h2 {
  margin: 0 0 .5rem 0;
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #222;
}

.cta-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  align-items: center;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: .8rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #111;
  text-decoration: none;
  color: #111;
  background: #fff;
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.cta-btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.cta-btn.primary:hover { filter: brightness(0.95); }

.cta-btn.secondary {
  background: #fff;
  color: #111;
  border-color: #111;
}

.cta-btn.secondary:hover { filter: brightness(0.97); }
