/* Omonia Vineyard — Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0D0A07;
}

/* Selection */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #E8D5C0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0A07;
}
::-webkit-scrollbar-thumb {
    background: #3D2B1F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

/* Reveal animations — progressive enhancement, works without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(13, 10, 7, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Gold shimmer on hover for buttons */
.group:hover .group-hover\:rotate-0 {
    transform: rotate(0deg);
}

/* Custom focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .float-1 { animation: float 6s ease-in-out infinite; }
    .float-2 { animation: float2 5s ease-in-out infinite; }
    .float-3 { animation: float3 7s ease-in-out infinite; }
}

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

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

/* Image lazy-load placeholder */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

/* Ensure all text meets contrast */
.text-omonia-sand\/60 { color: rgba(212, 184, 150, 0.6); }
.text-omonia-sand\/65 { color: rgba(212, 184, 150, 0.65); }
.text-omonia-sand\/70 { color: rgba(212, 184, 150, 0.7); }
.text-omonia-sand\/75 { color: rgba(212, 184, 150, 0.75); }
.text-omonia-sand\/80 { color: rgba(212, 184, 150, 0.8); }
.text-omonia-sand\/30 { color: rgba(212, 184, 150, 0.3); }
.text-omonia-sand\/50 { color: rgba(212, 184, 150, 0.5); }

/* Form styles */
input, textarea {
    background-color: rgba(42, 35, 32, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #E8D5C0;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #C9A84C;
}

input::placeholder, textarea::placeholder {
    color: rgba(212, 184, 150, 0.4);
}

/* Success message */
.form-success {
    display: none;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #E8CC7A;
    text-align: center;
    font-weight: 500;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

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