/* ============================================
   PATRIOT INN HOTEL — Custom Styles
   ============================================ */

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection Color */
::selection {
  background-color: rgba(255, 138, 110, 0.25);
  color: #1e242b;
}

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

#navbar.scrolled {
  background-color: rgba(253, 246, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(37, 44, 53, 0.06);
}

#navbar.scrolled .nav-logo-text {
  color: #1e242b;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff8a6e, #ff6b4a);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

#navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

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

#navbar:not(.scrolled) .menu-line {
  background-color: #fff;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.mobile-link {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(37, 44, 53, 0.06);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive Enhancement — content is visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

/* ============================================
   BUTTONS & LINKS
   ============================================ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #ff8a6e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   FORM STYLES
   ============================================ */
input::placeholder, textarea::placeholder {
  color: #9ea4ae;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.15;
  }
}

/* ============================================
   SUBTLE GRADIENT BACKGROUNDS
   ============================================ */
.bg-hero-gradient {
  background: linear-gradient(135deg, #1e242b 0%, #2f3743 50%, #3d4755 100%);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.room-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ============================================
   IMAGE LAZY LOAD FALLBACK
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  #navbar, #contact, footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

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