/* ==========================================================================
   HABITANEXA - ESTILOS MOBILE-FIRST & HIGH-CONVERSION
   Identidade: Azul Marinho (#071E4A), Laranja Vibrante (#FF6E00), Ouro (#FFB800)
   ========================================================================== */

:root {
  /* Cores Oficiais da Marca */
  --c-navy: #071E4A;
  --c-navy-light: #0D2D6C;
  --c-blue: #0077D7;
  --c-orange: #FF6E00;
  --c-orange-hover: #E56300;
  --c-orange-glow: rgba(255, 110, 0, 0.25);
  --c-yellow: #FFB800;
  
  --c-bg: #FFFFFF;
  --c-bg-light: #F4F7FB;
  --c-card: #FFFFFF;
  
  --c-text-dark: #0A1629;
  --c-text-body: #475569;
  --c-text-muted: #64748B;
  
  --c-wa: #25D366;
  --c-wa-hover: #1EBE5D;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(7, 30, 74, 0.05);
  --shadow-md: 0 10px 30px rgba(7, 30, 74, 0.08);
  --shadow-lg: 0 18px 40px -10px rgba(7, 30, 74, 0.15);
  --transition: all 0.22s ease-in-out;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--c-bg);
  color: var(--c-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 74px; /* Espaço para a barra fixa no mobile */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.bg-light {
  background-color: var(--c-bg-light);
}

.text-center {
  text-align: center;
}

.text-white {
  color: #FFFFFF !important;
}

.text-light {
  color: #CBD5E1 !important;
}

.text-orange {
  color: var(--c-orange);
}

.text-blue {
  color: var(--c-blue);
}

/* Tipografia */
h1, h2, h3, h4 {
  color: var(--c-text-dark);
  font-weight: 700;
  line-height: 1.25;
}

.sec-header {
  max-width: 680px;
  margin: 0 auto 36px;
}

.sec-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-orange);
  background: rgba(255, 110, 0, 0.1);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.sec-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.sec-sub {
  font-size: 1rem;
  color: var(--c-text-muted);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-orange {
  background: linear-gradient(135deg, var(--c-orange) 0%, #FF851A 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--c-orange-glow);
}

.btn-orange:hover {
  background: var(--c-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 110, 0, 0.4);
}

.btn-navy {
  background: var(--c-navy);
  color: #FFFFFF;
}

.btn-navy:hover {
  background: var(--c-navy-light);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--c-navy);
  color: var(--c-navy);
}

.btn-outline-navy:hover {
  background: var(--c-navy);
  color: #FFFFFF;
}

.btn-outline-orange {
  background: transparent;
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.btn-outline-orange:hover {
  background: var(--c-orange);
  color: #FFFFFF;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-pulse {
  animation: subtle-pulse 2.5s infinite;
}

@keyframes subtle-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 110, 0, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(255, 110, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 110, 0, 0); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(7, 30, 74, 0.08);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(7, 30, 74, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name strong {
  color: var(--c-orange);
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-text-dark);
  transition: var(--transition);
}

.nav-desktop a:hover {
  color: var(--c-orange);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-full);
  color: #166534;
  font-size: 0.85rem;
  transition: var(--transition);
}

.header-phone:hover {
  background: #DCFCE7;
  transform: scale(1.02);
}

.phone-icon {
  font-size: 1.1rem;
}

.phone-info small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #15803D;
  font-weight: 700;
  line-height: 1;
}

