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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-logo-text {
  color: #7B2D3B;
  transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
  color: #FDE3DB;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #D95C3F;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar:not(.scrolled) .nav-link {
  color: #FDE3DB;
}

#navbar:not(.scrolled) .nav-link:hover {
  color: #F9C9BC;
}

#navbar:not(.scrolled) .nav-link::after {
  background: #F9C9BC;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ===== FLOATING CARDS ===== */
.floating-card-1 {
  animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
  animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
  animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-6px);
}

/* ===== GALLERY ===== */
.gallery-item {
  cursor: pointer;
  aspect-ratio: auto;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* These are progressive enhancement — JS adds .revealed for the animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
  .reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
  .reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
  .reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
  .reveal.revealed:nth-child(6) { transition-delay: 0.5s; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FDF8F5;
}

::-webkit-scrollbar-thumb {
  background: #E99BAB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D96F82;
}

/* ===== SELECTION ===== */
::selection {
  background: #F3C5CE;
  color: #4F1D27;
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
