/* The Suddreth Cottage — Custom Styles */

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

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060B14; }
::-webkit-scrollbar-thumb { background: #1B2D45; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #D4A843; }

/* Selection */
::selection {
    background: rgba(16, 185, 129, 0.25);
    color: #fff;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Custom date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6) sepia(1) saturate(5) hue-rotate(110deg);
    cursor: pointer;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(6, 11, 20, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer-text {
    background: linear-gradient(90deg, #F5D78E 0%, #fff 50%, #F5D78E 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Ambient pulse for decorative elements */
@keyframes ambient-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.ambient-pulse {
    animation: ambient-pulse 6s ease-in-out infinite;
}

/* Card border glow on hover */
.card-hover {
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16,185,129,0.3), transparent, rgba(212,168,67,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-hover:hover::before {
    opacity: 1;
}

/* Reduced motion */
@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 !important; transform: none !important; }
}

/* Mobile menu animation */
#mobile-menu {
    will-change: opacity, transform;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A1120 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Print styles */
@media print {
    body { background: #fff; color: #000; }
    #navbar, #contact-form, iframe { display: none; }
}
