/* 
 * MCR Soluções Industriais - Stylesheet
 * Cores: Azul Profundo (#003D7A), Cinza Escuro (#2C3E50), Branco (#FFFFFF)
 */

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #003D7A;
    --secondary-color: #2C3E50;
    --accent-color: #0056B3;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --dark-gray: #666666;
    --white: #FFFFFF;
    --text-dark: #333333;
    --border-color: #DDDDDD;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER/NAVEGAÇÃO ===== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navegação */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .slogan {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white);
}

/* ===== SEÇÕES GERAIS ===== */
section {
    padding: 80px 0;
}

section h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
}

section h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 30px;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ===== TABELAS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--white);
}

table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 600;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background-color: var(--light-gray);
}

/* ===== FORMULÁRIOS ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 14px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 61, 122, 0.2);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

button[type="submit"]:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== ALERTAS ===== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* ===== UTILITÁRIOS ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
