/* ============================================
   HAZARD MASONIC LODGE 676
   Custom Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-midnight-900: #0D2137;
  --color-mint-500: #2a9d6b;
  --color-mint-600: #1f7a52;
  --section-padding: 6rem;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  overflow-x: hidden;
}

/* --- Section Padding --- */
.section-padding {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* --- Divider Line --- */
.divider-line {
  margin: 0;
}

/* --- Navigation --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s var(--transition-smooth);
}

.nav-fixed.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(13, 33, 55, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--transition-smooth);
}

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

/* --- Mobile Menu --- */
.menu-line {
  transition: all 0.3s var(--transition-smooth);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-link {
  position: relative;
}

/* --- Hero Section --- */
.hero {
  position: relative;
}

.hero-bg {
  will-change: transform;
}

.hero-img {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(4, 8, 16, 0.55) 0%,
    rgba(13, 33, 55, 0.70) 40%,
    rgba(13, 33, 55, 0.80) 70%,
    rgba(7, 14, 26, 0.90) 100%
  );
}

.hero-title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

/* --- Room Cards --- */
.room-card {
  background: white;
  border-radius: 0;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(13, 33, 55, 0.12);
}

/* --- Amenity Items --- */
.amenity-item {
  transition: transform 0.3s var(--transition-smooth);
}

.amenity-item:hover {
  transform: translateY(-2px);
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    transform: translateY(30px);
  }
  
  .reveal-left {
    transform: translateX(-30px);
  }
  
  .reveal-right {
    transform: translateX(30px);
  }
  
  /* Only apply hidden state when JS is active via .js class */
  .js .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .js .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
  }
  
  .js .reveal-right {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* --- Button Focus Styles --- */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2a9d6b;
  outline-offset: 2px;
}

/* --- Selection Color --- */
::selection {
  background: rgba(42, 157, 107, 0.2);
  color: #0D2137;
}

/* --- Print Styles --- */
@media print {
  .nav-fixed,
  .hero-deco,
  .hero-diamond,
  .reveal-up,
  .reveal-left,
  .reveal-right {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
