/*
Theme Name: Opina Aqui
Theme URI: https://opinaaqui.com.br
Author: Opina Aqui
Author URI: https://opinaaqui.com.br
Description: Template WordPress profissional para a Opina Aqui - Inteligência de Dados que Move Mercados. Com efeito parallax, seções personalizáveis via Customizer e design moderno.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://opinaaqui.com.br/licenca
Text Domain: opina-aqui
Tags: business, dark, parallax, one-page, custom-colors, custom-logo, full-width-template
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a0f1e;
  --cobalt: #1340FF;
  --cobalt-light: #3a5cff;
  --cobalt-glow: rgba(19,64,255,0.15);
  --sand: #f5f0e8;
  --white: #ffffff;
  --muted: #6b7280;
  --border: rgba(19,64,255,0.12);
  --card-bg: rgba(255,255,255,0.03);
  --radius: 16px;

  /* Customizer Variables */
  --primary-color: #1340FF;
  --accent-color: #3a5cff;
  --hero-bg: #0a0f1e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* === TYPOGRAPHY === */
.font-display { font-family: 'Syne', sans-serif; }

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--cobalt); color: #fff; padding: 8px 16px;
  border-radius: 4px; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* === NAV === */
#site-navigation {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6%;
  background: rgba(10,15,30,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s;
}
#site-navigation.scrolled {
  padding: 12px 6%;
  background: rgba(10,15,30,0.97);
}

.site-logo img { height: 48px; width: auto; }
.site-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.03em; color: var(--white);
}
.site-logo-text span { color: var(--cobalt); }

/* Desktop nav menu */
.primary-menu {
  display: flex; gap: 2rem; list-style: none;
  align-items: center;
}
.primary-menu a {
  color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.01em; transition: color 0.2s;
}
.primary-menu a:hover { color: var(--white); }
.primary-menu .menu-cta > a {
  background: var(--cobalt); color: var(--white);
  padding: 10px 22px; border-radius: 100px;
  box-shadow: 0 4px 20px rgba(19,64,255,0.3);
  transition: background 0.2s, transform 0.2s;
}
.primary-menu .menu-cta > a:hover {
  background: var(--cobalt-light); transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none; background: transparent; border: none;
  cursor: pointer; padding: 4px; color: var(--white);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .primary-menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
    height: 100vh; background: #080d1c;
    flex-direction: column; justify-content: center; gap: 1.8rem;
    padding: 40px; border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }
  .primary-menu.open { right: 0; }
  .primary-menu a { font-size: 1.05rem; }
  .menu-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 998; backdrop-filter: blur(4px);
  }
  .menu-overlay.active { display: block; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary {
  background: var(--cobalt); color: var(--white);
  box-shadow: 0 4px 24px rgba(19,64,255,0.35);
}
.btn-primary:hover {
  background: var(--cobalt-light);
  box-shadow: 0 6px 32px rgba(19,64,255,0.55);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-sand {
  background: var(--sand); color: var(--ink);
  box-shadow: 0 4px 24px rgba(245,240,232,0.15);
}
.btn-sand:hover { background: #ede8e0; transform: translateY(-2px); }

/* === SECTION COMMON === */
section { padding: 96px 6%; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 14px;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px;
}
.section-desc {
  color: rgba(255,255,255,0.55); max-width: 540px;
  font-size: 1rem; line-height: 1.75;
}

/* === HERO WITH PARALLAX === */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 6% 80px;
  position: relative; overflow: hidden;
}
.parallax-layer {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
}
.hero-bg {
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(19,64,255,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(19,64,255,0.08) 0%, transparent 60%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(19,64,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,64,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 75%);
}
.hero-particles { pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 780px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(19,64,255,0.12); border: 1px solid rgba(19,64,255,0.3);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: #7da0ff; margin-bottom: 28px;
  animation: fadeDown 0.7s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cobalt); animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(1.4); } }
@keyframes fadeDown { from{ opacity:0; transform:translateY(-16px); } to{ opacity:1; transform:translateY(0); } }
@keyframes fadeUp { from{ opacity:0; transform:translateY(24px); } to{ opacity:1; transform:translateY(0); } }
@keyframes float { 0%,100%{ transform:translateY(0px); } 50%{ transform:translateY(-12px); } }

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-headline .accent {
  color: var(--cobalt); position: relative; display: inline-block;
}
.hero-headline .accent::after {
  content: ''; position: absolute; left: 0; bottom: -4px; right: 0; height: 3px;
  background: var(--cobalt); border-radius: 2px; opacity: 0.5;
}
.hero-sub {
  font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,0.65);
  max-width: 560px; margin-bottom: 40px; line-height: 1.75;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px;
  animation: fadeUp 0.8s 0.45s ease both;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px;
  animation: fadeUp 0.8s 0.6s ease both;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.8rem;
  color: var(--white); letter-spacing: -0.04em;
}
.stat-num em { color: var(--cobalt); font-style: normal; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 400; }

