/* ============================================
   Pay Pagamentos Seguro LTDA - Landing Page
   Estilos principais: azul escuro, branco, verde
   ============================================ */

:root {
  /* Cores corporativas */
  --azul-escuro: #0f172a;
  --azul-escuro-2: #1e293b;
  --azul-medio: #334155;
  --branco: #ffffff;
  --branco-off: #f8fafc;
  --verde: #059669;
  --verde-hover: #047857;
  --verde-claro: #d1fae5;
  /* Tipografia */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Espaçamentos e bordas */
  --container-max: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  /* Transições */
  --transition: 0.3s ease;
}

/* Reset e base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--azul-escuro);
  background-color: var(--branco);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--verde);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--verde-hover);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER FIXO ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--branco);
}

.logo-pay {
  color: var(--verde);
}

.logo-pagamentos {
  color: var(--branco);
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--verde);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: none;
}

.btn-primary {
  background: var(--verde);
  color: var(--branco);
}

.btn-primary:hover {
  background: var(--verde-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--branco);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: var(--verde);
  color: var(--verde);
}

.btn-whatsapp-header {
  background: #25d366;
  color: var(--branco);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-whatsapp-header:hover {
  background: #20bd5a;
  color: var(--branco);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--branco);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-escuro-2) 50%, #0c1222 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(5, 150, 105, 0.15), transparent),
              radial-gradient(ellipse 60% 40% at 100% 0%, rgba(5, 150, 105, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--branco);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title .highlight {
  color: var(--verde);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons .btn {
  min-width: 180px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--verde);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ========== SEÇÃO COMUM (títulos) ========== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--azul-escuro);
  margin-bottom: 0.75rem;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--verde);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--azul-medio);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== SOBRE ========== */
.sobre {
  padding: 5rem 0;
  background: var(--branco-off);
}

.sobre-content {
  max-width: 800px;
  margin: 0 auto;
}

.sobre-text {
  font-size: 1.05rem;
  color: var(--azul-medio);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.sobre-text:last-child {
  margin-bottom: 0;
}

/* ========== SERVIÇOS (CARDS) ========== */
.servicos {
  padding: 5rem 0;
  background: var(--branco);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-servico {
  background: var(--branco);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card-servico:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--verde);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--azul-medio);
  line-height: 1.6;
}

/* ========== NOSSAS OFERTAS DIGITAIS ========== */
.ofertas {
  padding: 5rem 0;
  background: var(--branco-off);
}

.ofertas-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--azul-medio);
  margin-top: 0.5rem;
}

.ofertas-content {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.ofertas-text {
  font-size: 1.05rem;
  color: var(--azul-medio);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.ofertas-list {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--azul-medio);
  line-height: 1.8;
}

.ofertas-list li {
  margin-bottom: 0.35rem;
}

.ofertas-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding-left: 0;
}

.ofertas-list-grid li {
  position: relative;
  padding-left: 1.25rem;
}

.ofertas-list-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--verde);
  border-radius: 50%;
}

.ofertas-destaque {
  font-weight: 600;
  color: var(--azul-escuro);
  margin-top: 1.5rem;
}

.ofertas-extra {
  background: var(--branco);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.ofertas-extra-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin-bottom: 0.75rem;
  text-align: center;
}

.ofertas-extra-intro {
  text-align: center;
  color: var(--azul-medio);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ofertas-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.ofertas-extra-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--branco-off);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--azul-escuro);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.ofertas-extra-item:hover {
  border-color: var(--verde);
  background: var(--verde-claro);
}

.ofertas-extra-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========== COMO FUNCIONA ========== */
.como-funciona {
  padding: 5rem 0;
  background: var(--branco-off);
}

.passos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: start;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.passo {
  grid-column: span 1;
  text-align: center;
  padding: 0 0.5rem;
}

.passo-connector {
  grid-column: span 1;
  height: 2px;
  background: linear-gradient(90deg, var(--verde), rgba(5, 150, 105, 0.3));
  margin-top: 28px;
  min-width: 20px;
}

.passo-numero {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--verde);
  color: var(--branco);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.passo-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin-bottom: 0.5rem;
}

.passo-texto {
  font-size: 0.9rem;
  color: var(--azul-medio);
  line-height: 1.5;
}

/* ========== FORMULÁRIO DE CONTATO ========== */
.contato {
  padding: 5rem 0;
  background: var(--branco);
}

.form-contato {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--azul-escuro);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required {
  color: #dc2626;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: var(--branco);
  color: var(--azul-escuro);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: block;
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 0.35rem;
  min-height: 1.2em;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #dc2626;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ========== BOTÃO WHATSAPP FLUTUANTE ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: var(--branco);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ========== RODAPÉ ========== */
.footer {
  background: var(--azul-escuro);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-pay {
  color: var(--verde);
}

.footer-brand .logo-pagamentos {
  color: var(--branco);
}

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
}

.footer-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 1rem;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-info a {
  color: var(--verde-claro);
}

.footer-info a:hover {
  color: var(--branco);
}

.footer-legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal a:hover {
  color: var(--verde);
}

.separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== RESPONSIVO ========== */
@media (max-width: 992px) {
  .passos {
    grid-template-columns: 1fr;
  }

  .passo {
    grid-column: 1;
  }

  .passo-connector {
    width: 2px;
    height: 24px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--verde), rgba(5, 150, 105, 0.3));
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--azul-escuro);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-whatsapp-header {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Animações ao scroll (quando suportado) */
@media (prefers-reduced-motion: no-preference) {
  .card-servico,
  .passo,
  .ofertas-extra-item {
    opacity: 0;
    transform: translateY(20px);
  }

  .card-servico.visible,
  .passo.visible,
  .ofertas-extra-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .card-servico.visible:hover {
    transform: translateY(-4px);
  }
}
