/* Custom styles for Renaissance Painting & Flooring */

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

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Navbar transitions */
.nav-link {
    color: rgba(16, 42, 67, 0.6);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(16, 42, 67, 0.9);
}

/* Scrolled navbar styles */
.navbar-scrolled .nav-logo-fill {
    fill: #102a43;
}

.navbar-scrolled .nav-logo-text {
    color: #102a43;
}

.navbar-scrolled .nav-logo-sub {
    color: rgba(16, 42, 67, 0.5);
}

.navbar-scrolled .nav-link {
    color: rgba(16, 42, 67, 0.6);
}

.navbar-scrolled .nav-menu-btn svg {
    stroke: #102a43;
}

.navbar-transparent .nav-logo-fill {
    fill: #ffffff;
}

.navbar-transparent .nav-logo-text {
    color: #ffffff;
}

.navbar-transparent .nav-logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-transparent .nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.navbar-transparent .nav-menu-btn svg {
    stroke: #ffffff;
}

/* Mobile menu */
.mobile-nav-link {
    color: #102a43;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #33d78e;
}

/* Custom select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239fb3c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subtle hover effects */
.group:hover .group-hover\\/scale-105 {
    transform: scale(1.05);
}

/* Selection color */
::selection {
    background-color: rgba(51, 215, 142, 0.2);
    color: #102a43;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #33d78e;
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Image aspect ratios */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* Thin line decorations */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(16, 42, 67, 0.15), transparent);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #33d78e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .reveal[data-reveal] {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
