/* ════════════════════════════════════════════════════
   EncontraQui — Landing Page v2 (clean)
   ════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #2BB8A6;
  --teal-dark: #1A9A8C;
  --teal-light: #5FCFC4;
  --charcoal: #2D2D2D;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #868E96;
  --gray-700: #495057;
  --gray-800: #343A40;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Utilities ────────────────────────────────── */
.text-teal { color: var(--teal); }
.text-white { color: var(--white); }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27, 170, 156, 0.3);
}
.btn-white {
  background: var(--white);
  color: var(--charcoal);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}
.btn-lg { padding: 16px 32px; border-radius: var(--radius); font-size: 16px; }
.btn-sm { padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; }
.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Section ──────────────────────────────────── */
.section {
  padding: 100px 0;
  text-align: center;
}
.section-alt-bg { background: var(--gray-50); }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto 64px;
}

/* ── Header ───────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text-dark { color: var(--charcoal); }
.logo-text-teal { color: var(--teal); }
.nav-desktop { display: flex; gap: 32px; }
.nav-desktop a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: color var(--transition);
}
.nav-desktop a:hover { color: var(--teal); }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* ── Hero ─────────────────────────────────────── */
.hero {
  padding: 40px 0 100px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 540px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(27, 170, 156, 0.08);
  color: var(--teal-dark);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Phone Mockup ─────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 280px;
  height: 540px;
  background: var(--charcoal);
  border-radius: 32px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.15),
    0 0 0 1px rgba(0,0,0,0.05);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--charcoal);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #F5F7FA;
  border-radius: 24px;
  overflow: hidden;
  padding: 36px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--charcoal);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.phone-tabs {
  display: flex;
  gap: 4px;
  padding: 2px;
  background: var(--gray-200);
  border-radius: 10px;
}
.phone-tab {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--gray-500);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.phone-tab-active {
  color: var(--charcoal);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.phone-tab-accent { color: var(--teal); }
.phone-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 12px;
  font-size: 12px;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}
.phone-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.phone-result-tag {
  padding: 8px 12px;
  background: var(--white);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.phone-result-tag-accent {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: rgba(43,184,166,0.04);
}
.phone-result-line {
  height: 1px;
  background: var(--gray-200);
  margin: 0 12px;
}

/* ── Tracks (Produtos | Servicos) ─────────────── */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.track {
  padding: 36px 32px;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(43,184,166,0.06), 0 1px 3px rgba(0,0,0,0.02);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.track-alt {
  border-color: rgba(43,184,166,0.2);
  background: rgba(43,184,166,0.03);
}
.track:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(43,184,166,0.12), 0 2px 6px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.track-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 8px;
}
.track-label-alt { color: #1A1A2E; }
.track-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.track-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}
.track-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.track-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}
.track-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.track-step-num-alt { background: #1A1A2E; }

/* ── Categories Grid ──────────────────────────── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
}
.cat-card {
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cat-from), var(--cat-via), var(--cat-to));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.cat-name {
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  text-align: center;
}

/* ── Category Modal ──────────────────────────── */
.cat-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cat-modal--open {
  opacity: 1;
  pointer-events: auto;
}
.cat-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,45,45,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cat-modal-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px 32px;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cat-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cat-modal-close:hover { background: var(--gray-200); }
.cat-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(43,184,166,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.cat-modal-icon svg {
  width: 28px;
  height: 28px;
}
.cat-modal-label {
  font-size: 20px;
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.cat-modal-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .cats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
  }
  .cat-card { padding: 8px; border-radius: 12px; }
  .cat-name { font-size: 11px; }
  .cat-modal-card { padding: 28px 24px; }
}

/* ── Services Grid ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--teal);
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(43,184,166,0.08);
}
.service-icon {
  width: 28px;
  height: 28px;
  color: var(--teal);
}
.service-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
}

/* ── CTA ──────────────────────────────────────── */
.section-cta { padding: 60px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--teal), #0D8A7A);
  padding: 80px 40px;
  border-radius: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 36px;
}
.cta-card .section-label { color: rgba(255,255,255,0.85); }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: var(--gray-400);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text-dark { color: var(--white) !important; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-links h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  padding: 6px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}
.footer-legal {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ── Cookie/Storage Banner ──────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner--show { display: flex; }
.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-400);
  max-width: 640px;
  line-height: 1.5;
}
.cookie-banner a {
  color: var(--teal);
  text-decoration: underline;
}
.cookie-btn {
  background: var(--teal);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }

/* ── Animations ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes catCardEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Scroll-Triggered Animations ──────────────── */
.hero-content.animate { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-title.animate { animation: slideInLeft 0.7s 0.15s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-subtitle.animate { animation: slideInLeft 0.7s 0.25s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-actions.animate { animation: fadeInUp 0.6s 0.35s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-visual.animate { animation: slideInRight 0.8s 0.15s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-phone {
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-phone:hover { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); }
.phone-tabs.animate { animation: fadeInUp 0.4s 0.6s both; }
.phone-search.animate { animation: fadeInUp 0.4s 0.8s both; }
.phone-results.animate { animation: fadeInUp 0.4s 1.2s both; }
.section-header.animate .section-label { animation: fadeInUp 0.5s 0s both; }
.section-header.animate .section-title { animation: fadeInUp 0.6s 0.1s both; }
.section-header.animate .section-desc { animation: fadeInUp 0.6s 0.2s both; }

.tracks {
  opacity: 0;
  transform: translateY(20px);
}
.tracks.animate { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.cta-card {
  opacity: 0;
  transform: scale(0.92);
}
.cta-card.animate { animation: fadeInScale 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.footer.animate .footer-brand,
.footer.animate .footer-links {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.footer.animate .footer-brand { animation-delay: 0s; }
.footer.animate .footer-links:nth-of-type(1) { animation-delay: 0.1s; }
.footer.animate .footer-links:nth-of-type(2) { animation-delay: 0.2s; }
.footer.animate .footer-links:nth-of-type(3) { animation-delay: 0.3s; }

/* ── Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-content, .hero-title, .hero-subtitle, .hero-actions,
  .hero-visual, .hero-phone, .phone-tabs, .phone-search,
  .phone-results, .cta-card, .tracks {
    animation: none !important;
  }
}

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-phone { transform: none; }
  .hero-phone:hover { transform: none; }
  .hero-phone.scroll-parallax { transition: transform 0.15s linear; }
  .phone-frame { width: 240px; height: 460px; }
  .nav-desktop { display: none; }
  .cats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tracks { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
