/* ==========================================================================
   Fênix Convênio Funerário — Design System & Tokens
   ========================================================================== */
:root {
  --bg: #f7f7f5;
  --bg-dark: #0a1124;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --surface-3: #e8eaf0;
  --fg: #14213d;
  --fg-soft: #4a5568;
  --muted: #7a8294;
  --border: #e6e7eb;
  --border-light: #f0f1f4;
  --primary: #14213d;
  --primary-2: #1f3160;
  --primary-3: #2d437e;
  --primary-light: #f0f4fc;
  --primary-fg: #ffffff;
  --gold: #c9a24c;
  --gold-2: #e6c878;
  --gold-3: #b08938;
  --gold-light: #fbf7ed;
  --gold-fg: #14213d;
  --sage: #7da387;
  --sage-2: #92b79b;
  --sage-light: #f2f7f3;
  --sage-fg: #14213d;
  --danger: #b3261e;
  --danger-light: #fdf2f2;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 30px -12px rgba(20,33,61,.18);
  --shadow-elegant: 0 20px 60px -20px rgba(20,33,61,.28);
  --container: 1200px;
  --font-serif: "Montserrat", Georgia, serif;
  --font-sans: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Reset & Tags Globais
   ========================================================================== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%; 
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { 
  max-width: 100%; 
  display: block; 
  height: auto; 
}
a { 
  color: inherit; 
  text-decoration: none; 
}
button { 
  font: inherit; 
  cursor: pointer; 
  border: 0; 
  background: none; 
  color: inherit; 
}

/* Tipografia */
h1, h2, h3, h4 { 
  font-family: var(--font-serif); 
  font-weight: 600; 
  letter-spacing: -0.01em; 
  line-height: 1.15; 
  color: var(--fg); 
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { color: var(--fg-soft); }

/* Elements */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.divider { 
  height: 1px; 
  background: linear-gradient(90deg, transparent, var(--gold), transparent); 
  margin: 2rem 0; 
}

/* ==========================================================================
   Componentes: Botões
   ========================================================================== */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem; 
  font-weight: 500;
  transition: transform .2s, opacity .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-2); }
.btn-gold { background: var(--gold); color: #ffffff; box-shadow: var(--shadow-soft); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { border: 1px solid var(--border); color: var(--fg); background: #fff; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* ==========================================================================
   Layout & Grid Estrutural
   ========================================================================== */
.container { 
  width: 100%;
  max-width: var(--container); 
  margin: 0 auto; 
  padding: 0 1.25rem;
}
section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-accent {
  background-color: var(--gold-light);
  border-top: 1px solid rgba(201,162,76,0.15);
  border-bottom: 1px solid rgba(201,162,76,0.15);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head p { font-size: 1.05rem; }

/* Grids Dinâmicos */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-elegant); }

/* Cards Genéricos */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(201,162,76,.15), rgba(201,162,76,.05));
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: .6rem; }

/* ==========================================================================
   Componente: Header & Navigation
   ========================================================================== */
