/**
 * Essência Company - Estilos específicos para a página Web (E-Commerce e Plataformas Digitais)
 * Design moderno e digital, diferente do estilo das revistas
 */

/* Estilos do cabeçalho da página */
.web-header-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('../img/principal/marcas/background.jpeg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

.web-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.web-header-text h1 {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.web-header-text h1 span {
    color: #d1ff00;
    position: relative;
    display: inline-block;
}

.web-header-text h1 span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background-color: #d1ff00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.web-header-text h1 span.animate::before {
    transform: scaleX(1);
}

.web-header-text p {
    font-family: 'Fahkwang', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Seção de plataformas digitais - Design moderno e inovador */
.web-plataformas-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* Efeito de fundo com linhas para ambiente digital */
.web-plataformas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px),
                      linear-gradient(180deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.digital-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.digital-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 30px;
    grid-column: span 6;
    min-height: 300px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Card tamanho grande - para destaque */
.digital-card.large {
    grid-column: span 8;
}

/* Card tamanho médio */
.digital-card.medium {
    grid-column: span 6;
}

/* Card tamanho pequeno */
.digital-card.small {
    grid-column: span 4;
}

.digital-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #d1ff00, #2d5016);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.digital-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.digital-card:hover::before,
.digital-card.active::before {
    transform: scaleX(1);
}

/* Área para o logo */
.digital-logo {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #234022;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.digital-logo img {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}

/* Para o card Vista Alegre que não tem logo */
.digital-title {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    background-color: #234022;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.development-badge {
    display: inline-block;
    font-family: 'Fahkwang', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    background-color: rgba(255, 180, 0, 0.15);
    color: #ff9800;
    padding: 5px 10px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.digital-description {
    font-family: 'Fahkwang', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.digital-url {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Fahkwang', sans-serif;
    font-size: 0.95rem;
    color: #234022;
    text-decoration: none;
    margin-top: auto;
    padding: 5px 0;
    position: relative;
    font-weight: 500;
}

.digital-url i {
    margin-right: 8px;
    color: #d1ff00;
    background-color: #234022;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.digital-url::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #234022;
    transition: width 0.3s ease;
}

.digital-card:hover .digital-url::after {
    width: 100%;
}

.digital-card:hover .digital-url i {
    transform: translateX(3px);
    background-color: #d1ff00;
    color: #234022;
}

/* Elemento decorativo - círculos */
.digital-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.15;
}

.circle-1 {
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: #d1ff00;
}

.circle-2 {
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: #234022;
}

/* Elemento decorativo - linhas */
.digital-lines {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0.2;
}

.digital-lines span {
    display: block;
    height: 2px;
    background-color: #234022;
    width: 100%;
}

.digital-lines span:nth-child(2) {
    width: 60%;
}

.digital-lines span:nth-child(3) {
    width: 80%;
}

/* Responsividade */
@media (max-width: 1024px) {
    .digital-card,
    .digital-card.large,
    .digital-card.medium {
        grid-column: span 6;
    }
    
    .digital-card.small {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .web-header-text h1 {
        font-size: 2.8rem;
    }
    
    .digital-card,
    .digital-card.large,
    .digital-card.medium,
    .digital-card.small {
        grid-column: span 12;
    }
    
    .digital-logo {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .web-header-section {
        padding: 100px 0 60px;
    }
    
    .web-header-text h1 {
        font-size: 2rem;
    }
    
    .web-header-text p {
        font-size: 1rem;
    }
    
    .digital-card {
        padding: 20px;
        min-height: auto;
    }
    
    .digital-title {
        font-size: 1.5rem;
    }
}
