/*
Theme Name: Quero Meu SonCard
Theme URI:  
Description: 
Author: Marcelo Henrique
Author URI:  
*/

/*
Landing Page: SonCard — Lista VIP (queromeu.soncard.com.br)
Tokens e padrões visuais herdados do Design System oficial SonCard.
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Cores institucionais SonCard */
  --primary: #3e4095;
  --primary-hover: #313277;
  --primary-light: #f0f1fa;
  --accent: #d0dd39;
  --accent-hover: #becc28;
  --accent-light: #f7f9d8;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  --claro: #ffffff;
  --bg-alt: #f8f8fb;
  --bg-body: #f4f5f9;
  --border-color: #e2e8f0;

  /* Estados */
  --success: #2e7d32;
  --success-bg: #e8f5e9;
  --warning: #ed6c02;
  --warning-bg: #fff3e0;
  --danger: #d32f2f;
  --danger-bg: #ffebee;
  --info: #0288d1;
  --info-bg: #e1f5fe;

  /* Tipografia */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Espaçamento */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Bordas e radius */
  --border-accent-left: 6px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 20px;
  --radius-pill: 9999px;

  /* Sombras */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 5px 5px 15px 0px rgba(44, 44, 44, 0.3);
  --shadow-hover: 0 8px 24px rgba(62, 64, 149, 0.18);

  /* Transições */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 84px;
  --container-width: 1385px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-display: swap;
  color: var(--text);
  background: var(--accent);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: 8em 0 0;

  &.alt {
    background: var(--bg-alt);
  }
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--primary);
  color: var(--claro);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 2000;

  &:focus {
    left: var(--space-4);
    top: var(--space-4);
  }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   3. BOTÕES (padrão SonCard)
   ========================================================================== */
.cta-btn {
  font-family: var(--font-body);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  font-size: 1rem;
  line-height: 1;

  &.primary {
    background: var(--primary);
    color: var(--claro);
    border-color: var(--primary);

    &:hover {
      background: transparent;
      color: var(--primary);
      border-color: var(--primary);
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }
  }

  &.amarelo {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);

    &:hover {
      background: transparent;
      color: var(--claro);
      border-color: var(--claro);
      transform: translateY(-2px);
    }
  }

  &.outline {
    background: transparent;
    border-color: var(--claro);
    color: var(--claro);

    &:hover {
      background: var(--claro);
      color: var(--primary);
    }
  }

  &.lg {
    padding: 18px 36px;
    font-size: 1.15rem;
  }

  &:active {
    transform: translateY(0) scale(0.98);
  }
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.header {
  background: var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: box-shadow var(--transition-base), padding var(--transition-base);

  &.is-scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
  }
}

/* Compensa a admin bar do WordPress (também fixa no topo) para não sobrepor o header */
body.admin-bar .header {
  top: 32px;
}

@media screen and (max-width: 782px) {

  body.admin-bar .header,
  body.admin-bar #mobileMenu {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .header {
    top: 0;
  }
}

.logo-header {
  max-width: 80px;
  flex-shrink: 0;
}

/* Logo do rodapé */
.logo {
  display: inline-block;

  img {
    max-width: 90px;
    height: auto;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);

  a:not(.cta-btn) {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;

    &::after {
      content: "";
      height: 2px;
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 0;
      display: block;
      background-color: var(--primary);
      transition: width 0.2s;
    }

    &:hover {
      color: var(--primary);
    }

    &:hover::after {
      width: 100%;
    }
  }
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: var(--space-2);

  span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition-fast);
  }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 200px 20px 110px;
  overflow: hidden;
  isolation: isolate;

  .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 0.9fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 480px;
  }
}

/* Camada de fundo (foto) — deslocada via JS para efeito parallax */
.hero-bg {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  bottom: -100px;
  z-index: 0;
  background-image: var(--hero-bg-desktop, url("img/bg-hero.jpg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

@media (max-width: 900px) {
  .hero-bg {
    background-image: var(--hero-bg-mobile, var(--hero-bg-desktop, url("img/bg-hero.jpg")));
  }
}

/* Camada de overlay (gradiente de marca) — permanece fixa, só a foto se move */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(120% 100% at 100% 0%,
      rgba(208, 221, 57, 0.18) 0%,
      rgba(208, 221, 57, 0) 45%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.86) 0%,
      rgba(0, 0, 0, 0.1) 55%,
      rgba(0, 0, 0, 0.88) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--claro);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.6em;

  &::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(208, 221, 57, 0.25);
  }
}

.hero-copy {
  h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 3.8vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 700px;
    margin-bottom: 0.5em;
    color: var(--claro);

    .hl {
      color: var(--accent);
    }

    .fw-light {
      font-weight: 300;
    }
  }

  .tagline {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 480px;
    margin-bottom: 0;
  }
}

.hero-scroll-cta {
  margin-top: var(--space-6);
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.06);

  svg {
    animation: bounce-down 1.8s ease-in-out infinite;
  }

  &:hover svg {
    animation-play-state: paused;
    transform: translateY(2px);
  }
}