.header {
  position: sticky; 
  top: 0; 
  z-index: 99999 !important;
  background: rgba(247, 247, 245, .85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: box-shadow .2s, background .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.header.scrolled { background: #ffffff; box-shadow: var(--shadow-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

/* Barra Superior Dourada */
.header-top {
  background: var(--gold);
  padding: 8px 0;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.header-top-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.header-top-item a {
  color: #fff;
  font-weight: 500;
  transition: opacity 0.2s;
}
.header-top-item a:hover { opacity: 0.85; }

/* Identidade Visual (Logo) */
.logo { 
  display: flex; 
  align-items: center; 
  font-family: var(--font-serif); 
  font-size: 1.8rem; 
  font-weight: 600; 
  color: var(--fg); 
  margin: 0;
  max-width: none;
}
.logo-mark {
  width: 250px;
  height: 100px;
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo small { 
  display: block; 
  font-family: var(--font-sans); 
  font-size: 11px; 
  letter-spacing: .18em; 
  color: var(--muted); 
  text-transform: uppercase; 
}

/* Links do Menu */
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  position: relative;
  padding: .55rem .9rem;
  font-size: .92rem; font-weight: 500;
  color: var(--fg-soft);
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem;
  height: 1px; background: var(--gold);
}
.header-cta { display: flex; gap: .5rem; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; }

/* Dropdown Interno */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-radius: 6px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.dropdown-menu a {
  color: #333333;
  padding: 10px 20px;
  display: block;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #000000;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.arrow {
  font-size: 9px;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.dropdown:hover .arrow { transform: rotate(180deg); }

/* ==========================================================================
   Seção: Hero Blocks
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 86vh;
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-3) 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../images/hero-family.png");
  background-size: cover; background-position: center;
  opacity: .35;
}
.hero-overlay { position: absolute; inset: 0; }
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { color: #ffffff; font-size: 1.15rem; max-width: 52ch; margin: 1.25rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-badge { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: #ffffff; }
.hero-badge svg { color: var(--gold); flex-shrink: 0; }

/* Page Hero Internas */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--primary-3) 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: #ffffff; max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

/* ==========================================================================
   Seção: Planos de Benefícios
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-elegant); }
.plan.featured { background: linear-gradient(180deg, #14213d, #1f3160); color: #fff; border-color: transparent; transform: scale(1.02); }
.plan.featured h3, .plan.featured .plan-price { color: #fff; }
.plan.featured p, .plan.featured li { color: #ffffff; }
.plan.featured .plan-tag { background: var(--gold); color: var(--gold-fg); }

.plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: .25rem .85rem; border-radius: 999px; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.plan h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.plan-sub { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.plan.featured .plan-sub { color: #ffffff; }
.plan-price { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: var(--primary); }
.plan-price small { font-family: var(--font-sans); font-size: .85rem; color: var(--muted); font-weight: 400; }
.plan.featured .plan-price small { color: #ffffff; }

.plan ul { list-style: none; margin: 1.5rem 0; flex: 1; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; font-size: .92rem; }
.plan li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ==========================================================================
   Seções: FAQ & Indicadores (Stats)
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  font-weight: 500; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .85rem;}

/* Bloco Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { position: relative; padding: 1rem 0; }
.stat-item:not(:last-child)::after {
  content: ""; position: absolute; right: -1rem; top: 25%; height: 50%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-2), transparent);
}
.stat-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; color: var(--primary); display: block; }
.stat-label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* ==========================================================================
   Seções: CTA & Formulários de Contato
   ========================================================================== */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #14213d, #1f3160);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  margin: 5rem auto;
  max-width: var(--container);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center;
  box-shadow: var(--shadow-elegant);
}
.cta::before { content: ""; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(201,162,76,.18); filter: blur(60px); }
.cta::after { content: ""; position: absolute; bottom: -80px; left: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(125,163,135,.18); filter: blur(60px); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #ffffff; margin-top: 1rem; }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; }

/* Estruturas de Contato Internas */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface-2);
  margin-bottom: 1rem;
}
.contact-card svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-card strong { display: block; color: var(--fg); margin-bottom: .15rem; }
.contact-card span { font-size: .92rem; color: var(--fg-soft); }

/* Form Elements */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: var(--fg); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20,33,61,.08);
}
.form-success {
  background: #ecf6ef; border: 1px solid #c8e3d0; color: #1f5b35;
  padding: 1rem 1.25rem; border-radius: 10px; font-size: .95rem;
}

/* ==========================================================================
   Seção: Rodapé (Footer)
   ========================================================================== */
