/* ============================================================
   LOFT OF RILEY — site.css
   Modern, mobile-first. No frameworks. Just clean CSS.
   Palette:
     --sand:       #FDFAF6   (warm off-white background)
     --ocean:      #1A2B3C   (deep navy — hero, footer)
     --sunset:     #D4854A   (amber — CTAs, accents)
     --seaglass:   #5B8A7A   (muted teal — secondary accents)
     --text:       #2C2C2C
     --muted:      #7A8F8A
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand: #FDFAF6;
  --ocean: #1A2B3C;
  --sunset: #D4854A;
  --seaglass: #5B8A7A;
  --text: #2C2C2C;
  --muted: #7A8F8A;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--sand);
  overflow-x: hidden;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--ocean);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sunset);
  margin-bottom: 12px;
}
.section-eyebrow.center { text-align: center; }
.section-title { margin-bottom: 24px; }
.section-title.center { text-align: center; }
.section-title em { color: var(--seaglass); font-style: italic; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--sunset); color: var(--white); }
.btn-primary:hover { background: #c0743b; }

.btn-secondary { background: transparent; color: var(--ocean); border-color: var(--ocean); }
.btn-secondary:hover { background: var(--ocean); color: var(--white); }

.btn-ghost     { background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.15); }

.btn-airbnb { background: #FF5A5F; color: var(--white); }
.btn-airbnb:hover { background: #e04a4f; }

.btn-vrbo { background: #3D6BE5; color: var(--white); }
.btn-vrbo:hover { background: #2d58cc; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: var(--ocean);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-book-btn {
  background: var(--sunset) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-book-btn:hover { background: #c0743b !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--ocean);
  padding: 16px 24px 24px;
}
.nav-mobile a {
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile a:last-child { border-bottom: none; }
.mobile-book-btn {
  margin-top: 12px;
  background: var(--sunset);
  color: var(--white) !important;
  text-align: center;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,43,60,0.35) 0%,
    rgba(26,43,60,0.55) 60%,
    rgba(26,43,60,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title em {
  color: #f0c080;
  font-style: italic;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
}
.hero-scroll-hint svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--ocean);
  padding: 20px 24px;
}
.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 28px;
}
.stat-icon { font-size: 1.3rem; }
.stat-label { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.stat-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.2); }

@media (max-width: 640px) {
  .stats-inner { gap: 4px; }
  .stat { padding: 6px 14px; }
  .stat-divider { display: none; }
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience {
  padding: 100px 0;
  background: var(--sand);
}
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.experience-text p {
  color: #4a5568;
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.experience-lead {
  font-size: 1.18rem !important;
  font-weight: 400;
  color: var(--ocean) !important;
  margin-bottom: 20px !important;
}
.experience-text .btn { margin-top: 8px; }

.experience-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.exp-photo { border-radius: var(--radius); overflow: hidden; }
.exp-photo img { width: 100%; height: 100%; object-fit: cover; }
.exp-photo-main {
  grid-column: 1 / -1;
  height: 280px;
}
.exp-photo-sm1, .exp-photo-sm2 { height: 180px; }

@media (max-width: 900px) {
  .experience-grid { grid-template-columns: 1fr; gap: 40px; }
  .exp-photo-main { height: 220px; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding: 80px 0 0;
  background: var(--white);
}
.gallery-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 8px 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item.gallery-wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 0.8rem;
  padding: 24px 12px 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.gallery-wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.gallery-wide { aspect-ratio: 4/3; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0,0,0,0.92);
}
.lightbox-backdrop.open { display: block; }
.lightbox-img-wrap {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 80vh;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: relative;
  z-index: 2001;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 14px;
  text-align: center;
  max-width: 600px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  z-index: 2002;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   AMENITIES
   ============================================================ */
.amenities {
  padding: 100px 0;
  background: var(--sand);
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.amenity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.amenity-icon { font-size: 2rem; margin-bottom: 12px; }
.amenity-card h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--ocean); }
.amenity-card p { font-size: 0.92rem; color: #5a6478; line-height: 1.6; }

/* ============================================================
   LOCATION
   ============================================================ */
.location {
  padding: 100px 0;
  background: var(--ocean);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.location .section-eyebrow { color: var(--sunset); }
.location .section-title { color: var(--white); }
.location .section-title em { color: #8ec5b8; }
.location p { color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.location-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.location-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.location-list li:last-child { border-bottom: none; }
.loc-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(212,133,74,0.25);
  color: #f0c080;
  padding: 2px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.location-photos { display: flex; flex-direction: column; gap: 12px; }
.loc-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.loc-photo-main { height: 300px; }
.loc-photo-sm { height: 180px; }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; }
.loc-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  padding: 20px 14px 10px;
}

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  padding: 100px 0;
  background: var(--white);
}
.review-aggregate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 40px 0 60px;
  padding: 32px;
  background: var(--sand);
  border-radius: var(--radius);
}
.review-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-big { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700; color: var(--ocean); line-height: 1; }
.score-label-lg { font-size: 1rem; color: var(--muted); }
.score-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.score-stars { font-size: 1.1rem; }
.review-score-divider { width: 1px; height: 60px; background: #ddd; }
.airbnb-badge {
  background: var(--ocean);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 50px;
  text-align: center;
}
.airbnb-badge-sub { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 4px; }
.review-badge-wrap { display: flex; justify-content: center; }
.review-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.review-trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
}
.reviews-intro {
  margin: 0 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 3px solid var(--sunset);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-stars { font-size: 0.9rem; margin-bottom: 12px; }
.review-card blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ocean);
  line-height: 1.6;
  margin-bottom: 16px;
}
.review-card cite {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  font-style: normal;
}

/* ============================================================
   BOOK NOW
   ============================================================ */
.book {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.book-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,43,60,0.88) 0%, rgba(91,138,122,0.75) 100%);
}
.book-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.book-content .section-title.light { color: var(--white); }
.book-content .section-title em { color: #b8dbd5; }
.book-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 40px;
}
.book-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f1a26;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.footer-tagline {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* ============================================================
   UTILITIES & RESPONSIVE CLEANUP
   ============================================================ */
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .book-buttons { flex-direction: column; align-items: center; }
  .reviews { padding: 72px 0; }
  .review-aggregate {
    flex-direction: column;
    gap: 20px;
    margin: 28px 0 36px;
    padding: 24px 18px;
  }
  .review-score-divider { width: 60px; height: 1px; }
  .score-big { font-size: 2.8rem; }
  .review-trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .review-trust-card { min-width: 0; }
  .reviews-intro {
    margin: 0 0 16px;
    font-size: 0.9rem;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-card { padding: 22px; }
  .reviews-grid .review-card:nth-child(n+5) { display: none; }
  .stat-label { font-size: 0.8rem; }
}

/* Fade-in on scroll — only active when JS has initialised (.js-ready on body) */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
