/* 
   Estilos principais para o site Alumineer
   Baseado nas cores do logo: dourado (#D4AF37) e preto (#000000)
*/

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #D4AF37;
    --primary-gold-light: #E5C760;
    --primary-gold-dark: #B38F1D;
    --dark: #000000;
    --dark-gray: #222222;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-color: #333333;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}


/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-gold-dark);
}


/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
    min-width: 0; /* Evita que o conteúdo estoure */
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 1rem auto;
}

/* Header */
.header {
    background-color: var(--dark);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Ajuste para o logo */
.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto; /* Alterado de 10% para auto para melhor responsividade */
    max-width: 70px; /* Alterado de 150px para 70px */
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-gold);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}


.nav-menu a:focus,
.nav-menu button:focus {
  outline: none;
}


/* Ajuste do container para o header */
.header .container {
    max-width: 1300px; /* Aumentado para dar mais espaço ao menu */
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
}

/* Espaçamento para o conteúdo fixo no topo */
body {
    padding-top: 92px; /* Altura do header + padding */
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--dark);
}

.btn-primary:hover {
    background-color: var(--primary-gold-dark);
    color: var(--white);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--dark-gray);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--dark);
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-gold);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* .hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    opacity: 0.8;
} */

/* Serviços */
.services {
    background-color: var(--light-gray);
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Sobre nós */
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Produtos */
.produtos {
    background-color: var(--white);
}

.produto-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.produto-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.produto-content {
    padding: 1.5rem;
}

.produto-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.produto-price {
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Orçamento */
.orcamento {
    background-color: var(--dark);
    color: var(--white);
}

.orcamento .section-title {
    color: var(--white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: black;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--white);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* Login e Cadastro */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

/* Arquivo de referência */
.file-input {
    position: relative;
    margin-bottom: 1rem;
}

.file-input input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.file-label:hover {
    background-color: var(--primary-gold-light);
}

.file-label i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 60px;
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 0.5rem;
    color: var(--primary-gold);
    width: 20px;
    text-align: center;
}

.footer-social {
    list-style: none;
    display: flex;
    margin-top: 1.5rem;
    padding: 0;
}

.footer-social li {
    margin-right: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-gold);
    color: var(--dark);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mensagens */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Dashboard Admin */
.dashboard {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: var(--dark);
    color: var(--white);
    min-height: 100vh;
    padding: 2rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-gold);
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.dashboard-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-card-title i {
    margin-right: 0.5rem;
    color: var(--primary-gold);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--light-gray);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Accordion */
.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--light-gray);
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transform: rotate(0);
    transition: transform 0.3s ease;
}

.accordion-header.active:after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-header.active + .accordion-content {
    padding: 1rem;
}

/* Map container */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
}

/* Utilitários */
.text-gold {
    color: var(--primary-gold);
}

.bg-gold {
    background-color: var(--primary-gold);
}

.text-center {
    text-align: center;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Fix para inputs com erro */
.input-error {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form row para grupos de campos lado a lado */
.form-row {
    display: flex;
    margin: 0 -0.5rem;
}

.form-row .form-group {
    padding: 0 0.5rem;
    flex: 1;
}

/* Controle de overflow para texto longo */
.text-overflow-wrap {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ajuste para pré-box */
.pre-box {
    white-space: pre-line;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    /* Remova overflow-x: auto que pode causar rolagem horizontal */
}


/* Badges para os diferentes status de orçamento */
.badge-completed {
    background-color: #cee5ff;
    color: #0062cc;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}


/* Estilos adicionais para compatibilidade cross-browser */

/* Variáveis CSS em browsers antigos (Edge, IE) */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    body {
        font-family: 'Montserrat', sans-serif;
        color: #333333;
        background-color: #FFFFFF;
    }
    
    .text-gold {
        color: #D4AF37;
    }
    
    .btn-primary {
        background-color: #D4AF37;
        color: #000000;
    }
    
    .btn-primary:hover {
        background-color: #B38F1D;
        color: #FFFFFF;
    }
}

/* Ajustes para Firefox */
@-moz-document url-prefix() {
    select {
        text-indent: 0.01px;
        text-overflow: '';
        padding-right: 25px;
    }
}

/* Corrige altura de inputs no Safari */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        input[type="text"],
        input[type="password"],
        input[type="email"],
        input[type="number"],
        select,
        textarea {
            line-height: normal !important;
        }
    }
}

/* Ajustes para o menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 997;
}

.menu-overlay.active {
    display: block;
}

/* Melhoria na acessibilidade para foco */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Classe para debug visual em desenvolvimento */
.debug-grid {
    background: linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px) 0 0,
                linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px) 0 0;
    background-size: 20px 20px;
}

/* Variáveis CSS dinâmicas para altura da viewport em iOS */
:root {
    --viewport-height: 100vh;
}

.vh-fix {
    height: var(--viewport-height, 100vh);
}

/* Melhorias para tablets */
@media (min-width: 768px) and (max-width: 992px) {
    .hero-content {
        max-width: 60%;
    }
    
    .hero-image {
        opacity: 0.7;
    }
}

/* Melhorias para telas grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content {
        max-width: 650px;
    }
}

/* Garantir que imagens grandes não quebrem o layout */
img {
    max-width: 100%;
    height: auto;
}

/* Fix para tabelas responsivas em dispositivos móveis */
.table-responsive {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    margin-bottom: 0;
}

/* Animações suaves */
@media (prefers-reduced-motion: no-preference) {
    .service-card:hover,
    .produto-card:hover {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .nav-menu a:after {
        transition: width 0.3s ease;
    }
    
    .btn {
        transition: all 0.3s ease;
    }
}