/* 
* CrawlSync - Styles
* Autor: Manus
* Data: 2025
* Versão: 3.0 - Minimalista
*/

/* ===== VARIÁVEIS ===== */
:root {
    /* Cores Principais */
    --color-primary: #1A365D;
    --color-secondary: #4A90E2;
    --color-accent: #2CC1B6;
    
    /* Cores Neutras */
    --color-white: #FFFFFF;
    --color-light: #F5F7FA;
    --color-gray: #8492A6;
    --color-dark-gray: #3C4858;
    --color-black: #1F2D3D;
    
    /* Fontes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-ui: 'Roboto', sans-serif;
    
    /* Tamanhos */
    --container-width: 1200px;
    --header-height: 70px;
    --section-padding: 60px;
    
    /* Transições */
    --transition: all 0.3s ease;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Box Shadow */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-black);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: var(--font-ui);
    font-size: 1rem;
}

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.section-bg {
    background-color: var(--color-light);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== HEADER & NAVEGAÇÃO ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    margin: 0 1rem;
    color: var(--color-white);
    font-family: var(--font-ui);
    font-weight: 400;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--color-dark-gray);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

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

.nav-cta {
    margin-left: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 3px 0;
    transition: var(--transition);
}

.header.scrolled .bar {
    background-color: var(--color-dark-gray);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: auto;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 40px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 450px;
    margin-left: 2rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.about-card-icon {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
}

.about-card h3 {
    margin-bottom: 0.5rem;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: 1.2rem;
}

.service-icon img {
    height: 70px;
    margin: 0 auto;
}

/* ===== HOW IT WORKS SECTION ===== */
.process-image {
    text-align: center;
    margin-bottom: 2.5rem;
}

.process-image img {
    max-width: 100%;
    margin: 0 auto;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
}

.step-number {
    background-color: var(--color-secondary);
    color: var(--color-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    background-color: var(--color-secondary);
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-form {
    flex: 2;
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-ui);
    color: var(--color-dark-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-ui);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 2;
    min-width: 250px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1.2rem;
}

.footer-links {
    flex: 1;
}

.footer-links-column h3 {
    color: var(--color-white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links-column ul li {
    margin-bottom: 0.6rem;
}

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links-column ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* ===== RESPONSIVIDADE ===== */
@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 50px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .about-content,
    .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
        --section-padding: 40px;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        margin: 0.8rem 0;
        color: var(--color-white);
        font-size: 1.1rem;
    }
    
    .nav-cta {
        margin: 1.2rem 0 0;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-left: 0;
        max-width: 100%;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --section-padding: 35px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .service-card,
    .about-card {
        padding: 1.5rem;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 35px;
        height: 35px;
    }
    
    .about-image {
        grid-template-columns: 1fr;
    }
    
    .process-image img {
        width: 100%;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Ajustes adicionais para mobile */
@media screen and (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        width: 100%;
        max-width: none;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hero {
        min-height: auto;
        padding-bottom: 30px;
    }
    
    .service-icon img {
        height: 60px;
    }
}

