/* Dynasty Custom Auto Works — Custom Styles */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffcf7;
}
::-webkit-scrollbar-thumb {
    background: #f9cfd9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f4a3b8;
}

/* Selection color */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #7B2D3B;
}

/* Nav transition states */
.nav-scrolled {
    background: rgba(123, 45, 59, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Hamburger animation */
.hamburger-active line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-active line:nth-child(2) {
    opacity: 0;
}
.hamburger-active line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Service card tilt effect on hover */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Subtle gradient text for hero */
.gradient-text {
    background: linear-gradient(135deg, #fce8c4 0%, #f8c778 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    nav, #contact, .cta-banner, footer { display: none; }
    body { color: #000; background: #fff; }
}
