/* ==========================================================================
   Variáveis e Setup Global
   ========================================================================== */
:root {
    --bg-dark: #0A0A0A;
    --bg-card: #141414;
    --bg-input: #1F1F1F;
    --primary-yellow: #F5A623;
    --primary-yellow-hover: #D48C1C;
    --text-light: #F4F4F5;
    --text-muted: #A1A1AA;
    --border-color: #27272A;
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM 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);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

span { color: var(--primary-yellow); }

/* ==========================================================================
   Botões e Componentes
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
}

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: #000;
}

.btn-block { width: 100%; }


/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.logo .dot { color: var(--primary-yellow); }

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-yellow); }

/* ==========================================================================
   Hero Section & Smart Form
   ========================================================================== */
.hero {
    padding: 60px 0 100px;
    position: relative;
    background: radial-gradient(circle at 0% 0%, #1a150b 0%, var(--bg-dark) 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(245, 166, 35, 0.1);
    color: var(--primary-yellow);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.stats-grid {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Formulário Inteligente */
.smart-form {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.smart-form h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.smart-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Campos de Input */
.smart-form input, 
.smart-form select, 
.smart-form textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.smart-form input:focus, 
.smart-form select:focus, 
.smart-form textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
}

/* Chips interativos */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.chip:hover { border-color: var(--text-muted); }

.chip.active {
    background-color: rgba(245, 166, 35, 0.1);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Seções Restantes
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

/* Grid de Serviços Atualizado (2x2) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Novo estilo dos Cards com Imagens */
.service-card.has-image {
    background-color: var(--bg-card);
    padding: 0; /* Remove padding para a imagem colar na borda */
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Mantém a imagem presa dentro do raio da borda */
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card.has-image:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* Container da Imagem com efeito Zoom */
.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* O Zoom na foto quando passa o mouse */
.service-card.has-image:hover .card-image img {
    transform: scale(1.1);
}

/* Ícone flutuante entre a foto e o texto */
.card-icon {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.card-icon i {
    color: #000;
    font-size: 1.2rem;
    margin: 0;
}

/* Área de Texto abaixo da Imagem */
.card-content {
    padding: 40px 30px 30px;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
/* Processo em Passos */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: rgba(245, 166, 35, 0.1);
    color: var(--primary-yellow);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.step h4 { margin-bottom: 10px; font-size: 1.2rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ Acordeão */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: left;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    color: var(--primary-yellow);
    transition: var(--transition);
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* CTA Final & Footer */
.cta-final {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #D48C1C 100%);
    padding: 80px 0;
    text-align: center;
    color: #000;
}

.cta-final h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-final p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 500; }
.cta-final .btn-primary { background-color: #000; color: var(--primary-yellow); }
.cta-final .btn-primary:hover { background-color: #1A1A1A; }

footer {
    background-color: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.footer-logo span { color: var(--primary-yellow); }
.footer-content p { color: var(--text-muted); font-size: 0.9rem; }
.social-links a { color: var(--text-light); font-size: 1.2rem; margin-left: 15px; transition: var(--transition); }
.social-links a:hover { color: var(--primary-yellow); }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show { opacity: 1; transform: translateY(0); }

/* Animações (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Media Queries (Responsividade Total)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content p { margin: 0 auto 30px; }
    .stats-grid { justify-content: center; }
    .services-grid, .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .smart-form { padding: 25px; }
    .form-row { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* --- Botão Flutuante --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; 
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 35px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 999; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1); 
}

/* --- Fundo Escuro do Modal --- */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: 1000; 
    align-items: center;
    justify-content: center;
    padding: 20px; /* Evita que o modal encoste nas bordas no mobile */
    box-sizing: border-box;
}

/* --- Caixa do Formulário --- */
.modal-content {
    background-color: #1a1a1a; 
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 550px; 
    max-height: 90vh; /* Se for muito grande, cria rolagem interna */
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

/* --- Botão de Fechar (X) --- */
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #f5a623; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   ESTILOS DOS CAMPOS DENTRO DO MODAL
   ========================================= */

/* Deixa todos os inputs, selects e textareas com 100% de largura, fundo escuro e arredondados */
#form-orcamento-modal input,
#form-orcamento-modal select,
#form-orcamento-modal textarea {
    width: 100%;
    padding: 14px 15px;
    background-color: #2a2a2a; /* Cinza escuro para combinar com o tema */
    border: 1px solid #444; /* Borda sutil */
    border-radius: 8px; /* Cantinhos arredondados */
    color: #ffffff; /* Texto digitado em branco */
    font-size: 15px;
    font-family: inherit; /* Puxa a fonte do site */
    box-sizing: border-box; /* Evita que o campo vaze da tela */
}

/* Cor do texto de dica (placeholder) */
#form-orcamento-modal input::placeholder,
#form-orcamento-modal textarea::placeholder {
    color: #999;
}

/* Efeito laranja quando o cliente clica para digitar */
#form-orcamento-modal input:focus,
#form-orcamento-modal select:focus,
#form-orcamento-modal textarea:focus {
    outline: none;
    border-color: #f5a623; /* Laranja da TecnoChave */
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.2);
}

/* --- Arrumando o alinhamento da linha dupla (Nome e Telefone) --- */
#form-modal .form-row {
    display: flex;
    gap: 15px; /* Espaço entre o campo Nome e Telefone */
    width: 100%;
}

#form-modal .form-row .form-group {
    flex: 1; /* Faz os campos dividirem o espaço 50/50 perfeitamente */
    width: 100%;
}

/* Espaçamento geral entre as linhas do formulário */
#form-modal .form-group {
    margin-bottom: 15px;
    width: 100%;
}