/* Torres Landscaping — Premium Dark Luxury Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080706;
}
::-webkit-scrollbar-thumb {
    background: #292524;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #44403c;
}

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

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #f5f5f4;
}

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Header scroll state */
#site-header.scrolled #nav-bg {
    background: rgba(8, 7, 6, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.service-card:hover::before {
    opacity: 1;
}

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.2);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}
#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 1;
}
#mobile-menu.closed .mobile-link {
    opacity: 0;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hamburger animation */
#mobile-menu.open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu.open #bar2 {
    opacity: 0;
}
#mobile-menu.open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Fade-in animations (progressive enhancement) */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* 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;
    }
    .fade-in, .fade-in-left, .fade-in-right {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.6);
    outline-offset: 2px;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    border-color: rgba(201, 162, 39, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.08);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d48a 0%, #c9a227 50%, #a67c1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 9999;
}

/* Mobile menu overlay transition */
#mobile-menu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}
