@import url('fonts.css');

/* ═══════════════════════════════════════════════════════════
   CARTÃO SAÚDE REUNIC
   Montserrat · Índigo #2D3095 · Azul #1176B9 · Laranja #FF8400
   Header: branco
═══════════════════════════════════════════════════════════ */

:root {
  --primary:       #2D3095;
  --primary-dark:  #1A1B6E;
  --primary-light: #E8E9F8;
  --secondary:     #1176B9;
  --accent:        #FF8400;
  --accent-light:  #FFF3E0;
  --header-bg:     #FFFFFF;

  --dark:          #111827;
  --dark-2:        #1f2937;
  --text:          #111827;
  --text-soft:     #6B7280;
  --text-lighter:  #9CA3AF;
  --bg:            #FFFFFF;
  --bg-alt:        #F4F6FF;
  --border:        #E5E7EB;

  --header-h:      72px;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.12);
  --shadow-primary:0 8px 32px rgba(45,48,149,.22);
  --t:             all .28s ease;
  --max-w:         1200px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button{ cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Container / Layout ────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 28px; }

.section     { padding-block: 96px; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.grid-2-reverse { grid-template-columns: 1fr 1.1fr; }

/* Section header */
.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-label-accent {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-subtitle { font-size: .98rem; color: var(--text-soft); max-width: 620px; margin-inline: auto; line-height: 1.75; }

/* Dark variants (white section) */
.section-title-dark   { font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 14px; }
.section-subtitle-dark{ font-size: .98rem; color: rgba(255,255,255,.82); max-width: 580px; margin-inline: auto; line-height: 1.75; }

/* ── Scroll animation ──────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.animate-in.visible { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  transition: var(--t);
  white-space: nowrap;
}
.btn i { width: 17px; height: 17px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(45,48,149,.3); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,132,0,.3);
}
.btn-accent:hover { background: #e07400; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,132,0,.35); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); }

.btn-header {
  background: var(--primary);
  color: #fff;
  font-size: .82rem;
  padding: 10px 20px;
}
.btn-header:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-hero-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ── Header ─────────────────────────────────────────────── */
.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s ease;
}
.page-home .header {
  position: fixed;
  inset: 0 0 auto;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.10); }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--t);
}
.nav-link:hover, .nav-link-active { color: var(--primary); background: var(--primary-light); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--t);
}

/* ── Hero — full-bleed com imagem ───────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 118, 185, 0.82);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 80px;
  max-width: 760px;
}
.hero-label {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.3);
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 10px;
}
.hero-title-sub {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,.92);
  line-height: 1.25;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-strip {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 40px;
  padding: 10px 20px;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
}
.hero-strip-item i { width: 18px; height: 18px; color: var(--accent); }

/* ── Sobre ──────────────────────────────────────────────── */
.sobre-text p { color: var(--text-soft); line-height: 1.8; margin-bottom: 14px; }
.sobre-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── Vantagens ──────────────────────────────────────────── */
.vantagens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.vantagem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.vantagem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-light); }
.vantagem-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}
.vantagem-icon i { width: 24px; height: 24px; }
.vantagem-card h3 { font-size: .96rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.vantagens-cta { text-align: center; }

/* ── Depoimentos ────────────────────────────────────────── */
.depo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.depo-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.depo-stars { display: flex; gap: 4px; }
.depo-stars i { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.depo-text { font-size: .9rem; color: var(--text-soft); line-height: 1.75; font-style: italic; flex: 1; }
.depo-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.depo-author strong { font-size: .88rem; color: var(--dark); }

/* ── Planos ─────────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.plan-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.plan-card-featured { border-color: var(--primary); box-shadow: var(--shadow-primary); }
.plan-header {
  background: var(--primary);
  padding: 28px 24px 20px;
  color: #fff;
}
.plan-card-featured .plan-header { background: var(--primary-dark); }
.plan-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.plan-name { font-size: .95rem; font-weight: 700; margin-bottom: 12px; opacity: .9; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-price-value { font-size: 2.2rem; font-weight: 800; }
.plan-price-period { font-size: .9rem; opacity: .8; }
.plan-billing { font-size: .76rem; opacity: .7; margin-bottom: 6px; }
.plan-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-meta-tag {
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255,255,255,.2);
  padding: 3px 10px;
  border-radius: 20px;
  opacity: .92;
}
.plan-body { padding: 22px 24px; flex: 1; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.5;
}
.plan-features li i { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.plan-actions { padding: 16px 24px 24px; }
.plan-action-link { width: 100%; justify-content: center; }

/* ── Clube de Parcerias ─────────────────────────────────── */
.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 36px;
}
.parceiros-grid img {
  width: 100%;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(1) opacity(.6);
  transition: var(--t);
}
.parceiros-grid img:hover { filter: none; }
.parceiros-cta { text-align: center; }

/* ── CTA Consultor ──────────────────────────────────────── */
.cta-consultor {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-logo { height: 56px; width: auto; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding-block: 60px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .86rem; line-height: 1.8; margin-bottom: 4px; }
.footer-brand a { color: rgba(255,255,255,.9); }
.footer-brand a:hover { color: var(--accent); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.footer-nav a { font-size: .86rem; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { font-size: .76rem; color: rgba(255,255,255,.45); text-align: center; }
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: var(--accent); }

/* ── WhatsApp Float ─────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.whatsapp-float a {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,.32); }
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; }

/* ── Subpage-specific ───────────────────────────────────── */
.page-title-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding-block: 64px;
  text-align: center;
  color: #fff;
}
.page-title-banner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-title-banner p { font-size: 1rem; opacity: .85; }
.content-section { padding-block: 72px; }
.content-section h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; padding-top: 32px; }
.content-section h2:first-child { padding-top: 0; }
.content-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; margin-top: 20px; }
.content-section p { color: var(--text-soft); line-height: 1.8; margin-bottom: 12px; }
.content-section ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content-section ul li { color: var(--text-soft); line-height: 1.8; margin-bottom: 6px; }
.content-section ol { list-style: decimal; padding-left: 24px; margin-bottom: 16px; }
.content-section ol li { color: var(--text-soft); line-height: 1.8; margin-bottom: 6px; }
.info-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-block: 20px;
}
.info-box p { margin: 0; color: var(--text); }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.steps-list .step-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
  margin-block: 32px;
}
.partner-logo-grid img { width: 100%; max-height: 56px; object-fit: contain; }
.telemedicine-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.telemedicine-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.telemedicine-list li i { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.funeral-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.funeral-card h2 { padding-top: 0; color: var(--primary); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .vantagens-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .parceiros-grid { grid-template-columns: repeat(4, 1fr); }
  .partner-logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .section { padding-block: 64px; }
  .grid-2, .grid-2-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-2-reverse > :first-child { order: 2; }
  .grid-2-reverse > :last-child  { order: 1; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  .btn-header { display: none; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-link { color: var(--text); padding: 12px 16px; border-radius: 8px; width: 100%; }
  .nav-link:hover, .nav-link-active { background: var(--primary-light); color: var(--primary); }

  .hero { min-height: auto; }
  .hero-content { padding-block: 60px; }
  .hero-title { font-size: 1.7rem; }
  .hero-title-sub { font-size: 1.3rem; }
  .hero-actions { flex-direction: column; }
  .hero-strip { flex-direction: column; gap: 12px; }

  .vantagens-grid { grid-template-columns: 1fr; }
  .depo-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .parceiros-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-title-banner { padding-block: 48px; }
}
