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;
}
/* ===========================
   BLOG TYPOGRAPHY STYLES
   =========================== */

.blog-hero {
  padding: 10rem 1.5rem 5rem;
  background: #faf9f6;
  text-align: center;
}

.blog-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: #1f3d2b;
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.2;
}

.blog-hero p {
  font-size: 1.1rem;
  color: #444;
}

.blog-content {
  padding: 5rem 1.5rem;
  background: #faf9f6;
}

.blog-content .container {
  max-width: 900px;
  margin: auto;
}

.blog-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
  color: #222;
}

.blog-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  margin: 4rem 0 1.5rem;
  color: #1f3d2b;
}

.blog-content ul {
  margin: 1.5rem 0 2.5rem 1.5rem;
}

.blog-content ul li {
  list-style: disc;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.blog-content strong {
  color: #1f3d2b;
}
/* ===========================
   BLOG HERO IMAGE VARIANT
   =========================== */

.blog-hero.image-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.blog-hero.image-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.blog-hero.image-hero h1,
.blog-hero.image-hero p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.blog-hero.image-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #eaeaea;
}
/* ===============================
   HEADER FIX FOR INNER PAGES
================================ */

/* Default header state */
#siteHeader {
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.4s ease;
}


/* ===============================
   INNER PAGE HEADER FIX
================================ */
.inner-page #siteHeader {
  background: transparent;
}

.inner-page #siteHeader.scrolled {
  background: rgba(31, 61, 43, 0.95);
  backdrop-filter: blur(6px);
}

/* Force white nav like home */
.inner-page #siteHeader a,
.inner-page #siteHeader span,
.inner-page #siteHeader button {
  color: #ffffff !important;
}
/* ===============================
   HEADER COLOR CONTROL (FINAL)
================================ */

/* HERO STATE (top of page) */
#siteHeader:not(.scrolled) a,
#siteHeader:not(.scrolled) span,
#siteHeader:not(.scrolled) button {
  color: #ffffff;
}

/* SCROLLED STATE */
#siteHeader.scrolled {
  background: rgba(250, 249, 246, 0.95); /* ivory */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

#siteHeader.scrolled a,
#siteHeader.scrolled span,
#siteHeader.scrolled button {
  color: #1F3D2B; /* forest green */
}

/* CTA stays gold bordered */
#siteHeader.scrolled a.border-gold {
  color: #1F3D2B;
}
#siteHeader nav a {
  pointer-events: auto;
  position: relative;
  z-index: 60;
}
#siteHeader {
  z-index: 50;
}
