/* ============================================
   VALOR INVESTIMENTOS — LANDING PAGE V3
   Premium Financial Advisory
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --primary: #0a1628;
  --primary-light: #12213a;
  --primary-mid: #162842;
  --accent-gold: #b89a5a;
  --accent-gold-light: #d4b778;
  --accent-gold-dark: #9a7f45;
  --accent-gold-muted: rgba(184, 154, 90, 0.12);
  --text: #1a2332;
  --text-secondary: #5a6878;
  --bg: #ffffff;
  --bg-offwhite: #f5f3ef;
  --bg-warm: #faf8f5;
  --bg-dark-overlay: rgba(10, 22, 40, 0.97);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.07);
  --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.09);
  --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.12);
  --shadow-gold: 0 8px 24px rgba(184, 154, 90, 0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

/* --- SECTION OVERLINE --- */
.section-overline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-overline::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--accent-gold);
  flex-shrink: 0;
}

.section-overline--dark { color: var(--accent-gold-dark); }
.section-overline--dark::before { background: var(--accent-gold-dark); }
.section-overline--light { color: var(--accent-gold-light); }
.section-overline--light::before { background: var(--accent-gold-light); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 16px 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn--gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 154, 90, 0.3);
}

.btn--gold-outline {
  background: transparent;
  color: var(--accent-gold-light);
  border: 1.5px solid var(--accent-gold);
  padding: 15px 38px;
}

.btn--gold-outline:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 154, 90, 0.08);
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(10, 22, 40, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height var(--transition);
}

.header--scrolled .header__inner { height: 64px; }

.header__logo { display: flex; align-items: center; }

.header__logo-img {
  height: 32px;
  width: auto;
  transition: height var(--transition);
  filter: brightness(0) invert(1);
}

.header--scrolled .header__logo-img { height: 28px; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition);
}

.header__link:hover { color: #fff; }
.header__link:hover::after { width: 100%; }

.header__cta-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-gold);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.header__cta-btn:hover {
  background: var(--accent-gold-light);
  transform: translateY(-1px);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  transform-origin: center;
}

.header__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
  margin-top: -76px;
  padding: calc(76px + 100px) clamp(24px, 5vw, 80px) 80px;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 154, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 154, 90, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(184, 154, 90, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__content {
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__tagline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 32px;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero__tagline-line {
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--accent-gold);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero__title em {
  font-style: italic;
  color: var(--accent-gold-light);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.85;
  max-width: 540px;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero__subtitle--detail {
  margin-top: 16px;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.4);
}

.hero__subtitle--detail strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

/* HERO FORM */
.hero__form-col {
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero__form-box {
  background: #fff;
  border: 1px solid rgba(184, 154, 90, 0.2);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 42px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* RD Station Form — visual nativo */
.hero__rd-form {
  width: 100%;
}

/* HERO SCROLL */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(184, 154, 90, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.15); }
}

/* ============================================
   PILARES / BENEFÍCIOS — off-white
   ============================================ */
.pilares {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-offwhite);
}

.pilares__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 52px;
  line-height: 1.3;
  max-width: 500px;
}

.pilares__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pilar-card {
  background: var(--bg);
  border: 1px solid rgba(10, 22, 40, 0.06);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pilar-card:hover {
  border-color: rgba(184, 154, 90, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pilar-card__number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(10, 22, 40, 0.04);
  line-height: 1;
}

.pilar-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-muted);
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.pilar-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.pilar-card__text {
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

.pilares__cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   SOLUÇÕES — dark
   ============================================ */
.solucoes {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.solucoes::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 154, 90, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.solucoes__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 52px;
  line-height: 1.3;
}

.solucoes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.solucao-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 154, 90, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  transition: all var(--transition);
}

.solucao-card:hover {
  border-color: rgba(184, 154, 90, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.solucao-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(184, 154, 90, 0.1);
  color: var(--accent-gold-light);
  margin-bottom: 20px;
}

.solucao-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.solucao-card__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
}

.solucoes__cta {
  text-align: center;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

/* ============================================
   INSTITUCIONAL — off-white
   ============================================ */
.institucional {
  background: var(--bg-offwhite);
  padding: clamp(80px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}

.institucional__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.institucional__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 24px;
}

.institucional__highlight {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.institucional__highlight strong {
  font-weight: 700;
  color: var(--accent-gold-dark);
}

.institucional__text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Institutional photo */
.institucional__image-col {
  display: flex;
  justify-content: center;
}

.institucional__image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.08);
  max-width: 420px;
  width: 100%;
}

.institucional__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   CTA INTERMEDIÁRIO
   ============================================ */
.cta-mid {
  padding: clamp(80px, 10vw, 110px) 0;
  background: var(--bg);
}

.cta-mid__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-mid__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 32px;
}

/* ============================================
   ESCRITÓRIOS — off-white
   ============================================ */
.escritorios {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-offwhite);
}

.escritorios__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.escritorios__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 48px;
}

.escritorios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.escritorio-card {
  background: var(--bg);
  border: 1px solid rgba(10, 22, 40, 0.05);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.5vw, 32px);
  transition: all var(--transition);
  text-align: left;
}

.escritorio-card:hover {
  border-color: rgba(184, 154, 90, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.escritorio-card__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold-muted);
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.escritorio-card__city {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.escritorio-card__address {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.escritorio-card__phone {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer__cta-band {
  background: var(--primary);
  padding: clamp(64px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.footer__cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(184, 154, 90, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer__cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.footer__cta-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer__bottom-bar {
  background: #060e1a;
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__credits {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__oren {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__oren:hover { color: var(--accent-gold); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .solucoes__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .escritorios__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(76px + 80px);
    padding-bottom: 60px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content { order: 0; }
  .hero__form-col { order: 1; }

  .institucional__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .institucional__image-col {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer__cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 36px 36px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .header__nav.open { transform: translateX(0); }

  .header__link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
  }

  .header__cta-btn { margin-top: 12px; }
  .header__hamburger { display: flex; }

  .pilares__grid {
    grid-template-columns: 1fr;
  }

  .escritorios__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
}

/* --- MOBILE NAV OVERLAY --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
