/* ============================================
   DIGE VEDAÇÕES — Estilos gerais
   ============================================ */

:root {
    --red: #E00000;
    --red-dark: #b80000;
    --bg-light: #E8E8E8;
    --white: #FFFFFF;
    --text-dark: #111111;
    --text-gray: #666666;
    --black: #000000;
    --max-width: 1200px;
    --radius: 20px;
    --header-height: 90px;
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    background: var(--red);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom-color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO INSTITUCIONAL
   ============================================ */

.hero-intro {
    background: var(--bg-light);
    padding: 40px 0 30px;
}

.eyebrow {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.hero-intro h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.hero-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0 0 20px;
}

/* ============================================
   SLIDER
   ============================================ */

.slider-section {
    padding: 10px 0 30px;
}

.slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 310px;
    background: var(--bg-light);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.75);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: background var(--transition);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
}

.slider-arrow-prev {
    left: 12px;
}

.slider-arrow-next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ============================================
   GRADE DE PRODUTOS
   ============================================ */

.products-grid-section {
    padding: 10px 0 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 15px;
    background-color: var(--white);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.card-body p {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: var(--text-gray);
    flex: 1;
}

.card-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

.card-cta {
    background: var(--white);
}

/* ============================================
   DESTAQUE PRODUTOS (CARROSSEL)
   ============================================ */
.highlight-section {
    padding: 50px 0;
    background: #e9e9e9;
}

.relative-container {
    position: relative;
}

.highlight-slider {
    position: relative;
    overflow: hidden;
}

.highlight-slide {
    display: none;
    animation: fadeSlide 0.4s ease-out forwards;
}

.highlight-slide.active {
    display: block;
}

.highlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 0 60px;
}

.highlight-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
}

.highlight-title {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c2b3e;
    text-decoration: underline;
    margin-bottom: 20px;
    transition: color var(--transition);
}

.highlight-title:hover {
    color: var(--red);
}

.highlight-content p {
    color: #6a6a7c;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* SETAS DE NAVEGAÇÃO */
.highlight-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #7a7a7a;
    color: var(--white);
    border: 3px solid var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform 0.2s;
    z-index: 10;
    font-size: 1.4rem;
}

.highlight-arrow:hover,
.highlight-arrow:active {
    background: var(--red);
    transform: translateY(-50%) scale(1.05);
}

.highlight-arrow-prev {
    left: 0;
}

.highlight-arrow-next {
    right: 0;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVO */
@media (max-width: 860px) {
    .highlight-inner {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 30px;
    }

    .highlight-arrow {
        top: 200px;
    }

    .highlight-arrow-prev {
        left: 15px;
    }

    .highlight-arrow-next {
        right: 15px;
    }

    .highlight-title {
        font-size: 1.7rem;
    }
}

/* ============================================
   CHAMADAS DE SERVIÇO
   ============================================ */

.services-section {
    padding: 10px 0 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
}

.service-box h3 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.service-box p {
    margin: 0 0 18px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ============================================
   PÁGINAS INTERNAS (CABEÇALHO)
   ============================================ */
.page-hero {
    background: var(--black);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid var(--red);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero p {
    color: #cccccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   MENU DE CATEGORIAS (HORIZONTAL)
   ============================================ */
.category-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: -10px;
}

.cat-link {
    background: var(--white);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #e9e9e9;
    transition: all var(--transition);
    text-decoration: none;
}

.cat-link:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(224, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .category-menu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none;
    }

    .category-menu::-webkit-scrollbar {
        display: none;
    }

    .cat-link {
        white-space: nowrap;
    }
}

/* ============================================
   CATÁLOGO DE PRODUTOS
   ============================================ */
.catalog-section {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.catalog-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 110px;
}

.catalog-item:nth-child(even) .catalog-media {
    order: 2;
}

.catalog-item:nth-child(even) .catalog-info {
    order: 1;
}

.catalog-media img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.catalog-info {
    padding: 30px 40px;
}

.catalog-info h2 {
    color: var(--red);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.catalog-info p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

/* Responsivo para a página de Produtos */
@media (max-width: 768px) {

    .catalog-item,
    .catalog-item:nth-child(even) .catalog-media,
    .catalog-item:nth-child(even) .catalog-info {
        grid-template-columns: 1fr;
        order: 0;
    }

    .catalog-media img {
        height: 250px;
    }

    .catalog-info {
        padding: 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--black);
    color: #cccccc;
    text-align: center;
    padding: 35px 20px;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--white);
    transition: color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--red);
    transform: translateY(-4px);
}

.footer-inner p {
    margin: 0;
}

/* ============================================
   SESSÃO DE CONTATO (SEM FORMULÁRIO)
   ============================================ */

.contact-section {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid #ddd;
}

.text-center {
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-section p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 20px 30px;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: left;
    min-width: 280px;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-card.whatsapp {
    color: #25D366;
}

.contact-card.phone {
    color: var(--red);
}

.contact-card div {
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.contact-card strong {
    font-size: 1.1rem;
}

.contact-card span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ============================================
   PÁGINA QUEM SOMOS
   ============================================ */

.page-header {
    background: var(--black);
    color: var(--white);
    padding: 50px 0;
    border-bottom: 4px solid var(--red);
}

.page-header h1 {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 800;
}

.eyebrow-light {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 8px;
    letter-spacing: 1px;
}

/* Bloco principal da história */
.about-content {
    padding: 60px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 22px;
    font-size: 1.05rem;
    text-align: justify;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Qualidade e Evolução */
.quality-evolution {
    padding: 60px 0;
    background: var(--bg-light);
}

.qe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.qe-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border-top: 5px solid var(--red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.qe-card h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 15px;
}

.qe-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Missão, Visão e Valores */
.mvv-section {
    padding: 60px 0;
    background: var(--white);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mvv-box {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform var(--transition);
}

.mvv-box:hover {
    transform: translateY(-8px);
}

.mvv-box h4 {
    font-size: 1.3rem;
    color: var(--red);
    margin-top: 0;
    margin-bottom: 12px;
}

.mvv-box p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

/* ============================================
   RESPONSIVO QUEM SOMOS
   ============================================ */

@media (max-width: 860px) {

    .about-grid,
    .qe-grid,
    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--red);
    color: var(--white);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--red-dark);
}

@media (max-width: 640px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 20px;
    color: #FFF;
    border-radius: 50%;
    z-index: 100;
    background: #25D366 url('../assets/images/whatsapp-icon.webp') no-repeat center;
    background-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
}

/* Criando o efeito de onda piscando (Ping/Ripple) */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.8);
    }

    70% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   RESPONSIVO — TABLET
   ============================================ */

@media (max-width: 860px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVO — MOBILE
   ============================================ */

@media (max-width: 640px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--red);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        /* Sombra para dar profundidade */
    }

    .main-nav.open {
        max-height: 400px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        /* Remove o gap para os botões grudarem */
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: left;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--red-dark);
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }

    .hero-intro h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .highlight-inner {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slider {
        height: 180px;
    }
}