/* ============================================
   Comfort Inn Chambersburg — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #7B2D3B;
  color: #FFF8F5;
}

/* --- Section Labels --- */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B2D3B;
}

/* --- Section Titles --- */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: #1A1412;
  letter-spacing: -0.02em;
}

/* --- Tags --- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  background: #FFF0EA;
  color: #7B2D3B;
  border-radius: 100px;
  border: 1px solid #f9cfd8;
}

/* --- Room Cards --- */
.room-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.room-card:nth-child(2) { transition-delay: 0.1s; }
.room-card:nth-child(3) { transition-delay: 0.2s; }

/* --- Amenities --- */
.amenity-item {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.amenity-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Location Cards --- */
.location-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.location-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.location-card:nth-child(1) { transition-delay: 0s; }
.location-card:nth-child(2) { transition-delay: 0.08s; }
.location-card:nth-child(3) { transition-delay: 0.16s; }
.location-card:nth-child(4) { transition-delay: 0.24s; }

/* --- Contact Info --- */
.contact-info {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-info.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #7B2D3B !important;
}

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

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

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

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

.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Hero Animations --- */
.hero-subtitle {
  animation: slideUp 0.8s ease forwards;
}

.hero-title {
  animation: slideUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-paragraph {
  animation: slideUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  animation: slideUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Header Scroll State --- */
header.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26, 20, 18, 0.06);
}

header.scrolled .nav-link {
  color: #1A1412 !important;
}

/* --- Button Ripple --- */
button, a {
  cursor: pointer;
}

/* --- Focus Styles --- */
input:focus, textarea:focus, button:focus {
  outline: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .room-card {
    opacity: 1;
    transform: translateY(0);
  }
}
