/* ==========================================================================
   HENRY MASTER GROUP (HMG) - SUPER DESIGN SYSTEM V1.5
   Correções: Título Compacto, Ajuste de Body (Block) e Banner Restaurado
========================================================================== */

:root {
  /* 🟦 Paleta HMG */
  --hmg-brand-1: #0e0e38;         /* Azul Deep */
  --hmg-brand-2: #1d1c73;         /* Azul Navy */
  --hmg-title: #1e1d76;
  
  /* 🟩 Verde de Ação */
  --hmg-accent: #34d399;   
  --hmg-accent-hover: #10b981;

  /* ⬜ Neutros e Base */
  --hmg-bg: #f8fafc;
  --hmg-card: #ffffff;
  --hmg-text: #334155;
  --hmg-muted: #64748b;
  --hmg-border: #e2e8f0;
  --hmg-soft: #f1f5f9;

  /* ⚙️ Medidas Globais */
  --header-height: 70px;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 20px 40px rgba(0,0,0,0.10);
}

/* --- 1. RESET E BASE (Correção da Home) --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 2rem); }
body { background: #f0f2f5; color: var(--hmg-text); line-height: 1.6; min-height: 100vh; display: block; }
a { color: inherit; text-decoration: none; transition: 0.2s ease; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* --- 2. HEADER (Título reajustado para ficar harmonioso) --- */
header {
  background: linear-gradient(90deg, var(--hmg-brand-1), var(--hmg-brand-2));
  color: #fff; height: auto; min-height: var(--header-height); padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,.10);
}
/* Correção do tamanho do nome da holding */
header h1 a { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: .2px; text-decoration: none; }
.logo-area .subtitle { font-size: .85rem; color: rgba(255,255,255,.85); margin-top: .15rem; }

/* Navegação */
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .9rem; opacity: .85; }
nav a:hover { opacity: 1; color: var(--hmg-accent); }
.header-actions { display: flex; gap: .75rem; align-items: center; justify-content: flex-end; }

