/*
 * Criptomaníacos — site estático baseado no site de origem (WordPress + Elementor), com os bugs dele corrigidos.
 * Medidas, cores e tipografia vêm do kit e do CSS da página no Elementor; desvios estão comentados e no README.
 * Breakpoints iguais aos do Elementor: tablet ≤ 1024px, mobile ≤ 767px.
 */

:root {
  --green: #05b97e;
  --pink-button: #e00f9b;
  --purple: #7f36a7;
  --purple-light: #b85ee9;
  --bg: #111111;
  --bg-section: #1f2221;
  --bg-footer: #171717;
  --border-card: #515151;
  --text: #8c8c8c; /* original #7a7a7a: 4,18:1 sobre o rodapé; agora 5,3:1 */
  --text-light: #dadada;
  --text-social: #b9b9b9;
  --link: #e8578a; /* original #cc3366 (3,6:1); agora 5,3:1 */
  --link-hover: #ff8fb5; /* original #333366 (1,5:1, quase invisível) */
  --container: 1140px;
  --p-gap: 14.4px; /* margin-bottom dos <p> no tema Hello (0.9rem) */
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow-x: clip;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

p {
  margin: 0 0 var(--p-gap);
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:active {
  color: var(--link-hover);
}

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

/* Âncoras do menu param abaixo do header fixo (80px; 95px no mobile). */
main [id] {
  scroll-margin-top: 80px;
}

/* Os containers flex do Elementor têm min-width: 0 (encolhem abaixo do conteúdo, como no original). */
.site-header__logo,
.site-header__nav,
.site-header__cta,
.hero__text,
.hero__media,
.numeros__item,
.comunidade__text,
.comunidade__media,
.redes__card,
.redes__youtube,
.site-footer__col {
  min-width: 0;
}

.text-green {
  color: var(--green);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 100px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  transition: all 0.3s;
}

.btn:hover,
.btn:focus,
.btn:active {
  color: #fff;
}

/* Como no Elementor: o texto cresce e, num botão de largura total, a seta fica na borda direita. */
.btn > span {
  flex-grow: 1;
  text-align: center;
}

/* No Elementor o ícone fica alinhado ao topo da linha, não centralizado. */
.btn__icon {
  flex: none;
  align-self: flex-start;
  width: 1em;
  height: auto;
}

.btn--outline-white {
  border: 2px solid #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn--outline-pink {
  gap: 20px;
  border: 2px solid var(--pink-button);
}

/* No original a linha deste botão tem 20px (o SVG de 1em em linha estica a caixa): daí os 16px embaixo. */
.btn--dark {
  gap: 18px;
  padding: 12px 24px 16px;
  background-color: #302d2d;
  font-weight: 400;
}

.btn--dark .btn__icon {
  height: 1em;
  fill: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 1s ease;
}

.site-header.is-scrolled {
  background-color: #000;
}

.site-header__inner {
  display: flex;
  gap: 20px;
  min-height: 80px;
}

.site-header__logo,
.site-header__nav,
.site-header__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header__logo {
  flex: 0 1 16%;
}

.site-header__logo img {
  width: 100%;
}

.site-header__nav {
  flex: 0 1 58%;
  align-items: center;
}

.site-header__cta {
  flex: 0 1 22%;
  align-items: flex-end;
}

.nav-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 100px;
  background-color: rgba(0, 0, 0, 0.35);
}

.nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  transition: color 0.4s;
}

