/* ============================================
   White-Cap Canvas LLC — Custom Styles
   ============================================ */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FBF3E8;
}
::-webkit-scrollbar-thumb {
    background: #C22847;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11d3c;
}

/* Selection */
::selection {
    background: #fce7eb;
    color: #5e1f2b;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 249, 243, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* ============================================
   Stat Cards (Hero)
   ============================================ */
.stat-card {
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ============================================
   Gallery Items
   ============================================ */
.gallery-item {
    height: 240px;
    cursor: pointer;
}

.gallery-item.row-span-2 {
    height: 504px;
}

@media (min-width: 1024px) {
    .gallery-item {
        height: 200px;
    }
    .gallery-item.row-span-2 {
        height: 416px;
    }
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Mobile Menu Animations
   ============================================ */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
    width: 5px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

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

/* ============================================
   Button Hover Effects
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Loading State for Form Submit
   ============================================ */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, .stat-card, .gallery-item {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
