/**
 * Sections Styles - Hero, Services, About, Stats, Testimonials, CTA
 *
 * @package De_Assis_Advocacia
 * @since 1.0.0
 */

/* Common Section Styles */
.section-title {
    text-align: center;
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-3xl);
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    background: var(--gradient-overlay),
                url('/wp-content/uploads/2025/11/fundo_hero_advocacia_azul_1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 var(--container-padding);
    padding-top: 80px;
}

.hero-logo {
    width: 168px;
    height: 168px;
    object-fit: contain;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: var(--font-size-hero);
    margin-bottom: var(--spacing-sm);
    max-width: 1000px;
    line-height: var(--line-height-tight);
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Botão da Hero com efeito Blur */
.btn-hero-blur {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 1rem 3rem;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Blur Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-hero-blur:hover,
.btn-hero-blur:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--color-secondary);
}

.scroll-indicator {
    font-size: var(--font-size-3xl);
    animation: bounce 2s infinite;
    margin-top: var(--spacing-xl);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Services Section */
.services {
    padding: var(--spacing-3xl) var(--container-padding);
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    display: none;
}

.service-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-lg);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.service-content {
    padding: var(--spacing-md);
}

.service-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-size: var(--font-size-2xl);
}

.service-content p {
    color: var(--color-text-light);
    line-height: var(--line-height-base);
}

.btn-contact {
    display: block;
    width: fit-content;
    margin: var(--spacing-3xl) auto 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-3xl);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
}

.btn-contact:hover,
.btn-contact:focus {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* About Section */
.about {
    background: var(--gradient-overlay-dark),
                url('/wp-content/uploads/2025/10/neo_classical_courthouse_facade_illuminated_night_generated_by_ai_1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-3xl) var(--container-padding);
    color: var(--color-white);
}

.about-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about-text h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.about-text h3 {
    font-size: var(--font-size-2xl);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    color: var(--color-secondary);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.about-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    max-height: 600px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .features-grid {
        /* grid-template-columns is already 1fr in responsive.css, 
           but alignment issue is likely due to default left align */
        justify-items: center;
        text-align: center;
    }
    
    .feature-item {
        /* Ensure feature items center their content on mobile */
        justify-content: center;
        width: 100%;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feature-icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon::after {
    content: '✓';
    color: var(--color-secondary);
    font-weight: var(--font-weight-bold);
}

/* Stats Section */
.stats {
    background-color: var(--color-dark);
    padding: var(--spacing-3xl) var(--container-padding);
    margin: var(--spacing-2xl) var(--container-padding);
    border-radius: var(--radius-lg);
}

.stat-item {
    color: var(--color-white);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-large);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
}

/* Ajuste para grid de 2 colunas na seção Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-3xl) var(--container-padding);
    background-color: var(--color-light);
}

.testimonials-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.testimonials-swiper {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.swiper-slide {
    height: auto;
    display: flex;
}

.testimonial-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.stars {
    color: #ffd700;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--color-primary);
}

.author-info p {
    font-size: var(--font-size-small);
    color: var(--color-text-lighter);
}

/* Swiper Navigation Buttons - Abaixo do conteúdo */
.testimonials .swiper-button-prev,
.testimonials .swiper-button-next {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-primary);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.testimonials .swiper-button-prev:after,
.testimonials .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.testimonials .swiper-button-prev:hover,
.testimonials .swiper-button-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.testimonials .swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonials-navigation {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    align-items: center;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-3xl) var(--container-padding);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('/wp-content/uploads/2025/10/default_computer_on_table_highly_realistic_with_close_up_view_1_palette.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}

.contact-section .section-title {
    color: var(--color-white);
}

.contact-content.centered {
    display: block;
    margin: 0 auto;
    max-width: 800px;
}

.contact-form-wrapper {
    width: 100%;
}

.form-blur-container {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
}

.form-group .required {
    color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-sm);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: var(--spacing-sm);
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
    width: 100%;
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-message {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm);
    text-align: center;
    font-weight: var(--font-weight-semibold);
}

.form-message.success {
    background-color: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* CTA Section */
.cta {
    background: var(--gradient-overlay-cta),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23222" width="1200" height="400"/><text x="50%" y="50%" fill="%23444" font-size="30" text-anchor="middle">Law Library</text></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-3xl) var(--container-padding);
    text-align: center;
    color: var(--color-white);
}

.cta h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
}

.btn-cta {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-3xl);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
