/* --- 1. VARIÁVEIS E RESET --- */
:root {
    --primary-color: #347B75; 
    --primary-dark: #225651;
    --secondary-color: #2C3E50;
    --text-color: #333333;
    --text-light: #555555;
    --bg-light: #F4F7F6;
    --warning-bg: #FFF3CD;
    --warning-text: #856404;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
    
    /* Cores do Blog */
    --blog-date: #2D7A8C;
    --blog-title: #0F2838;
    --blog-text: #586875;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-color); line-height: 1.6; background-color: var(--white); }
ul { list-style: none; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* --- 2. LAYOUT & GERAIS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 10px; font-weight: 700; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-header.text-white h2 { color: var(--white); }
.section-header.text-white p { color: rgba(255,255,255,0.8); }

/* Botões */
.btn { display: inline-block; padding: 12px 30px; border-radius: var(--radius); font-weight: 600; text-align: center; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background-color: var(--primary-color); color: var(--white); border: 2px solid var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-color); }
.full-width { width: 100%; }

/* --- 3. HEADER --- */
header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 0; transition: var(--transition); pointer-events: none; }
header .container { pointer-events: auto; }
.nav-container { display: flex; justify-content: space-between; align-items: center; min-height: 100px; }

.logo a { display: flex; align-items: center; }
.logo img { max-height: 190px; width: auto; transition: all 0.4s ease; filter: brightness(0) invert(1); opacity: 1; }

/* Header Scrolled */
header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 5px 0; pointer-events: auto; }
header.scrolled .logo img { max-height: 100px; filter: none; }

/* Navegação */
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--white); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
header.scrolled .nav-links a { color: var(--secondary-color); text-shadow: none; }
.btn-nav { background: var(--primary-color); padding: 8px 20px; border-radius: 4px; color: white !important; text-shadow: none; }
.mobile-menu-btn { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
header.scrolled .mobile-menu-btn { color: var(--secondary-color); }

/* --- 4. HERO --- */
#hero { height: 90vh; background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 123, 117, 0.85) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero-content h1 { font-size: 3.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; max-width: 700px; margin: 0 auto; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* --- 5. BANNER REFORMA --- */
#reforma-alert { background: var(--warning-bg); padding: 40px 0; border-bottom: 1px solid #ffeeba; text-align: center; }
.reforma-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }
.reforma-text h3 { color: var(--warning-text); font-size: 1.3rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.reforma-text p { color: #554308; font-size: 1rem; margin: 0; max-width: 800px; }
.btn-reforma { background: var(--warning-text); color: white; padding: 12px 30px; border-radius: 4px; font-weight: 600; margin-top: 10px; }
.btn-reforma:hover { background: #554308; }

/* --- 6. DIFERENCIAIS --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; justify-content: center; }
.card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); border-top: 4px solid var(--primary-color); text-align: center; }
.card:hover { transform: translateY(-5px); }
.card-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; color: var(--secondary-color); }

/* --- 7. HISTÓRIA --- */
#historia { background: var(--white); }
.historia-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.historia-content { text-align: center; }
.historia-content .badge { background: var(--bg-light); color: var(--primary-color); padding: 5px 10px; font-weight: 700; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; display: inline-block; }
.historia-content h2 { margin: 15px 0 25px; color: var(--secondary-color); font-size: 2.2rem; }
.historia-content p { margin-bottom: 15px; color: var(--text-light); text-align: justify; }
.highlight-text { font-size: 1.1rem; color: var(--secondary-color); font-weight: 500; margin-bottom: 20px; border-left: 4px solid var(--primary-color); padding-left: 15px; text-align: justify; }
.historia-stats { display: flex; flex-direction: column; gap: 15px; margin: 30px 0; }
.stat-item { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--secondary-color); }
.stat-item i { color: var(--primary-color); }

/* Imagem Padrão Desktop */
.historia-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); height: 500px; object-fit: cover; }

/* --- 8. SERVIÇOS --- */
.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; justify-content: center; }
.servico-card { background: var(--white); border: 1px solid #eee; padding: 35px; border-radius: var(--radius); transition: var(--transition); }
.servico-card:hover { border-color: var(--primary-color); box-shadow: var(--shadow); }
.icon-header { width: 50px; height: 50px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.2rem; margin: 0 auto 20px; }
.servico-card h3 { margin-bottom: 15px; color: var(--secondary-color); font-size: 1.2rem; text-align: center; }
.servico-card ul li { position: relative; padding-left: 15px; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-light); text-align: left; }
.servico-card ul li::before { content: "•"; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }

