/* ─── Custom Styles for Summer House ─── */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom navbar height */
#site-header {
  background: rgba(253, 248, 245, 0);
  backdrop-filter: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

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

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.25s ease;
}

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

/* Mobile nav links */
.mobile-nav-link {
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
  border-left-color: #7B2D3B;
}

/* ─── Floating Stat Cards ─── */
.stat-card {
  animation: float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes float-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle float animation after entry */
.stat-card:nth-child(1) { animation: float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards, gentle-float 4s ease-in-out 1s infinite; }
.stat-card:nth-child(2) { animation: float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards, gentle-float 4.5s ease-in-out 1.2s infinite; }
.stat-card:nth-child(3) { animation: float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards, gentle-float 3.8s ease-in-out 1.4s infinite; }

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─── Feature Cards ─── */
.feature-card {
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* ─── Advantage Cards (dark section) ─── */
.advantage-card {
  will-change: transform;
}

.advantage-card:hover {
  transform: translateY(-3px);
}

/* ─── Gallery Items ─── */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(123, 45, 59, 0);
  transition: background 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  background: rgba(123, 45, 59, 0.1);
}

.gallery-item {
  position: relative;
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Input Focus Styles ─── */
input:focus,
textarea:focus {
  outline: none;
}

/* ─── Selection Color ─── */
::selection {
  background: rgba(123, 45, 59, 0.15);
  color: #7B2D3B;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

/* ─── Print Styles ─── */
@media print {
  #site-header,
  #gallery,
  .stat-card {
    display: none;
  }
}
