/* Polo's Upholstery — Custom Styles */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom focus styles */
*:focus-visible {
    outline: 2px solid #ff5a25;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #ff5a25;
    color: #ffffff;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(15, 16, 18, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 90, 37, 0.1);
}

/* Service card hover */
.service-card:hover {
    border-color: rgba(255, 90, 37, 0.4) !important;
    transform: translateY(-4px);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Testimonial card hover */
.testimonial-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(255, 90, 37, 0.3);
    transform: translateY(-2px);
}

/* CTA section pattern */
.cta-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 90, 37, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(255, 90, 37, 0.1) 0%, transparent 50%);
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* 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; }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal-hidden { display: none !important; }
    body { background: white; color: black; }
}
