/* ============================================
   Country Village Apartments — Custom Styles
   Classic & Elegant · Deep Navy + Warm Gold
   ============================================ */

/* Base overrides and custom utilities */
body {
  font-family: 'Lora', Georgia, serif;
  color: #0B1D3A;
  background-color: #F5F0E8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-accent {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Smooth focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #C8A961;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background-color: #C8A961;
  color: #0B1D3A;
}

/* Image loading placeholder */
img {
  background-color: #E8E0D0;
}

/* Custom gold gradient for special elements */
.gold-gradient {
  background: linear-gradient(135deg, #C8A961 0%, #F2D173 50%, #C8A961 100%);
}

/* Subtle pattern overlay for sections */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(200, 169, 97, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

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

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

/* Card shadow on hover */
.card-elevated {
  box-shadow: 0 4px 20px rgba(11, 29, 58, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-elevated:hover {
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.15);
  transform: translateY(-4px);
}

/* Gold accent line under headings */
.heading-accent::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #C8A961, transparent);
  margin-top: 16px;
}

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

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

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

#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 24px;
  margin-right: 0;
}

/* Counter animation for stats */
.counter {
  display: inline-block;
}

/* Parallax-like subtle movement */
.parallax-slow {
  will-change: transform;
}

/* Print styles */
@media print {
  nav, .no-print {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .float-slow, .float-medium, .float-fast {
    animation: none;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}
