/* Custom Styles for Tony's Auto Clinic II */

:root {
    --charcoal: #2C2C2C;
    --coral: #FF6B6B;
    --coral-dark: #E85555;
    --stone-50: #FAFAFA;
    --stone-100: #F5F5F5;
    --stone-200: #E5E5E5;
    --stone-600: #4B5563;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    background-color: var(--stone-50);
    line-height: 1.6;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--coral);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
    padding-left: 1rem;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--coral);
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animation Delays */
.reveal-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-up:nth-child(2) { transition-delay: 0.2s; }
.reveal-up:nth-child(3) { transition-delay: 0.3s; }
.reveal-up:nth-child(4) { transition-delay: 0.4s; }
.reveal-up:nth-child(5) { transition-delay: 0.5s; }
.reveal-up:nth-child(6) { transition-delay: 0.6s; }

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-4px);
}

/* Service Card Hover */
.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
}
