/* ================================================================
   Trattoria Mix — Landing Page
   Tokens conforme especificação (seção 2 do documento de referência)
   ================================================================ */

:root {
  /* Cores */
  --navy:        #16264A;
  --navy-2:      #4A5A7A;
  --text:        #6B7684;
  --teal:        #16B892;
  --green:       #21C179;
  --green-soft:  #BFE9D9;
  --bg:          #FBFCFD;
  --surface:     #FFFFFF;
  --surface-2:   #EEF0F3;
  --border:      #DDE1E7;

  --gradient: linear-gradient(90deg, #16b892, #21c179);

  /* Tipografia */
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max: 1160px;
  --radius: 20px;
  /* Sombra suave em camadas (design "Surgical Precision") */
  --shadow:
    0 0 0 1px rgba(17, 24, 39, 0.05),
    0 1px 1px -0.5px rgba(17, 24, 39, 0.05),
    0 3px 3px -1.5px rgba(17, 24, 39, 0.05),
    0 6px 6px -3px rgba(17, 24, 39, 0.04),
    0 12px 12px -6px rgba(17, 24, 39, 0.04),
    0 24px 24px -12px rgba(17, 24, 39, 0.04);
  --shadow-lg:
    0 0 0 1px rgba(17, 24, 39, 0.05),
    0 8px 24px -6px rgba(17, 24, 39, 0.12),
    0 24px 48px -12px rgba(17, 24, 39, 0.14);
}

/* -------- Reset -------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

.narrow { max-width: 860px; }
.center  { text-align: center; }

/* -------- Tipografia utilitária -------- */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  background: rgba(22, 184, 146, 0.10);
  border: 1px solid var(--green-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Selo de empresa verificada (usado nos cards e no chat) */
.verified-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 0;
}
.verified-badge svg { width: 18px; height: 18px; }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-text {
  color: var(--text);
  font-size: 16px;
  margin-top: 16px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section { padding-block: clamp(56px, 8vw, 96px); }
#beneficios { background: radial-gradient(760px 340px at 12% 0%, rgba(22, 184, 146, 0.06), transparent 62%); }
#funcionalidades { background: radial-gradient(760px 340px at 88% 0%, rgba(33, 193, 121, 0.07), transparent 62%); }

.section-head { margin-bottom: 48px; }
.section-head.center { margin-inline: auto; max-width: 720px; }

/* -------- Botões -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  border-radius: 9999px;
  padding: 12px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 184, 146, 0.30);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(22, 184, 146, 0.38); }

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* -------- Cards genéricos -------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand-logo { height: 34px; width: auto; }
.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--navy);
  display: inline-block;
}
.brand-word > span { color: var(--teal); }
.brand-word-sm { font-size: 16px; }
.brand-word-light { color: #fff; }
.brand-word-light > span { color: var(--green); }
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
}
.main-nav a { color: var(--navy-2); transition: color .2s; }
.main-nav a:hover { color: var(--teal); }
.site-header .btn { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ================= HERO ================= */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(22,184,146,.10), transparent 60%),
    var(--bg);
  padding-block: clamp(56px, 8vw, 100px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 6px 0 18px;
}
.hero-text {
  color: var(--text);
  font-size: 18px;
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-2);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; }

/* Hero mockup */
.hero-media { display: flex; justify-content: center; }
.hero-card {
  width: 320px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gradient);
  color: #fff;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-head);
}
.chat-header small { opacity: .85; display: block; font-size: 12px; }
.verified {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  vertical-align: middle;
}
.verified svg { width: 11px; height: 11px; color: #fff; }
.chat-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f7f9;
  min-height: 200px;
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}
.bubble.in  { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--green-soft); color: var(--navy); align-self: flex-end; border-bottom-right-radius: 4px; }

