/* ── CSS Variables ── */
:root {
  --background: #282922;
  --foreground: #93585e;
  --muted-foreground: #a9cc8b;
  --secondary: #f2cfcd;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
}

/* Needle line */
.needle-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.5px;
  background: rgba(240, 237, 232, 0.2);
  height: 0;
  animation: needleGrow 2s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes needleGrow {
  to {
    height: 35vh;
  }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(80px);
  animation: heroFadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--foreground);
  line-height: 0.9;
  font-size: clamp(3rem, 10vw, 12rem);
}

.hero__subtitle {
  margin-top: 2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted-foreground);
  opacity: 0;
  animation: fadeIn 1s 1.2s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
}

.scroll-indicator span {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

.scroll-line {
  width: 0.5px;
  height: 2rem;
  background: rgba(240, 237, 232, 0.3);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ── GALLERY PREVIEW ── */
.gallery-preview {
  padding: 8rem 1.5rem;
}

@media (min-width: 768px) {
  .gallery-preview {
    padding: 12rem 3rem;
  }
}

/* Section Heading */
.section-heading {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .section-heading {
    margin-bottom: 6rem;
  }
}

.section-heading.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  color: var(--foreground);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
}

.section-heading p {
  max-width: 28rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  cursor: pointer;
}

.gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Grid spans */
.gallery-item:nth-child(1) {
  grid-column: span 6;
}
.gallery-item:nth-child(2) {
  grid-column: span 6;
}
.gallery-item:nth-child(3) {
  grid-column: span 12;
}
.gallery-item:nth-child(4) {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .gallery-item:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
  }
  .gallery-item:nth-child(2) {
    grid-column: span 8;
  }
  .gallery-item:nth-child(3) {
    grid-column: span 5;
  }
  .gallery-item:nth-child(4) {
    grid-column: span 3;
  }
}

.gallery-item__inner {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .gallery-item__inner {
    aspect-ratio: unset;
    height: 50vh;
  }
}

@media (min-width: 1024px) {
  .gallery-item__inner {
    height: 60vh;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    filter 0.7s ease,
    transform 0.7s ease;
  display: block;
}

.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 237, 232, 0);
  transition: background 0.5s ease;
}

.gallery-item:hover .gallery-item__overlay {
  background: rgba(240, 237, 232, 0.1);
}

.gallery-item__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item:hover .gallery-item__label {
  opacity: 1;
}

.gallery-item__label span {
  color: var(--background);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.gallery-cta {
  margin-top: 4rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gallery-cta.in-view {
  opacity: 1;
}

.gallery-cta a {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border-bottom: 1px solid rgba(240, 237, 232, 0.3);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s ease;
}

.gallery-cta a:hover {
  border-color: var(--foreground);
}

/* ── BOOKING CTA ── */
.booking-cta {
  width: 100%;
  background: var(--secondary);
  color: var(--background);
  padding: 8rem 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .booking-cta {
    padding: 12rem 3rem;
  }
}

.booking-cta__deco {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(25%);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: 20rem;
  opacity: 0.03;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  color: var(--background);
}

@media (min-width: 768px) {
  .booking-cta__deco {
    font-size: 30rem;
  }
}

.booking-cta__inner {
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.booking-cta__inner.in-view {
  opacity: 1;
  transform: translateY(0);
}

.booking-cta h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  line-height: 0.95;
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 2rem;
  color: var(--background);
}

.booking-cta p {
  font-size: 1rem;
  opacity: 0.6;
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 3.5rem;
}

.booking-btn {
  position: relative;
  display: inline-block;
  padding: 1.25rem 2.5rem;
  border: 1px solid rgba(10, 10, 10, 0.4);
  overflow: hidden;
  transition: border-color 0.5s ease;
  cursor: pointer;
}

.booking-btn:hover {
  border-color: var(--background);
}

.booking-btn span {
  position: relative;
  z-index: 10;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--background);
  transition: color 0.5s ease;
}

.booking-btn:hover span {
  color: var(--foreground);
}

.booking-btn__fill {
  position: absolute;
  inset: 0;
  background: var(--background);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.booking-btn:hover .booking-btn__fill {
  transform: translateY(0);
}

/* ── STATS ── */
.stats {
  padding: 8rem 1.5rem;
}

@media (min-width: 768px) {
  .stats {
    padding: 12rem 3rem;
  }
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.stat-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stat-item__value {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--foreground);
}

.stat-item__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  transition:
    background 0.6s ease,
    backdrop-filter 0.6s ease,
    border-color 0.6s ease;

  background: transparent;
}

.site-nav.scrolled {
  background: rgba(250, 249, 249, 0.021);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253, 250, 245, 0.041);
}

.nav-inner {
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-around;

  padding: 0 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;

  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* MOBILE */

.mobile-toggle {
  display: none;

  background: none;
  border: none;
  color: var(--foreground);

  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;

  background: var(--background);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;

  z-index: 999;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 3rem;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(240, 237, 232, 0.08);

  margin-top: 8rem;
  padding: 6rem 1.5rem 0rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 10%;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;

  margin-bottom: 1rem;
}

.footer-text {
  color: var(--muted-foreground);
  max-width: 260px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;

  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 237, 232, 0.05);

  margin-top: 5rem;
  padding: 2rem;

  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* PAGE TRANSITION */

.page-transition {
  opacity: 0;
  filter: blur(8px);

  animation: pageFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFade {
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}
