/* ========================================================================
   ARQUIVO CSS COMPLETO PARA A.S. SERRALHERIA
   ======================================================================== */

/* ---- VARIÁVEIS DE CORES E ESTILOS GERAIS ---- */
:root {
    --cor-primaria: #D97706; /* Laranja/Ferrugem */
    --cor-secundaria: #1F2937; /* Cinza Escuro (quase preto) */
    --cor-fundo: #F9FAFB; /* Cinza bem claro */
    --cor-texto: #374151; /* Cinza para texto */
    --cor-branca: #FFFFFF;
    --fonte-principal: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--cor-secundaria);
    font-weight: 700;
}

/* ---- HEADER / NAVEGAÇÃO ---- */
header {
    background-color: var(--cor-branca);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    max-height: 100px; /* IMPORTANTE: Define a altura máxima da sua logo */
    width: auto;      /* Mantém a proporção da imagem */
    display: block;   /* Remove espaços extras abaixo da imagem */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

header nav a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--cor-primaria);
}

/* ---- CARROSSEL ---- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeEffect 1.5s;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--cor-branca);
    text-align: center;
    z-index: 10;
    width: 80%;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1.5rem;
}

@keyframes fadeEffect {
    from {opacity: .4}
    to {opacity: 1}
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0,0,0,0.6);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ---- SEÇÕES GENÉRICAS ---- */
section {
    padding: 80px 0;
}

#diferenciais {
    background-color: var(--cor-branca);
}

/* ---- DIFERENCIAIS ---- */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.diferencial-item i {
    font-size: 3rem;
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

.diferencial-item h3 {
    font-size: 1.5rem;
    color: var(--cor-secundaria);
    margin-bottom: 10px;
}

/* ---- SERVIÇOS ---- */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.servico-card {
    background-color: var(--cor-branca);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.servico-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.servico-card h3 {
    font-size: 1.4rem;
    color: var(--cor-secundaria);
    margin: 20px;
}

.servico-card p {
    margin: 0 20px 20px;
}

/* ---- GALERIA ---- */
#galeria {
    background-color: var(--cor-branca);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.galeria-item img,
.galeria-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.galeria-item img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* ---- CONTATO ---- */
.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contato-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contato-info i {
    color: var(--cor-primaria);
    margin-right: 10px;
}

.contato-info a {
    color: var(--cor-texto);
    text-decoration: none;
}

.btn-contato {
    display: inline-block;
    background-color: var(--cor-primaria);
    color: var(--cor-branca);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-contato:hover {
    background-color: #b46105;
}

.contato-mapa iframe {
    border-radius: 8px;
}

/* ---- FOOTER ---- */
footer {
    background-color: var(--cor-secundaria);
    color: var(--cor-fundo);
    text-align: center;
    padding: 20px 0;
}

/* ---- BOTÃO WHATSAPP ---- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--cor-branca);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}

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


/* ---- RESPONSIVIDADE ---- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    
    header .container { 
        flex-direction: column; 
        gap: 15px;
    }
    
    .carousel-caption h2 { font-size: 2rem; }
    .carousel-caption p { font-size: 1.2rem; }
    
    .diferenciais-grid { grid-template-columns: 1fr; }
    .servicos-grid { grid-template-columns: 1fr; }
    .contato-wrapper { grid-template-columns: 1fr; }
}
