/* Custom styles for Los Primasos Tire Shop */

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

/* Custom selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* Hero animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.3s;
}
.hero-title {
    animation: fadeUp 0.8s ease forwards 0.5s;
}
.hero-desc {
    animation: fadeUp 0.8s ease forwards 0.7s;
}
.hero-ctas {
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section animations */
.section-label {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s ease;
}
.section-title {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s ease 0.1s;
}
.section-line {
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.6s ease 0.2s;
}

/* Intersection observer classes */
.in-view .section-label,
.in-view .section-title,
.in-view .section-line {
    opacity: 1;
    transform: translateY(0) scaleX(1);
}

/* Service cards stagger */
.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.5s ease;
}
.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Why cards stagger */
.why-card {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.5s ease;
}
.why-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-scrolled .nav-link {
    color: #334155;
}
.nav-scrolled .nav-link:hover {
    color: #0d9488;
}

/* Mobile menu */
.mobile-link {
    animation: none;
}

/* Custom select styling */
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='%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 0 center;
    padding-right: 2rem;
}

/* Subtle image hover zoom */
.service-card img,
#about img {
    transition: transform 0.7s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
    transform: translateX(0);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}
