/* ============================================
   Mass Painting & Contracting - Custom Styles
   ============================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #ffc107;
    color: #2a1a2a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f9f5f9;
}

::-webkit-scrollbar-thumb {
    background: #d4b8d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a36aa3;
}

/* ============================================
   Navigation
   ============================================ */

.nav-scrolled {
    box-shadow: 0 1px 0 rgba(77, 49, 77, 0.08);
}

.nav-scrolled .nav-logo svg path {
    stroke: #ffc107;
}

/* Mobile Menu Lines Animation */
.mobile-menu-line {
    display: block;
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu Links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Reveal Animations (Progressive Enhancement)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Form Styles
   ============================================ */

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

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .font-serif {
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .nav-scrolled,
    #mobile-menu,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
