/* Custom styles for Centro Veterinário Animal Way */
/* Paleta: Verde Pastel — padrão estrutural baseado na Deliart */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Overlay effects */
.overlay-dark {
    position: relative;
}

.overlay-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26,46,26,0.75), rgba(26,46,26,0.45), rgba(26,46,26,0.75));
    pointer-events: none;
}

/* Image hover effects */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

/* Service cards */
.service-card {
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-bottom-color: #7bc67e;
}

/* Custom scrollbar — verde pastel */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f7f0;
}

::-webkit-scrollbar-thumb {
    background: #7bc67e;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4caf50;
}

/* Botão principal */
.btn-primary {
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #7bc67e;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Floating WhatsApp pulse */
.floating-whatsapp {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Print styles */
@media print {
    header, footer, .floating-whatsapp {
        display: none;
    }
}

body {
    font-family: 'Quicksand', sans-serif;
}

body.menu-open {
    overflow: hidden;
}

.nav-link-modern {
    position: relative;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.55rem;
    width: 0;
    height: 2px;
    background-color: #a8c0b4;
    transition: width 0.25s ease;
}

.nav-link-modern:hover::after {
    width: 100%;
}

.menu-line {
    border-radius: 9999px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

#mobile-menu-btn.is-open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.is-open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.is-open .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsivo — ajuste de hero em mobile */
@media (max-width: 640px) {
    section#hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 420px) {
    #mobile-menu-btn .menu-line {
        width: 1.55rem;
    }
}