/* Main CSS file - A&A Finance LTDA */

/* ==========================================================================
   Base styles - These extend the critical CSS
   ========================================================================== */

/* Section styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin: 15px auto 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1 1 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1 1 500px;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.mission-vision {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.mission, .values {
    flex: 1 1 300px;
    background-color: rgba(var(--primary-rgb), 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.mission h4, .values h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.values ul {
    padding-left: 20px;
}

.values li {
    margin-bottom: 8px;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--background);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-item {
    flex: 1 1 200px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.service-icon .icon {
    width: 50px;
    height: 50px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary);
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

.services-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-item {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.testimonial-content {
    background-color: var(--background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.star {
    color: #ccc;
    font-size: 1.2rem;
}

.star.filled {
    color: #FFD700;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--primary);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.prev-btn, .next-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--accent);
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--primary);
    width: 12px;
    height: 12px;
}

.testimonial-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--background);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    flex: 1 1 350px;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.info-icon {
    color: var(--primary);
    margin-right: 15px;
    min-width: 24px;
}

.info-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.info-content p {
    margin-bottom: 5px;
}

.info-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    flex: 1 1 500px;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.privacy-check {
    display: flex;
    align-items: center;
}

.privacy-check input {
    width: auto;
    margin-right: 10px;
}

.privacy-check label {
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

.form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-response.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.map-container {
    margin-top: 50px;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map iframe {
    display: block;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 1 1 350px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-links {
    flex: 1 1 500px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-nav, .footer-services, .footer-social {
    flex: 1 1 200px;
}

.footer h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer a:hover {
    color: var(--accent);
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    flex: 1 1 400px;
    margin-bottom: 15px;
}

.footer-legal {
    flex: 0 1 auto;
}

.footer-legal a {
    margin: 0 10px;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.policy-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.policy-content section {
    margin-bottom: 25px;
}

.policy-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.policy-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    flex: 1 1 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
}

.cookie-btn.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-btn.secondary:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--accent);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-wrapper {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 15px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
    }
}

/* Convert primary color to RGB for transparency use */
:root {
    --primary-rgb: 30, 83, 132; /* Default fallback, will be overridden by JS */
} 