/* =========================================================================
   CAMISETAS TRI - Stylesheet (Responsive)
   ========================================================================= */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;

    --accent-hero: #00e5ff;
    --accent-empresa: #ff007f;
    --accent-produtos: #9d00ff;
    --accent-tecidos: #00ff66;
    --accent-estampa: #ffaa00;
    --accent-orcamento: #ff3333;
    --accent-contato: #0066ff;

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;

    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }

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

a { text-decoration: none; }

/* ---------- UTILITÁRIOS ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- GLASSMORPHISM ---------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-left: 2px solid var(--accent-hero);
    padding-left: 12px;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.82rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-links a:hover { color: var(--accent-hero); }

.mobile-menu-icon {
    display: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ---------- SEÇÕES GERAIS ---------- */
section {
    padding: 4rem 5%;
    position: relative;
}

.top-hero-banner {
    margin-top: 85px; /* Compensa o header fixo com folga */
    width: 100%;
    background: var(--bg-primary);
    overflow: hidden;
}

.top-hero-banner img {
    width: 100%;
    height: auto; /* Mantém a proporção real da imagem para que nada seja cortado na altura */
    display: block;
}

/* ---------- 1. HERO ---------- */
#inicio {
    padding: 0;
    min-height: 60vh; /* Altura flexível para não expulsar o banner do topo */
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--accent-hero);
    overflow: hidden;
}

.carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 500%; /* 5 slides = 500% */
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-item {
    width: 20%; /* 5 slides = 20% */
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45); /* Reduzido de 0.55 para 0.45 por solicitação do usuário */
}

.hero-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 5%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(90deg, #fff, var(--accent-hero));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #fff; /* Alterado de text-secondary para branco puro */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-inline: auto;
}

/* ---------- BOTÕES ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-hero), #0088ff);
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
}

/* ---------- 2. EMPRESA ---------- */
#empresa {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-empresa);
}

#empresa .section-title { color: var(--accent-empresa); }

.empresa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.empresa-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ---------- 3. PRODUTOS ---------- */
#produtos {
    background-color: var(--bg-primary);
    border-right: 4px solid var(--accent-produtos);
}

#produtos .section-title { color: var(--accent-produtos); }

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.produto-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.produto-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-produtos);
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.2);
}

.produto-card i {
    font-size: 2.5rem;
    color: var(--accent-produtos);
    margin-bottom: 0.75rem;
    display: block;
}

.produto-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.produto-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- 4. TECIDOS ---------- */
#tecidos {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-tecidos);
}

#tecidos .section-title { color: var(--accent-tecidos); }

.tecidos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tecido-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(0, 255, 102, 0.04);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 102, 0.1);
}

.tecido-item i {
    font-size: 2rem;
    color: var(--accent-tecidos);
    flex-shrink: 0;
    margin-top: 2px;
}

.tecido-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.tecido-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- 5. ESTAMPA ---------- */
#estampa {
    background-color: var(--bg-primary);
    border-right: 4px solid var(--accent-estampa);
    text-align: center;
}

#estampa .section-title { color: var(--accent-estampa); }

.estampa-highlight {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0;
    line-height: 1.4;
}

.estampa-highlight span { color: var(--accent-estampa); }

/* ---------- 6. ORÇAMENTO ---------- */
#orcamento {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(255, 51, 51, 0.08));
    border-left: 4px solid var(--accent-orcamento);
    text-align: center;
}

#orcamento .section-title { color: var(--accent-orcamento); }

