/*
 Theme Name:   Artfique Child
 Theme URI:    https://www.artfique.com.br
 Description:  Child theme da Artfique baseado no Bixos
 Author:       Artfique
 Author URI:   https://www.artfique.com.br
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  artfique-child
*/

/* ============================================================
   CORES DA MARCA ARTFIQUE
   Primaria (Azul):  #1f3d86
   Secundaria (Laranja): #ee7322
   Cinza texto:      #6b6b6b
   Fundo claro:      #f3f4f5
   ============================================================ */

:root {
    --color-primary:    #1f3d86;
    --color-secondary:  #ee7322;
    --color-gray:       #6b6b6b;
    --color-light:      #f3f4f5;
    --color-white:      #ffffff;
    --color-dark:       #111827;
    --font-main:        'Inter', sans-serif;
}

/* ---- TIPOGRAFIA GLOBAL ---- */
body {
    font-family: var(--font-main);
    color: var(--color-dark);
}

/* ---- CORES PRIMARIAS ---- */
a,
a:hover {
    color: var(--color-secondary);
}

.tf-button,
.btn-primary,
button[type="submit"],
input[type="submit"] {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.tf-button:hover,
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #d4611a !important;
    border-color: #d4611a !important;
}

/* ---- HEADER / NAVEGACAO ---- */
#header,
.header-default,
.site-header {
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-primary);
}

.main-nav ul li a,
nav ul li a {
    color: var(--color-primary) !important;
    font-weight: 600;
}

.main-nav ul li a:hover,
nav ul li a:hover {
    color: var(--color-secondary) !important;
}

.header-sticky.is-fixed,
.header-sticky.sticky {
    background-color: var(--color-white) !important;
    box-shadow: 0 2px 20px rgba(31, 61, 134, 0.1);
}

/* Botao WhatsApp no header */
.header-whatsapp a {
    background-color: #25d366;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.header-whatsapp a:hover {
    background-color: #1ebe57;
}

/* ---- HERO / BANNER ---- */
.flat-slider .flat-title,
.hero-section h1,
.banner-section h1 {
    color: var(--color-white);
    font-weight: 800;
    line-height: 1.2;
}

.flat-slider .flat-subtitle,
.hero-section p,
.banner-section p {
    color: rgba(255,255,255,0.85);
}

.flat-slider,
.hero-section,
.section-hero {
    background-color: var(--color-primary);
}

/* Overlay gradiente no banner */
.flat-slider .overlay,
.hero-overlay {
    background: linear-gradient(135deg, rgba(31,61,134,0.92) 0%, rgba(238,115,34,0.4) 100%);
}

/* ---- SECOES ---- */
section,
.tf-section {
    padding: 80px 0;
}

.section-title h2,
.flat-title-section h2 {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 2.2rem;
}

.section-title .sub-title,
.flat-title-section .sub-title {
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* Linha decorativa sob subtitulo */
.section-title .sub-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    margin: 8px auto 0;
}

/* Secoes com fundo claro alternadas */
.section-bg-light,
.tf-section.bg-light {
    background-color: var(--color-light);
}

/* ---- CARDS DE SERVICOS ---- */
.tf-services .box-service,
.services-grid .item {
    background: var(--color-white);
    border-radius: 12px;
    padding: 36px 28px;
    box-shadow: 0 4px 24px rgba(31,61,134,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.tf-services .box-service:hover,
.services-grid .item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(31,61,134,0.15);
    border-top-color: var(--color-secondary);
}

.tf-services .box-service .icon,
.services-grid .item .icon {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tf-services .box-service h3,
.services-grid .item h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tf-services .box-service p,
.services-grid .item p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- SOBRE / ABOUT ---- */
.about-section .number-stat {
    color: var(--color-secondary);
    font-size: 2.8rem;
    font-weight: 800;
}

.about-section .stat-label {
    color: var(--color-primary);
    font-weight: 600;
}

/* ---- PORTFOLIO / CASES ---- */
.tf-portfolio .portfolio-item,
.portfolio-grid .item {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tf-portfolio .portfolio-item:hover,
.portfolio-grid .item:hover {
    transform: translateY(-4px);
}

.tf-portfolio .portfolio-overlay,
.portfolio-grid .overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(31,61,134,0.9) 100%);
}

.tf-portfolio .portfolio-category,
.portfolio-grid .category {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---- DEPOIMENTOS ---- */
.testimonial-item {
    background: var(--color-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(31,61,134,0.08);
    border-left: 4px solid var(--color-secondary);
}

.testimonial-item .quote-icon {
    color: var(--color-secondary);
    font-size: 2rem;
    opacity: 0.4;
}

.testimonial-item .author-name {
    color: var(--color-primary);
    font-weight: 700;
}

/* ---- LOGOS DE CLIENTES ---- */
.clients-section .client-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.clients-section .client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---- PAGINA CONTATO ---- */
.contact-form input,
.contact-form textarea,
.wpcf7 input,
.wpcf7 textarea {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31,61,134,0.1);
}

.contact-info-item .icon {
    color: var(--color-secondary);
    font-size: 1.4rem;
}

.contact-info-item h4 {
    color: var(--color-primary);
    font-weight: 700;
}

/* ---- RODAPE / FOOTER ---- */
#footer,
.site-footer,
.footer-default {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.8);
}

.site-footer h4,
.site-footer .widget-title {
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 16px;
}

.site-footer a {
    color: rgba(255,255,255,0.75) !important;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--color-secondary) !important;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-logo .tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
}

/* Icones sociais no footer */
.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white) !important;
    margin-right: 8px;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background: var(--color-secondary);
}

/* ---- WHATSAPP FLUTUANTE ---- */
.whatsapp-float {
    position: fixed !important;
    bottom: 28px !important;
    left: 28px !important;
	right: auto !important;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* ---- FILTRO DO PORTFOLIO ---- */
.portfolio-filter {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Grid do portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: #eee;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(31,61,134,0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0 6px;
}

.portfolio-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.portfolio-overlay .tf-button {
    align-self: flex-start;
    padding: 6px 16px;
    font-size: 0.82rem;
}

/* Itens ocultos pelo filtro */
.portfolio-item.hidden {
    display: none;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- CARROSSEL DE LOGOS DE CLIENTES ---- */
.clients-track-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 40px;
}

/* Fade nas bordas */
.clients-track-wrapper::before,
.clients-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.clients-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-light), transparent);
}

.clients-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-light), transparent);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: clients-scroll 28s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes clients-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.client-logo-item img {
    max-height: 60px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.3s, opacity 0.3s;
}

.client-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 768px) {
    .section-title h2,
    .flat-title-section h2 {
        font-size: 1.7rem;
    }

    section,
    .tf-section {
        padding: 56px 0;
    }

    .tf-services .box-service {
        margin-bottom: 24px;
    }
}