/* Botões e Links Globais */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 0.55rem 0.9rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 1px solid transparent; white-space: nowrap; cursor: pointer; }
.btn-nav-outline { border: 1px solid rgba(255,255,255,.35); padding: .5rem .75rem; border-radius: 8px; font-weight: 800; font-size: .75rem; text-transform: uppercase; color: #fff; }
.btn-outline { color: var(--hmg-accent); border-color: var(--hmg-accent); background: transparent; }
.btn-outline:hover { background: var(--hmg-accent); color: var(--hmg-brand-1); }
.btn-primary, .btn-hero, .btn-solid { display: inline-block; padding: 0.8rem 2rem; border-radius: 5px; text-decoration: none; font-weight: bold; background: var(--hmg-brand-2); color: #fff; transition: 0.3s; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; }
.btn-primary:hover, .btn-hero:hover, .btn-solid:hover { background-color: var(--hmg-brand-1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); color: #fff; }

/* Menu Mobile (Hambúrguer) */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 0; background: transparent; border: none; }
.menu-toggle div { width: 25px; height: 3px; background: #fff; }

/* --- 3. HERO / BANNERS --- */
/* Correção: Imagem de fundo voltou a aparecer com a opacidade correta */
.banner {
  display: flex; flex-direction: column; justify-content: center; align-items: center; height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(14,14,56,0.5)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d') center/cover no-repeat;
  color: #fff; text-align: center; padding: 0 1rem;
}
.banner h2 { font-size: 2.5rem; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; }
.banner p { font-size: 1.2rem; max-width: 700px; margin-bottom: 2rem; }

.hero { background: radial-gradient(circle at top right, var(--hmg-brand-2), var(--hmg-brand-1)); color: #fff; padding: 5rem 1.5rem; text-align: center; border-bottom: 4px solid var(--hmg-accent); }
.hero h2 { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; max-width: 900px; margin: 0 auto 1.2rem; font-weight: 800; line-height: 1.2; }
.hero p { opacity: 0.9; margin-bottom: 2rem; font-size: 1.1rem; }

.hero-portal { text-align: center; padding: 3rem 1rem 2.25rem 1rem; background: var(--hmg-card); border-bottom: 1px solid var(--hmg-border); }
.hero-portal h2 { font-family: 'Montserrat', sans-serif; color: var(--hmg-title); font-size: 2rem; margin-bottom: 0.75rem; line-height: 1.15; }
.hero-portal p { max-width: 900px; margin: 0 auto; color: var(--hmg-muted); font-size: 1.05rem; }

/* --- 4. CONFIGURAÇÕES DA PÁGINA INICIAL (HOLDING) --- */
.areas { padding: 4rem 2rem; }
.areas h2 { text-align: center; margin-bottom: 3rem; font-family: 'Montserrat', sans-serif; color: var(--hmg-title); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card-custom { background: #fff; border-radius: 10px; padding: 2rem; text-align: center; text-decoration: none; color: #333; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-custom:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.card-custom i { font-size: 2.5rem; color: var(--hmg-title); margin-bottom: 0.5rem; }
.card-custom h5 { margin-top: 0.5rem; color: var(--hmg-title); font-family: 'Montserrat', sans-serif; font-size: 1.1rem; }

.pilares { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 4rem 2rem; background-color: #ffffff; }
.pilar { background: var(--hmg-title); color: #fff; padding: 2rem; border-radius: 10px; max-width: 220px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.pilar h3 { font-family: 'Montserrat', sans-serif; margin-bottom: 0.5rem; }

/* --- 5. CONFIGURAÇÕES DO BPO --- */
.section-intro { text-align: center; margin-bottom: 2.5rem; }
.section-intro h3 { font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--hmg-brand-1); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card { background: var(--hmg-card); border-radius: 24px; padding: 2.5rem; border: 1px solid var(--hmg-border); display: flex; flex-direction: column; transition: .25s; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--hmg-brand-2); }
.card-popular { border: 2px solid var(--hmg-brand-2); }
.price { font-size: 2rem; font-weight: 900; color: var(--hmg-brand-2); margin: 1.2rem 0; font-family: 'Montserrat', sans-serif; }
.price span { font-size: 1rem; color: #94a3b8; }
.price small { display: block; font-size: 0.8rem; color: var(--hmg-muted); font-weight: 600; text-transform: uppercase; }
.features { list-style: none; margin-bottom: 1.8rem; flex-grow: 1; }
.features li { margin-bottom: .9rem; display: flex; gap: 10px; font-size: 0.95rem; align-items: flex-start; color: var(--hmg-text); }
.check { color: var(--hmg-accent); margin-top: 4px; }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--hmg-accent); color: var(--hmg-brand-1); padding: 6px 14px; border-radius: 999px; font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- 6. COMPONENTES ESPECÍFICOS DO BPO / PRESTADORES --- */
.note-tech { background: #eef2ff; border: 1px solid #c7d2fe; padding: 1.25rem; border-radius: 12px; font-size: 0.88rem; max-width: 900px; margin: 1rem auto; display: flex; align-items: center; gap: 12px; text-align: left; }
.upgrade-hibrido { background: #f0fdf4; border: 2px solid var(--hmg-accent); padding: 2rem; border-radius: 20px; margin-top: 2rem; text-align: center; position: relative; }
.upgrade-hibrido h4 { font-family: 'Montserrat', sans-serif; color: #064e3b; font-size: 1.4rem; margin-bottom: 0.5rem; }
.upgrade-hibrido p { color: #065f46; font-size: 0.95rem; max-width: 800px; margin: 0 auto 1.5rem; }
.upgrade-price { font-size: 1.8rem; font-weight: 900; color: #064e3b; font-family: 'Montserrat', sans-serif; margin-bottom: 0.5rem; }
.upgrade-price span { font-size: 1rem; font-weight: 600; color: #059669; }
.custom-cta { background: var(--hmg-card); border: 2px dashed var(--hmg-border); padding: 2rem; border-radius: 20px; margin-top: 2rem; text-align: center; transition: 0.3s; }
.custom-cta:hover { border-color: var(--hmg-brand-2); background: #fdfdff; }
.custom-cta h4 { font-family: 'Montserrat', sans-serif; color: var(--hmg-brand-1); margin-bottom: 0.5rem; }
.custom-cta p { font-size: 0.95rem; color: var(--hmg-muted); margin-bottom: 1.5rem; }
.btn-outline-custom { background: transparent; border: 2px solid var(--hmg-brand-2); color: var(--hmg-brand-2); padding: 0.8rem 1.5rem; border-radius: 10px; font-weight: 800; cursor: pointer; display: inline-block; transition: 0.3s; }
.btn-outline-custom:hover { background: var(--hmg-brand-2); color: #fff; }

/* Tabelas */
.table-wrapper { overflow-x: auto; margin-top: 2.5rem; border: 1px solid var(--hmg-border); border-radius: 16px; background: var(--hmg-card); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th { background: var(--hmg-soft); padding: 1.25rem; text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--hmg-brand-1); }
td { padding: 1.1rem 1.25rem; border-top: 1px solid var(--hmg-soft); font-size: .92rem; color: var(--hmg-text); }

/* Formulários */
.form-section { background: var(--hmg-card); padding: 3.5rem; border-radius: 24px; border: 1px solid var(--hmg-soft); margin-top: 4rem; }
form { display: grid; gap: 1.2rem; max-width: 800px; margin: 0 auto; }
label { font-weight: 800; font-size: .85rem; color: var(--hmg-brand-1); margin-bottom: 4px; display: block; }
input, select, textarea { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: var(--hmg-soft); font-size: 1rem; outline: none; }
textarea { resize: vertical; min-height: 120px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.checkbox-group { display: flex; align-items: center; gap: 10px; background: var(--hmg-soft); padding: 14px; border: 1px solid #cbd5e1; border-radius: 12px; }
.checkbox-group input { width: auto; transform: scale(1.2); }
.checkbox-group label { margin-bottom: 0; font-size: 0.95rem; cursor: pointer; color: var(--hmg-text); font-weight: 600; }
.btn-submit { background: var(--hmg-brand-2); color: #fff; padding: 1.2rem; border-radius: 12px; font-weight: 900; border: none; cursor: pointer; width: 100%; transition: 0.3s; font-size: 1rem; }
.btn-submit:hover { background: var(--hmg-brand-1); }
.disclaimer-hmg { background: var(--hmg-soft); border: 1px solid var(--hmg-border); padding: 2.2rem; border-radius: 16px; margin-top: 3rem; font-size: 0.88rem; color: var(--hmg-text); text-align: center; }
.disclaimer-hmg strong { color: var(--hmg-brand-1); }

/* Portal de Prestadores (Iframes e Sanfonas) */
.form-main-container { max-width: 1100px; margin: 0 auto 4rem auto; background: var(--hmg-card); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid var(--hmg-border); }
.form-header { background: var(--hmg-soft); padding: 1.25rem; text-align: center; border-bottom: 1px solid var(--hmg-border); }
.form-header p { color: var(--hmg-text); }
.form-header strong { color: var(--hmg-brand-1); }
.form-header .mini { margin-top: .4rem; font-size: .9rem; color: var(--hmg-muted); }
.area-selector { padding: 1.5rem; }
.area-selector h3 { font-family: 'Montserrat', sans-serif; color: var(--hmg-title); margin-bottom: 1rem; font-size: 1.15rem; }
.form-details { border: 2px solid var(--hmg-border); border-radius: var(--radius); margin-bottom: 1rem; transition: all 0.3s ease; background: #fff; overflow: hidden; }
.form-details[open] { border-color: var(--hmg-accent); }
.form-details summary { padding: 1.2rem; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--hmg-brand-1); background: var(--hmg-soft); }
.form-details summary:hover { background: var(--hmg-soft); }
.form-details summary::-webkit-details-marker { display: none; }
.form-details summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; transition: transform 0.3s; }
.form-details[open] summary::after { transform: rotate(180deg); }
.iframe-container { border-top: 1px solid var(--hmg-border); background: #fff; }
.form-details iframe { width: 100%; height: 900px; border: none; display: block; }

/* FAQ (Prestadores) */
.faq { margin: 0 auto 2.75rem auto; padding: 0 1rem; max-width: 1100px; }
.faq-card { background: var(--hmg-card); border: 1px solid var(--hmg-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.faq-card h3 { font-family: 'Montserrat', sans-serif; color: var(--hmg-title); font-size: 1.15rem; margin-bottom: .75rem; }
.faq details { border: 1px solid var(--hmg-border); border-radius: 10px; padding: .85rem 1rem; margin-bottom: .75rem; background: #fbfdff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--hmg-brand-1); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: .55rem; color: var(--hmg-text); font-size: .95rem; }

/* --- 7. CONFIGURAÇÕES DO SUPORTE --- */
.support-intro { text-align: center; padding: 3rem 1rem 2rem; }
.support-intro h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--hmg-title); font-family: 'Montserrat', sans-serif; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: auto; padding: 2rem; }
.support-card { background: #fff; border-radius: 10px; padding: 1.8rem; text-align: center; border-left: 5px solid var(--hmg-title); box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.2s ease; display: block; color: #333; }
.support-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.support-card i { font-size: 2.3rem; color: var(--hmg-title); margin-bottom: 0.5rem; }
.support-card h3 { margin-bottom: 0.4rem; font-size: 1.2rem; font-family: 'Montserrat', sans-serif; }
.support-card p { font-size: 0.92rem; color: #555; }
.card-prestadores { border-left: 5px solid var(--hmg-accent); background: #f8fafc; }
.card-prestadores i { color: #10b981; }

/* --- 8. FOOTER UNIFICADO --- */
footer { background: linear-gradient(90deg, var(--hmg-brand-1), var(--hmg-brand-2)); color: white; padding: 4rem 1.5rem; text-align: center; }
.footer-socials { margin-bottom: 1.5rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-socials a { color: #fff; font-size: 1.5rem; transition: 0.3s; opacity: 0.8; }
.footer-socials a:hover { color: var(--hmg-accent); opacity: 1; transform: translateY(-3px); }
.footer-links { margin-bottom: 1.5rem; }
.footer-links a { color: var(--hmg-accent); text-decoration: none; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links a:hover { text-decoration: underline; color: var(--hmg-accent-hover); }
footer small { display: block; margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* --- 9. RESPONSIVO MOBILE --- */
@media (max-width: 768px) {
  header { flex-direction: column; padding: 1.1rem 1rem; text-align: center; }
  .header-actions { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.8rem; }
  .form-details iframe { height: 1200px; }
  .menu-toggle { display: flex; }
  nav { display: none; flex-direction: column; position: absolute; top: 60px; right: 20px; background: var(--hmg-brand-2); padding: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
  nav.active { display: flex; }
}
