/* Custom styles for Triple E Feed South */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(74, 25, 66, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: #b894be;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c6fa3;
}

/* Selection color */
::selection {
    background: #D4A843;
    color: #1f0a1c;
}

/* Hero gradient overlay for image */
.hero-image-overlay {
    position: relative;
}

.hero-image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 25, 66, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.15);
}

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

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Map container aspect ratio */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Subtle pattern for CTA section */
.cta-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(212, 168, 67, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(212, 168, 67, 0.05) 0%, transparent 50%);
}

/* Form styles */
input, textarea {
    border: 1px solid #d4bfd8;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #D4A843;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #b894be;
}
