/* ==========================================================================
   VARIAVEIS E RESET
   ========================================================================== */
:root {
    --primary-color: #91121e;
    --primary-hover: #c6262e;
    --accent-color: #25d366; /* WhatsApp Green */
    --accent-color-hover: #0e8e39; /* WhatsApp Green */
    --dark-color: #1a1a1a;
    --medium-dark: #2c2c2c;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   UTILITARIOS E COMPONENTES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-color);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.bg-dark .subtitle {
    color: var(--primary-color);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-whatsapp {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: var(--accent-color-hover);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

.btn-header {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-header:hover {
    background-color: var(--accent-color-hover);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVEGACAO
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 140px;
}


.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   HERO SECTION (COM SLIDESHOW FADE SUAVE)
   ========================================================================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

/* Container do Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cada camada de imagem */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Controla a suavidade do Fade (1.2 segundos) */
}

/* Slide Ativo (visível) */
.hero-slide.active {
    opacity: 1;
}

/* Máscara e Conteúdo por cima das imagens */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   QUEM SOMOS
   ========================================================================== */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sobre-text h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.sobre-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.diferenciais-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-diferencial {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-diferencial i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-diferencial h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-diferencial p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SERVIÇOS (ESTILO CARD COM IMAGEM NO TOPO E ÍCONE CENTRALIZADO)
   ========================================================================== */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.servico-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Área superior da imagem */
.servico-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.servico-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.servico-card:hover .servico-card-image img {
    transform: scale(1.05); /* Efeito suave de zoom ao passar o mouse */
}

/* Ícone flutuante no centro da imagem */
.servico-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background-color: rgba(0, 86, 179, 0.85); /* Azul da marca com transparência */
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.servico-card:hover .servico-icon-overlay {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Conteúdo abaixo da imagem */
.servico-card-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.servico-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.servico-card-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ==========================================================================
   PORTFÓLIO
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.portfolio-img-placeholder {
    width: 100%;
    height: 220px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #adb5bd;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

/* ==========================================================================
   DIFERENCIAIS (SEÇÃO ESCURA)
   ========================================================================== */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.diferencial-item {
    background-color: var(--medium-dark);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.diferencial-item .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
}

.diferencial-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.diferencial-item p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* ==========================================================================
   ÁREA DE ATENDIMENTO
   ========================================================================== */
.atendimento-content {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cidades-list li {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cidades-list li:last-child {
    border-bottom: none;
}

.cidades-list i {
    color: var(--accent-color);
}

#atendimento .container  {
    display: flex;
    flex-direction: row;
}

.contact-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-column:nth-child(2) {
    justify-content: flex-end;
    padding: 32px;
}

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.info-item strong {
    display: block;
    font-family: var(--font-heading);
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand p {
    color: #a0a0a0;
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: #333;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    color: #888;
    font-size: 0.85rem;
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebd56;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    .sobre-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Em produção, sugere-se implementar um menu hambúrguer */
    }

    .header .btn-header {
        display: none;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}