/* ============================================
   Vibra Saúde Mental — Estilos
   ============================================ */

:root {
  --navy: #001C34;
  --navy-soft: #0A2A44;
  --navy-700: #0f2e46;
  --green-dark: #017a3c;
  --green-bright: #00c853;
  --green-pale: #E8F7EE;
  --bg: #FFFFFF;
  --bg-alt: #F4F9F7;
  --text: #1C2B33;
  --text-muted: #5B6B75;
  --white: #FFFFFF;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 28, 52, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 28, 52, 0.16);
  --max-width: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy);
}

h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; margin-bottom: 10px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-bright);
  margin: 0 0 10px;
}
.eyebrow-dark { color: var(--green-dark); }

.h2-light { color: #fff; }

.section-lead {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 40px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: rgba(255,255,255,0.85); }
.section-dark .section-lead { color: rgba(255,255,255,0.7); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow); }

.btn-accent {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(1, 145, 71, 0.35);
}
.btn-accent:hover { background: #015c2c; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0,28,52,0.06);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo { height: 40px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green-dark);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(0,200,83,0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(1,145,71,0.25), transparent 40%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #0c3552 100%);
  color: #fff;
  padding: 76px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; }

.hero-copy { max-width: 760px; }

.hero-logo { height: 56px; width: auto; margin-bottom: 28px; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.trust-row li {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  flex-shrink: 0;
}

/* ===== Grids & Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,28,52,0.05);
}
.card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-pale);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,28,52,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--green-dark);
  margin: 0 auto 14px;
}
.service-card span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

/* Pills */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pill-list li {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(1,145,71,0.15);
}

/* Diferenciais (dark section) */
.diff-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.diff-card svg {
  width: 30px;
  height: 30px;
  color: var(--green-bright);
  margin-bottom: 16px;
}
.diff-card h3 { color: #fff; }
.diff-card p { color: rgba(255,255,255,0.68); margin: 0; font-size: 0.94rem; }

/* Área de atuação */
.area-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.area-badge {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: var(--green-dark);
}
.area-badge svg { width: 56px; height: 56px; margin: 0 auto 16px; }
.area-badge span { font-weight: 800; font-size: 1.15rem; color: var(--navy); line-height: 1.4; }

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,28,52,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card svg {
  width: 26px;
  height: 26px;
  color: var(--green-dark);
  flex-shrink: 0;
}
.contact-card div { display: flex; flex-direction: column; min-width: 0; }
.contact-card strong { font-size: 0.9rem; color: var(--navy); }
.contact-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.crp-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

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

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-logo { height: 34px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 300px; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--green-bright); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(1,145,71,0.45);
  z-index: 400;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ===== Scroll reveal =====
   Hiding is opt-in via the "reveal-enabled" class that JS adds to <body>
   only after it has verified IntersectionObserver is available and the
   reveal script is running. This guarantees content is fully visible by
   default (no-JS users, slow scripts, crawlers, errors, etc.) and is only
   ever animated in as a progressive enhancement. */
body.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  body.reveal-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .area-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,28,52,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav li { border-bottom: 1px solid rgba(0,28,52,0.06); }
  .main-nav a { display: block; padding: 14px 0; }

  .header-actions .btn-sm span,
  .header-actions .btn-sm { }

  .nav-toggle { display: flex; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 48px 0 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .hero { padding: 56px 0 72px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: 0.8rem; }
  .header-actions .btn-sm span { display: none; }
}

/* ===== Blog ===== */
.blog-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(0,200,83,0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(1,145,71,0.25), transparent 40%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #0c3552 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.blog-hero .eyebrow { color: var(--green-bright); }
.blog-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.blog-hero p { color: rgba(255,255,255,0.82); max-width: 640px; font-size: 1.05rem; margin: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,28,52,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.blog-card h3 { margin-bottom: 10px; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--green-dark); }
.blog-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 18px; flex-grow: 1; }
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.blog-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.blog-card-link:hover svg { transform: translateX(3px); }

.blog-empty-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Article page */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--green-dark); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.article-header { max-width: 780px; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-body {
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--text);
}
.article-body h2 { font-size: 1.5rem; margin-top: 44px; }
.article-body h3 { font-size: 1.15rem; margin-top: 28px; }
.article-body p { margin: 0 0 22px; color: var(--text); }
.article-body ul { margin: 0 0 22px; padding-left: 0; }
.article-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-dark);
}
.article-callout {
  background: var(--green-pale);
  border-left: 4px solid var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 0 0 28px;
  color: var(--navy);
  font-size: 0.98rem;
}
.article-callout strong { color: var(--green-dark); }

.article-source {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(0,28,52,0.08);
}
.article-source a { color: var(--green-dark); font-weight: 600; }
.article-source a:hover { text-decoration: underline; }

.article-cta {
  margin-top: 48px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  color: #fff;
}
.article-cta h3 { color: #fff; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.75); margin: 0 0 22px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 28px;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { text-decoration: underline; }

.author-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.author-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}
.author-info { display: flex; flex-direction: column; line-height: 1.3; }
.author-info strong { color: var(--navy); font-size: 0.92rem; }
.author-info span { font-size: 0.82rem; color: var(--text-muted); }
.meta-sep { color: var(--text-muted); }

.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px;
  margin: 40px 0 0;
  border: 1px solid rgba(0,28,52,0.06);
}
.author-box-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 2px; }
.author-box-role { display: block; font-size: 0.85rem; color: var(--green-dark); font-weight: 600; margin-bottom: 10px; }
.author-box p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 32px 24px; }
  .author-box { flex-direction: column; align-items: flex-start; }
}
