/* ===== CUSTOM STYLES FOR THE SOUTH LAMAR ===== */

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

/* Navigation scroll state */
#nav.scrolled {
  background: rgba(44, 36, 32, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ===== GEOMETRIC BACKGROUND SHAPES ===== */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-circle--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(194, 112, 78, 0.15) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 196, 168, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(194, 112, 78, 0.1) 0%, transparent 70%);
  bottom: -100px;
  right: 10%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-circle--4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  animation: float-slow 22s ease-in-out infinite;
}

.geo-rect {
  position: absolute;
  pointer-events: none;
}

.geo-rect--1 {
  width: 200px;
  height: 200px;
  background: rgba(194, 112, 78, 0.08);
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
  animation: spin-slow 30s linear infinite;
}

.geo-rect--2 {
  width: 150px;
  height: 150px;
  background: rgba(245, 196, 168, 0.1);
  bottom: 10%;
  right: 8%;
  transform: rotate(30deg);
  animation: spin-slow 25s linear infinite reverse;
}

.geo-diamond {
  position: absolute;
  pointer-events: none;
}

.geo-diamond--1 {
  width: 80px;
  height: 80px;
  background: rgba(194, 112, 78, 0.12);
  top: 40%;
  right: 15%;
  transform: rotate(45deg);
  animation: float-slow 12s ease-in-out infinite;
}

.geo-diamond--2 {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(45deg);
  animation: float-slow 16s ease-in-out infinite reverse;
}

.geo-stripe {
  position: absolute;
  pointer-events: none;
}

.geo-stripe--1 {
  width: 300px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(194, 112, 78, 0.2), transparent);
  top: 30%;
  right: 0;
  transform: rotate(-15deg);
  animation: stripe-drift 10s ease-in-out infinite;
}

.geo-stripe--2 {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 168, 0.25), transparent);
  bottom: 25%;
  left: 10%;
  transform: rotate(10deg);
  animation: stripe-drift 14s ease-in-out infinite reverse;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

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

@keyframes stripe-drift {
  0%, 100% { opacity: 0.5; transform: rotate(-15deg) translateX(0); }
  50% { opacity: 1; transform: rotate(-15deg) translateX(20px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ===== ROOM CARDS ===== */
.room-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

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

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .font-heading {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
textarea:focus {
  border-color: #C2704E !important;
  box-shadow: 0 0 0 3px rgba(194, 112, 78, 0.12);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(194, 112, 78, 0.2);
  color: #2C2420;
}
