/* Custom styles for Thicket Bed & Breakfast */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #486581;
}

/* Selection color */
::selection {
    background: rgba(247, 185, 0, 0.3);
    color: #fff;
}

/* Geometric floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Subtle rotation for decorative shapes */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fade-in for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply float animation to hero cards */
.floating-card-1 {
    animation: float 5s ease-in-out infinite;
}
.floating-card-2 {
    animation: float 5s ease-in-out infinite 0.8s;
}
.floating-card-3 {
    animation: float 5s ease-in-out infinite 1.6s;
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Only animate when JS enables it and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav active state */
nav a.active {
    color: #ffd223;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(247, 185, 0, 0.15);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #ffd223 0%, #f7b900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ffd223;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::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, height 0.6s;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}
