/* =========================================
   1. VARIABLES & RESET
   ========================================= */
   :root {
    --color-primary: #588da8;
    --color-primary-dark: #274C77;
    --color-accent: #E8F1F5;
    
    --text-main: #2C3E50;
    --text-light: #546E7A;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gradient: linear-gradient(135deg, #588da8 0%, #274C77 100%);

    --btn-radius: 50px;
    --card-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(39, 76, 119, 0.1);
    
    --header-height: 80px;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* OTIMIZAÇÃO: Garantir que imagens não quebrem o layout */
img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none !important; color: inherit; transition: var(--transition); }
section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }

/* Utilitários de Margem */
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { color: var(--text-light); margin-bottom: 1rem; font-size: 1.05rem; }

.text-center { text-align: center !important; }
.text-left { text-align: left; }
.highlight-text { color: #8ecae6; }

.section-title { position: relative; padding-bottom: 15px; margin-bottom: 40px; }
.section-title.center { text-align: center; }
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 60px; height: 4px; background-color: var(--color-primary); border-radius: 2px;
}
.section-title.center::after { left: 50%; transform: translateX(-50%); }

.section-desc {
    max-width: 700px; 
    margin: -20px auto 50px auto; 
    font-size: 1.1rem;
    display: block;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: 1rem; border-radius: var(--btn-radius);
    transition: var(--transition); cursor: pointer; border: 2px solid transparent; gap: 10px;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

.btn-primary { background-color: var(--color-primary-dark); color: white; }
.btn-primary:hover { background-color: var(--color-primary); }

.btn-outline {
    background-color: transparent; border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}
.btn-outline:hover { background-color: var(--color-primary-dark); color: white; }

.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

.btn-whatsapp-lg {
    background-color: #25D366; color: white; font-size: 1.1rem;
    padding: 16px 40px; 
    width: auto; min-width: 280px; display: inline-flex;
}
.btn-whatsapp-lg:hover { background-color: #20BA56; }

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-link { 
    color: var(--color-primary-dark); font-weight: 700; 
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-link:hover { color: var(--color-primary); gap: 12px; }

/* Botões do Modal */
.btn-whatsapp-sm { background-color: #25D366; color: white; padding: 10px 20px; font-size: 0.9rem; }
.btn-whatsapp-sm:hover { background-color: #20BA56; }
.btn-outline-linkedin { 
    background-color: transparent; border-color: #0A66C2; color: #0A66C2; 
    padding: 10px 20px; font-size: 0.9rem;
}
.btn-outline-linkedin:hover { background-color: #0A66C2; color: white; }

/* =========================================
   4. LAYOUT
   ========================================= */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.content-section { padding: 90px 0; }
.section-light { background-color: var(--bg-light); }

/* =========================================
   5. HEADER
   ========================================= */
#main-header {
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05); height: var(--header-height);
    display: flex; align-items: center;
}
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 15px; color: var(--text-main); }
.logo-img { height: 50px; width: auto; }
.logo-text-wrapper { display: flex; flex-direction: column; }
.logo-name { font-weight: 700; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; color: var(--color-primary-dark); line-height: 1.2; }
.logo-subtext { font-size: 0.8rem; color: var(--text-light); }
.logo-crp { font-weight: 600; color: var(--color-primary); }

#main-nav ul { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-link { font-weight: 600; color: var(--text-main); font-size: 0.95rem; position: relative; padding: 5px 0; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--color-primary); transition: 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--color-primary-dark); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--color-primary-dark); cursor: pointer; }

/* =========================================
   6. HERO
   ========================================= */
.hero-section {
    position: relative; min-height: 90vh; display: flex; align-items: center;
    background-color: var(--bg-light); overflow: hidden; padding: 2rem 0;
}
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.badge-hero {
    display: inline-block; background-color: #E3F2FD; color: var(--color-primary-dark);
    padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 0.85rem; margin-bottom: 20px;
}
.hero-text h1 { font-size: 3.2rem; margin-bottom: 1.5rem; color: var(--color-primary-dark); }
.hero-text p { font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 90%; }
.hero-buttons { display: flex; gap: 15px; }

.hero-image-wrapper { position: relative; display: flex; justify-content: center; }
.image-blob {
    position: absolute; width: 100%; height: 100%; background: var(--color-primary); opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; z-index: 0; animation: morph 8s ease-in-out infinite;
}
.hero-img { position: relative; z-index: 1; max-width: 90%; border-radius: 20px; box-shadow: var(--shadow-md); }
@keyframes morph {
    0%, 100% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* =========================================
   7. ABOUT
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.img-frame img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-md); }
.subtitle { color: var(--color-primary); margin-bottom: 1.5rem; font-weight: 600; }

.professional-traits { display: flex; flex-direction: column; gap: 15px; margin: 25px 0; }
.trait-item {
    display: flex; align-items: center; gap: 15px; background: white; padding: 15px 20px;
    border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border-left: 4px solid var(--color-primary);
}
.trait-icon { color: var(--color-primary-dark); font-size: 1.2rem; }
.trait-item span { font-weight: 600; color: var(--text-main); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.value-item {
    background: white; padding: 40px 30px; border-radius: var(--card-radius);
    text-align: center; transition: var(--transition); border: 1px solid #f0f0f0;
}
.value-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: transparent; }
.icon-box {
    width: 70px; height: 70px; background: #E8F1F5; color: var(--color-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 20px auto;
}

/* =========================================
   8. SERVICES & APPROACH
   ========================================= */
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.approach-card {
    background: white; padding: 40px; border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm); border-top: 5px solid var(--color-primary);
}
.approach-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.approach-header i { font-size: 2rem; color: var(--color-primary); }
.tag {
    display: inline-block; background: #F0F4F8; color: var(--text-light);
    padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; margin: 0 5px 5px 0;
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
    background: white; padding: 40px; border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition);
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-content-top { flex-grow: 1; display: flex; flex-direction: column; align-items: center; }
.service-icon { font-size: 2.5rem; color: var(--color-primary-dark); margin-bottom: 20px; }
.service-footer-align { width: 100%; margin-top: 15px; }

.toggle-service {
    background: none; border: none; color: var(--color-primary); font-weight: 600;
    cursor: pointer; font-size: 0.95rem; width: 100%; display: flex;
    align-items: center; justify-content: center; gap: 8px; padding: 10px 0;
}
.service-details {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease; opacity: 0;
}
.service-details.active {
    max-height: 300px; opacity: 1; margin-top: 10px; padding-top: 20px; border-top: 1px solid #eee;
}

/* =========================================
   9. INSTAGRAM & LOCATION
   ========================================= */
.insta-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.btn-insta:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent; color: white;
}
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.insta-item { position: relative; padding-bottom: 100%; overflow: hidden; border-radius: 12px; }
.insta-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.insta-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s; z-index: 2; color: white; font-size: 2rem;
}
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-item:hover img { transform: scale(1.1); }

