body {
  scroll-behavior: smooth;
}

a {
  letter-spacing: 0.05em;
}
/* Smooth scroll for luxury feel */
html {
  scroll-behavior: smooth;
}

/* Improve text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Luxury button letter spacing */
a {
  letter-spacing: 0.05em;
}

/* Remove iframe border (map) */
iframe {
  border: none;
}
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}
.page-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page-fade.show {
  opacity: 1;
}
/* RAAS-style loader */
#pageLoader {
  opacity: 1;
  transition: opacity 1.2s ease;
}

#pageLoader.fade-out {
  opacity: 0;
  pointer-events: none;
}
/* RAAS-style page loader */
#pageLoader {
  opacity: 1;
  transition: opacity 1.2s ease;
}

#pageLoader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.group:hover h3 {
  letter-spacing: 0.03em;
  transition: letter-spacing 0.4s ease;
}
/* RAAS-style space cards */
.space-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.space-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 1s ease;
}

.space-card:hover img {
  transform: scale(1.05);
}

/* Overlay */
.space-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 246, 0.92); /* ivory */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Text animation */
.space-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #1F3D2B;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.8s ease;
}

.space-overlay p {
  color: #1A1A1A;
  transform: translateY(20px);
  transition: transform 0.8s ease;
}

/* Hover reveal */
.space-card:hover .space-overlay {
  opacity: 1;
}

.space-card:hover .space-overlay h3,
.space-card:hover .space-overlay p {
  transform: translateY(0);
}

/* Mobile: always visible (no hover) */
@media (max-width: 768px) {
  .space-overlay {
    position: static;
    background: none;
    opacity: 1;
    padding: 1.5rem 0 0;
  }

  .space-overlay h3,
  .space-overlay p {
    transform: none;
  }

  .space-card img {
    height: 360px;
  }
}
/* Editorial spacing refinement */
section p {
  letter-spacing: 0.02em;
}
#mobileMenu {
  transition: opacity 0.4s ease;
}
/* RAAS-style mobile menu animation */
#mobileMenu {
  transition: opacity 0.35s ease;
}

#mobileMenu > div {
  animation: fadeScale 0.35s ease forwards;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile menu links */
.mobile-link {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mobile-link:hover {
  color: #C6A664;
}
#siteHeader {
  backdrop-filter: blur(6px);
}
/* ===============================
   GLOBAL MOBILE FIX
================================ */

/* Prevent horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* All sections stay inside viewport */
section {
  overflow-x: hidden;
}

/* Images never overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix fixed & transform elements */
.fixed,
.absolute {
  max-width: 100vw;
}

/* Prevent translate causing overflow */
*[style*="translate"] {
  max-width: 100vw;
}
/* Editorial & large image sections */
.editorial img,
.space-card img {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* Reduce excessive heights on mobile */
@media (max-width: 768px) {
  .h-\[720px\] {
    height: 420px !important;
  }

  .h-\[520px\] {
    height: 360px !important;
  }

  .h-\[320px\] {
    height: 260px !important;
  }
}
/* ===============================
   GLOBAL MOBILE SAFETY
================================ */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent any section overflow */
section {
  overflow-x: hidden;
}

/* Images never exceed viewport */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Fix large image overflow on mobile */
@media (max-width: 768px) {

  .h-\[720px\] {
    height: 420px !important;
  }

  .h-\[520px\] {
    height: 360px !important;
  }

  .h-\[320px\] {
    height: 260px !important;
  }

  /* Prevent scale overflow on mobile */
  img:hover {
    transform: none !important;
  }
}
@media (max-width: 768px) {
  .gap-16 {
    gap: 2.5rem !important;
  }
}
/* Fixed elements safety */
.fixed {
  max-width: 100vw;
}

/* ===============================
   REMOVE LINK / BUTTON BOXES
================================ */

/* Remove default browser focus outlines */
a, button {
  outline: none;
  box-shadow: none;
}

/* Remove focus ring on click */
a:focus,
a:active,
button:focus,
button:active {
  outline: none;
  box-shadow: none;
}

/* Keep accessibility for keyboard users (optional luxury style) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #C6A664;
  outline-offset: 4px;
}