/* Hero visual mockup */
.hero-visual {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  z-index: 1; width: min(42%, 520px);
  animation: fadeUp 1s 0.3s ease both;
}
.mockup-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(19,64,255,0.1);
  animation: float 6s ease-in-out infinite;
}
.mockup-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-title { font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 600; opacity: 0.5; }
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.bar-label { width: 80px; text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--cobalt); transition: width 1.5s ease; }
.bar-val { width: 32px; font-weight: 600; color: var(--white); }
.data-pill {
  margin-top: 16px; padding: 12px 16px;
  background: rgba(19,64,255,0.1); border: 1px solid rgba(19,64,255,0.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem;
}
.data-pill strong { color: #7da0ff; }
.nps-pill {
  margin-top: 12px; padding: 12px 16px;
  background: rgba(29,215,91,0.08); border: 1px solid rgba(29,215,91,0.2);
  border-radius: 10px; font-size: 0.8rem; color: #1dd75b; font-weight: 500;
}

/* === PARALLAX SECTIONS === */
.parallax-section {
  position: relative; overflow: hidden;
}
.parallax-bg {
  position: absolute; inset: -30%; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax-overlay {
  position: absolute; inset: 0; z-index: 1;
}
.parallax-content { position: relative; z-index: 2; }

/* === DIFERENCIAIS === */
#diferenciais {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.diff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 56px;
}
.diff-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}
.diff-card.visible { opacity: 1; transform: translateY(0); }
.diff-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cobalt), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.diff-card:hover { border-color: rgba(19,64,255,0.35); box-shadow: 0 20px 60px rgba(19,64,255,0.1); }
.diff-card:hover::before { opacity: 1; }
.diff-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(19,64,255,0.12); border: 1px solid rgba(19,64,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.diff-card h3 {
  font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -0.02em;
}
.diff-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.infra-badge {
  margin-top: 48px; padding: 20px 28px;
  background: rgba(19,64,255,0.06); border: 1px solid rgba(19,64,255,0.2); border-radius: 14px;
  display: flex; align-items: center; gap: 16px; max-width: 680px;
}
.infra-badge-icon { font-size: 1.6rem; flex-shrink: 0; }
.infra-badge p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.65; }
.infra-badge p strong { color: var(--white); }

/* === SERVIÇOS === */
#servicos { background: var(--ink); }
.services-layout {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 64px; align-items: start; margin-top: 56px;
}
.service-list { display: flex; flex-direction: column; gap: 4px; }
.service-tab {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s; background: transparent;
}
.service-tab:hover { background: rgba(255,255,255,0.03); }
.service-tab.active {
  background: rgba(19,64,255,0.1); border-color: rgba(19,64,255,0.25);
}
.service-tab-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.service-tab.active .service-tab-icon { background: rgba(19,64,255,0.2); }
.service-tab-name {
  font-family: 'Syne', sans-serif; font-size: 0.92rem;
  font-weight: 600; letter-spacing: -0.01em;
}
.service-tab-arrow {
  margin-left: auto; opacity: 0; color: var(--cobalt);
  font-size: 1.1rem; transition: opacity 0.2s, transform 0.2s;
}
.service-tab.active .service-tab-arrow { opacity: 1; transform: translateX(3px); }
.service-detail {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; min-height: 360px;
  position: sticky; top: 100px;
}
.service-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.service-detail-icon { font-size: 2rem; }
.service-detail-title {
  font-family: 'Syne', sans-serif; font-size: 1.4rem;
  font-weight: 700; letter-spacing: -0.03em;
}
.service-detail-desc {
  color: rgba(255,255,255,0.6); line-height: 1.8;
  font-size: 0.95rem; margin-bottom: 28px;
}
.service-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: rgba(255,255,255,0.7);
}
.service-features li::before {
  content: '→'; color: var(--cobalt);
  flex-shrink: 0; font-weight: 700; margin-top: 1px;
}

