/* Custom CSS for Victor Silveira Advocacia */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism effects */
.glass-card {
    background: rgba(225, 199, 115, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(225, 199, 115, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(225, 199, 115, 0.1);
}

.glass-profile {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), 
                      linear-gradient(135deg, #E1C773, #F5D483, #E1C773);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 80px rgba(225, 199, 115, 0.15),
                0 8px 32px rgba(225, 199, 115, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(225, 199, 115, 0.1) 0%, transparent 50%, rgba(245, 212, 131, 0.1) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.glass-profile img {
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-profile:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 120px rgba(225, 199, 115, 0.25),
                0 16px 48px rgba(225, 199, 115, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-profile:hover::before {
    background: linear-gradient(135deg, rgba(225, 199, 115, 0.15) 0%, transparent 50%, rgba(245, 212, 131, 0.15) 100%);
}

.glass-profile:hover img {
    transform: scale(1.02);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #E1C773, #F5D483);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold glow effect */
.gold-glow {
    box-shadow: 0 0 30px rgba(225, 199, 115, 0.3);
}

/* CTA buttons */
.cta-primary {
    background: linear-gradient(135deg, #E1C773, #F5D483);
    color: #0B1220;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(225, 199, 115, 0.4);
}

.cta-outline {
    border: 2px solid;
    border-image: linear-gradient(135deg, #E1C773, #F5D483) 1;
    color: #E1C773;
    background: transparent;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.cta-outline:hover {
    background: linear-gradient(135deg, #E1C773, #F5D483);
    color: #0B1220;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(225, 199, 115, 0.3);
}

/* WhatsApp CTA specific styling */
.cta-whatsapp {
    background: linear-gradient(135deg, #E1C773, #F5D483) !important;
    color: #0B1220 !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #0B1220 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cta-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(225, 199, 115, 0.3);
}

/* Navigation styles */
#navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(225, 199, 115, 0.2);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #E1C773, #F5D483);
    transition: width 0.3s ease;
}

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

/* Hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Area cards */
.area-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(225, 199, 115, 0.2);
    background: linear-gradient(135deg, rgba(225, 199, 115, 0.05), rgba(245, 212, 131, 0.03));
    opacity: 1 !important;
    visibility: visible !important;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #E1C773, #F5D483);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.area-card:hover::before {
    left: 100%;
}

.area-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(225, 199, 115, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.area-card:hover::after {
    opacity: 1;
}

.area-icon {
    transition: all 0.4s ease;
    position: relative;
}

.area-card:hover .area-icon {
    transform: scale(1.15) rotate(5deg);
}

.area-card:hover {
    border-color: rgba(225, 199, 115, 0.4);
    background: linear-gradient(135deg, rgba(225, 199, 115, 0.08), rgba(245, 212, 131, 0.05));
}

.area-card h3 {
    transition: color 0.3s ease;
}

.area-card:hover h3 {
    color: #F5D483;
}

/* Process steps */
.step-number {
    background: linear-gradient(135deg, #E1C773, #F5D483);
    color: #0B1220;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

/* Trust indicators */
.trust-item {
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-icon {
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
}

/* FAQ styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Lawyer cards */
.lawyer-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lawyer-photo img {
    transition: transform 0.3s ease;
}

.lawyer-card:hover .lawyer-photo img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Contact items */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(225, 199, 115, 0.1);
}

.contact-icon {
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Floating WhatsApp animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 3s infinite;
}

#floating-whatsapp:hover {
    animation: none;
}

/* Form styles */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(225, 199, 115, 0.1);
    border-color: #F5D483;
}

/* Trust seal */
.trust-seal {
    display: inline-block;
    transition: all 0.3s ease;
}

.trust-seal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 199, 115, 0.2);
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .glass-profile {
        padding: 16px;
    }
    
    .cta-primary,
    .cta-outline {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    #floating-whatsapp {
        bottom: 80px;
        right: 16px;
        padding: 12px;
    }
    
    #floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid #E1C773;
    }
    
    .text-gradient {
        color: #F5D483;
        -webkit-text-fill-color: #F5D483;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .pulse-animation {
        animation: none;
    }
}

/* Print styles */
@media print {
    .fixed,
    #floating-whatsapp,
    #urgent-bar,
    #navbar {
        display: none !important;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .text-gradient {
        color: #000;
        -webkit-text-fill-color: #000;
    }
}

/* Additional utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #E1C773;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Remove outline from FAQ buttons */
.faq-question:focus {
    outline: none;
}

/* Areas de Atuação - Enhanced */
.area-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(225, 199, 115, 0.15), rgba(245, 212, 131, 0.1));
    border-radius: 12px;
    margin: 0 auto;
    border: 1px solid rgba(225, 199, 115, 0.3);
}

/* Process Steps */
.process-step {
    opacity: 1 !important;
    visibility: visible !important;
}

.process-step .step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E1C773, #F5D483);
    color: #0B1220;
    font-weight: 700;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.process-step {
    position: relative;
}

.process-step:hover {
    transform: translateY(-2px);
}

/* Lawyers Section */
.lawyer-card {
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.lawyer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(225, 199, 115, 0.25);
}

.lawyer-photo img {
    transition: transform 0.3s ease;
}

.lawyer-card:hover .lawyer-photo img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial {
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(225, 199, 115, 0.15);
}

.testimonials-container {
    gap: 2rem;
}

/* FAQ Section */
.faq-item {
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-answer:not(.hidden) {
    max-height: 300px;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .area-card,
    .process-step,
    .lawyer-card,
    .testimonial {
        margin-bottom: 1.5rem;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lawyer-photo img {
        width: 100px;
        height: 100px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .area-icon {
        width: 50px;
        height: 50px;
    }
    
    .area-icon svg {
        width: 2rem;
        height: 2rem;
    }
    
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #E1C773;
    color: #0B1220;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
