/* Custom styles for Sun Solace */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8922e;
}

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

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger animation */
#menu-toggle.active .hamburger.span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .hamburger.span:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .hamburger.span:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card image container */
.service-card .h-56 {
    overflow: hidden;
}

/* Button ripple effect */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-gold:active::after {
    width: 200px;
    height: 200px;
}

/* Parallax-like subtle effect on hero */
#hero {
    background-attachment: fixed;
}

/* Reduce motion preference */
@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;
    }
    #hero {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    nav, .btn-gold, .btn-outline, #contact-form {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
