/* ========================================
   GOMES ASSESSORIA V2 - CSS
   Landing Page focada em conversão WhatsApp
   ======================================== */

/* ----------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
  /* Cores principais */
  --azul-escuro: #101063;
  --ciano: #0891b2;
  --ciano-escuro: #0e7490;
  --ciano-claro: #ecfeff;

  /* Texto - Contraste WCAG AA */
  --texto-primario: #1e293b;
  --texto-secundario: #475569;
  --texto-claro: #ffffff;

  /* Backgrounds */
  --bg-claro: #f8fafc;
  --bg-branco: #ffffff;
  --bg-escuro: #101063;

  /* WhatsApp */
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;

  /* Utilitários */
  --borda: #e2e8f0;
  --sombra: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --sombra-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Tipografia */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Espaçamentos */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transições */
  --transition: 150ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Header */
  --header-height: 72px;
}

/* ----------------------------------------
   2. CSS RESET
   ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--texto-primario);
  background-color: var(--bg-branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

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

a:hover {
  color: var(--ciano-escuro);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--azul-escuro);
  font-weight: 700;
}

/* Focus visível para acessibilidade */
:focus-visible {
  outline: 3px solid var(--ciano);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--azul-escuro);
  color: var(--texto-claro);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ----------------------------------------
   3. UTILITÁRIOS
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-16) 0;
}

.section--alt {
  background-color: var(--bg-claro);
}

.section--dark {
  background-color: var(--bg-escuro);
  color: var(--texto-claro);
}

.section--dark h2,
.section--dark h3 {
  color: var(--texto-claro);
}

.text-center {
  text-align: center;
}

.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;
}

/* ----------------------------------------
   4. HEADER
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-branco);
  box-shadow: var(--sombra);
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo img {
  height: 38px;
  width: auto;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  gap: var(--space-6);
}

.header__nav-link {
  color: var(--texto-secundario);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--azul-escuro);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ciano);
  transition: width var(--transition);
}

.header__nav-link:hover::after,
.header__nav-link:focus::after {
  width: 100%;
}

/* CTA desktop (com texto) */
.header__cta.btn {
  display: none;
}

/* Botões mobile (apenas ícones) */
.header__mobile-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Botão WhatsApp mobile (apenas ícone) */
.header__whatsapp-mobile {
  width: 44px;
  height: 44px;
  background: var(--whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.header__whatsapp-mobile:hover {
  background: var(--whatsapp-hover);
}

.header__whatsapp-mobile svg {
  width: 24px;
  height: 24px;
  color: var(--texto-claro);
}

/* Menu Mobile Toggle */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--azul-escuro);
  transition: transform var(--transition), opacity var(--transition);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-branco);
  padding: var(--space-6);
  z-index: 999;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-3);
  font-size: var(--text-lg);
  color: var(--texto-primario);
  border-bottom: 1px solid var(--borda);
}

.mobile-menu__cta {
  margin-top: var(--space-6);
}

/* ----------------------------------------
   5. BOTÕES
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--texto-claro);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus {
  background: var(--whatsapp-hover);
  color: var(--texto-claro);
  transform: translateY(-2px);
  box-shadow: var(--sombra-lg);
}

.btn--whatsapp-hero {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--ciano {
  background: var(--ciano);
  color: var(--texto-claro);
}

.btn--ciano:hover,
.btn--ciano:focus {
  background: var(--ciano-escuro);
  color: var(--texto-claro);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--ciano);
  color: var(--ciano);
}

.btn--outline:hover,
.btn--outline:focus {
  background: var(--ciano);
  color: var(--texto-claro);
}

.btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Animação pulse no botão hero */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

.btn--whatsapp-hero {
  animation: pulse 2s infinite;
}

.btn--whatsapp-hero:hover {
  animation: none;
}

/* ----------------------------------------
   6. HERO
   ---------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-16);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('../../img/banner-home.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay escuro para legibilidade */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 16, 99, 0.85) 0%, rgba(16, 16, 99, 0.7) 100%);
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero__inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.hero__content {
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--texto-claro);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  color: var(--texto-claro);
}

.hero__title span {
  color: #5eead4;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  margin-bottom: var(--space-8);
}

/* Proof Points */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
}

.proof-item__icon {
  width: 20px;
  height: 20px;
  color: #5eead4;
}

/* ----------------------------------------
   7. BENEFÍCIOS
   ---------------------------------------- */
.benefits__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.benefits__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.benefits__subtitle {
  color: var(--texto-secundario);
  max-width: 600px;
  margin: 0 auto;
}

.benefits__grid {
  display: grid;
  gap: var(--space-6);
}

.benefit-card {
  background: var(--bg-branco);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--sombra);
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-lg);
}

.benefit-card__icon {
  width: 64px;
  height: 64px;
  background: var(--ciano-claro);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.benefit-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--ciano);
}

.benefit-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.benefit-card__text {
  color: var(--texto-secundario);
}

