/**
 * Main Stylesheet - domain - Serviços de Contabilidade
 * Autor: domain
 * Cores:
 * - Primária: #6A1B9A (roxo)
 * - Secundária: #00B8D4 (azul)
 * - Background: #FFF8F0 (bege claro)
 * - Texto: #2E2E2E (grafite) e #FFFFFF (branco)
 */

/* Reset e Estilos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6A1B9A;
    --primary-light: #9c4dcc;
    --primary-dark: #38006b;
    --secondary: #00B8D4;
    --secondary-light: #5deaff;
    --secondary-dark: #0088a3;
    --background: #FFF8F0;
    --text-dark: #2E2E2E;
    --text-light: #FFFFFF;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #9e9e9e;
    --success: #4CAF50;
    --warning: #FFC107;
    --error: #F44336;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title span {
    color: var(--secondary);
}

/* Botões */
.button, 
.cta-button,
.submit-button,
.service-link {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button, 
.submit-button {
    background-color: var(--primary);
    color: var(--text-light);
}

.button:hover, 
.submit-button:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-button {
    background-color: var(--secondary);
    color: var(--text-dark);
    font-size: 1.8rem;
    padding: 1.5rem 3rem;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-link {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 1.6rem;
}

.service-link:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.text-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.text-link:hover {
    color: var(--secondary);
}

/* Header e Navegação */
.site-header {
    background-color: var(--text-light);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    padding: 0.5rem 0;
}

.logo h1 {
    font-size: 3rem;
    margin: 0;
    color: var(--primary);
    position: relative;
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo a:hover h1::after {
    transform: scaleX(1);
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
}

.main-nav .nav-list li {
    margin: 0 1.5rem;
}

.main-nav .nav-list a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav .nav-list a:hover {
    color: var(--primary);
}

.main-nav .nav-list a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--primary);
    color: var(--text-light) !important;
    padding: 0.8rem 1.6rem !important;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-cta::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* Sections */
section {
    padding: 8rem 0;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    padding: 15rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('../img/IqMgBQ.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 4.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s 0.3s ease-out both;
}

.hero-content .cta-button {
    animation: fadeInUp 1s 0.6s ease-out both;
}

/* About Section */
.about-section {
    background-color: var(--text-light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-features {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    border-radius: 50%;
    margin: 0 auto 2rem;
    font-size: 3rem;
}

.feature h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature p {
    text-align: center;
    margin-bottom: 0;
}

/* Services Section */
.services-section {
    background-color: var(--background);
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    overflow-x: hidden;
    width: 100%;
}

.service-card {
    flex: 1;
    min-width: 300px;
    background: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 2rem 2rem 1rem;
}

.service-card p {
    padding: 0 2rem 2rem;
}

.service-card .service-link {
    display: block;
    width: fit-content;
    margin: 0 2rem 2rem;
}

/* Advantages Section */
.advantages-section {
    background-color: var(--text-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    overflow-x: hidden;
    width: 100%;
}

.advantage-item {
    padding: 2rem;
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--text-light);
    border-radius: 50%;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Workflow Section */
.workflow-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
}

.workflow-section .section-title {
    color: var(--text-light);
}

.workflow-section .section-title::after {
    background: var(--text-light);
}

.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    counter-reset: step-counter;
    overflow-x: hidden;
    width: 100%;
}

.workflow-step {
    flex: 1;
    min-width: 250px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.workflow-step::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 3px;
    background-color: var(--secondary);
    transform: translateY(-50%);
}

.workflow-step:last-child::before {
    display: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 2rem;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
}

.workflow-step h3 {
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    overflow-x: hidden;
    width: 100%;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-size: 5rem;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.testimonial-author p {
    color: var(--gray-dark);
    font-style: italic;
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background-color: var(--text-light);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    margin-bottom: 2.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-info span {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 2rem;
}

.contact-hours {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
}

.contact-hours h4 {
    margin-bottom: 1rem;
}

.contact-form {
    flex: 2;
    min-width: 350px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-group label {
    display: block;
    margin-bottom: 0.8rem;
    padding-left: 2.5rem;
    position: relative;
    cursor: pointer;
}

.checkbox-group input {
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.8rem;
    height: 1.8rem;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo h2 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(46, 46, 46, 0.95);
    color: var(--text-light);
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-button {
    background-color: var(--secondary);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-button:hover {
    background-color: var(--secondary-dark);
    color: var(--text-light);
}

/* Legal Pages */
.legal-section {
    padding-top: 12rem;
}

.legal-content {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--shadow);
}

.last-updated {
    color: var(--gray-dark);
    font-style: italic;
    margin-bottom: 3rem;
}

.legal-text h2 {
    margin-top: 4rem;
    font-size: 2.4rem;
}

.legal-text h3 {
    font-size: 2rem;
    margin-top: 2.5rem;
}

.legal-text ul, 
.legal-text ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-text li {
    margin-bottom: 0.8rem;
}

/* Thank You Page */
.thanks-section {
    padding-top: 12rem;
    padding-bottom: 8rem;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 5rem;
    box-shadow: var(--shadow);
}

.thanks-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: var(--success);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 5rem;
    margin: 0 auto 3rem;
    animation: scaleIn 0.5s ease-out;
}

.response-time {
    font-size: 1.8rem;
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
}

.next-steps {
    margin: 4rem 0;
    text-align: left;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: bold;
}

.thanks-cta {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    section {
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    section {
        padding: 5rem 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        padding: 0 2rem;
        max-width: 100%;
    }
    
    .hero-banner {
        padding: 12rem 0 7rem;
    }
    
    .hero-content h1 {
        font-size: 3.8rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        flex-direction: column;
        align-items: center;
        padding: 0;
        height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav .nav-list.active {
        height: auto;
        visibility: visible;
        opacity: 1;
        padding: 2rem 0;
    }
    
    .main-nav .nav-list li {
        margin: 1.5rem;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .service-card,
    .testimonial,
    .feature {
        min-width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Предотвращение горизонтальной прокрутки */
    .services-container,
    .about-features,
    .advantages-grid,
    .workflow-steps,
    .testimonials-container,
    .contact-container,
    .footer-content,
    .footer-links {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 52%;
    }
    
    section {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .hero-banner {
        padding: 10rem 0 6rem;
    }
    
    .hero-content h1 {
        font-size: 3.4rem;
    }
    
    .feature,
    .advantage-item {
        padding: 1.5rem;
    }
    
    .legal-content {
        padding: 2.5rem;
    }
    
    .thanks-content {
        padding: 3rem;
    }
    
    /* Фиксируем проблемы с горизонтальной прокруткой */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .service-img {
        max-width: 100%;
    }
    
    .service-card {
        width: 100%;
    }
    
    .feature-icon, 
    .advantage-icon, 
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 2.4rem;
    }
    
    /* Уменьшаем отступы, чтобы избежать переполнения */
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .workflow-step {
        min-width: 100%;
        margin-bottom: 3rem;
    }
    
    .workflow-step::before {
        display: none;
    }
    
    /* Дополнительные исправления для горизонтальной прокрутки */
    .feature, 
    .advantage-item,
    .service-card,
    .testimonial {
        margin-left: 0;
        margin-right: 0;
        border-radius: 6px;
    }
    
    .legal-content,
    .thanks-content {
        padding: 2rem 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
    
    /* Уменьшаем размер иконок */
    .feature-icon, 
    .advantage-icon, 
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    /* Сбрасываем любые отрицательные margin или padding */
    * {
        max-width: 100%;
    }
} 