  .preload * {
    transition: none !important;
    animation: none !important;
  }

/* ============================================
   GLOBAL RESET (CRITICAL - STABILITY)
============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0; /* prevents grid/flex overflow */
}

/* ============================================
   ROOT / BODY - FIXED FOR STICKY
============================================ */

html {
  width: 100%;
  overflow-y: scroll; /* Allows smooth scrolling */
  overflow-x: hidden; /* Move x-hidden to html only */
}

body {
  width: 100%;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #FAF7F2;
  color: #2F2F2F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: visible; /* CRITICAL: allows sticky to work */
}

/* ============================================
   TYPOGRAPHY BASE
============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #2F2F2F;
}

p {
  margin-bottom: 15px;
  color: #555;
}

/* ============================================
   LINKS
============================================ */

a {
  color: #5FA8A3;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #3E7C78;
}

/* ============================================
   CONTAINER STANDARD
============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   SECTIONS BASE
============================================ */

section {
  width: 100%;
  max-width: 100%;
  padding: 60px 20px;
}

/* ============================================
   BUTTON BASE
============================================ */

.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #5FA8A3, #3E7C78);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E6B85C, #F2D28B);
  color: #000;
  transform: translateY(-2px);
}

/* ============================================
   IMAGES (SAFE)
============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   MEDIA (EXTRA SAFETY)
============================================ */

video, iframe {
  max-width: 100%;
}

/* ============================================
   UTILITIES
============================================ */

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* ============================================
   STICKY HEADER (DESKTOP) - FIXED
============================================ */

/* Make the header container sticky */
.header-desktop {
  position: sticky;
  top: -40px;
  z-index: 1100;
  background: #fff;
  width: 100%;
}

/* Ensure the header has a solid background */
.header-desktop .top-bar,
.header-desktop .main-nav {
  background: #fff;
}

/* Add shadow when scrolled for visual effect */
.header-desktop.sticky-active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* Mobile header - never sticky */
.header-mobile {
  position: relative;
}

/* ============================================
   STICKY ACTIVE STATE
============================================ */

.header-desktop {
  transition: all 0.3s ease;
}

/* Shrink nav height */
.header-desktop .main-nav-inner {
  transition: all 0.3s ease;
}

.header-desktop.sticky-active .main-nav-inner {
  min-height: 60px;
}

/* Logo wrapper */
.header-desktop .nav-logo {
  width: 220px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    width 0.25s ease,
    margin 0.25s ease;
}

/* Logo image */
.header-desktop .nav-logo img {
  transition: all 0.25s ease;
}

/* Sticky state */
.header-desktop.sticky-active .nav-logo {
  opacity: 0;
  width: 0;
  margin: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

/* Collapse image too */
.header-desktop.sticky-active .nav-logo img {
  height: 0;
}

/* Tighten menu spacing */
.header-desktop.sticky-active .nav-menu {
  gap: 18px;
}

/* Slightly smaller nav text */
.header-desktop.sticky-active .nav-menu a {
  font-size: 14px;
}