/* Custom Styles for Kihei Oceanside Rentals */

:root {
    --navy-900: #0a1628;
    --navy-800: #0f2240;
    --navy-700: #163461;
    --navy-600: #1e4478;
    --navy-500: #265590;
    --navy-100: #e8edf5;
    --navy-50: #f4f7fb;
    --gold-500: #c9a84c;
    --gold-400: #d4b965;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navigation */
.nav-text {
    color: #0f2240;
}

.nav-subtext {
    color: #c9a84c;
}

.nav-link {
    color: #0f2240;
    position: relative;
    padding-bottom: 4px;
}

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

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

.nav-link:hover {
    color: #c9a84c;
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 34, 64, 0.08);
}

header.scrolled .nav-text {
    color: #0f2240;
}

header.scrolled .nav-link {
    color: #0f2240;
}

/* Mobile menu */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-up {
        transform: translateY(0);
    }
    
    .reveal-left {
        transform: translateX(0);
    }
    
    .reveal-right {
        transform: translateX(0);
    }
}

/* Button hover effects */
a {
    text-decoration: none;
}

/* Image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Smooth transitions */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f2240;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 br {
        display: none;
    }
}

@media (min-width: 769px) {
    #hero h1 br {
        display: block;
    }
}

/* Print styles */
@media print {
    header,
    footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
