/*
  site.css
  9thgallery.github.io

  Created by Vitor Venturin on 24/11/2026.
  Copyright © 2026 Vitor Venturin. All rights reserved.
*/

:root {
  --paper: #f6f1e7;
  --paper-2: #ede5d6;
  --ink: #1d1915;
  --ink-2: #3a332c;
  --muted: #6e655b;
  --night: #14110e;
  --night-2: #1d1914;
  --cream: #f3ecdf;
  --red: #b5121b;
  --red-deep: #8f0d14;
  --line: rgba(29, 25, 21, 0.14);
  --line-light: rgba(243, 236, 223, 0.16);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em, h2 em { font-style: italic; font-weight: 400; }
h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h3 { font-size: 1.7rem; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
.eyebrow.light { color: #e8a29f; }

.script {
  font-family: var(--script);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  margin: 0 0 10px;
  color: #f3d9c5;
}
.script.light { color: #f3d9c5; }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }

.btn-light { color: var(--cream); border-color: rgba(243, 236, 223, 0.5); }
.btn-light:hover { background: rgba(243, 236, 223, 0.12); border-color: var(--cream); }

.btn-ghost { padding: 10px 20px; color: var(--cream); border-color: rgba(243, 236, 223, 0.4); }
.btn-ghost:hover { background: rgba(243, 236, 223, 0.12); }

/* Nav ---------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(20px, 4vw, 48px);
  color: var(--cream);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(246, 241, 231, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.scrolled .btn-ghost { color: var(--ink); border-color: var(--line); }
.nav.scrolled .btn-ghost:hover { background: var(--paper-2); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand img { border-radius: 8px; }

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--cream);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -2; }
.hero-media img {
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) forwards;
}
@keyframes hero-drift { to { transform: scale(1); } }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.55) 0%, rgba(20, 17, 14, 0) 22%),
    linear-gradient(90deg, rgba(20, 17, 14, 0.82) 0%, rgba(20, 17, 14, 0.45) 45%, rgba(20, 17, 14, 0) 75%),
    linear-gradient(0deg, rgba(20, 17, 14, 0.75) 0%, rgba(20, 17, 14, 0) 45%);
}

.hero-copy {
  padding: 120px clamp(20px, 6vw, 96px) clamp(64px, 11vh, 128px);
  max-width: 920px;
}
.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  font-weight: 500;
  margin-bottom: 26px;
}
.hero h1 em { color: #f3d9c5; }
.lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.75;
  max-width: 560px;
  color: rgba(243, 236, 223, 0.86);
  margin: 0 0 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 4vw, 48px);
  width: 26px;
  height: 44px;
  border: 1px solid rgba(243, 236, 223, 0.5);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cream);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Intro -------------------------------------------------------------------- */

.intro { padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.statement {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.32;
  margin: 0;
  color: var(--ink-2);
}

/* The space ---------------------------------------------------------------- */

.space {
  background: var(--night);
  color: var(--cream);
  padding: clamp(96px, 12vw, 160px) 0;
}
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-lede {
  font-size: 1.05rem;
  color: rgba(243, 236, 223, 0.72);
  margin: 22px 0 0;
  max-width: 600px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: clamp(10px, 1.4vw, 18px);
}
.tile { margin: 0; position: relative; }
.tile-a { grid-column: 1 / 5; grid-row: span 2; }
.tile-b { grid-column: 5 / 7; }
.tile-c { grid-column: 5 / 7; }
.tile-d { grid-column: 1 / 3; }
.tile-e { grid-column: 3 / 5; }
.tile-f { grid-column: 5 / 7; }

.tile-btn {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
  background: var(--night-2);
}
.tile-btn:focus-visible { outline: 2px solid #e8a29f; outline-offset: 3px; }
.tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.95);
}
.tile-btn:hover img { transform: scale(1.04); filter: saturate(1.05); }
.tile figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.now-showing {
  margin: clamp(40px, 5vw, 64px) 0 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(243, 236, 223, 0.6);
}
.now-showing span {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cream);
  padding: 0 6px;
}

/* How it works ------------------------------------------------------------- */

.how { padding: clamp(96px, 12vw, 160px) 0; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 34px 26px 10px 0;
  position: relative;
}
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps .num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-style: italic;
  color: var(--red);
  line-height: 1;
  margin-bottom: 22px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Plan + features ---------------------------------------------------------- */

.plan {
  background: var(--paper-2);
  padding: clamp(96px, 12vw, 160px) 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.floorplan { width: 100%; height: auto; overflow: visible; }
.fp-room { fill: #e4d9c6; stroke: #8a7e6c; stroke-width: 1.5; }
.fp-pool { fill: #c4d0d4; stroke: #94a3a9; stroke-width: 1; }
.fp-cols circle { fill: #4a423a; }
.fp-spots rect { fill: var(--red); }
.plan-figure.in .fp-spots rect { animation: spot-in 0.6s var(--ease) backwards; }
.plan-figure.in .fp-spots rect:nth-child(n) { animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes spot-in { from { opacity: 0; } }
.caption {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  text-align: center;
}

.features h2 { margin-bottom: 34px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}
.feature-list span { color: var(--muted); font-size: 0.95rem; }

/* Pricing ------------------------------------------------------------------ */

.pricing { padding: clamp(96px, 12vw, 160px) 0; }
.price-card {
  margin: 44px auto 0;
  max-width: 560px;
  padding: 48px clamp(24px, 5vw, 56px);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 60px -40px rgba(29, 25, 21, 0.35);
}
.price-soon {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  margin: 0 0 14px;
}
.price-card p:not(.price-soon) { color: var(--muted); margin: 0 0 30px; }

/* FAQ ---------------------------------------------------------------------- */

.faq { padding: 0 0 clamp(96px, 12vw, 160px); }
.faq h2 { margin-bottom: 36px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--red);
  transition: transform 0.35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.faq-list details p { margin: -6px 0 26px; color: var(--muted); max-width: 640px; }

/* Closing ------------------------------------------------------------------ */

.closing {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.closing-media, .closing-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-media { z-index: -2; }
.closing-media img { object-fit: cover; opacity: 0.55; }
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20, 17, 14, 0.35), rgba(20, 17, 14, 0.85) 75%);
}
.closing-copy { padding: 96px 24px; }
.closing h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin-bottom: 40px; }

/* Footer ------------------------------------------------------------------- */

.footer {
  background: var(--night);
  color: rgba(243, 236, 223, 0.75);
  padding: 48px 0;
  border-top: 1px solid var(--line-light);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
}
.footer .brand { color: var(--cream); font-size: 1.2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer nav a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer nav a:hover { color: var(--cream); }
.fine { flex-basis: 100%; margin: 8px 0 0; font-size: 0.8rem; color: rgba(243, 236, 223, 0.5); }

/* Lightbox ----------------------------------------------------------------- */

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(14, 12, 10, 0.92); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 3px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); }
.lightbox[open] { animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(243, 236, 223, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Scroll reveal ------------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-login { margin-left: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 30px 20px 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .tile-a { grid-column: 1 / 3; grid-row: auto; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: auto; }
  .tile-f { grid-column: 1 / 3; }
  .tile figcaption { display: none; }
  .tile-a figcaption, .tile-f figcaption { display: block; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero-copy { padding-bottom: 96px; }
  .scroll-cue { display: none; }
  .brand span { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}