/* --- 9. APP MOBILE --- */
#app-mobile { background: var(--secondary-color); color: var(--white); }
.app-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.app-content { text-align: center; }
.app-content h2 { font-size: 2.5rem; margin-bottom: 15px; line-height: 1.2; }
.app-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 40px; max-width: 500px; margin: 0 auto; }
.app-features { text-align: left; display: inline-block; max-width: 550px; margin-bottom: 30px; }
.app-features li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.app-features i { color: var(--primary-color); background: var(--white); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.1rem; flex-shrink: 0; margin-top: 5px; }
.feature-text { display: flex; flex-direction: column; }
.feature-text strong { font-size: 1.05rem; display: block; margin-bottom: 4px; }
.feature-text span { font-size: 0.95rem; opacity: 0.8; font-weight: 300; }
.app-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-store { background: var(--white); color: var(--secondary-color); padding: 12px 25px; border-radius: 6px; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.btn-store:hover { background: var(--primary-color); color: var(--white); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,0.4); background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- 10. BLOG --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.blog-card { background-color: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.02); }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); }

.blog-img { width: 100%; height: 200px; object-fit: cover; display: block; border-bottom: 1px solid #eee; }

.blog-content { padding: 25px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-date { font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--blog-date); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: block; }
.blog-content h4 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--blog-title); margin: 0 0 15px 0; line-height: 1.3; }
.blog-content p { font-family: 'Open Sans', sans-serif; font-size: 0.95rem; color: var(--blog-text); line-height: 1.6; margin-bottom: 25px; }
.read-more { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--blog-date); text-decoration: none; display: inline-flex; align-items: center; margin-top: auto; }
.read-more i { margin-left: 8px; font-size: 0.8rem; transition: transform 0.2s; }
.read-more:hover i { transform: translateX(5px); }

/* --- 11. FORMULÁRIO --- */
.form-wrapper { max-width: 800px; margin: 0 auto; background: var(--white); padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { color: var(--secondary-color); margin-bottom: 10px; }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.input-box { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.input-box label { font-size: 0.9rem; font-weight: 600; color: var(--secondary-color); }
.input-box input, .input-box select, .input-box textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Montserrat', sans-serif; font-size: 1rem; outline: none; transition: var(--transition); }
.input-box input:focus, .input-box select:focus, .input-box textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(52, 123, 117, 0.1); }
optgroup { font-weight: 700; color: var(--secondary-color); }

/* --- 12. LOCALIZAÇÃO --- */
.locations-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; justify-content: center; }
.location-box { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); text-align: center; }
.location-box h3 { color: var(--primary-color); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.loc-info p { color: var(--text-light); margin-bottom: 15px; font-size: 0.95rem; line-height: 1.5; }
.map-placeholder { width: 100%; height: 250px; background: #eee; border-radius: var(--radius); overflow: hidden; margin-top: 20px; }

/* --- 13. FOOTER & EXTRAS --- */
footer { background: #1a252f; color: #bdc3c7; padding: 30px 20px; text-align: center; }
.footer-copyright p { margin: 0; font-size: 0.9rem; }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 100; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* Estilo para página interna do Blog */
header.blog-header-style { background-color: var(--secondary-color); position: relative; padding: 15px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
header.blog-header-style .logo img { filter: brightness(0) invert(1); max-height: 80px; opacity: 1; margin: 0; }
.btn-back-site { border: 1px solid rgba(255,255,255,0.3); padding: 10px 20px; border-radius: 30px; color: #fff !important; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.btn-back-site:hover { background-color: var(--primary-color); border-color: var(--primary-color); transform: translateX(-5px); }

/* --- 14. RESPONSIVO (MOBILE) --- */
@media (max-width: 768px) {
    /* Menu Mobile */
    .nav-links { position: fixed; right: -100%; top: 60px; flex-direction: column; background: var(--white); width: 100%; padding: 30px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--secondary-color); }
    .mobile-menu-btn { display: block; }
    
    /* Hero e Textos */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    
    /* Layouts Grid para Coluna Única */
    .historia-layout, .app-wrapper, .input-group, .contact-wrapper { grid-template-columns: 1fr; }
    
    /* === CORREÇÃO DA IMAGEM DA HISTÓRIA === */
    .historia-img { 
        order: -1; 
        height: auto; /* Deixa a altura flexível */
        margin-bottom: 30px; 
        display: block;
    }
    
    .historia-img img {
        height: 250px !important; /* Força a imagem a ficar menor no celular */
        width: 100%;
        object-fit: cover;
    }
}