/* ============================================
   TRMV Negócios Sociais — Base Compartilhado
   Estrutura comum a todas as páginas internas
   ============================================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--earth);
  background: var(--sand);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container { width: min(1140px, 90vw); margin: 0 auto; }
.container--narrow { width: min(800px, 90vw); margin: 0 auto; }

/* --- Keyframes --- */
@keyframes gradient-move {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(5%, 10%) scale(1.1); }
  66%  { transform: translate(-8%, 5%) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes morphBlob {
  0%   { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50%  { border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; }
  100% { border-radius: 30% 70% 50% 50% / 60% 40% 70% 30%; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.6); }
}

/* --- Background Blurs --- */
.blur-blob {
  position: fixed;
  width: 45vw; height: 45vw;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: blob-float 25s ease-in-out infinite alternate;
}
.blur-blob--1 { top: -10%; left: -5%; animation-duration: 20s; }
.blur-blob--2 { bottom: 0%; right: -10%; animation-duration: 30s; animation-delay: -5s; }
.blur-blob--3 { top: 40%; left: 30%; width: 30vw; height: 30vw; animation-duration: 35s; animation-delay: -10s; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Back to Hub --- */
.back-to-hub {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: fixed;
  top: 1.2rem;
  left: 1.5rem;
  z-index: 100;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--earth-mid);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.back-to-hub:hover {
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.hero .container, .section .container { position: relative; z-index: 5; }

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero__content { position: relative; z-index: 2; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: var(--space-md);
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: var(--space-lg);
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  transition: transform var(--duration-slow) var(--ease-spring);
}
.hero__logo:hover { transform: scale(1.03) rotate(1deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
  will-change: transform;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

/* ============================================
   IMPACT BAR
   ============================================ */
.impact-bar { padding: var(--space-lg) 0; overflow: hidden; }
.impact-bar__inner { display: flex; justify-content: center; gap: var(--space-xl); flex-wrap: wrap; }
.impact-stat { text-align: center; }
.impact-stat__number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.impact-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--space-3xl) 0; }
.section__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6rem; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}
.section__text { font-size: 1.02rem; line-height: 1.8; max-width: 60ch; }

.section-header--center { text-align: center; max-width: 820px; margin: 0 auto var(--space-xl); }
.section-header__text--large {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.4;
  font-weight: 400;
  max-width: 1000px;
  margin: 0 auto;
}

.section--cta { position: relative; overflow: hidden; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-xl); align-items: start; }
.about-card {
  border-radius: var(--radius-organic);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration-normal) var(--ease-smooth), transform var(--duration-fast) var(--ease-spring);
}
.about-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.about-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}
.about-card__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.about-card__text { font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   FEATURES
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.feature {
  border-radius: var(--radius-organic);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-spring);
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.feature:hover::before { transform: scaleX(1); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.feature__icon { font-size: 2.8rem; margin-bottom: var(--space-md); display: block; }
.feature__emoji { font-size: 2rem; margin-bottom: var(--space-sm); display: block; }
.feature__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.feature__text { font-size: 0.92rem; line-height: 1.7; }

/* ============================================
   PROCESS
   ============================================ */
.process-steps { display: grid; gap: 0; margin-top: var(--space-lg); }
.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.process-step:last-child { border-bottom: none; }
.process-step__number { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; }
.process-step__content { padding-top: 0.25rem; }
.process-step__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.process-step__text { font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   QUOTE
   ============================================ */
.quote-section { position: relative; overflow: hidden; }
.quote-block { position: relative; z-index: 2; text-align: center; max-width: 46ch; margin: 0 auto; }
.quote-block__mark { font-family: var(--font-display); font-size: 6rem; line-height: 0.5; opacity: 0.5; display: block; margin-bottom: var(--space-md); }
.quote-block__text { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.35; font-weight: 700; font-style: italic; margin-bottom: var(--space-lg); }
.quote-block__caption { font-size: 0.95rem; line-height: 1.75; max-width: 48ch; margin: 0 auto; }

/* ============================================
   CTA BLOCK
   ============================================ */
.cta-block { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.cta-block__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.cta-block__title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.0; letter-spacing: -0.01em; font-weight: 400; text-transform: uppercase; margin-bottom: var(--space-md); }
.cta-block__text { font-size: 1.05rem; line-height: 1.75; max-width: 52ch; margin-bottom: var(--space-lg); }
.cta-block__image { width: 100%; border-radius: var(--radius-organic); box-shadow: 0 20px 40px rgba(0,0,0,0.2); display: block; }

/* ============================================
   CONTACT
   ============================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: stretch; }
.contact-visual { height: 100%; }
.contact-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-organic); box-shadow: var(--shadow-card); }
.contact-info dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: var(--space-md); }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: 1rem; margin-top: 0.2rem; }
.contact-card { border-radius: var(--radius-organic); padding: var(--space-lg); box-shadow: var(--shadow-card); }
.contact-card__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--space-md); }
.contact-card__item {
  display: flex; align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.92rem;
  transition: color var(--duration-fast), padding-left var(--duration-fast);
}
.contact-card__item:last-of-type { border-bottom: none; }
.contact-card__item-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }
.contact-card__actions { margin-top: var(--space-md); display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: var(--space-xl) 0 var(--space-lg); text-align: center; font-size: 0.82rem; }
.footer__grid { display: flex; flex-direction: column; gap: var(--space-md); align-items: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__logo { height: 60px; width: auto; margin-bottom: var(--space-xs); }
.footer__description { max-width: 600px; margin: 0 auto; font-size: 0.85rem; line-height: 1.6; opacity: 0.8; }
.footer__copy { margin-top: var(--space-sm); padding-top: var(--space-md); width: 100%; opacity: 0.6; }
.footer__hub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  opacity: 0.65;
  margin-top: 0.6rem;
  transition: opacity 0.2s;
}
.footer__hub-link:hover { opacity: 1; }

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-lg); }
  .hero__visual { order: -1; }
  .hero__logo { max-width: 320px; }
  .hero__title { max-width: none; }
  .hero__badge { justify-content: center; }
  .hero__lead { max-width: none; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .cta-block__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .impact-bar__inner { gap: var(--space-lg); }
  .section { padding: var(--space-2xl) 0; }
  .process-step { grid-template-columns: 56px 1fr; }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 600px) {
  .container { width: min(1140px, 88vw); }
  .hero { padding: 5.5rem 0 var(--space-xl); min-height: auto; }
  .hero__grid { gap: var(--space-md); }
  .hero__logo { max-width: 240px; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3.5rem); max-width: none; }
  .hero__lead { font-size: 0.95rem; }
  .hero__badge { font-size: 0.7rem; padding: 0.35rem 0.8rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .contact-card__actions .btn { text-align: center; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-xl) 0; }
  .section__title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .process-step { grid-template-columns: 1fr; padding: var(--space-md) 0; }
  .process-step__number { font-size: 2rem; }
  .impact-bar { padding: var(--space-md) 0; }
  .impact-bar__inner { flex-direction: row; justify-content: space-around; gap: var(--space-xs); }
  .impact-stat__number { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  .impact-stat__label { font-size: 0.65rem; letter-spacing: 0.06em; }
  .quote-block__text { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }
  .quote-block__mark { font-size: 3.5rem; }
  .contact-card__actions { flex-direction: column; }
  .footer { font-size: 0.78rem; padding: var(--space-md) 0; }
  .back-to-hub { top: 0.8rem; left: 1rem; font-size: 0.7rem; padding: 0.32rem 0.72rem; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
  .impact-bar__inner { flex-direction: column; align-items: center; gap: var(--space-sm); }
}
