/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1b1a17;
  --cream: #f6f3ec;
  --stone: #cbbfa8;
  --stone-dark: #8a7c61;
  --gold: #b98a4f;
  --overlay: rgba(15, 14, 11, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  font-weight: 300;
}

em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

::selection { background: var(--gold); color: var(--cream); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: loaderFade 1.4s var(--ease) forwards 0.2s;
}
@keyframes loaderFade {
  0% { opacity: 0; transform: translateY(10px); letter-spacing: 0.3em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0.03em; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--cream);
  letter-spacing: 0.02em;
  transition: color 0.5s var(--ease);
  z-index: 2;
}
.nav.scrolled .nav-logo { color: var(--ink); }

.nav-links {
  display: flex; gap: clamp(1.2rem, 3vw, 2.5rem);
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.5s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; z-index: 2;
}
.nav-toggle span {
  width: 24px; height: 1px; background: var(--cream);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,8,0.35) 0%, rgba(10,10,8,0.25) 45%, rgba(10,10,8,0.55) 100%);
}
.hero-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 3;
  width: 68px; height: 68px;
  border: none; background: none; cursor: pointer;
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-play.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.hero-play svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4)); }
.hero-play:hover { color: var(--gold); }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--cream);
  padding: 0 1.5rem;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  animation: reveal 1.2s var(--ease) forwards;
}
.hero-eyebrow[data-reveal] { animation-delay: 0.6s; }
.hero-title[data-reveal] { animation-delay: 0.8s; }
.hero-sub[data-reveal] { animation-delay: 1.05s; }
.hero-scroll[data-reveal] { animation-delay: 1.5s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll-line {
  width: 1px; height: 40px; background: rgba(246,243,236,0.5);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--cream);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.hero-scroll-text {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.75;
}

/* ---------- Scroll reveal (generic) ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-animate].stagger.in-view { transition-delay: var(--d, 0s); }

/* ---------- Section shells ---------- */
main { position: relative; z-index: 1; background: var(--cream); }

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.center { text-align: center; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}
.about-media {
  position: relative;
  overflow: hidden;
}
.about-media img {
  transform: scale(1.15);
  transition: transform 1.2s var(--ease);
}
.about-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 6vw, 7rem);
}
.about-text {
  margin: 1.8rem 0 2.5rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #4a463d;
  max-width: 40ch;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.1rem;
  color: var(--gold);
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6558;
  margin-top: 0.2rem;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.gallery-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item img {
  transition: transform 1.1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.5s var(--ease);
}
.gallery-item:hover::after { background: rgba(0,0,0,0.12); }

/* ---------- Amenities ---------- */
.amenities {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.amenities-inner { max-width: 1100px; margin: 0 auto; }
.amenities .section-eyebrow { color: var(--stone); }
.amenities-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.amenities-grid li {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(246,243,236,0.15);
  font-size: 1.02rem;
  font-weight: 300;
}
.amenities-grid svg {
  width: 32px; height: 32px; flex-shrink: 0;
  color: var(--gold);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  position: relative;
  height: 50vh;
  background-image: url('../pexels-ahmetcotur-28054888.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cta-strip-overlay {
  position: absolute; inset: 0; background: rgba(10,10,8,0.5);
}
.cta-strip-text {
  position: relative; z-index: 1;
  color: var(--cream);
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.4;
  padding: 0 1.5rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.contact-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1100px;
  margin-left: auto; margin-right: auto;
}
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-row { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
}
.contact-row a, .contact-row span:last-child { font-size: 1.1rem; }
.contact-row a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.contact-row a:hover { border-color: var(--ink); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #cfc9ba;
  background: transparent;
  padding: 0.8rem 0.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9a927e; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form button {
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 1rem 2.4rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease), transform 0.3s var(--ease);
}
.contact-form button:hover { background: var(--gold); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem) 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #6b6558;
  border-top: 1px solid #e6e1d3;
}
.footer-credit {
  opacity: 0.6;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,8,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  padding: 4rem 1.5rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: var(--cream);
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-media { height: 50vh; }
  .about-stats { grid-template-columns: repeat(2, auto); row-gap: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span-2 { grid-column: span 2; }
  .amenities-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-strip { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto;
    width: min(75vw, 320px);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 3rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a,
  .nav.scrolled .nav-links a { color: var(--cream); font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle.open span { background: var(--cream) !important; }
  .form-row { flex-direction: column; }
  .footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
