/* ===================================================================================
🎨 CSS GLOBAL | Projeto: [JAVA SPRINGBOOT]
🗓️ Data: [05-06-2025]
👨‍💻 Autor: [@hnrqmeans]
📝 Estilos globais com layout responsivo, feedback visual e design clean.
=================================================================================== */


/* ===================== 🌐 VARIÁVEIS GLOBAIS ===================== */

:root {
    --primary-bg: #272727;
    --secondary-bg: #1e1e1e;
    --accent-color: #f1c40f;
    --text-light: #ffffff;
    --text-dark: #000000;
    --card-bg: rgba(255, 255, 255, 0.3);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --max-width: 1200px;
}


/* ===================== 🔄 RESET PROFISSIONAL ===================== */
#divisor {
  margin-bottom: 100px;
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    z-index: 2;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ===================== 🎞️ CARROSSEL DE PRODUTOS ===================== */

.produtos-section {
    position: relative;
}

.produtos-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 0 80px;
    /* margem interna para dar espaço às setas */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    backface-visibility: hidden;
}

.produtos-card-col {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
}


/* ===================== 🧭 NAVEGAÇÃO COM SETAS ===================== */

.grid-nav-buttons {
    position: absolute;
    margin-top: 10px;
    top: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    /* permite interação só nos botões */
    z-index: 2;
    padding: 0 1rem;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* evita rolagem lateral por segurança */
}

.grid-nav-buttons {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    max-height: 35px;
}

.grid-nav+.grid-nav {
    margin-left: 8px;
    /* Espaço apenas entre os botões */
}

.grid-nav {
    pointer-events: all;
    padding-bottom: 1px;
    background-color: var(--bg-secondary, #1f1f1f);
    color: var(--text-primary, #fff);
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
    margin-top: 1px;
}

.grid-nav:hover {
    background-color: var(--accent, #b4b4b4);
    transform: scale(1.1);
}

.grid-nav.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===================== 🧾 INFO SERVIÇOS ===================== */

.info-servicos {
    background-color: transparent;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.container-info {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.info-item {
    flex: 1;
    min-width: 280px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.info-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.info-item:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 16px;
    transition: var(--transition);
}

.info-item h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.info-item p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}


/* ===================== 🗂️ CAMADAS ===================== */

/* Barra */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Trilha (sem fundo!) */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Alça (thumb) preta opaca */
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

/* Hover mais visível */
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.navbar {
    z-index: 1000;
    position: relative;
}

.categorias-bar {
    z-index: 999;
    position: relative;
}


/* ===================== 📱 RESPONSIVIDADE ===================== */

@media (max-width: 1440px) {
    .container-info {
        justify-content: center;
    }

}

@media (max-width: 1024px) {
    .container-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .grid-nav-buttons {
        padding: 0 12px;
    }
    .produtos-grid {
        padding: 0 48px;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 100px;
    }
    .info-servicos {
        padding: 30px 16px;
    }
    .info-item h3 {
        font-size: 1.2rem;
    }
    .info-item i {
        font-size: 36px;
    }
    .info-item p {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .info-item {
        min-width: 100%;
    }
}
