/* ============================================
   CHINCOTEAGUE ESCAPES — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #060d1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* --- Navbar --- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 13, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* --- Mobile Menu --- */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open #bar1 {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-open #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-open #bar3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* --- Hero Animation --- */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1.2s ease forwards;
    animation-delay: 0.3s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
@keyframes scrollIndicator {
    0% { top: -16px; opacity: 1; }
    100% { top: 48px; opacity: 0; }
}
.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-out infinite;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Gallery Scroll --- */
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll-gallery {
    animation: scrollGallery 30s linear infinite;
}
.animate-scroll-gallery:hover {
    animation-play-state: paused;
}

/* --- Parallax Hero --- */
#heroImg {
    will-change: transform;
}

/* --- Property Card Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Gold Gradient Text --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d78c 0%, #c9a84c 50%, #a8893a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Input Date Icons --- */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(10deg);
    cursor: pointer;
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 1px solid rgba(201, 168, 76, 0.5);
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

@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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .animate-scroll-gallery {
        animation: none;
    }
}
