/* ==========================================
   C T Concrete Construction — Custom Styles
   ========================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f3f4f6;
}
::-webkit-scrollbar-thumb {
    background: #a11634;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841632;
}

/* Selection color */
::selection {
    background: #a11634;
    color: #fff;
}

/* Prevent content flash on scroll reveal */
.reveal {
    opacity: 1;
    transform: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Service card hover lift */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery image hover */
.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
}
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

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

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

/* Form input focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text gradient for burgundy accent */
.text-burgundy-gradient {
    background: linear-gradient(135deg, #f6a7b6 0%, #dc4462 50%, #a11634 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(161, 22, 52, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Loading state for form button */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Floating stats card shadow */
.floating-stats {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
    header, footer, #contact-form, .cta-section {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        text-decoration: underline;
    }
}
