/* ==========================================================================
   HENRY MASTER GROUP (HMG) - SUPER DESIGN SYSTEM
   Consolidação: BPO (index2) + Prestadores (index3) + Holding
========================================================================== */

: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: 12px;
  --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 --- */
* { 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: var(--hmg-bg); color: var(--hmg-text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: inherit; text-decoration: none; transition: 0.2s ease; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* --- 2. HEADER UNIFICADO (Suporta Menu Simples e Ações) --- */
header {
  background: linear-gradient(90deg, var(--hmg-brand-1), var(--hmg-brand-2));
  color: #fff; height: auto; min-height: var(--header-height); padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,.10);
}
.logo-area h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.logo-area h1 a { color: #fff; }
.logo-area .subtitle { font-size: .85rem; color: rgba(255,255,255,.85); margin-top: .15rem; }

/* Navegação e Ações (Header) */
nav { display: flex; gap: 1.1rem; align-items: center; }
nav a { color: #fff; font-weight: 500; font-size: .82rem; 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 do Header e 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-solid, .btn-hero, .btn-primary { color: var(--hmg-brand-1); background: var(--hmg-accent); border-color: var(--hmg-accent); font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.1); padding: 1rem 2.25rem; border-radius: var(--radius); }
.btn-solid:hover, .btn-hero:hover, .btn-primary:hover { background: var(--hmg-accent-hover); transform: translateY(-2px); color: #fff; }

/* Menu Mobile (Hambúrguer) */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.menu-toggle div { width: 24px; height: 3px; background: #fff; border-radius: 2px; }

/* --- 3. HERO / BANNERS --- */
.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. GRADES E CARTÕES (BPO e PRESTADORES) --- */
.section-intro { text-align: center; margin-bottom: 2.5rem; padding-top: 4rem; }
.section-intro h3 { font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--hmg-brand-1); }

/* BPO: Pricing Grid */
.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: var(--radius-lg); 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: var(--hmg-muted); }
.price small { display: block; font-size: 0.8rem; 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; }
.check { color: var(--hmg-accent); margin-top: 4px; }

/* Prestadores: Benefícios Grid */
.beneficios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; max-width: 1100px; margin: 0 auto 2.75rem auto; padding: 0 1rem; }
.beneficio-card { background: var(--hmg-card); padding: 1.6rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; border-top: 4px solid var(--hmg-accent); border: 1px solid var(--hmg-border); }
.beneficio-card i { font-size: 1.9rem; color: var(--hmg-title); margin-bottom: .85rem; }
.beneficio-card h4 { margin-bottom: 0.45rem; color: var(--hmg-title); font-weight: 800; font-family: 'Montserrat', sans-serif; }
.beneficio-card p { font-size: 0.9rem; color: var(--hmg-muted); }

/* Avisos e Badges */
.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; }
.notice-wrap { margin-top: -1.5rem; margin-bottom: 2.25rem; }
.notice-card { background: var(--hmg-card); border: 1px solid var(--hmg-border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); text-align: left; }
.notice-card h3 { font-family: 'Montserrat', sans-serif; color: var(--hmg-title); font-size: 1.05rem; margin-bottom: .75rem; }
.notice-card ul { padding-left: 1.15rem; color: var(--hmg-text); }
.notice-card li { margin-bottom: .4rem; }
.notice-badges { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.notice-badges .badge { position: relative; top: 0; left: 0; transform: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; padding: .35rem .55rem; background: var(--hmg-soft); color: var(--hmg-text); border: 1px solid var(--hmg-border); font-weight: 600; text-transform: none; letter-spacing: normal; }
.notice-badges .badge i { color: var(--hmg-title); }

/* --- 5. COMPONENTES ESPECÍFICOS BPO --- */
.note-tech { background: #eef2ff; border: 1px solid #c7d2fe; padding: 1.25rem; border-radius: var(--radius); 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: var(--radius-lg); 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: var(--radius-lg); 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: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th { background: var(--hmg-bg); 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; }

/* --- 6. FORMULÁRIOS E IFRAMES --- */
/* Estilo BPO (Nativo) */
.form-section { background: var(--hmg-card); padding: 3.5rem; border-radius: 24px; border: 1px solid var(--hmg-soft); margin-top: 4rem; margin-bottom: 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-bg); 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-bg); 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; text-align: center; }

/* Estilo Prestadores (iFrame e Sanfonas) */
.form-main-container { max-width: 1100px; margin: 0 auto 4rem auto; background: var(--hmg-card); border-radius: var(--radius-lg); 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-bg); }
.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; }

/* --- 7. 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; }

/* --- 8. FOOTER UNIFICADO --- */
footer { background: linear-gradient(90deg, var(--hmg-brand-1), var(--hmg-brand-2)); color: #fff; padding: 3.25rem 1.5rem; text-align: center; margin-top: auto; }
.footer-socials { margin-bottom: 1.25rem; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-socials a { color: #fff; font-size: 1.5rem; transition: 0.2s ease; opacity: 0.85; }
.footer-socials a:hover { color: var(--hmg-accent); opacity: 1; transform: translateY(-2px); }
.footer-info { margin-bottom: 1.25rem; font-size: 0.95rem; opacity: 0.85; }
footer small { opacity: 0.9; }

/* --- 9. RESPONSIVO MOBILE --- */
@media (max-width: 768px) {
  header { flex-direction: column; text-align: center; padding: 1.1rem 1rem; }
  .header-actions { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.8rem; }
  .hero-portal { padding: 2.5rem 1rem 2rem 1rem; }
  .hero-portal h2 { font-size: 1.55rem; }
  .hero-portal p { font-size: 1rem; }
  .form-details iframe { height: 1200px; }

  /* Ajuste Menu BPO para Mobile */
  .menu-toggle { display: flex; }
  nav { display: none; flex-direction: column; position: absolute; top: calc(var(--header-height) + 8px); right: 14px; background: var(--hmg-brand-2); padding: 14px; border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.25); min-width: 220px; border: 1px solid rgba(255,255,255,.12); }
  nav.active { display: flex; }
  nav a { opacity: 1; font-size: .9rem; padding: 10px; border-radius: 10px; }
  nav a:hover { background: rgba(255,255,255,.08); color: var(--hmg-accent); }
  .btn-nav-outline { width: 100%; text-align: center; border-color: rgba(255,255,255,.25); }
}