.footer { background: #0d172e; color: #ffffff; margin-top: 5rem; }
.footer-inner { padding: 4rem 0 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer h4 { color: #fff; font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.footer a { text-decoration: none !important; }
.footer a:hover { color: var(--gold); }
.footer .logo { color: #fff; }
.footer .logo small { color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; font-size: .82rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, color .2s; }
.social a:hover { background: var(--gold); color: var(--gold-fg); }

/* ==========================================================================
   Componente Integrado: Modal WhatsApp Global
   ========================================================================== */
.wa-container, .wa-container *, div#waModalDesktop.wa-modal, div#waModalDesktop.wa-modal * { box-sizing: border-box !important; text-transform: none !important; letter-spacing: normal !important; font-family: Arial, Helvetica, sans-serif !important; }
.wa-container { position: fixed !important; bottom: 20px !important; right: 20px !important; z-index: 9999999 !important; width: 60px !important; height: 60px !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; }
.wa-float { background-color: #25d366 !important; color: white !important; border: none !important; width: 60px !important; height: 60px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important; cursor: pointer; padding: 0 !important; margin: 0 !important; transition: transform 0.2s !important; }
.wa-float:hover { transform: scale(1.05) !important; }
.wa-float svg { width: 30px !important; height: 30px !important; fill: #fff !important; display: block !important; }

div#waModalDesktop.wa-modal { display: none; position: absolute !important; bottom: 75px !important; right: 0 !important; top: auto !important; left: auto !important; width: 320px !important; height: auto !important; z-index: 99999999 !important; background: none !important; padding: 0 !important; margin: 0 !important; }
#waModalDesktop .wa-modal-content { background-color: #e5ddd5 !important; border-radius: 10px !important; overflow: hidden !important; box-shadow: 0 5px 25px rgba(0,0,0,0.3) !important; position: relative !important; width: 100% !important; border: none !important; }
#waModalDesktop .wa-modal-content::after { content: '' !important; position: absolute !important; bottom: -10px !important; right: 20px !important; border-width: 10px 10px 0 !important; border-style: solid !important; border-color: #e5ddd5 transparent !important; display: block !important; width: 0 !important; height: 0 !important; }
#waModalDesktop .wa-modal-header { background-color: #075e54 !important; padding: 12px 15px !important; color: white !important; display: flex !important; align-items: center !important; position: relative !important; border: none !important; }
#waModalDesktop .wa-avatar { background-color: #128c7e !important; width: 35px !important; height: 35px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; margin-right: 10px !important; }
#waModalDesktop .wa-avatar svg { width: 20px !important; height: 20px !important; fill: #fff !important; }
#waModalDesktop .wa-header-text { display: flex !important; flex-direction: column !important; text-align: left !important; }
#waModalDesktop .wa-name { font-weight: bold !important; font-size: 14px !important; color: #ffffff !important; }
#waModalDesktop .wa-status { font-size: 11px !important; color: #dcf8c6 !important; }
#waModalDesktop .wa-close { position: absolute !important; right: 15px !important; top: 50% !important; transform: translateY(-50%) !important; color: white !important; font-size: 24px !important; font-weight: bold !important; cursor: pointer !important; }
#waModalDesktop .wa-modal-body { padding: 15px !important; background-color: #e5ddd5 !important; }
#waModalDesktop .wa-msg-bubble { background-color: white !important; padding: 10px 12px !important; border-radius: 0 10px 10px 10px !important; margin-bottom: 15px !important; font-size: 13px !important; color: #4a4a4a !important; box-shadow: 0 1px 1px rgba(0,0,0,0.1) !important; text-align: left !important; }
#waModalDesktop .wa-input-group { margin-bottom: 10px !important; width: 100% !important; }
#waModalDesktop .wa-input-group input { width: 100% !important; height: auto !important; padding: 10px 15px !important; border: 1px solid #ccc !important; border-radius: 20px !important; font-size: 13px !important; background-color: #ffffff !important; color: #333333 !important; }
#waModalDesktop .wa-submit-btn { width: 100% !important; background-color: #25d366 !important; color: white !important; border: none !important; padding: 11px !important; border-radius: 20px !important; font-size: 14px !important; font-weight: bold !important; cursor: pointer !important; }

.wa-global-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; }
.wa-mobile-only { display: none !important; }
.wa-desktop-only { display: block !important; }

/* ==========================================================================
   Animações & Utilities Básicas
   ========================================================================== */
@keyframes ping {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.visible { opacity: 1; transform: none; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* ==========================================================================
   Media Queries: Breakpoint Médio (Tablets até 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) { 
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } 
    .split, .split.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .nav, .header-cta { display: none; }
    .menu-toggle { 
        display: grid; 
        place-items: center; 
        position: relative;
        z-index: 9999999 !important;
    }

    .nav.open {
        display: flex !important; 
        flex-direction: column !important; 
        align-items: stretch !important; 
        gap: .25rem;

        position: fixed !important; 
        top: 104px !important;
        left: 0 !important; 
        right: 0 !important;
        width: 100vw !important;
        
        background: #ffffff !important; 
        border-top: 1px solid var(--border) !important;
        border-bottom: 3px solid var(--gold) !important;
        padding: 1rem 1.5rem !important;

        max-height: calc(100vh - 104px) !important;
        overflow-y: auto !important;
        z-index: 999998 !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    }
    .nav.open a { 
        padding: .85rem 1rem; 
        border-radius: 10px; 
        display: block;
        width: 100%;
    }
    .nav.open a.active, .nav.open a:hover { background: var(--surface-2); }

    .dropdown-menu {
        position: static; 
        width: 100%; 
        box-shadow: none; 
        padding: 0 0 0 1.5rem;
        background-color: transparent; 
        border-radius: 0;
        opacity: 0; 
        visibility: hidden; 
        max-height: 0; 
        overflow: hidden; 
        transform: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; max-height: 300px; padding: .5rem 0 .5rem 1.5rem; }
    .dropdown.open .arrow { transform: rotate(180deg); }
    .dropdown-menu a { padding: .65rem 1rem; }
}

/* ==========================================================================
   Media Queries: Breakpoint Smartphone (Mobile até 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .hero .container {
        -webkit-backdrop-filter: blur(8px);
        padding: 2.5rem 1.5rem !important;
        border-radius: var(--radius-lg);
        margin: 0 1rem !important;
        width: calc(100% - 2rem) !important;
    }
    .hero {
        padding: 4rem 0 !important;
        min-height: auto !important;
    }

  /* Utilitários globais de contenção de tela */
  .m-hide { display: none !important; }
  .header { width: 100% !important; }

  /* Barra Superior Otimizada */
  .header-top { padding: 4px 0 !important; }
  .header-top-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
  }
  .header-top-item {
    font-size: 11px !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100%;
  }
  .header-top-item a { word-break: break-all; }

  /* Ajuste Fixo e Seguro para Identidade do Cabeçalho */
  .header-inner { padding: 0 12px !important; height: 60px !important; }
  .logo { font-size: 1.2rem !important; }
  .logo-mark { width: 130px !important; height: 45px !important; margin: 0 !important; }
  .logo-mark img { max-height: 100% !important; width: auto !important; object-fit: contain !important; }

  /* Blocos Estruturais Grid no Celular */
  .stats { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .cta { grid-template-columns: 1fr; padding: 2.5rem 1.75rem; margin: 3rem 1rem; }

  /* Rodapé Responsivo */
  .footer { padding-left: 20px !important; padding-right: 20px !important; }

  /* Visibilidade Alternada do Componente do WhatsApp */
  .wa-desktop-only { display: none !important; }
  .wa-mobile-only { display: block !important; }
}

/* ==========================================================================
   Media Queries: Breakpoint Ultra-Mini (Até 600px)
   ========================================================================== */
@media (max-width: 600px) { 
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } 
  .plans { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}