/* ===== GLOBAIS E VARIÁVEIS ===== */
:root {
    --primary-blue: #1E3A8A;
    --accent-red: #EF4444;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --text-gray: #4B5563;
    --dark-blue: #111827;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark-blue); font-weight: 700; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 1rem; }
.section-subtitle { text-align: center; font-size: 1.1rem; max-width: 600px; margin: 0 auto 3.5rem auto; color: var(--text-gray); }

/* ===== HEADER ===== */
.header { background: transparent; padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease; }
.header.scrolled { padding: 10px 0; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 15px var(--shadow-color); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 55px; transition: height 0.4s ease; }
.header.scrolled .logo img { height: 50px; }
.nav-menu ul { list-style: none; display: flex; }
.nav-menu li { margin-left: 35px; }
.nav-menu a { text-decoration: none; color: var(--dark-blue); font-family: var(--font-heading); font-weight: 500; position: relative; padding-bottom: 5px; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-red); transition: width 0.3s ease; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--primary-blue); }
.btn-whatsapp-header { background: var(--accent-red); color: var(--white); padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 500; font-family: var(--font-heading); transition: transform 0.3s, box-shadow 0.3s; }
.btn-whatsapp-header:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark-blue); cursor: pointer; }

/* ===== HERO SECTION ===== */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background: url('images/hero-background.jpg') no-repeat center center/cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(30, 58, 138, 0.85), rgba(17, 24, 39, 0.8)); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); margin-bottom: 1.5rem; font-weight: 700; }
.hero p { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; }

/* ===== BOTÃO CTA PRINCIPAL ===== */
.btn-cta { background: var(--accent-red); color: var(--white); padding: 18px 40px; border-radius: 50px; text-decoration: none; font-size: 1.1rem; font-weight: 500; font-family: var(--font-heading); transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-cta:hover { background: #d03838; transform: translateY(-4px); box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5); }

/* ===== SECTIONS BASE ===== */
section { padding: 100px 0; }
section:nth-of-type(even) { background-color: var(--light-gray); }

/* ===== SOBRE ===== */
.about .container { display: flex; align-items: center; gap: 60px; }
.about-content { flex: 1.2; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 40px -10px var(--shadow-color); }
.about-features { display: flex; justify-content: space-around; gap: 20px; margin-top: 30px; }
.feature-item { text-align: center; }
.feature-item i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 10px; }
.feature-item h3 { font-size: 1.5rem; }

/* ===== SERVIÇOS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px; text-align: center; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color); }
.service-card i { font-size: 3rem; color: var(--accent-red); margin-bottom: 20px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* ===== DIFERENCIAIS ===== */
.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 25px; margin-top: 30px; }
.feature-card { background: var(--white); padding: 25px; border-radius: 10px; display: flex; align-items: center; gap: 20px; border: 1px solid #e5e7eb; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px -5px var(--shadow-color); }
.feature-card i { color: var(--primary-blue); font-size: 2rem; background: var(--light-gray); padding: 15px; border-radius: 50%; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 3px; }
.feature-card p { font-size: 0.95rem; line-height: 1.5; }

/* ===== GALERIA ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.gallery-item:hover { transform: scale(1.05); box-shadow: 0 10px 20px var(--shadow-color); }
.modal { display: none; position: fixed; z-index: 1001; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; width: 80%; max-width: 800px; }
.close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.close:hover, .close:focus { color: #bbb; text-decoration: none; cursor: pointer; }

/* ===== DEPOIMENTOS ===== */
.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; text-align: center; overflow: hidden; }
.testimonial-card { display: none; }
.testimonial-card.active { display: block; animation: fadeIn 0.8s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.stars { color: #FFD700; font-size: 1.5rem; margin-bottom: 15px; }
.testimonial-card p { font-style: italic; font-size: 1.2rem; margin-bottom: 15px; line-height: 1.6; }
.testimonial-card h4 { font-weight: 500; color: var(--primary-blue); font-family: var(--font-body); }

/* ===== LOCALIZAÇÃO ===== */
.location-content { display: flex; gap: 40px; align-items: center; }
.location-map { flex: 2; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px var(--shadow-color); }
.location-info { flex: 1; }
.location-info h3 { font-size: 1.8rem; margin-bottom: 20px; }
.location-info p { font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: center; }
.location-info i { color: var(--accent-red); margin-right: 15px; width: 20px; text-align: center; }
.location-info .btn-cta { margin-top: 20px; }

/* ===== CONTATO/FORMULÁRIO ===== */
.contact { background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%); }
#contact-form { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { width: 100%; }
.full-width { grid-column: 1 / -1; }
#contact-form input, #contact-form select, #contact-form textarea { width: 100%; padding: 16px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 1rem; font-family: var(--font-body); transition: border-color 0.3s, box-shadow 0.3s; }
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2); }
#contact-form button { grid-column: 1 / -1; justify-self: center; }

/* ===== FOOTER ===== */
.footer { background: var(--dark-blue); color: #D1D5DB; padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer h4 { color: var(--white); margin-bottom: 15px; font-size: 1.2rem; }
.footer-logo img { height: 50px; margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links a { text-decoration: none; color: #ccc; transition: color 0.3s; line-height: 2; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { display: flex; align-items: center; margin-bottom: 10px; }
.footer-contact i { margin-right: 10px; }
.footer-bottom { border-top: 1px solid #374151; padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* ===== BOTÕES FLUTUANTES E ANIMAÇÕES ===== */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 999; }
.back-to-top-btn { position: fixed; bottom: 95px; right: 25px; background: var(--primary-blue); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 998; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; }
.back-to-top-btn.visible { opacity: 1; transform: translateY(0); }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .about .container, .location-content { flex-direction: column; }
    .about-image { order: -1; margin-bottom: 30px; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    .section-title { font-size: 2.2rem; }
    .header { padding: 10px 0; }
    .nav-menu { display: none; position: absolute; top: 75px; left: 0; width: 100%; background: var(--white); flex-direction: column; text-align: center; box-shadow: 0 10px 15px var(--shadow-color); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
    .nav-menu.active { display: flex; }
    .nav-menu ul { flex-direction: column; width: 100%; padding: 10px 0; }
    .nav-menu li { margin: 15px 0; }
    .hamburger { display: block; }
    .btn-whatsapp-header { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .features-list { grid-template-columns: 1fr; }
    #contact-form { grid-template-columns: 1fr; }

    /* ===== AJUSTE RESPONSIVO PARA FEATURES DA SEÇÃO SOBRE ===== */
    .about-features {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}