/* Custom styles - Consultório Médico da Visão */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Base body */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1A1A1A;
    background-color: #FEFEFE;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading font */
.font-heading {
    font-family: 'Playfair Display', Georgia, serif;
}

/* WhatsApp float animation */
#whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* FAQ accordion */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0.75rem 1.5rem 1.25rem;
}

.faq-item .faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(25, 115, 23, 0.12);
}

/* City card hover */
.city-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Blog card */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Differential card */
.diff-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 115, 23, 0.08);
}

/* Header scroll shadow */
#header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Blog content styling */
.blog-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}

.blog-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.blog-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    color: #374151;
}

.blog-content strong {
    color: #1A1A1A;
}

/* Breadcrumb */
.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #197317;
}

/* Map container */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.map-container iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

/* Selection */
::selection {
    background-color: #ADCBAD;
    color: #1A1A1A;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #197317;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    #header, #whatsapp-float, #mobile-menu {
        display: none !important;
    }
}
