/* --- PRELOADER (TELA DE CARREGAMENTO) --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; z-index: 9999; display: flex; justify-content: center; align-items: center; flex-direction: column; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader-spinner { border: 5px solid #f3f3f3; border-top: 5px solid #0A2540; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 20px; }
.loader-text { font-family: 'Montserrat', sans-serif; color: #0A2540; font-weight: 600; letter-spacing: 2px; animation: pulse 1.5s infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* Variáveis e Reset */
:root { --primary-color: #0A2540; --accent-color: #F9A826; --text-color: #333333; --bg-light: #F4F7F6; --white: #FFFFFF; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: 'Roboto', sans-serif; color: var(--text-color); line-height: 1.6; opacity: 0; animation: pageFadeIn 1s forwards; animation-delay: 0.5s; }
@keyframes pageFadeIn { to { opacity: 1; } }

h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--primary-color); }
a { text-decoration: none; cursor: pointer; }

/* Layout */
header { background-color: var(--white); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.logo img { height: 60px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 25px; align-items: center; }
nav a { color: var(--text-color); font-weight: 500; position: relative; transition: color 0.3s; }
nav a:hover { color: var(--accent-color); }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--accent-color); transition: width 0.3s ease-in-out; }
nav a:hover::after { width: 100%; }

.btn-whatsapp { background-color: #25D366; color: var(--white); padding: 10px 20px; border-radius: 5px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; border: none; }
.btn-whatsapp:hover { background-color: #1EBE5D; transform: scale(1.05); }

.hero { background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), url('https://images.unsplash.com/photo-1541888087545-d4c5c28fa486?q=80&w=1920&auto=format&fit=crop') center/cover; height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 5%; }
.hero-content { max-width: 800px; animation: slideUp 1s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero h1 { color: var(--white); font-size: 48px; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 18px; margin-bottom: 30px; }
.btn-primary { background-color: var(--accent-color); color: var(--primary-color); padding: 15px 30px; border-radius: 5px; font-weight: 800; font-size: 16px; display: inline-block; transition: transform 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(249, 168, 38, 0.4); }

.services { padding: 80px 5%; background-color: var(--bg-light); text-align: center; }
.services h2 { font-size: 36px; margin-bottom: 50px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; }

.about { padding: 80px 5%; display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 300px; }
.about-text h2 { font-size: 36px; margin-bottom: 20px; }
.about-text ul { list-style: none; margin-top: 20px; }
.about-text ul li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.about-text ul li i { color: var(--accent-color); }
.about-image { flex: 1; min-width: 300px; background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=800&auto=format&fit=crop') center/cover; height: 400px; border-radius: 8px; }

.contact { padding: 80px 5%; background-color: var(--bg-light); }
.contact h2 { text-align: center; font-size: 36px; margin-bottom: 50px; }
.contact-container { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-form { flex: 1; min-width: 300px; background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Roboto', sans-serif; font-size: 16px; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-color); outline: none; }
.btn-submit { width: 100%; background-color: var(--primary-color); color: var(--white); padding: 15px; border: none; border-radius: 5px; font-size: 16px; font-weight: 800; cursor: pointer; transition: background-color 0.3s; }
.btn-submit:hover { background-color: #0d3b66; }
.btn-submit:disabled { background-color: #ccc; cursor: not-allowed; }

#form-message { margin-top: 15px; padding: 10px; border-radius: 5px; font-weight: 500; display: none; text-align: center; }
.success-msg { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error-msg { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.contact-map { flex: 1; min-width: 300px; height: 500px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

footer { background-color: var(--primary-color); color: var(--white); padding: 40px 5% 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--accent-color); margin-bottom: 20px; font-size: 20px; }
.footer-col p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-col a { color: var(--white); transition: color 0.3s; }
.footer-col a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: #AAAAAA; }

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav ul { flex-direction: column; text-align: center; gap: 10px; }
    .hero h1 { font-size: 32px; }
    .about, .contact-container { flex-direction: column; }
    .contact-map { height: 300px; }
}