/* ==========================================================================
   Opus Insurance - Estilos Globais, Estrutura Centralizada (Boxed) e Responsiva
   ========================================================================= */

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

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: "Georgia", "Times New Roman", Times, serif;
    --text-primary: #1a1a1a;
    --text-muted: #555555;
    --gold-brand: #cea30f;
    --gold-light: #fdfaf0;
    --border-color: #e5e5e5;
    --site-max-width: 1360px;
}

body { font-family: var(--font-sans); background-color: #ffffff; color: var(--text-primary); -webkit-font-smoothing: antialiased; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER */
.site-header { width: 100%; background-color: #ffffff; border-bottom: 1px solid var(--border-color); position: relative; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-container { width: 100%; max-width: var(--site-max-width); margin: 0 auto; padding: 24px 40px; display: flex; justify-content: space-between; align-items: center; }
.logo-container .logo img { height: 42px; width: auto; display: block; object-fit: contain; }
.nav-main ul { list-style: none; display: flex; gap: 28px; }
.nav-main ul li a { text-decoration: none; color: var(--text-primary); font-size: 0.95rem; font-weight: 400; transition: color 0.2s ease; }
.nav-main ul li a:hover { color: var(--gold-brand); }
.nav-utility ul { list-style: none; display: flex; align-items: center; gap: 24px; }

/* ESTILO DO BOTÃO COTAR AGORA NO HEADER E MENU MOBILE */
.btn-header-quote {
    background-color: var(--gold-brand);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}
.btn-header-quote:hover {
    background-color: #b08a0b;
    transform: translateY(-2px);
}

.mobile-menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; z-index: 110; padding: 0; }
.mobile-menu-toggle span { width: 100%; height: 2px; background-color: var(--text-primary); transition: all 0.3s ease; border-radius: 2px; }
.mobile-menu-toggle.active { opacity: 0; pointer-events: none; }

.main-content { flex: 1; width: 100%; max-width: var(--site-max-width); margin: 0 auto; padding: 0 40px; }
.section-container { width: 100%; max-width: var(--site-max-width); margin: 0 auto; padding: 0 40px; }
.section-title { font-family: var(--font-serif); font-size: 2.8rem; color: var(--text-primary); font-weight: 400; margin-bottom: 50px; text-align: left; }
.center-title { text-align: center; }

/* HERO */
.hero-section { width: 100%; margin-top: 0px; position: relative; z-index: 1; }
.video-wrapper { position: relative; width: 100%; height: 520px; background-color: #000000; overflow: hidden; }
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.12); z-index: 2; }
.hero-content-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 60px 70px; display: flex; align-items: center; z-index: 4; pointer-events: none; }
.hero-title { font-family: var(--font-serif); font-size: 3.8rem; color: #ffffff; font-weight: 400; line-height: 1.15; letter-spacing: -0.5px; }
.video-cutout-block { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80%; max-width: var(--site-max-width); height: 64px; background-color: #ffffff; z-index: 3; }
.video-pause-btn { position: absolute; bottom: 20px; right: 35px; width: 36px; height: 36px; background: transparent; border: none; color: #ffffff; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.video-pause-btn:hover { transform: scale(1.1); }

/* INTRO */
.intro-statement-section { width: 100%; background-color: #ffffff; padding: 70px 0 90px 0; display: flex; justify-content: center; text-align: center; }
.intro-text-container { width: 100%; max-width: 960px; }
.intro-paragraph { font-family: var(--font-serif); font-size: 2.15rem; line-height: 1.35; color: var(--text-primary); font-weight: 400; word-spacing: 1px; }
.gold-highlight { color: var(--gold-brand); font-style: italic; font-weight: 400; }

/* DIFERENCIAIS (Grid simples no desktop) */
.features-section { width: 100%; background-color: #ffffff; padding: 80px 0; border-bottom: 1px solid var(--border-color); overflow: hidden; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.feature-item { display: flex; flex-direction: column; align-items: center; padding: 20px; }
.feature-icon { width: 72px; height: 72px; background-color: var(--gold-light); color: var(--gold-brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: all 0.3s ease; }
.feature-item:hover .feature-icon { transform: scale(1.05) translateY(-5px); background-color: var(--gold-brand); color: #ffffff; }
.feature-title { font-family: var(--font-sans); font-size: 1.25rem; color: var(--text-primary); font-weight: 600; margin-bottom: 10px; }
.feature-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.5; }

/* PRODUTOS */
.products-section { width: 100%; background-color: #f9f9f9; padding: 80px 0 100px 0; border-bottom: 1px solid var(--border-color); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.product-card { background: #ffffff; border: 1px solid var(--border-color); padding: 50px 40px; text-decoration: none; display: flex; flex-direction: column; transition: all 0.3s ease; border-radius: 8px; }
.product-card:hover { border-color: var(--gold-brand); box-shadow: 0 15px 35px rgba(0,0,0,0.06); transform: translateY(-5px); }
.card-icon { color: var(--text-primary); margin-bottom: 24px; transition: color 0.3s ease; }
.product-card:hover .card-icon { color: var(--gold-brand); }
.product-card h3 { font-family: var(--font-sans); font-size: 1.5rem; color: var(--text-primary); margin-bottom: 15px; font-weight: 500; }
.product-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; flex-grow: 1; }
.card-link { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; transition: color 0.3s ease; }
.product-card:hover .card-link { color: var(--gold-brand); }
.product-card:hover .card-link svg { transform: translateX(5px); }

/* PARCEIROS E SLIDERS GERAIS */
.partners-section { width: 100%; background-color: #ffffff; padding: 100px 0; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.partners-slider { width: 100%; overflow: hidden; position: relative; padding: 20px 0; -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); }
.partners-track { 
    display: flex; 
    align-items: center; 
    width: max-content; 
    animation: scrollSlider 35s linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.partners-track:hover { animation-play-state: paused; }
.partners-track span { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 700; color: #c0c0c0; letter-spacing: -0.5px; text-transform: uppercase; margin: 0 40px; transition: color 0.3s ease; cursor: default; white-space: nowrap; }
.partners-track span:hover { color: var(--gold-brand); }

@keyframes scrollSlider { 
    0% { transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-50%, 0, 0); -webkit-transform: translate3d(-50%, 0, 0); } 
}

/* CALL TO ACTION FAMÍLIA */
.cta-split-section { display: flex; width: 100%; background-color: #ffffff; border-bottom: 1px solid var(--border-color); }
.cta-image-col { flex: 1; min-height: 400px; position: relative; overflow: hidden; }
.cta-image-col img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.cta-text-col { flex: 1; padding: 100px 60px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: var(--text-primary); background: #ffffff; }
.cta-text-col h2 { font-family: var(--font-serif); font-size: 2.8rem; margin-bottom: 20px; font-weight: 400; line-height: 1.2; color: var(--text-primary); }
.cta-text-col p { font-size: 1.1rem; margin-bottom: 40px; color: var(--text-muted); line-height: 1.6; }
.btn-primary { display: inline-block; background-color: var(--gold-brand); color: #ffffff; font-weight: 600; padding: 16px 32px; text-decoration: none; border-radius: 4px; transition: background-color 0.3s ease; }
.btn-primary:hover { background-color: #b08a0b; }

/* SOBRE NÓS */
.about-us-section { width: 100%; background-color: #f9f9f9; color: var(--text-primary); padding: 120px 0; border-bottom: 1px solid var(--border-color); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-images { display: flex; gap: 20px; align-items: center; justify-content: center; }
.image-wrapper { position: relative; border: 8px solid #ffffff; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); overflow: hidden; background: #ffffff; }
.img-dell { transform: translateY(-20px); z-index: 2; }
.img-carol { transform: translateY(20px); z-index: 1; }
.image-wrapper img { width: 100%; height: auto; display: block; object-fit: cover; }
.about-text h2 { color: var(--text-primary); font-size: 2.8rem; margin-bottom: 20px; font-family: var(--font-serif); }
.about-intro { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 40px; }
.bio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bio-card { background-color: #ffffff; padding: 25px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border-color); transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.bio-card:hover { border-color: var(--gold-brand); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.bio-card h3 { color: var(--text-primary); font-size: 1.2rem; margin-bottom: 5px; }
.bio-subtitle { font-size: 0.85rem; font-style: italic; color: var(--gold-brand); margin-bottom: 15px; }
.bio-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.bio-link { color: var(--gold-brand); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }

/* MODAIS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #ffffff; color: var(--text-primary); max-width: 700px; width: 90%; padding: 50px; border-radius: 8px; box-shadow: 0 25px 50px rgba(0,0,0,0.2); position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #999; font-size: 2.5rem; cursor: pointer; line-height: 1; transition: color 0.3s ease; }
.close-modal:hover { color: var(--text-primary); }
.modal-title { color: var(--text-primary); font-size: 2rem; margin-bottom: 5px; font-family: var(--font-serif); }
.modal-subtitle { font-style: italic; color: var(--gold-brand); margin-bottom: 25px; font-size: 1.1rem; }
.modal-content p { line-height: 1.7; margin-bottom: 20px; font-size: 1rem; color: var(--text-muted); }
.modal-quote { border-left: 3px solid var(--gold-brand); padding: 20px; font-style: italic; color: var(--text-primary); background-color: var(--gold-light); margin: 30px 0; border-radius: 0 4px 4px 0; }
.modal-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0; }
.modal-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-muted); }
.modal-list li svg { color: var(--gold-brand); flex-shrink: 0; }

/* CONTATO E FORMULÁRIO */
.contact-section { width: 100%; background-color: #ffffff; padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 2.8rem; font-family: var(--font-serif); margin-bottom: 15px; }
.contact-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }
.info-block { margin-bottom: 30px; }
.info-block h4 { font-size: 1.1rem; color: var(--gold-brand); margin-bottom: 8px; }
.info-block p { color: var(--text-muted); line-height: 1.5; }
.contact-form-container { background: #ffffff; padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-sans); font-size: 1rem; outline: none; transition: border-color 0.3s; background-color: #fcfcfc; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold-brand); background-color: #ffffff; }
.btn-submit { width: 100%; background: var(--gold-brand); color: #fff; border: none; padding: 16px; font-size: 1rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: #b08a0b; }
.alert-success { background: #e6f7e6; color: #2e7d32; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #c8e6c9; }

/* FOOTER */
.site-footer { width: 100%; background-color: #f9f9f9; border-top: 1px solid var(--border-color); margin-top: auto; }
.footer-container { width: 100%; max-width: var(--site-max-width); margin: 0 auto; padding: 80px 40px 40px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-logo { height: 45px; margin-bottom: 20px; object-fit: contain; }
.footer-col p { color: var(--text-muted); line-height: 1.6; font-size: 1rem; max-width: 400px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 1.2rem; color: var(--text-primary); margin-bottom: 25px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; color: var(--text-muted); font-size: 0.95rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--gold-brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: var(--site-max-width); margin: 0 auto; padding: 30px 40px; border-top: 1px solid var(--border-color); }
.footer-bottom p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.footer-legal a { color: var(--text-muted); text-decoration: none; margin: 0 8px; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--gold-brand); }

/* BOTÃO FLUTUANTE DO WHATSAPP */
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3); z-index: 999; transition: transform 0.3s ease, background-color 0.3s ease; }
.whatsapp-btn:hover { transform: scale(1.1); background-color: #20ba5a; }

/* MENU LATERAL FULL WIDTH NO MOBILE */
.mobile-sidebar { position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh; background-color: #ffffff; z-index: 2000; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: 100px 30px 40px 30px; display: flex; flex-direction: column; align-items: center; }
.mobile-sidebar.active { right: 0; }
.close-sidebar { position: absolute; top: 25px; right: 30px; background: none; border: none; font-size: 3.5rem; color: var(--text-primary); cursor: pointer; line-height: 1; z-index: 9999 !important; }
.close-sidebar:hover { color: var(--gold-brand); }
.mobile-nav { width: 100%; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 25px; text-align: center; }
.mobile-nav ul li a { text-decoration: none; color: var(--text-primary); font-size: 1.4rem; font-weight: 500; }
.mobile-nav .divider { height: 1px; background-color: var(--border-color); margin: 15px auto; width: 60%; }
.mobile-quote-btn { display: inline-block; width: fit-content; margin: 0 auto; margin-top: 10px; }


/* =========================================
   RESPONSIVIDADE (TABLETS E CELULARES)
   ========================================= */

@media (max-width: 1024px) {
    .nav-main, .nav-utility { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-container { padding: 20px 24px; }
    .main-content, .section-container { padding: 0 24px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .img-dell, .img-carol { transform: translateY(0); }
}

@media (max-width: 768px) {
    .cta-split-section { flex-direction: column; }
    .cta-image-col { min-height: 300px; }
    .cta-text-col { padding: 60px 30px; text-align: center; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-container { padding: 60px 24px 30px 24px; }
    .footer-bottom { padding: 20px 24px; }
}

@media (max-width: 600px) {
    .header-container { padding: 16px 20px; min-height: 70px; }
    .logo-container .logo img { height: 36px; } 
    
    .main-content, .section-container { padding: 0 16px; }
    .video-wrapper { height: 380px; }
    .video-pause-btn { bottom: 15px; right: 20px; }

    .products-grid, .bio-cards, .modal-list { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.1rem; }
    .cta-text-col h2 { font-size: 2rem; }
    .contact-info h2 { font-size: 2.2rem; }
    
    .whatsapp-btn { bottom: 20px; right: 20px; width: 52px; height: 52px; }

    /* DIFERENCIAIS ESPREMIDOS EM 1 LINHA SÓ (Estilo Barra de App) */
    .features-section { padding: 25px 0; }
    .features-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
    .feature-item { padding: 5px; width: 100%; align-items: center; text-align: center; }
    .feature-icon { width: 38px; height: 38px; margin-bottom: 6px; }
    .feature-icon svg { width: 18px; height: 18px; }
    .feature-title { font-size: 0.70rem; line-height: 1.1; margin-bottom: 2px; }
    .feature-desc { font-size: 0.60rem; line-height: 1.1; }

    /* Sobre Nós Compacto */
    .about-us-section { padding: 50px 0; }
    .about-text h2 { font-size: 2rem; margin-bottom: 15px; }
    .about-intro { font-size: 1rem; margin-bottom: 30px; }
    .about-images { flex-direction: row; gap: 10px; margin-bottom: 20px; }
    .image-wrapper { padding: 4px; border-width: 4px; }
    .bio-card { padding: 20px 15px; }
    .bio-card h3 { font-size: 1.1rem; }
    .bio-excerpt { font-size: 0.85rem; margin-bottom: 15px; }

    .modal-content { padding: 30px 20px; }
    .modal-title { font-size: 1.5rem; }
    .close-modal { font-size: 2.5rem; top: 15px; right: 15px; }
}