/* ============================================
   Northwood Trail Apartments — Custom Styles
   ============================================ */

/* Base typography refinement */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #fdfcf8;
  color: #183811;
}

/* Ensure all links have consistent styling */
a {
  text-decoration: none;
}

/* Selection color */
::selection {
  background-color: #3d8a2f;
  color: #fdfcf8;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #3d8a2f;
  outline-offset: 2px;
}

/* Smooth image rendering */
img {
  -webkit-font-smoothing: antialiased;
  image-rendering: -webkit-optimize-contrast;
}

/* Prevent horizontal overflow from geometric shapes */
body, main, footer {
  overflow-x: hidden;
}

/* Mobile menu animations */
.menu-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

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

#menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* Mobile link hover effect */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3d8a2f;
  transition: width 0.3s ease;
}

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

/* Reduced motion — hide scroll reveals */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .feature-card {
    transition: none;
  }

  .geo-circle,
  .geo-rect,
  .geo-triangle {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  #main-nav,
  .stripe-accent,
  .geo-circle,
  .geo-rect,
  .geo-triangle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