@keyframes bounce-down {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

.hero-form-wrap p {
  color: var(--claro);
  font-weight: bold;
  max-width: 90%;
  padding-left: 0.5em;
}

/* Container do formulário Bitrix */
.bitrix-form-container {
  background: var(--claro);
  border-radius: var(--radius-xl);
  border-top: 6px solid var(--accent);
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  min-height: 320px;
}

/* ==========================================================================
   5B. TUDO O QUE VOCÊ PRECISA (grid rápido)
   ========================================================================== */
.quick-features {
  padding: 8em 0 var(--space-10);
  background: var(--primary);

  h2 {
    color: var(--claro);
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-10);

    .fw-light {
      font-weight: 300;
    }
  }
}

.quick-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.quick-feature-card {
  background: #ececec;
  border-radius: var(--radius-xl);
  border-left: 5px solid var(--accent);
  padding: var(--space-6);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base), border-color var(--transition-base);

  .qf-icon {
    color: var(--primary);
    margin-bottom: var(--space-8);
  }

  .qf-body {
    flex: 1;

    h3 {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: var(--space-2);
    }

    p {
      font-size: 0.9rem;
      line-height: 1.35;
      color: var(--text);
      font-weight: 600;
    }
  }

  .qf-arrow {
    align-self: flex-end;
    color: var(--primary);
    transition: transform var(--transition-fast);
  }

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);

    .qf-arrow {
      transform: translateX(4px);
    }
  }
}

/* ==========================================================================
   6. FAIXA DE VANTAGENS
   ========================================================================== */
.vantagens {
  padding: var(--space-16) 0;
  background: var(--primary);
  overflow: hidden;
}

.vantagens-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  /* align-items: center; */
}

.vantagens-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: baseline;
}

.vantagens-copy {
  h2 {
    color: var(--claro);
    font-size: clamp(2.4rem, 3.6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 560px;
    margin-bottom: var(--space-8);

    .fw-light {
      font-weight: 300;
    }
  }
}

.vantagens-visual {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 10 / 7.8;
  box-shadow: var(--shadow-xl);
}

.vantagens-bg {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  bottom: -60px;
  will-change: transform;

  picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 30%;
    display: block;
  }
}

.vantagens-cards {
  position: absolute;
  /* top: 0%; */
  /* left: 32%; */
  right: 5%;
  bottom: 6%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 216px));
  /* grid-template-rows: repeat(2, 1fr); */
  gap: var(--space-4);
}

.vantagem-card {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-base);

  svg {
    flex-shrink: 0;
    margin-bottom: var(--space-5);
  }

  strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.25;
    margin-bottom: var(--space-2);
  }

  p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text);
    font-weight: 600;
  }

  &:hover {
    transform: translateY(-3px);
  }
}

/* ==========================================================================
   7. VÍDEO TEASER
   ========================================================================== */
.video-section {
  padding-bottom: 5em;
}

.video-head {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-10);
}

.video-head-main {
  .video-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
  }

  h2 {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.12;
    max-width: 300px;

    .fw-light {
      font-weight: 300;
    }
  }
}

.video-head-desc {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.35;
  padding-top: var(--space-10);
  font-weight: 600;
  font-family: var(--font-body);
}

.video-thumb {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 7.2;
  width: 100%;
  border: none;
  padding: 0;
  background: var(--primary);

  picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
  }

  &:hover img {
    transform: scale(1.04);
  }

  &:hover .play-btn {
    background: var(--accent);
    color: var(--primary);
  }
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);

  &::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: pulse 2.2s ease-out infinite;
  }

  svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 16, 48, 0.88);
  align-items: center;
  justify-content: center;
  padding: var(--space-5);

  &.is-open {
    display: flex;
  }

  .modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--claro);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast);

  &:hover {
    color: var(--accent);
  }
}

/* ==========================================================================
   9. COMO FUNCIONA
   ========================================================================== */
.how-it-works {
  padding: 8em 0;
  background: var(--primary);

  .container {
    max-width: 1100px;
  }
}

.how-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.how-sticky {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
  will-change: transform;

  .eyebrow {
    display: inline-block;
    color: var(--claro);
    /* background: rgba(255, 255, 255, 0.12); */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    /* padding: var(--space-1) var(--space-4); */
    /* border-radius: var(--radius-pill); */
    margin-bottom: var(--space-5);
  }

  h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    color: var(--claro);
    line-height: 1.2;
    max-width: 420px;

    .fw-light {
      font-weight: 300;
    }
  }
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-left: 0;
}

.how-step {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
  min-height: 68vh;
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);

  &:nth-child(1) {
    z-index: 1;
  }

  &:nth-child(2) {
    z-index: 2;
  }

  &:nth-child(3) {
    z-index: 3;
  }
}

.how-step-number {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 7.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  background: var(--primary);
  margin-right: 0.1em;
}

.how-step-card {
  width: 100%;
  max-width: 320px;
  background: var(--claro);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);

  .how-step-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
  }

  p {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
  }
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr;
  gap: clamp(2rem, 2vw, 6rem);
  align-items: start;
}

