/* ========================================
   220F Port Clinton Condo — Custom Styles
   Premium Dark Luxury Theme
   Burgundy + Blush + Gold Palette
   ======================================== */

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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #F5F0EB;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0508;
}
::-webkit-scrollbar-thumb {
  background: #3D1A24;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5A1F32;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 600;
}

/* --- Nav Link Underline Effect --- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #C9A84C, #A67C2E);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu Toggle --- */
.menu-line {
  display: block;
}

#mobile-menu.open .menu-line:first-child {
  transform: translateY(5px) rotate(45deg);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.4rem;
}

/* --- Mobile Nav Link --- */
.mobile-nav-link {
  position: relative;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }

  /* Stagger children */
  .reveal-up:nth-child(2) { transition-delay: 0.08s; }
  .reveal-up:nth-child(3) { transition-delay: 0.16s; }
  .reveal-up:nth-child(4) { transition-delay: 0.24s; }
  .reveal-up:nth-child(5) { transition-delay: 0.32s; }
  .reveal-up:nth-child(6) { transition-delay: 0.40s; }
}

/* Reduced motion — ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Gold Shimmer on Hover --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.6);
  outline-offset: 2px;
}

/* --- Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #0D0508 inset !important;
  -webkit-text-fill-color: #F5F0EB !important;
}

/* --- Image Loading Placeholder --- */
img {
  background: linear-gradient(135deg, #1A0A0E 0%, #2A1520 100%);
}

/* --- Subtle Gold Line Accents --- */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
}
