/* ===== Heleno do Hospital — Site de pré-campanha ===== */

:root {
  --navy-900: #0a1526;
  --navy-800: #0f2038;
  --navy-700: #163050;
  --navy-600: #1e4270;
  --lime: #d4e94a;
  --cyan: #38b6e8;
  --white: #f8faff;
  --muted: #aebbd3;
  --radius: 18px;
  --container: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  background: var(--navy-900);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; min-width: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--lime);
  padding: 7px 16px;
  border-radius: 999px;
}

.vote-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.vote-number strong {
  display: inline-block;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--lime);
  text-transform: none;
  line-height: 1;
  animation:
    vote-number-arrive 700ms cubic-bezier(.34, 1.56, .64, 1) both,
    vote-number-idle 2.6s ease-in-out 700ms infinite;
}

@keyframes vote-number-arrive {
  0% { opacity: 0; transform: translateY(-16px) scale(0.85); }
  60% { opacity: 1; transform: translateY(2px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vote-number-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .vote-number strong { animation: none; }
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--lime);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(212, 233, 74, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(212, 233, 74, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(10,21,38,0.92), rgba(10,21,38,0));
  backdrop-filter: blur(4px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--lime); }

.header-cta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-900);
  background: var(--lime);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  background:
    radial-gradient(circle at 85% 10%, rgba(56,182,232,0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(212,233,74,0.12), transparent 40%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 65%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.hero-text {
  min-width: 0;
  flex: 1 1 0;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  margin: 18px 0 14px;
}

.hero-text .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 30px;
}

.hero-photo-wrap {
  position: relative;
  min-width: 0;
  flex: 0 0 340px;
  max-width: 340px;
  margin: 0 auto;
}

.hero-photo-wrap img {
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Apoio por e-mail ---------- */

.support {
  position: relative;
  padding: clamp(40px, 7vw, 68px) 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(56,182,232,0.16), transparent 45%),
    linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.support-inner {
  text-align: center;
  max-width: 640px;
}

.support-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  line-height: 1.15;
  margin: 16px 0 10px;
}

.support-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 26px;
}

.btn-support {
  background: var(--lime);
  color: var(--navy-900);
  font-size: 1.08rem;
  padding: 19px 34px;
  box-shadow: 0 10px 32px rgba(212, 233, 74, 0.35);
  animation: support-pulse 2.4s ease-in-out infinite;
}
.btn-support:hover { box-shadow: 0 12px 36px rgba(212, 233, 74, 0.5); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}

.support-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.support-card-icon { font-size: 2.2rem; line-height: 1; }

.support-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.support-card-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.support-tutorial {
  text-align: left;
  list-style: none;
  counter-reset: step;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 2px 0 8px;
}

.support-tutorial li {
  counter-increment: step;
  position: relative;
  padding-left: 32px;
  font-size: 0.92rem;
  color: var(--white);
}

.support-tutorial li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-card .btn-support { margin-top: auto; }

@media (max-width: 760px) {
  .support-grid { grid-template-columns: 1fr; }
}

@keyframes support-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(212, 233, 74, 0.35); }
  50% { box-shadow: 0 10px 40px rgba(212, 233, 74, 0.6); }
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}

.stat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-card:nth-child(2n) .stat-icon { background: var(--cyan); }

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--white);
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.stats-source {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 28px;
}

.stat-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--lime), #f4ffb0);
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}
.stat-highlight strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
}

/* ---------- História / Hospital ---------- */

.story {
  background: var(--navy-800);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  min-width: 0;
}

.story-photo, .story-content {
  min-width: 0;
}

.story-photo img {
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(0,0,0,0.35);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline {
  list-style: none;
  margin-top: 22px;
}

.timeline li {
  position: relative;
  padding: 4px 0 22px 32px;
  border-left: 2px solid rgba(255,255,255,0.15);
  margin-left: 6px;
  font-size: 1.02rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
}

.timeline li.now::before { background: var(--cyan); }
.timeline li b { color: var(--white); }
.timeline li { color: var(--muted); }

/* ---------- Quem é ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
  min-width: 0;
}

.about-photo, .about-text {
  min-width: 0;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(0,0,0,0.35);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.about-text p {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.about-text p b { color: var(--white); }

/* ---------- Contato ---------- */

.contact {
  text-align: center;
}

.contact .btn-row { justify-content: center; margin: 30px 0 40px; }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  display: block;
  background: var(--navy-700);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 22px;
  font-size: 0.94rem;
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.contact-card:hover, .contact-card:focus-visible {
  border-color: var(--lime);
  background: var(--navy-600);
  transform: translateY(-2px);
}
.contact-card:active { transform: scale(0.98); }
.contact-card b { display: block; color: var(--white); font-family: 'Montserrat', sans-serif; margin-bottom: 6px; }

.map-embed {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 20px; height: 20px; fill: var(--white); }

.footer-legal {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Botão flutuante WhatsApp ---------- */

.whats-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
}
.whats-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-text { width: 100%; }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }
  .hero-photo-wrap { order: -1; flex-basis: auto; width: 100%; max-width: 300px; }
  .btn-row { justify-content: center; }
  .story-grid, .about-grid { grid-template-columns: 1fr; }
  .story-photo, .about-photo { max-width: 320px; margin: 0 auto; width: 100%; }
  .header-cta { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stat-highlight { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-support { animation: none; }
}