.faq-image {
  display: flex;
  justify-content: center;
  align-self: end;

  .faq-intro-img {
    width: 100%;
    /* max-width: 380px; */
    height: auto;
  }
}

.faq-intro {
  margin-bottom: var(--space-8);

  h2 {
    font-size: clamp(2.6rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: var(--space-5);

    .fw-light {
      font-weight: 300;
    }
  }

  p {
    color: var(--text);
    font-weight: 500;
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 600;
  }
}

.faq-item {
  h3 {
    border-bottom: 1px solid var(--text);
  }

  border-radius: var(--radius-xl);
  border-left: 5px solid transparent;
  padding: 0 var(--space-6);
  margin: 0 calc(var(--space-6) * -1);
  transition: background-color var(--transition-base),
  border-color var(--transition-base);

  &:has(.faq-question[aria-expanded="true"]) {
    background: var(--primary-light);
    border-left-color: var(--accent);
    margin-top: var(--space-4);
  }

  &:has(.faq-question[aria-expanded="true"]) h3 {
    border-bottom: none;
  }
}

.faq-item:last-child {
  margin-bottom: 2em;

  h3 {
    border-bottom: none;
  }
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
  cursor: pointer;
  transition: opacity var(--transition-fast);

  &:hover {
    opacity: 0.7;
  }

  .faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
  }

  &[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
  }
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow);

  p {
    padding: 0 0 var(--space-6);
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 560px;
  }
}

/* ==========================================================================
   12. FECHAMENTO
   ========================================================================== */
.closing {
  background: var(--primary);
  color: var(--claro);
  text-align: center;
  padding: var(--space-16) 0 0;

  h2 {
    color: var(--claro);
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 1;
    max-width: 1110px;
    margin: 0 auto var(--space-8);

    .hl {
      color: var(--accent);
    }

    .fw-light {
      font-weight: 300;
    }
  }
}

.closing-app-img {
  display: block;
  width: 100%;
  max-width: 421px;
  height: auto;
  margin: var(--space-10) auto 0;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.footer {
  background: var(--primary);
  color: var(--claro);
  padding: var(--space-16) 0 var(--space-8);
  font-size: 0.9rem;
  border-radius: 5em 5em 0 0;
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  p {
    margin-top: var(--space-4);
    max-width: 280px;
    line-height: 1.6;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);

  a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);

    &:hover {
      background: var(--accent);
      color: var(--primary);
    }
  }
}

.footer-col {
  h4 {
    color: var(--claro);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
  }

  li {
    margin-bottom: var(--space-3);
  }

  a {
    color: var(--claro);
    text-decoration: none;
    transition: color var(--transition-fast);

    &:hover {
      color: var(--accent);
    }
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: 0.8rem;
}

/* ==========================================================================
   14. SCROLL REVEAL
   ========================================================================== */
[data-reveal],
[data-reveal-repeat] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible,
[data-reveal-repeat].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   15. RESPONSIVO
   ========================================================================== */
@media (max-width: 1080px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .vantagens-layout {
    grid-template-columns: 1fr;
  }

  .vantagens-copy h2 {
    max-width: none;
  }

  .how-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .how-sticky {
    position: static;
    transform: none;
  }

  .how-step {
    position: static;
    min-height: 0;
    flex-direction: column;
    gap: var(--space-3);
  }

  .how-step-number {
    font-size: 3rem;
    margin-right: 0;
  }

  .how-step-card {
    max-width: none;
    min-height: 0;
  }

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

  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

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

  .mobile-menu-btn {
    display: flex;
  }

  #mobileMenu {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: var(--primary);
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    padding: 80px 30px;
    transition: right 0.35s ease;
    z-index: 2000;

    a:not(.cta-btn) {
      color: var(--claro);
      font-size: 1.2rem;
      text-decoration: none;
      font-weight: 600;
    }

    .cta-btn {
      margin-top: var(--space-2);
    }

    &.open {
      right: 0;
    }
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--claro);
    font-size: 40px;
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  .faq-intro h2 {
    font-size: 1.7rem;
  }

  .video-head {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .video-head-desc {
    padding-top: 0;
  }

  .vantagens-visual {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-shadow: none;
  }

  .vantagens-bg {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: 260px;
    flex-shrink: 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
  }

  .vantagens-cards {
    position: static;
    inset: auto;
    margin-top: var(--space-5);
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-features-grid {
    grid-template-columns: 1fr;
  }

  .closing h2 {
    font-size: 1.8rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   16. RESPONSIVO — HEADER & HERO (fiel ao site institucional)
   ========================================================================== */
@media (max-width: 1470px) {
  .hero {
    padding: 160px 20px 90px;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 130px 50px 70px;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bitrix-form-container {
    max-width: none;
    margin-top: var(--space-4);
  }

  .faq-image {
    order: 2;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 110px 1.25em 50px;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 7px 14px;
  }

  .vantagens-cards {
    grid-template-columns: 1fr;
  }
}

#hero #hero-form .css-qx8stx p {
  font-size: 12px !important;
}