/* === RESPONDENTE === */
#respondente {
  background: linear-gradient(135deg, var(--cobalt) 0%, #0a2adb 100%);
  position: relative; overflow: hidden;
}
#respondente::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.resp-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.resp-inner h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2; letter-spacing: -0.03em; max-width: 480px;
}
.resp-inner h2 em { color: rgba(255,255,255,0.7); font-style: normal; }
.resp-inner p {
  font-size: 0.95rem; color: rgba(255,255,255,0.75);
  max-width: 460px; margin-top: 14px; line-height: 1.7;
}

/* === LOCALIZAÇÃO === */
#localizacao {
  background: linear-gradient(135deg, rgba(19,64,255,0.07) 0%, rgba(10,15,30,0) 50%);
  border-top: 1px solid var(--border);
}
.loc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-top: 56px;
}
.loc-info { display: flex; flex-direction: column; gap: 20px; }
.loc-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.loc-item:hover { border-color: rgba(19,64,255,0.3); }
.loc-item-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.loc-item h4 {
  font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 4px;
}
.loc-item p { font-size: 0.93rem; color: rgba(255,255,255,0.8); line-height: 1.55; }
.loc-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.loc-item a:hover { color: #7da0ff; }
.map-placeholder {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  aspect-ratio: 4/3;
}
.map-placeholder iframe {
  width: 100%; height: 100%; border: none;
  filter: grayscale(1) invert(1) hue-rotate(180deg) brightness(0.85);
}
.coverage-strip {
  margin-top: 48px; padding: 24px 32px;
  background: rgba(19,64,255,0.06);
  border: 1px solid rgba(19,64,255,0.18); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.coverage-strip p { font-size: 0.9rem; color: rgba(255,255,255,0.7); max-width: 480px; line-height: 1.6; }
.coverage-strip p strong { color: var(--white); }

/* === CTA BANNER === */
#cta {
  padding: 96px 6%;
  background: var(--cobalt);
  position: relative; overflow: hidden;
  text-align: center;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 65%);
}
#cta .section-title {
  color: var(--white); max-width: 640px;
  margin: 0 auto 16px; position: relative;
}
#cta p {
  color: rgba(255,255,255,0.75); max-width: 480px;
  margin: 0 auto 36px; position: relative;
}
#cta .cta-btns {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* === FOOTER === */
footer {
  background: #06080f;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 56px 6% 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .site-logo { display: block; margin-bottom: 14px; }
.footer-brand .site-logo img { height: 40px; }
.footer-brand p {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  line-height: 1.75; max-width: 260px;
}
.footer-col h5 {
  font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.87rem; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-address {
  font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.7;
}
.footer-address strong {
  color: rgba(255,255,255,0.7); display: block; margin-bottom: 4px;
}
.lgpd-note {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  max-width: 460px; line-height: 1.7;
}
.lgpd-note span { color: rgba(255,255,255,0.5); font-weight: 500; }
.lgpd-note strong { color: rgba(255,255,255,0.5); }

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .hero-visual { display: none; }
  .services-layout { grid-template-columns: 1fr; }
  .service-detail { position: static; }
}
@media (max-width: 768px) {
  section { padding: 72px 5%; }
  #hero { padding: 100px 5% 64px; }
  .hero-headline { font-size: clamp(2.2rem, 7vw, 3.2rem); }
  .hero-stats { gap: 24px; }
  .diff-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .resp-inner { flex-direction: column; }
  .coverage-strip { flex-direction: column; }
}

/* === WORDPRESS ADMIN BAR FIX === */
.admin-bar #site-navigation { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #site-navigation { top: 46px; }
}

/* === CUSTOMIZER LIVE PREVIEW === */
body.customizer-preview .parallax-layer { transition: none !important; }
