/* ===== Custom Styles for Harbor Beacon Condos ===== */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

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

/* Hero animations */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(42, 20, 44, 0.75) 0%,
        rgba(75, 37, 79, 0.65) 50%,
        rgba(42, 20, 44, 0.80) 100%
    );
}

/* Hero entrance animations */
.hero-eyebrow {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-headline {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-subtext {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-ctas {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section eyebrow */
.section-eyebrow {
    letter-spacing: 0.3em;
}

/* Reveal animations (progressive enhancement — only when JS runs) */
.reveal-up,
.reveal-left,
.reveal-right {
    /* Default: always visible */
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Form styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(230deg);
    cursor: pointer;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f3f8;
}

::-webkit-scrollbar-thumb {
    background: #c99dd7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ad6ec0;
}

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

/* Button hover lift effect */
button, a {
    transition: all 0.3s ease;
}

/* Image lazy loading placeholder */
img {
    backface-visibility: hidden;
}

/* Print styles */
@media print {
    header, footer, #contact-form {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}