.location-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr; background: white;
    border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md);
}
.location-info { padding: 50px; display: flex; flex-direction: column; justify-content: center; }

.location-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 10px; }

.loc-item { display: flex; align-items: flex-start; gap: 18px; }

.loc-icon {
    min-width: 25px; color: var(--color-primary); font-size: 1.4rem;
    display: flex; justify-content: center; margin-top: 3px;
}

.loc-text { text-align: left; }
.loc-text strong {
    display: block; color: var(--color-primary-dark);
    font-weight: 700; margin-bottom: 4px; font-size: 1rem;
}
.loc-text p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--text-light); }

.map-container { min-height: 450px; background: #eee; }

/* =========================================
   10. DEPOIMENTOS & FAQ
   ========================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: white; padding: 35px; border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%;
}
.testimonial-content { flex-grow: 1; }
.stars { color: #FFC107; margin-bottom: 15px; letter-spacing: 2px; }
.author-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.author { display: flex; align-items: center; gap: 15px; }
.avatar {
    width: 45px; height: 45px; background: var(--color-primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; }
.faq-question {
    width: 100%; text-align: left; padding: 20px 25px; background: white;
    border: 1px solid #e0e0e0; border-radius: 10px; font-weight: 600;
    color: var(--text-main); display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; transition: 0.3s; font-size: 1.1rem;
}
.faq-question:hover, .faq-question.active { border-color: var(--color-primary); color: var(--color-primary); }
.faq-question.active { background: var(--bg-light); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    padding: 0 25px; background: white;
}
.faq-answer.active { padding-top: 15px; padding-bottom: 15px; max-height: 200px; }

/* =========================================
   11. FOOTER & EXTRAS
   ========================================= */
.cta-final-section { background: var(--bg-gradient); text-align: center; padding: 80px 0; color: white; }
.cta-final-section h2 { color: white; margin-bottom: 10px; }
.text-white-light { opacity: 0.9; margin-bottom: 30px; color: white; }

footer { background-color: #1a3a5e; color: #b0c4de; padding: 80px 0 30px 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: white; padding-left: 5px; }
.social-links a { font-size: 1.2rem; margin-right: 15px; color: white; }
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 25px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
}

.copyright-text { text-align: left; }
.developer-link { 
    color: #b0c4de; text-align: right; font-weight: 600; cursor: pointer;
    transition: color 0.3s;
}
.developer-link:hover { color: white; }

.footer-col.contact p a { color: #b0c4de; display: flex; align-items: center; gap: 8px; }
.footer-col.contact p a:hover { color: white; }

#whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 999; animation: float 3s ease-in-out infinite; }
#whatsapp-float a {
    width: 60px; height: 60px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 30px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4); position: relative;
}
.tooltip-wa {
    position: absolute; right: 70px; background: white; color: #333; padding: 5px 12px;
    border-radius: 5px; font-size: 0.8rem; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap; opacity: 0; transition: 0.3s; pointer-events: none;
}
#whatsapp-float:hover .tooltip-wa { opacity: 1; transform: translateX(-5px); }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* =========================================
   12. MODAL DESENVOLVEDOR 
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content {
    background: white; padding: 40px 30px; border-radius: var(--card-radius);
    max-width: 550px; width: 90%; position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.open .modal-content { transform: translateY(0); opacity: 1; }
.modal-close-btn {
    position: absolute; top: 15px; right: 15px;
    background: none; border: none; font-size: 1.5rem;
    color: var(--text-light); cursor: pointer; transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--color-primary-dark); }