.float { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* ================= CARROSSEL DE MARCAS ================= */
.brands {
  padding-block: 40px;
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.brands-title {
  text-align: center;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-chip {
  flex: 0 0 auto;
  padding: 12px 26px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy-2);
  font-size: 15px;
  display: flex;
  align-items: center;
}
.brand-chip-img { padding: 8px 20px; }
.brand-chip-img img { height: 30px; width: auto; object-fit: contain; }
.logo-placeholder {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy-2);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================= API / NOTÍCIA ================= */
.api-section .btn { margin-top: 26px; }

.news-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
}
.news-copy .btn { margin-top: 22px; }
.news-stat {
  text-align: center;
  background: var(--gradient);
  color: #fff;
  border-radius: 18px;
  padding: 36px 24px;
}
.news-stat .big-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
}
.news-stat p { margin-top: 8px; font-weight: 600; }

/* ================= ICON CARDS ================= */
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 184, 146, 0.28);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.icon-badge svg { width: 27px; height: 27px; }
.icon-card:hover .icon-badge,
.feature-card:hover .icon-badge {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(22, 184, 146, 0.38);
}
.icon-card h3, .feature-card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  margin-bottom: 8px;
}
.icon-card p, .feature-card p { color: var(--text); font-size: 15px; }
.card { transition: transform .18s ease, box-shadow .18s ease; }
.icon-card:hover, .feature-card:hover, .partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card { display: flex; flex-direction: column; }
.link-more {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--teal);
}
.link-more:hover { text-decoration: underline; }

/* ================= PARCEIROS ================= */
.partners-section { background: var(--surface); }
.partner-card { text-align: center; }
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 64px;
  margin-bottom: 20px;
}
.partner-logos img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid var(--green-soft);
}
.cross { color: var(--text); font-size: 22px; font-weight: 300; }
.partner-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 6px;
}
.by-brand {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.by-brand span { color: var(--teal); font-weight: 700; }
.partner-tag {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: 12px;
}
.partner-card p { color: var(--text); font-size: 14.5px; }

/* ================= INDICADORES ================= */
.stats-section {
  background: var(--navy);
  color: #fff;
}
.stats-grid { text-align: center; }
.stat-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat p { color: #B9C2D4; font-weight: 600; margin-top: 6px; }

/* ================= PLANOS ================= */
.plans-grid { align-items: stretch; }
.plan-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 32px 28px;
}
.plan-card.featured {
  border-color: var(--teal);
  box-shadow: 0 20px 48px rgba(22, 184, 146, 0.20);
  transform: translateY(-8px);
}
.popular-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.plan-name {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 12px;
}
.plan-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 46px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 24px;
}
.plan-price .currency { font-size: 22px; vertical-align: super; margin-right: 2px; }
.plan-price .per { font-size: 15px; font-weight: 600; color: var(--text); }
.plan-price-custom { font-size: 30px; }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.plan-features li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--navy-2);
}
.plan-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ================= FAQ ================= */
.faq-section { background: var(--surface); }
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
}
.acc-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--teal);
  transition: transform .2s ease;
}
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 20px; color: var(--text); font-size: 15px; }

/* ================= FORMULÁRIO ================= */
.form-section {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(22,184,146,.08), transparent 60%),
    var(--bg);
}
.form-card { max-width: 620px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); }
.form-card .section-title { margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--navy-2);
}
.field input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 184, 146, 0.15);
}
.field input:invalid:not(:placeholder-shown) { border-color: #e05a5a; }
.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
}
.form-success {
  margin-top: 16px;
  text-align: center;
  color: var(--teal);
  font-weight: 700;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--navy);
  color: #C6CFDE;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand-logo { filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand .brand-word { margin-bottom: 16px; font-size: 26px; }
.footer-brand p { max-width: 320px; font-size: 15px; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; font-size: 15px; margin-bottom: 10px; color: #C6CFDE; }
.footer-col a:hover { color: var(--teal); }
.footer-company { font-size: 13px; color: #8C99AE; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px;
  text-align: center;
  font-size: 13px;
  color: #8C99AE;
}

/* ================= WHATSAPP FAB ================= */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 60;
  transition: transform .18s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ================= RESPONSIVO ================= */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-text { margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero-badges { justify-content: center; }
  .news-card { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
}

@media (max-width: 767px) {
  .container { padding-inline: 18px; }
  .main-nav, .site-header .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(26px, 7vw, 32px); }
}
