/* ============================================
   THAXTON ROOFERS — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

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

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f1f5f9;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content visible
   even if JS is disabled
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* JS-gated reveal states (progressive enhancement) */
.scroll-reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-reveal="visible"] {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(8, 14, 26, 0.92);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: #94a3b8;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #080e1a, transparent);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Service Cards
   ============================================ */
.group:hover .group-hover\:\!bg-teal-600\/30 {
    background: rgba(13, 148, 136, 0.3) !important;
}

/* ============================================
   Form Elements
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' 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 12px center;
    padding-right: 40px;
}

/* ============================================
   Back to Top Button
   ============================================ */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: rgba(13, 148, 136, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* ============================================
   Utility Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    #hero::before {
        height: 100px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #backToTop,
    #hero .absolute.bottom-8 {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