.nav__link:hover,
.nav__link:focus,
.nav__link.is-active {
  color: var(--green);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.25em;
  border: 0;
  border-radius: 3px;
  background-color: #000;
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 1em;
  height: auto;
  fill: currentColor;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

.menu-mobile {
  display: none;
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  margin-top: -110px;
  background: url("/assets/img/hero-bg.jpg") top center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/hero-quadrados.png") center right no-repeat;
  opacity: 0.89;
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__row {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-bottom: 80px;
}

.hero__text {
  display: flex;
  flex: 0 1 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.hero__title {
  color: #fff;
  font-size: 56px;
}

.hero__lead {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
}

.hero__media {
  flex: 0 1 100%;
  padding: 10px;
  text-align: right;
}

.hero__media img {
  width: 55%;
}

/* ---------- Números ---------- */

.numeros {
  position: relative;
  padding: 50px 0;
  background-color: var(--bg);
}

.numeros::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/numeros-bg.webp") top center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.numeros .container {
  position: relative;
}

.numeros__box {
  display: flex;
  gap: 20px;
  padding: 50px;
  border: 2px solid var(--green);
  border-radius: 10px;
}

.numeros__item {
  flex: 0 1 100%;
  padding: 10px;
  color: #fff;
  text-align: center;
}

.numeros__valor {
  margin: 0;
  color: var(--green);
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
}

/* No original só o item do meio tinha a margem do <p>; agora os três têm (espaçamento igual no mobile). */
.numeros__label {
  margin: 0 0 var(--p-gap);
}

/* ---------- Comunidade (Nação Criptomaníacos) ---------- */

.comunidade {
  margin-top: 50px;
  padding: 100px 0;
  background-color: var(--bg-section);
}

.comunidade__row {
  display: flex;
  gap: 20px;
}

.comunidade__text {
  display: flex;
  flex: 0 1 100%;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.comunidade__logo {
  width: 35%;
}

.comunidade__kicker {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
}

.comunidade__title {
  color: #fff;
  font-size: 39px;
  font-weight: 300;
  line-height: 43px;
}

.comunidade__lead {
  color: var(--text-light);
}

.comunidade .btn {
  align-self: flex-start;
}

.comunidade__media {
  flex: 0 1 100%;
  text-align: right;
}

/* ---------- Newsletter ---------- */

.newsletter {
  padding: 100px 0;
}

.newsletter__box {
  padding: 50px;
  border-radius: 20px;
  background-image: radial-gradient(at center left, var(--purple-light) 0%, var(--purple) 58%);
}

.newsletter__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.newsletter__kicker {
  color: #fff; /* original rgba(255, 255, 255, .49): 2,4:1 sobre o roxo */
  font-size: 13px;
  font-weight: 300;
}

.newsletter__title {
  color: #fff;
  font-size: 30px;
  font-weight: 300;
}

.newsletter__cta {
  padding: 10px;
}

/* ---------- Redes sociais ---------- */

.redes {
  padding: 100px 0;
}

.redes__row {
  display: flex;
  gap: 20px;
}

.redes__card {
  display: flex;
  flex: 0 0 60%;
  flex-direction: column;
  gap: 20px;
  min-height: 231px;
  padding: 50px;
  border: 2px solid var(--border-card);
  border-radius: 20px;
}

.redes__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.redes__title {
  flex: 0 1 75.893%;
  min-width: 0;
  color: #fff;
  font-size: 49px;
  font-weight: 300;
}

.redes__arrow {
  flex: none;
  width: 50px;
  height: 50px;
}

.redes__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.redes__list li + li {
  margin-top: 11px;
}

/* Ícone numa caixa de 29px + 5px de padding no texto, como a icon-list do Elementor. */
.redes__list a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-social);
  font-size: 20px;
  font-weight: 300;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.redes__list svg {
  flex: none;
  width: 23px;
  height: 23px;
}

.redes__list span {
  padding-left: 5px;
  overflow-wrap: anywhere;
}

.redes__youtube {
  flex: 0 1 100%;
}

.redes__youtube img {
  display: block;
  width: 100%;
  border: 2px solid var(--border-card);
  border-radius: 20px;
}

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

.site-footer {
  padding: 50px 0;
  background-color: var(--bg-footer);
}

.site-footer__row {
  display: flex;
}

.site-footer__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}

.site-footer__col--logo img {
  width: 55%;
}

.site-footer__col--info {
  gap: 10px;
}

.site-footer__col--info a {
  text-decoration: underline;
}

/* E-mail e telefone viraram links, mas com a aparência de texto do original. */
.site-footer__col--info a.site-footer__plain {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__col--info strong {
  font-weight: 700;
}

.site-footer__col--top {
  align-items: flex-end;
}

/* ---------- Páginas legais (política de privacidade, termos de uso) ---------- */

.legal {
  padding: 60px 0 100px;
}

.legal__inner {
  max-width: 800px;
}

.legal__head {
  margin-bottom: 40px;
}

.legal__title {
  color: #fff;
  font-size: 39px;
  font-weight: 300;
  line-height: 43px;
}

.legal__date {
  margin: 15px 0 0;
  color: var(--green);
  font-size: 15px;
  font-weight: 300;
}

.legal__body {
  color: var(--text-light);
  line-height: 1.7;
  overflow-wrap: break-word; /* URLs longas no texto */
}

.legal__body strong {
  color: #fff;
  font-weight: 700;
}

.legal__body ol,
.legal__body ul {
  margin: 0 0 var(--p-gap);
  padding-left: 1.5em;
}

.legal__body li {
  margin-bottom: 0.5em;
}

.legal__body a {
  text-decoration: underline;
}

/* ---------- 404 ---------- */

.not-found {
  margin-top: 0;
  padding: 40px 20px;
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.not-found__logo {
  width: 182px;
}

@media (max-width: 767px) {
  /* Os quadrados decorativos do hero passariam por trás do texto. */
  .not-found::before {
    display: none;
  }
}

.not-found__code {
  margin: 40px 0 0;
  color: var(--green);
  font-size: 15px;
  font-weight: 300;
}

/* ---------- Animações de entrada (keyframes do Elementor) ---------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes slideInLeft {
  from { transform: translate3d(-100%, 0, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes slideInRight {
  from { transform: translate3d(100%, 0, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-animate]:not(.is-animated) {
    visibility: hidden;
  }

  .js [data-animate].is-animated {
    animation-duration: 1.25s;
    animation-fill-mode: both;
  }

  .js [data-animate="fadeIn"].is-animated { animation-name: fadeIn; }
  .js [data-animate="fadeInUp"].is-animated { animation-name: fadeInUp; }
  .js [data-animate="slideInLeft"].is-animated { animation-name: slideInLeft; }
  .js [data-animate="slideInRight"].is-animated { animation-name: slideInRight; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Tablet (≤ 1024px) ---------- */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* No original o título fica em 56px e "criptomoedas" vaza da coluna abaixo de ~880px. */
  .hero__title {
    font-size: clamp(31px, 5.2vw, 56px);
  }

  /* Mesmo problema com "conteúdos" (49px) no título do card de redes. */
  .redes__title {
    font-size: clamp(28px, 4.5vw, 49px);
  }

  /* O e-mail do rodapé não cabe num terço da largura: a coluna do meio fica com o dobro. */
  .site-footer__col--info {
    flex-grow: 2;
  }

  .menu-mobile {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    background-color: #020101;
    transform: scaleY(0);
    transform-origin: top;
    visibility: hidden;
    transition: max-height 0.3s, transform 0.3s, visibility 0s 0.3s;
  }

  .menu-mobile.is-open {
    max-height: 100vh;
    transform: scaleY(1);
    visibility: visible;
    transition: max-height 0.3s, transform 0.3s;
  }

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

  .menu-mobile .nav__link {
    padding: 10px 20px;
    font-weight: 300;
    transition: none;
  }

  .menu-mobile .nav__link:hover,
  .menu-mobile .nav__link:focus {
    background-color: #3f444b;
    color: #fff;
  }
}

/* CSS customizado do original para o container do menu: o breakpoint é 768px, não 767px. */
@media only screen and (max-width: 768px) {
  .nav-pill {
    background-color: transparent;
  }
}

/* ---------- Mobile (≤ 767px) ---------- */

@media (max-width: 767px) {
  .site-header__inner {
    min-height: 95px;
  }

  main [id] {
    scroll-margin-top: 95px;
  }

  .site-header__logo {
    flex-basis: 36%;
  }

  .site-header__nav {
    flex-basis: 16%;
  }

  .site-header__cta {
    flex-basis: 35%;
    max-width: 163px;
  }

  .nav-pill {
    border-radius: 5px;
  }

  .menu-mobile .nav__link {
    padding: 15px 25px;
  }

  .btn--outline-white {
    padding: 10px 15px;
    font-size: 14px;
  }

  .hero__row {
    flex-direction: column;
    padding: 150px 0 0;
  }

  .hero__text {
    gap: 10px;
  }

  .hero__title {
    font-size: 31px;
    line-height: 1.2;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__media {
    padding: 0;
    text-align: center;
  }

  .hero__media img {
    width: 61%;
  }

  .numeros__box {
    flex-direction: column;
  }

  .numeros__valor {
    font-size: 36px;
    line-height: 1.2;
  }

  .comunidade__row {
    flex-direction: column;
  }

  .comunidade__logo {
    width: 50%;
  }

  .comunidade__kicker {
    font-size: 12px;
  }

  .comunidade .btn {
    align-self: stretch;
    padding: 10px 0;
    font-size: 14px;
  }

  .newsletter {
    padding: 50px 0;
  }

  .newsletter__box {
    padding: 25px;
  }

  .newsletter__kicker {
    font-size: 12px;
  }

  .newsletter__title {
    font-size: 23px;
    line-height: 1.2;
  }

  .redes {
    padding: 30px 0 100px;
  }

  .redes__row {
    flex-direction: column;
  }

  .redes__card {
    flex: none;
    padding: 30px;
  }

  .redes__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .redes__list a {
    font-size: 16px;
  }

  .legal {
    padding: 40px 0 80px;
  }

  .legal__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .site-footer__row {
    flex-direction: column;
  }

  .site-footer__col {
    flex: none;
  }
}

/* Celulares estreitos (320px): o card de redes perde padding para o "@criptomaniacosoficial" caber. */
@media (max-width: 400px) {
  .redes__card {
    padding: 20px;
  }
}