.modal-header { text-align: center; margin-bottom: 20px; }
.modal-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 10px; }
.modal-content h3 { font-size: 1.5rem; color: var(--color-primary-dark); }
.modal-content p { text-align: center; margin-bottom: 30px; }
.modal-content strong { font-weight: 700; color: var(--color-primary-dark); }
.modal-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: nowrap; }
.modal-btn { max-width: 220px; width: 50%; }

/* =========================================
   13. MOBILE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 2; margin: 0 auto; }
    .hero-image-wrapper { order: 1; margin-bottom: 30px; }
    
    .about-grid, .location-wrapper { grid-template-columns: 1fr; }
    
    /* CORREÇÃO DO PROBLEMA: Imagem agora aparece no mobile */
    .about-image { 
        display: block; 
        margin: 30px auto; 
        max-width: 80%;
    }
    .about-image .img-frame { max-width: 400px; margin: 0 auto; }

    .location-info { padding: 40px 30px; } 
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .social-links { justify-content: center; }
    
    .footer-bottom { flex-direction: column; align-items: center; }
    .copyright-text, .developer-link { text-align: center; width: 100%; }
    .developer-link { margin-top: 10px; } 
    .footer-col.contact p, .footer-col.contact p a { justify-content: center; }
    .loc-item { align-items: flex-start; }
    
    .modal-buttons { flex-direction: column; gap: 10px; flex-wrap: wrap; }
    .modal-btn { max-width: 100%; width: 100%; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .content-section { padding: 50px 0; } 
    .menu-toggle { display: block; }
    #main-nav {
        position: fixed; top: var(--header-height); right: -100%;
        width: 100%; height: calc(100vh - var(--header-height));
        background: white; transition: 0.4s; flex-direction: column; padding: 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }
    #main-nav.open { right: 0; }
    #main-nav ul { flex-direction: column; width: 100%; gap: 25px; }
    .nav-link { font-size: 1.2rem; }
    .btn-nav { width: 100%; margin-top: 20px; }
    .hero-text h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .contact-box { width: 100%; }
    .btn-whatsapp-lg { font-size: 1rem; padding: 15px 20px; width: 100%; justify-content: center; }

    .hero-section { padding-top: 50px; min-height: auto; }
    .hero-text { order: 2; margin: 0 auto; padding-top: 10px; }
    
    .hero-buttons { flex-direction: column; gap: 15px; }
    .hero-buttons .btn-lg { padding: 14px 25px; font-size: 1.1rem; width: 100%; flex-grow: 0; }
}