/* 
* LN Serralheria - Estilos Globais
* Tema: Industrial Moderno
* Convenção: BEM (Block Element Modifier)
*/

/* ===== VARIÁVEIS ===== */
:root {
    /* Cores Principais */
    --primary: #2c3e50;       /* Azul escuro */
    --secondary: #e74c3c;     /* Vermelho/laranja para destaque */
    --dark: #1a252f;          /* Quase preto */
    --light: #ecf0f1;         /* Cinza claro */
    --gray: #7f8c8d;          /* Cinza médio */
    --metal: #95a5a6;         /* Tom metálico claro */
    --metal-dark: #34495e;    /* Tom metálico escuro */
    
    /* Fontes */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajuste para o navbar fixo */
}

body {
    font-family: var(--font-secondary);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-divider {
    height: 4px;
    width: 70px;
    background: var(--secondary);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 5px;
}

.team-svg-img {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover .team-svg-img {
    transform: scale(1.03);
}

/* ===== BOTÕES ===== */
.btn {
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== NAVBAR ===== */
#mainNav {
    background-color: var(--dark);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#mainNav .navbar-brand {
    color: var(--light);
    font-family: var(--font-primary);
    font-size: 1.5rem;
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
    color: var(--secondary);
}

#mainNav.navbar-shrink {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; */
    display: flex;
    align-items: center;
    color: var(--light);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 37, 47, 0.8), rgba(44, 62, 80, 0.9));
}

.hero-section h1 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== SOBRE SECTION ===== */
.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feature-item i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===== SERVIÇOS SECTION ===== */
.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* ===== EQUIPE SECTION ===== */
.team-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
    position: relative;
    overflow: hidden;
}

/* Novo avatar da equipe (UI Avatars) */
.team-avatar {
    display: block;
    margin: 0 auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* ===== TRABALHOS / PORTFÓLIO ===== */
.media-grid {
    /* usa o grid do Bootstrap por padrão; aqui apenas spacing semântico */
}

.media-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.media-thumb {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ===== LIGHTBOX (Trabalhos) ===== */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080; /* acima do navbar */
}
.lightbox-backdrop.show {
    display: flex;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background: #d7190bb4; /* primary */
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.lightbox-close:hover {
    background: #d7190b; /* primary-hover */
}

.team-position {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.team-desc {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== CONTATO SECTION ===== */
.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* Evitar overflow horizontal causado por animações no mobile */
#contato .row {
    overflow: hidden;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: var(--light);
}

.footer-heading {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact-list li i {
    color: var(--secondary);
    margin-right: 10px;
    margin-top: 5px;
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list li a:hover {
    color: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(3px);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.developer-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.developer-credit a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--secondary);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #c0392b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== BOTÃO WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background-color: #25D366; /* WhatsApp green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsappPulse 1.8s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.whatsapp-float i {
    font-size: 28px;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float i {
        font-size: 24px;
    }
}

/* Animação de pulsar para o botão WhatsApp */
@keyframes whatsappPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: translateY(-1px) scale(1.06);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    }
}

/* Respeitar preferências de redução de movimento */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .team-avatar {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .about-img {
        margin-bottom: 2rem;
    }
    
    .service-card, .team-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-lg-start,
    .footer .text-lg-end {
        text-align: center !important;
    }
    
    .footer-heading {
        margin-top: 1rem;
    }
    
    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .team-card {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .footer-contact-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact-list li i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .team-avatar {
        width: 220px;
        height: 220px;
    }

    .media-thumb {
        height: 180px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* Ajustes para telas grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        height: 90vh;
    }
}

/* ===== UTILITÁRIOS ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

/* ===== ANIMAÇÕES UTILITÁRIAS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Garantir vídeo responsivo na seção Sobre */
.about-img video {
    display: block;
    width: 100%;
    height: auto;
}