.phone-info strong {
  font-size: 0.9rem;
  color: #14532D;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--c-bg-light) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-navy);
  background: rgba(7, 30, 74, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 8px var(--c-orange);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--c-text-body);
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-pillars {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pillar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-navy);
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(7, 30, 74, 0.12);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-trust-tag {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

/* Hero Media (Foto da Casa Moderna) */
.hero-media {
  position: relative;
}

.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
}

.media-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .media-img {
  transform: scale(1.03);
}

.media-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(7, 30, 74, 0.92);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-floating-badge .badge-icon {
  font-size: 1.4rem;
}

.media-floating-badge strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.media-floating-badge p {
  font-size: 0.78rem;
  color: #CBD5E1;
  margin: 0;
}

/* Soluções Compactas (3 Cards) */
.solutions-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.sol-box {
  background: var(--c-card);
  border: 1px solid rgba(7, 30, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.sol-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 110, 0, 0.3);
}

.featured-box {
  border-color: var(--c-orange);
  box-shadow: var(--shadow-md);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--c-orange);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.sol-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sol-emoji {
  font-size: 2rem;
}

.sol-top h3 {
  font-size: 1.25rem;
}

.sol-badge-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-orange);
  background: rgba(255, 110, 0, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tag-blue {
  color: var(--c-blue);
  background: rgba(0, 119, 215, 0.1);
}

.sol-desc {
  font-size: 0.92rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.sol-items {
  margin-bottom: 24px;
  margin-top: auto;
}

.sol-items li {
  font-size: 0.85rem;
  color: var(--c-text-body);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Seção do Casal / Segurança & Confiança */
.trust-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.trust-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.trust-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.trust-overlay-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(7, 30, 74, 0.08);
}

.check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-overlay-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--c-navy);
}

.trust-overlay-card small {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

.trust-p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.trust-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--c-text-dark);
}

.check-item .ck {
  color: #16A34A;
  font-weight: 800;
}

/* Comparativo Rápido */
.compare-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.comp-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(7, 30, 74, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.highlight-comp {
  border-color: var(--c-orange);
  box-shadow: var(--shadow-md);
}

.comp-head {
  padding: 16px 20px;
}

.blue-head {
  background: rgba(0, 119, 215, 0.08);
  color: var(--c-navy);
}

.orange-head {
  background: rgba(255, 110, 0, 0.12);
  color: var(--c-navy);
}

.comp-head h4 {
  font-size: 1.2rem;
}

.comp-head span {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  font-weight: 600;
}

.comp-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  flex-grow: 1;
}

.comp-body button {
  margin-top: auto;
}

/* Simulador Rápido */
.sim-container {
  max-width: 680px;
}

.sim-wrapper {
  background: linear-gradient(145deg, #071E4A 0%, #0D2D6C 100%);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
}

.sim-form {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin: 24px 0 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 8px;
}

.options-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--c-bg-light);
  border: 1px solid rgba(7, 30, 74, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  border-color: var(--c-orange);
}

.pill-btn.active {
  background: var(--c-orange);
  color: #FFFFFF;
  border-color: var(--c-orange);
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(7, 30, 74, 0.18);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--c-text-dark);
  transition: var(--transition);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 110, 0, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sim-guarantee {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  text-align: center;
  margin-top: 10px;
}

.legal-box {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  font-size: 0.75rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* Rodapé */
.footer {
  background: #051433;
  color: #CBD5E1;
  padding: 40px 0 20px;
  font-size: 0.88rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.footer-brand .brand-name {
  color: #FFFFFF;
}

.footer-slogan {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 8px;
  font-style: italic;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-phone-big a {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-orange);
}

.footer-time {
  font-size: 0.8rem;
  color: #94A3B8;
}

.copyright {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 6px;
}

/* Barra Fixa Mobile (WhatsApp no Rodapé do Celular) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  z-index: 999;
}

.btn-mobile-cta {
  font-size: 0.95rem;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   OTIMIZAÇÕES RESPONSIVAS MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: block;
  }

  .header-phone {
    padding: 6px 10px;
  }

  .phone-info small {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    padding: 24px 0 40px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .media-img, .trust-img {
    height: 240px;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sim-wrapper {
    padding: 24px 16px;
  }

  .sim-form {
    padding: 18px 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

/* ==========================================================================
   MODAL DE POLÍTICA DE PRIVACIDADE (NATIVO <DIALOG>)
   ========================================================================== */
.custom-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 580px;
  width: 92%;
}

.custom-modal::backdrop {
  background: rgba(7, 30, 74, 0.75);
  backdrop-filter: blur(6px);
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(7, 30, 74, 0.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--c-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--c-orange);
}

.modal-header {
  margin-bottom: 20px;
  padding-right: 24px;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--c-navy);
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-weight: 600;
}

.modal-body-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 0.9rem;
  color: var(--c-text-body);
  line-height: 1.6;
}

.modal-body-scroll h4 {
  font-size: 1rem;
  color: var(--c-navy);
  margin: 16px 0 6px;
}

.modal-body-scroll p {
  margin-bottom: 12px;
}

.modal-footer {
  margin-top: 24px;
}
