/* site-behaviors.css — comportamentos compartilhados das 4 páginas */

/* ============ MOBILE MENU ============ */
.rs-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--hairline-strong);
  cursor: pointer; padding: 0;
  transition: border-color .2s;
}
.rs-burger:hover { border-color: var(--ember); }
.rs-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--bone);
  transition: transform .2s, opacity .2s;
}
.rs-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.rs-burger.open span:nth-child(2) { opacity: 0; }
.rs-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.rs-mobile-drawer {
  position: fixed; inset: 64px 0 0 0; z-index: 49;
  background: rgba(5,5,7,0.98); backdrop-filter: blur(24px);
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateY(-100%); opacity: 0;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), opacity .25s;
  pointer-events: none;
  overflow-y: auto;
}
.rs-mobile-drawer.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.rs-mobile-drawer a {
  font-family: var(--type-display);
  font-weight: 300;
  font-size: 32px;
  color: var(--bone);
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color .2s, padding-left .2s;
}
.rs-mobile-drawer a:hover { color: var(--ember); padding-left: 8px; }
.rs-mobile-drawer a.active { color: var(--ember); }
.rs-mobile-drawer .group-label {
  font-family: var(--type-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-mute); margin-top: 16px;
  padding-bottom: 4px; border: none;
}
.rs-mobile-drawer .cta {
  margin-top: 24px; align-self: flex-start;
  padding: 14px 22px; border: 1px solid var(--ember);
  background: var(--ember); color: var(--void);
  font-family: var(--type-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}

@media (max-width: 980px) {
  .rs-burger { display: flex !important; }
  .rs-nav { display: none !important; }
  .rs-cta:not(.rs-cta-mobile) { display: none !important; }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--ember), var(--ember-glow, #ff5a1f));
  z-index: 100;
  transition: width .08s linear;
  pointer-events: none;
}

/* ============ FAQ ACCORDION ============ */
.faq-list li {
  cursor: pointer;
  transition: padding-left .2s;
}
.faq-list li .qa .a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s cubic-bezier(0.22, 1, 0.36, 1), opacity .25s ease;
}
.faq-list li.open .qa .a {
  max-height: 800px;
  opacity: 1;
}
.faq-list li .q {
  position: relative;
  padding-right: 40px;
  transition: color .2s;
}
.faq-list li .q::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--type-mono);
  font-size: 24px; font-weight: 300;
  color: var(--bone-mute);
  transition: transform .25s, color .2s;
  line-height: 1;
}
.faq-list li.open .q::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--ember);
}
.faq-list li.open .q { color: var(--bone); }
.faq-list li:hover .q::after { color: var(--ember); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1),
              transform .8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============ FOOTER (estruturado) ============ */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--hairline);
  padding: 80px 40px 32px;
  color: var(--bone-dim);
}
.site-footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px; align-items: start;
}
.site-footer .brand-col h4 {
  font-family: var(--type-display); font-style: italic; font-weight: 300;
  font-size: 28px; color: var(--bone); margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.site-footer .brand-col h4 em { color: var(--ember); font-style: normal; }
.site-footer .brand-col p {
  font-size: 14px; line-height: 1.6; color: var(--bone-dim);
  max-width: 320px;
}
.site-footer .col h5 {
  font-family: var(--type-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-mute); margin-bottom: 20px; font-weight: 500;
}
.site-footer .col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.site-footer .col a {
  font-size: 14px; color: var(--bone-dim);
  transition: color .15s;
}
.site-footer .col a:hover { color: var(--ember); }

.site-footer-bottom {
  max-width: 1240px; margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--type-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-mute);
}
.site-footer-bottom .links { display: flex; gap: 20px; }
.site-footer-bottom .links a { color: var(--bone-mute); transition: color .15s; }
.site-footer-bottom .links a:hover { color: var(--ember); }

@media (max-width: 880px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
}



/* ============ FOOTER ============ */
.site-footer {
  margin-top: 140px;
  padding: 64px 48px 28px;
  border-top: 1px solid var(--hairline);
  background: var(--void);
  position: relative;
  overflow: hidden;
}

/* Top row: brand only */
.site-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}

/* Social icons */
.sf-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: var(--bone-mute);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.sf-social a:hover {
  color: var(--ember);
  border-color: var(--ember);
  background: rgba(255,58,14,0.06);
}
.sf-social svg {
  width: 14px; height: 14px;
  display: block;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.site-footer-brand .sf-sym {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  display: block;
}
.site-footer-brand .sf-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}
.site-footer-brand .sf-name {
  font-family: var(--type-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.site-footer-brand .sf-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--ember);
}
.site-footer-brand .sf-tag {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

.site-footer-top .legal-links { display: none; }

/* Bottom legal row: copyright left, links right */
.site-footer-legal {
  border: 0;
  padding-top: 28px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-legal .legal-year {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
}
.site-footer-legal .legal-links {
  display: flex;
  gap: 28px;
}
.site-footer-legal .legal-links a {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer-legal .legal-links a:hover { color: var(--ember); }

@media (max-width: 600px) {
  .site-footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer-legal { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .site-footer-legal .legal-year { white-space: nowrap; font-size: 8.5px; letter-spacing: 0.1em; }
  .site-footer-legal .legal-links { justify-content: center; gap: 32px; }
}

/* Big watermark — fills width, no cut */
.site-footer-bigtype {
  display: block;
  width: 100%;
  margin: 56px 0 32px;
  padding: 0;
  font-family: var(--type-display);
  font-weight: 400;
  font-size: clamp(56px, calc((100vw - 96px) / 7.1), 360px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--ember);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  text-align: left;
}
.site-footer-bigtype span { display: inline-block; }
.site-footer-bigtype em {
  font-style: italic;
  font-weight: 300;
  color: var(--bone);
}

/* Tiny copyright line */
.site-footer-legal {
  border: 0;
  padding-top: 32px;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.site-footer-legal .legal-year {
  font-family: var(--type-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

@media (max-width: 880px) {
  .site-footer {
    padding: 48px 24px 24px;
    margin-top: 96px;
  }
  .site-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 36px;
  }
  .site-footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .site-footer-legal .legal-year { white-space: nowrap; font-size: 9px; letter-spacing: 0.1em; }
  .site-footer-legal .legal-links { justify-content: center; gap: 32px; }
}
