/* Estilos para as seções do site da Apex Grid - Versão 2 */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    overflow: hidden;
    color: var(--secondary-color);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/escritorio.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Sobre Section */
.sobre {
    position: relative;
    overflow: hidden;
}

.sobre-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sobre-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sobre-image img {
    width: 100%;
    display: block;
}

.sobre-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--accent-color-1);
    border-left: 5px solid var(--accent-color-1);
    z-index: -1;
}

.sobre-image:after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 5px solid var(--accent-color-1);
    border-right: 5px solid var(--accent-color-1);
    z-index: -1;
}

.sobre-content h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.sobre-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color-1);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* Serviços Section */
.servicos {
    background-color: var(--light-gray);
    position: relative;
}

.servicos-container {
    position: relative;
    z-index: 2;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servico-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.servico-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color-1) 0%, var(--bg-color-2) 100%);
    color: var(--secondary-color);
    font-size: 60px;
}

.servico-icon img {
    width: 80px;
    height: 80px;
}

.servico-content {
    padding: 30px;
}

.servico-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.servico-desc {
    margin-bottom: 20px;
    line-height: 1.7;
}

.servico-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color-1);
    font-weight: 600;
}

.servico-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.servico-link:hover i {
    transform: translateX(5px);
}

/* Resultados/Depoimentos Section */
.resultados {
    position: relative;
}

.resultados:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/analytics-dashboard.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.resultados-container {
    position: relative;
    z-index: 2;
}

.depoimentos-slider {
    margin-top: 50px;
    position: relative;
}

.depoimento-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 20px;
    position: relative;
}

.depoimento-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    line-height: 1;
    color: var(--accent-color-1);
    opacity: 0.2;
}

.depoimento-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.depoimento-autor {
    display: flex;
    align-items: center;
}

.depoimento-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.depoimento-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.depoimento-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.depoimento-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

/* Contato Section */
.contato {
    background-color: var(--light-gray);
    position: relative;
}

.contato-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contato-info {
    padding-right: 30px;
}

.contato-info h2 {
    margin-bottom: 30px;
}

.contato-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contato-metodos {
    margin-top: 40px;
}

.contato-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contato-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color-1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contato-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contato-text p, .contato-text a {
    font-size: 1rem;
    color: var(--dark-gray);
}

.contato-form {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 3px rgba(205, 118, 71, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.mapa {
    margin-top: 80px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mapa iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Blog Section */
.blog {
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color-3);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.blog-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.blog-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--accent-color-1);
}

.blog-meta span {
    margin-right: 15px;
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-image {
        width: 40%;
    }
    
    .sobre-container,
    .contato-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sobre-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .sobre-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .depoimento-card {
        padding: 30px 20px;
    }
    
    .contato-form {
        padding: 30px 20px;
    }
}