.orcamento-box {
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- 6.5. AVALIAÇÕES ---------- */
#avaliacoes { background-color: var(--bg-primary); }

.google-reviews-panel {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--bg-tertiary);
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.google-profile-card {
    padding-right: 30px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.google-profile-header { display: flex; flex-direction: column; align-items: flex-start; }

.google-logo-wrapper {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff; margin-bottom: 16px; overflow: hidden;
}

.google-logo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.google-profile-info h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 8px; }
.google-stars { color: #FBBC05; font-size: 1.1rem; margin-bottom: 8px; display: flex; gap: 2px; }
.google-rating-count { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }

.btn-write-review {
    display: inline-block; padding: 9px 20px;
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; color: var(--text-primary); font-weight: 500;
    font-size: 0.85rem; transition: background 0.2s;
}
.btn-write-review:hover { background: rgba(255,255,255,0.05); }

.reviews-slider-main { position: relative; width: 100%; min-width: 0; }
.reviews-carousel { overflow: hidden; width: 100%; cursor: grab; }
.reviews-track { display: flex; gap: 20px; transition: transform 0.5s cubic-bezier(0.2,0,0.2,1); padding: 10px 0; }

.google-review-card {
    flex: 0 0 calc(50% - 10px);
    background: var(--bg-secondary); padding: 20px; border-radius: 12px;
    display: flex; flex-direction: column; box-sizing: border-box;
}

.google-card-header { display: flex; align-items: center; margin-bottom: 10px; }
.reviewer-profile { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #333; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.review-product-photos {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}
.review-product-img {
    width: 60px; height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.review-product-img:hover { transform: scale(1.1); border-color: var(--accent-hero); }

.reviewer-name { display: block; font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.review-date { display: block; font-size: 0.78rem; color: var(--text-secondary); }
.review-stars-verified { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.review-stars { color: #FBBC05; font-size: 0.85rem; display: flex; gap: 1px; }
.verified-icon { color: #1a73e8; font-size: 0.8rem; }
.review-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary); display: flex; align-items: center;
    justify-content: center; cursor: pointer; z-index: 10; transition: background 0.2s;
}
.slider-btn:hover { background: #333; }
.prev-btn { left: -18px; }
.next-btn { right: -18px; }

/* ---------- 7. CONTATO ---------- */
#contato {
    background-color: var(--bg-secondary);
    border-right: 4px solid var(--accent-contato);
}

#contato .section-title { color: var(--accent-contato); }

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
}

.info-item > i {
    font-size: 1.3rem;
    color: var(--accent-contato);
    width: 38px; height: 38px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.info-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.info-item p { font-size: 0.9rem; color: var(--text-secondary); }

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-contato);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.btn-submit {
    background: var(--accent-contato);
    color: #fff;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem;
    font-size: 0.95rem;
}

.btn-submit:hover {
    background: #0055dd;
    transform: translateY(-2px);
}

/* ---------- MAPA ---------- */
.map-container {
    margin-top: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- FOOTER ---------- */
.main-footer {
    background: var(--bg-tertiary);
    padding: 4rem 5% 2rem;
    border-top: 2px solid var(--accent-hero);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--accent-hero);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-hero);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
    background: var(--accent-hero);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
}

.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color 0.3s;
    position: relative;
    padding-left: 15px;
}

.links-col ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-hero);
    font-weight: bold;
}

.links-col ul li:hover {
    color: var(--text-primary);
}

.contact-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-col p i {
    color: var(--accent-hero);
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.footer-quality {
    margin-top: 2rem !important;
    font-weight: 700;
    color: var(--accent-hero) !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsividade Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .links-col ul li {
        padding-left: 0;
    }
    
    .links-col ul li::before {
        display: none;
    }
    
    .footer-col img {
        margin-inline: auto;
    }
    
    .footer-desc {
        margin-inline: auto;
    }
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---------- BOTÃO WHATSAPP FLUTUANTE ---------- */
.float-whatsapp {
    position: fixed;
    width: 58px; height: 58px;
    bottom: 28px; right: 28px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.25);
    z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    animation: wa-float 3s ease-in-out infinite;
    transition: box-shadow 0.3s, transform 0.3s;
}

@keyframes wa-float {
    0%, 100% { bottom: 28px; }
    50% { bottom: 40px; }
}

.whatsapp-content {
    position: absolute;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.whatsapp-content.front {
    background-color: var(--bg-tertiary);
    transform: rotateY(0deg);
}

.whatsapp-content.front img {
    width: 58px; height: 58px;
    border-radius: 50%; object-fit: cover;
}

.whatsapp-content.back {
    background-color: #25d366;
    transform: rotateY(180deg);
    font-size: 28px; color: white;
}

.float-whatsapp:hover .front,
.float-whatsapp.flipped .front { transform: rotateY(-180deg); }

.float-whatsapp:hover .back,
.float-whatsapp.flipped .back { transform: rotateY(0deg); }

.float-whatsapp:hover,
.float-whatsapp.flipped {
    box-shadow: 2px 2px 18px rgba(37, 211, 102, 0.6);
    transform: scale(1.06);
}

.float-whatsapp .back i { animation: wa-shake 3s infinite; }

@keyframes wa-shake {
    0%, 80%, 100% { transform: rotate(0deg) scale(1.05); }
    85% { transform: rotate(10deg) scale(1.15); }
    90% { transform: rotate(-10deg) scale(1.15); }
    95% { transform: rotate(10deg) scale(1.15); }
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVIDADE
   ========================================================================== */

/* Notebook médio (≤ 1366px) */
@media (max-width: 1366px) {
    .produtos-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .google-reviews-panel { grid-template-columns: 260px 1fr; }
}

/* Notebook pequeno / tablet landscape (≤ 1100px) */
@media (max-width: 1100px) {
    .empresa-content { grid-template-columns: 1fr; }
    .google-reviews-panel { grid-template-columns: 1fr; }
    .google-profile-card {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: 24px;
        text-align: center;
    }
    .google-profile-header { align-items: center; }
    .google-stars { justify-content: center; }
    .map-container { width: 90%; }
}

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
    section { padding: 3rem 4%; }
    .contato-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .tecidos-grid { grid-template-columns: 1fr; }
    .google-review-card { flex: 0 0 100%; }
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
    .map-container { width: 100%; }
}

/* Tablet pequeno / Mobile grande (≤ 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 65px; left: 0; width: 100%;
        background: rgba(10,10,10,0.97);
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        gap: 1.2rem;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .mobile-menu-icon { display: block; }

    .hero-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
    .hero-subtitle { font-size: 0.95rem; }

    .section-title { font-size: clamp(1.3rem, 5vw, 2rem); }

    .produtos-grid { grid-template-columns: 1fr 1fr; }
    .google-reviews-panel { padding: 20px; }

    /* Alinhamento customizado das imagens do carrossel no mobile */
    .carousel-item:nth-child(1), 
    .carousel-item:nth-child(2) { background-position: center; }
    
    .carousel-item:nth-child(3), 
    .carousel-item:nth-child(4), 
    .carousel-item:nth-child(5) { background-position: left; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .logo-text { display: none; }
    body { font-size: 15px; }
    .logo-img { height: 36px; }
    section { padding: 2.5rem 4%; }
    .produtos-grid { grid-template-columns: 1fr; }
    .tecido-item { flex-direction: column; gap: 0.75rem; }
    .hero-title { font-size: clamp(1.4rem, 8vw, 2rem); }
    .hero-subtitle { font-size: 0.88rem; }
    .glass-panel { padding: 1.25rem; }
    .float-whatsapp { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-content.front img { width: 50px; height: 50px; }
    .map-container { width: 100%; }
}