/* ----------------------------------------
   8. COMO FUNCIONA
   ---------------------------------------- */
.steps__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.steps__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.steps__subtitle {
  color: var(--texto-secundario);
  max-width: 600px;
  margin: 0 auto;
}

.steps__grid {
  display: grid;
  gap: var(--space-8);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 64px;
  height: 64px;
  background: var(--azul-escuro);
  color: var(--texto-claro);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 auto var(--space-4);
}

.step__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.step__text {
  color: var(--texto-secundario);
}

/* ----------------------------------------
   9. SOBRE O FIADOR
   ---------------------------------------- */
.about__inner {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.about__content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.about__content p {
  color: var(--texto-secundario);
  margin-bottom: var(--space-4);
}

.about__highlight {
  background: var(--ciano-claro);
  border-left: 4px solid var(--ciano);
  padding: var(--space-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: var(--space-6);
}

.about__highlight p {
  margin: 0;
  color: var(--texto-primario);
  font-weight: 500;
}

/* Tabs de pesquisas */
.research-tabs {
  background: var(--bg-branco);
  border-radius: var(--radius-xl);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.research-tabs__buttons {
  display: flex;
  border-bottom: 1px solid var(--borda);
}

.research-tabs__btn {
  flex: 1;
  padding: var(--space-4);
  background: none;
  border: none;
  font-weight: 600;
  color: var(--texto-secundario);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.research-tabs__btn:hover {
  color: var(--azul-escuro);
}

.research-tabs__btn[aria-selected="true"] {
  color: var(--ciano);
}

.research-tabs__btn[aria-selected="true"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ciano);
}

.research-tabs__panel {
  padding: var(--space-6);
}

.research-tabs__panel[hidden] {
  display: none;
}

.research-tabs__panel ul {
  display: grid;
  gap: var(--space-2);
}

.research-tabs__panel li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--texto-secundario);
}

.research-tabs__panel li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--ciano);
  border-radius: var(--radius-full);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ----------------------------------------
   10. FAQ
   ---------------------------------------- */
.faq__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.faq__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
}

.faq-item {
  background: var(--bg-branco);
  border-radius: var(--radius-lg);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--texto-primario);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-item__question:hover {
  color: var(--ciano);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--texto-secundario);
}

.faq-item__answer[hidden] {
  display: none;
}

/* ----------------------------------------
   11. CTA FINAL
   ---------------------------------------- */
.cta-final {
  background: var(--azul-escuro);
  padding: var(--space-16) 0;
}

.cta-final__inner {
  text-align: center;
}

.cta-final__title {
  font-size: var(--text-3xl);
  color: var(--texto-claro);
  margin-bottom: var(--space-4);
}

.cta-final__text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ----------------------------------------
   12. FOOTER
   ---------------------------------------- */
.footer {
  background: var(--bg-claro);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__inner {
  display: grid;
  gap: var(--space-8);
}

.footer__brand h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.footer__brand p {
  color: var(--texto-secundario);
  font-size: var(--text-sm);
}

.footer__contact h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.footer__contact-list {
  display: grid;
  gap: var(--space-3);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--texto-secundario);
  font-size: var(--text-sm);
}

.footer__contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--ciano);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__hours h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.footer__hours p {
  color: var(--texto-secundario);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--borda);
  text-align: center;
}

.footer__copyright {
  color: var(--texto-secundario);
  font-size: var(--text-sm);
}

/* ----------------------------------------
   13. BOTÃO FLUTUANTE WHATSAPP
   ---------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 900;
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-lg);
  transition: all var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float__btn:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.1);
  animation: none;
}

.whatsapp-float__btn svg {
  width: 32px;
  height: 32px;
  color: var(--texto-claro);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: var(--space-3);
  background: var(--texto-primario);
  color: var(--texto-claro);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  visibility: visible;
}

/* ----------------------------------------
   14. MEDIA QUERIES
   ---------------------------------------- */

/* Tablet pequeno */
@media (min-width: 768px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: var(--borda);
  }

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

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

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

/* Desktop - Menu visível */
@media (min-width: 1024px) {
  :root {
    --text-4xl: 3rem;
    --text-5xl: 4rem;
    --header-height: 82px;
  }

  .section {
    padding: var(--space-20) 0;
  }

  /* Esconde ações mobile, mostra nav e cta desktop */
  .header__mobile-actions {
    display: none;
  }

  .header__nav {
    display: block;
  }

  .header__logo img {
    height: 48px;
  }

  .header__cta.btn {
    display: inline-flex;
  }

  .header__menu-toggle {
    display: none;
  }

  .header__mobile-actions {
    display: none;
  }

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

  .hero__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: var(--text-5xl);
  }
}

/* Preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn--whatsapp-hero,
  .whatsapp-float__btn {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --texto-secundario: var(--texto-primario);
    --borda: var(--texto-primario);
  }
}
