/* ============================================
   FORTIKA — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PinyonScript.woff2') format('woff2');
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Tokens ── */
:root {
  --bg:        #F8F6F1;
  --ink:       #2B2A29;
  --mid:       #6E6860;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --grain-opacity: 0.035;
  --max:       1320px;
  --pad-x:     clamp(24px, 5vw, 80px);
}

/* ── Base ── */
body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Typography ── */
h1, .h1 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h3, .h3 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}

h4, .h4 {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

p {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  opacity: 0.7;
  line-height: 1.75;
  font-size: 0.95rem;
}

a { color: inherit; text-decoration: none; }

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  background: transparent;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn--mid {
  border-color: var(--mid);
  color: var(--mid);
}

.btn--mid:hover {
  background: var(--mid);
  color: var(--bg);
}

/* ── Divider ── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--mid);
  opacity: 0.4;
}

.divider--full {
  width: 100%;
}


/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(244, 241, 234, 0.95);
  backdrop-filter: blur(8px);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__logo {
  height: 120px;
  width: auto;
  display: block;
}

.nav__wordmark-name {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
  margin-top: 2px;
}

.nav__wordmark span { color: var(--mid); font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }

.nav__cta .btn { padding: 10px 22px; font-size: 0.7rem; }

/* ── Mobile menu overlay ── */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px var(--pad-x) 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.nav__overlay-cta {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  text-align: center;
  padding: 14px 32px;
  transition: background 0.25s, color 0.25s;
}

.nav__overlay-cta:hover { background: var(--ink); color: var(--bg); }

.nav__overlay.open { opacity: 1; pointer-events: all; }

.nav__overlay ul { list-style: none; }

.nav__overlay ul li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(154,147,134,0.2);
}

.nav__overlay ul li a,
.nav__overlay-group-label {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav__overlay-group-label {
  cursor: default;
  opacity: 0.4;
}

.nav__overlay ul li a:hover { color: var(--mid); }

.nav__overlay .sub-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 2px;
}

.nav__overlay .sub-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px var(--pad-x) 40px;
  position: relative;
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.hero__left {}

.hero__logo {
  width: clamp(200px, 28vw, 360px);
  margin-bottom: 48px;
}

.hero__right {
  position: relative;
  padding-right: 48px;
}

.hero__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--mid);
}

.hero__h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 32px;
  line-height: 1.0;
}

.hero__body {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 48px;
  color: var(--ink);
  max-width: 85%;
}

/* ============================================
   HOTEL MODULES
   ============================================ */
.hotels {
  padding: 40px var(--pad-x) 60px;
}

.hotels__header {
  max-width: var(--max);
  margin: 0 auto 80px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hotels__header h2 { font-size: 0.7rem; }

.hotel-card {
  max-width: var(--max);
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.hotel-card:nth-child(even) { direction: rtl; }
.hotel-card:nth-child(even) > * { direction: ltr; }

.hotel-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e5de;
}

.hotel-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.hotel-card:hover .hotel-card__image img { transform: scale(1.03); }

.hotel-card__content { padding: 20px 0; }

.hotel-card__location {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotel-card__location::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--mid);
}

.hotel-card__name {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hotel-card__desc {
  margin-bottom: 40px;
  max-width: 440px;
}

.collection-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x) 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.collection-header__title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}

.hotels__divider {
  max-width: var(--max);
  margin: 0 auto 80px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hotels__divider-line {
  flex: 1;
  height: 1px;
  background: var(--mid);
  opacity: 0.25;
}

.hotels__divider-text {
  text-align: center;
  flex-shrink: 0;
}

.hotels__divider-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hotels__divider-sub {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 300;
}

.hotel-card__coming-soon {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px var(--pad-x) 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - (var(--pad-x) * 2));
  max-width: var(--max);
  height: 1px;
  background: var(--mid);
  opacity: 0.25;
}

.footer__logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.footer__logo {
  width: clamp(200px, 28vw, 320px);
  opacity: 0.55;
}

.footer__cols {
  max-width: var(--max);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer__col-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}

.footer__col ul { list-style: none; }

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__col ul li a:hover { opacity: 1; }

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(154,147,134,0.18);
  display: flex;
  justify-content: center;
}

.footer__copy {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--mid);
  opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hotel-card { grid-template-columns: 1fr; }
  .hotel-card:nth-child(even) { direction: ltr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  /* ── Nav ── */
  .nav__cta { display: none; }
  .nav__wordmark {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav__logo { height: 86px; }

  /* ── Overlay bottom CTA ── */
  .nav__overlay {
    justify-content: space-between;
    padding-bottom: 40px;
  }
  .nav__overlay-cta {
    width: 100%;
  }

  /* ── Hero ── */
  .hero__logo { display: none; }
  .hero__scroll { display: none; }
  .hero__right { padding-right: 0; }
  .hero__h1 { font-size: 2.8rem; }
  .hero { padding: 100px var(--pad-x) 40px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__body { max-width: 100%; }

  /* ── Collection header ── */
  .collection-header {
    padding: 0 var(--pad-x) 24px;
  }
  .collection-header .hotels__divider-line { display: none; }

  /* ── Upcoming additions ── */
  .hotels__divider {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 48px;
  }
  .hotels__divider .hotels__divider-line { display: none; }

  /* ── Footer ── */
  .footer__cols { grid-template-columns: 1fr; }
  .footer__logo { width: 160px; }
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 102px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--ink);
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Hero scroll indicator ── */
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero__scroll {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(43, 42, 41, 0.15);
  position: relative;
  overflow: hidden;
  order: -1;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 50%;
  top: -50%;
  background: var(--ink);
  animation: scroll-drop 2s 0.8s infinite;
}

@keyframes scroll-drop {
  0%   { top: -50%; }
  100% { top: 110%; }
}

.hero__scroll-label {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Scroll-driven word reveal ── */
.reveal-split .word {
  display: inline-block;
  color: rgba(43, 42, 41, 0.2);
  transition: color 1.6s ease;
}
.reveal-split .word.revealed {
  color: var(--ink);
}
