/*
 * Arquivo CSS para o site da R.A.T INC.
 * Tema: Moderno, escuro, baseado no logo.
 */

/* Importa a fonte Inter do Google Fonts para um visual moderno */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Estilos Globais e da Estrutura --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #1e3a8a; /* Azul escuro do logo */
    --secondary-color: #3b82f6; /* Azul vibrante */
    --background-color: #0f172a; /* Slate 900 */
    --text-color-light: #f1f5f9; /* Slate 100 */
    --text-color-dark: #cbd5e1; /* Slate 300 */
    --border-color: #334155; /* Slate 700 */
    --card-background: rgba(255, 255, 255, 0.05); /* Fundo semi-transparente para cards */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header e Navegação --- */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 40px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

header nav a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--secondary-color);
}

/* --- Seções em Geral --- */
section {
    padding: 6rem 0;
}

h1, h2 {
    font-weight: 800;
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 2rem;
}

p {
    color: var(--text-color-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* --- Seção Hero --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--background-color) 100%);
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.25rem;
    max-width: 700px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px; /* Botão arredondado */
    text-decoration: none;
    font-weight: 700;
    margin-top: 2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

/* --- Seção de Serviços (Cards) --- */
.servico-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 0.5rem;
}

/* --- Seção de Contato (Formulário) --- */
#contato .container {
    max-width: 600px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

#contact-form label {
    display: block;
    font-weight: 500;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    background-color: #1e293b;
    border: 1px solid #475569;
    color: var(--text-color-light);
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

#contact-form textarea {
    resize: vertical;
}

#contact-form .btn {
    width: 100%;
    margin-top: 0;
    border: none;
    cursor: pointer;
}

/* --- Rodapé --- */
footer {
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color-dark);
}

/* --- Responsividade (Media Queries) --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header nav {
        margin-top: 1rem;
    }
    header nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    section {
        padding: 4rem 0;
    }
}
