/* ======================================================= */
/* === CONFIGURAÇÕES GLOBAIS E VARIÁVEIS === */
/* ======================================================= */

:root {
    /* Cores */
    --primary-bg: #0b0f1a;
    --secondary-bg: #0f1e30;
    --header-footer-bg: #061122;
    --accent-color: #00bfff; /* Azul ciano brilhante */
    --accent-dark: #0092dd;
    --text-light: #e1e8f0;
    --text-muted: #889ebc;
    --border-color: #122c48;
    --card-bg: #13263c;

    /* Tipografia e Espaçamento */
    --font-base: 'Roboto', sans-serif;
    font-size: 16px; /* Define a base para a unidade REM (1rem = 16px) */
}

/* Reset Básico e Padrões */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    background: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Previne scroll horizontal */
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Estilo para acessibilidade com teclado */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* ======================================================= */
/* === CABEÇALHO (HEADER) === */
/* ======================================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem; /* 24px */
    height: 4.375rem; /* 70px */
    background: var(--header-footer-bg);
    box-shadow: 0 3px 10px rgba(0, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 2.8125rem; /* 45px */
    width: 2.8125rem; /* 45px */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Menu Mobile (Padrão) */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle i {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: transform 0.3s ease-in-out;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

nav.main-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: var(--header-footer-bg);
    box-shadow: -5px 0 15px rgba(0, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

nav.main-nav.active {
    transform: translateX(0);
}

nav.main-nav a {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav.main-nav a:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

/* ======================================================= */
/* === BANNER PRINCIPAL (HERO) === */
/* ======================================================= */

.hero-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3.75rem 1.25rem; /* 60px 20px */
    min-height: 45vh;
    background: linear-gradient(135deg, #0d1a2b 0%, #071220 100%);
    border-bottom: 1px solid var(--border-color);
}

.banner-content {
    max-width: 800px;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 2rem; /* 32px */
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.hero-banner h1 span {
    color: var(--accent-color);
}

.hero-banner .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    min-height: 1.6rem; /* Evita pulo de layout */
}

#typed-services {
    color: var(--accent-color);
    font-weight: bold;
}

.btn-cta {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
    animation: pulse 2.5s infinite;
}

.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
    animation-play-state: paused;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 6px 25px rgba(0, 191, 255, 0.5); }
}

/* ======================================================= */
/* === SEÇÕES GERAIS === */
/* ======================================================= */

.section-padded {
    padding: 3rem 1.25rem; /* 48px 20px */
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 1.9rem; /* 30.4px */
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0 auto;
    border-radius: 5px;
}

/* ======================================================= */
/* === GRID DE SERVIÇOS === */
/* ======================================================= */

.servico-grid {
    display: grid;
    grid-template-columns: 1fr; /* Padrão mobile: uma coluna */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servico-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.625rem;
    border-left: 5px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.servico-item i { font-size: 2.8rem; color: var(--accent-color); margin-bottom: 1rem; }
.servico-item h3 { font-size: 1.4rem; color: var(--text-light); margin-bottom: 0.5rem; }
.servico-item p { color: var(--text-muted); }

/* ======================================================= */
/* === GALERIA E DEPOIMENTOS (ESTILOS SIMILARES) === */
/* ======================================================= */

.galeria .imagens, .depoimento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.625rem;
    border: 3px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.galeria img:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 8px 15px rgba(0, 170, 255, 0.3);
}

#depoimentos {
    background: var(--secondary-bg);
}

.depoimento-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.625rem;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}
.depoimento-card p { font-style: italic; color: var(--text-muted); margin-bottom: 1.25rem; }
.depoimento-card .cliente-info { display: flex; align-items: center; gap: 1rem; }
.depoimento-card .cliente-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-color); }
.depoimento-card .cliente-info h4 { margin: 0; color: var(--text-light); font-size: 1.1rem; }

/* ======================================================= */
/* === FORMULÁRIO E CONTATO === */
/* ======================================================= */

form#formOrcamento {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

form label { font-weight: bold; margin-bottom: 0.5rem; display: block; }
form input, form select, form textarea {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-light);
    margin-bottom: 1rem;
}
form button.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: background 0.3s ease, transform 0.3s ease;
}
form button.btn-whatsapp:hover { background: #1da851; transform: translateY(-3px); }

.contact-info { text-align: center; }
.contact-info p { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.contact-info p i { font-size: 1.3rem; }
.contact-info a { font-weight: bold; }

/* ======================================================= */
/* === RODAPÉ (FOOTER) === */
/* ======================================================= */

footer {
    background: var(--header-footer-bg);
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}
footer h3 { font-size: 1.6rem; color: var(--accent-color); margin-bottom: 1.5rem; }
.footer-policies { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.footer-policies p { background: var(--secondary-bg); padding: 1.25rem; border-radius: 0.5rem; text-align: left; }
.footer-policies p strong { color: var(--text-light); font-size: 1.1em; margin-bottom: 0.5rem; display: block; }
.copyright { font-size: 0.85em; }

/* ======================================================= */
/* === BOTÕES FLUTUANTES === */
/* ======================================================= */

.floating-buttons { position: fixed; bottom: 1.25rem; right: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 999; }
.floating-btn { width: 3.125rem; height: 3.125rem; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; }
.floating-btn:hover { transform: scale(1.15); }
.whatsapp-btn { background-color: #25d366; }
.phone-btn { background-color: #007bff; }
.map-btn { background-color: #ff5722; }

/* ======================================================= */
/* === MEDIA QUERIES (TABLET E SUPERIORES) === */
/* ======================================================= */

@media (min-width: 768px) {
    /* Ajustes Gerais */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .section-padded { padding: 4rem 2.5rem; }

    /* Cabeçalho para Desktop */
    header {
        justify-content: flex-end;
        height: 5rem; /* 80px */
        padding: 0 5%;
    }
    .logo-link { position: absolute; left: 50%; transform: translateX(-50%); }
    .logo { height: 3.75rem; width: 3.75rem; } /* 60px */
    .menu-toggle { display: none; }
    nav.main-nav {
        position: static;
        flex-direction: row;
        transform: translateX(0);
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
    }
    nav.main-nav a {
        margin-left: 2rem;
        font-size: 1rem;
        padding: 0.25rem 0;
        position: relative;
    }
    nav.main-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        left: 0;
        bottom: 0;
        transition: width 0.3s ease;
    }
    nav.main-nav a:hover::after { width: 100%; }

    /* Grids para Desktop */
    .servico-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .galeria .imagens { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .depoimento-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    
    /* Contato e Rodapé */
    .contact-info p { flex-direction: row; justify-content: center; }
    .footer-policies { flex-direction: row; flex-wrap: wrap; max-width: 800px; margin: 0 auto 1.5rem auto; }
    .footer-policies p { flex: 1 1 45%; min-width: 300px; }
}

/* ======================================================= */
/* === MEDIA QUERIES (DESKTOP GRANDE) === */
/* ======================================================= */

@media (min-width: 1024px) {
    :root { font-size: 17px; } /* Aumenta a fonte base para telas maiores */

    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }
}
