/* ==========================================================================
   Demo — Miolo Confeitaria Artesanal (nicho: cafeteria/confeitaria artesanal)
   Empresa e todo o conteúdo são 100% fictícios. Primeira demo em tema claro
   (branco/off-white + tons de café), deliberadamente distinta das demos de
   advocacia e arquitetura (ambas escuras, com dourado como destaque único) —
   aqui o destaque é terracota, e o elemento de assinatura é um carimbo
   circular ("selo" de padaria artesanal) em vez de ícone clichê de xícara.
   Referência de composição/tipografia: confeitaria Margô (sabec.dev).
   ========================================================================== */

:root {
  --cream: #FAF3E7;          /* fundo — combina com o tom de pedra da foto */
  --cream-deep: #F1E3CC;     /* painéis/cards sobre o fundo */
  --ink: #2B1B10;            /* texto principal — café bem torrado */
  --ink-dim: #6B5646;        /* texto secundário */
  --coffee: #5B3A24;         /* CTA primário */
  --coffee-soft: #7A4F31;    /* hover do CTA primário */
  --rust: #B2552B;           /* destaque único — badges, ícones, ênfase */
  --rust-soft: #C97240;      /* hover do destaque */
  --line: rgba(43, 27, 16, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1 { font-family: var(--font-display); font-weight: 500; margin: 0; line-height: 1.16; }
em { font-style: italic; color: var(--rust); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

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

/* ---------- Badge de demonstração (rodapé, centralizada) ---------- */
.demo-footer {
  display: flex;
  justify-content: center;
  padding: 20px 24px;
  background: var(--cream);
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  /* Cores fixas da identidade da LEAL System (identidade/design-guide.md),
     não os tokens do nicho: essa badge é a marca da LEAL aparecendo dentro
     do site do cliente, precisa ser reconhecível como tal. */
  background: rgba(29, 23, 18, 0.92);
  border: 1px solid rgba(226, 98, 44, 0.4);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: #D8C9B2;
  transition: border-color .2s ease, color .2s ease;
}
.demo-badge b { color: #E2622C; font-weight: 600; }
.demo-badge:hover { border-color: #E2622C; color: #F2E8D8; }

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 2;
  padding: 14px 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coffee);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand-text b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.brand-text small {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 6px;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--coffee); color: var(--cream); }
.btn--primary:hover { background: var(--coffee-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--rust); color: var(--rust); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 130px;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(250, 243, 231, 0.97) 0%,
    rgba(250, 243, 231, 0.9) 32%,
    rgba(250, 243, 231, 0.45) 52%,
    rgba(250, 243, 231, 0.05) 68%,
    transparent 82%
  );
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: flex;
  align-items: flex-end;
  gap: 56px;
}

/* ---------- Badges (topo) ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
}
.badge svg {
  width: 17px;
  height: 17px;
  color: var(--rust);
  flex-shrink: 0;
}

.hero-copy {
  max-width: 600px;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 46px);
  max-width: 18ch;
  margin-bottom: 26px;
}

.hero-lead {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 48ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  color: var(--ink-dim);
}
.stat { display: inline-flex; align-items: center; gap: 8px; }
.stat svg { width: 17px; height: 17px; color: var(--rust); flex-shrink: 0; }

/* ---------- Números (âncoras de credibilidade) ---------- */
.hero-figures {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.figure { display: flex; flex-direction: column; gap: 4px; }
.figure-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}
.figure-label {
  font-size: 12.5px;
  color: var(--ink-dim);
  max-width: 14ch;
  line-height: 1.3;
}

/* ---------- Carimbo circular (elemento de assinatura do nicho) ---------- */
.hero-stamp {
  position: absolute;
  z-index: 2;
  right: 9%;
  top: 20%;
  width: 108px;
  height: 108px;
  color: rgba(43, 27, 16, 0.55);
  animation: stamp-spin 26s linear infinite;
}
.hero-stamp svg { width: 100%; height: 100%; }
.hero-stamp text { fill: currentColor; font-family: var(--font-body); font-weight: 700; }
.hero-stamp path { stroke: none; }
.stamp-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--rust);
  animation: stamp-spin-reverse 26s linear infinite;
}
.stamp-center svg { width: 26px; height: 26px; }
@keyframes stamp-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes stamp-spin-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* ---------- Chip (avaliação sobre a foto, ao lado do texto) ---------- */
.hero-chip {
  flex-shrink: 0;
  width: 260px;
  max-width: 70vw;
  background: rgba(43, 27, 16, 0.55);
  border: 1px solid rgba(250, 243, 231, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(250,243,231,0.12);
  color: var(--cream);
}
.chip-stars {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--rust-soft);
  margin-bottom: 8px;
}
.chip-body {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.chip-author {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(250, 243, 231, 0.7);
}

/* ---------- WhatsApp flutuante (placeholder, sem número real) ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  cursor: default;
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .header { padding: 10px 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 16px; }
  .brand-text b { font-size: 15.5px; }
  .brand-text small { font-size: 8.5px; letter-spacing: 0.06em; }

  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero {
    display: block;
    min-height: 0;
    padding: 18px 0 40px;
  }
  .hero-stamp, .hero-chip { display: none; }
  .hero-grid { display: block; text-align: left; }
  .hero-copy { max-width: none; }

  /* Foto continua atrás do texto (não vira uma faixa separada) e cobre a
     hero inteira (inset:0, sem altura fixa) — o gradiente é que esmaece a
     imagem de cima pra baixo até virar --cream sólido, tudo numa única
     camada contínua, sem borda de caixa que crie uma linha visível onde o
     conteúdo passa a ficar sobre fundo sólido. */
  .hero-bg-wrap {
    position: absolute;
    inset: 0;
  }
  .hero-bg { object-position: 62% 55%; }
  .hero-bg-fade {
    background: linear-gradient(
      to bottom,
      rgba(250, 243, 231, 0.62) 0,
      rgba(250, 243, 231, 0.85) 220px,
      rgba(250, 243, 231, 0.98) 400px,
      var(--cream) 480px,
      var(--cream) 100%
    );
  }
  .hero .container { position: relative; z-index: 1; padding-top: 6px; }

  .hero-copy { display: flex; flex-direction: column; }
  .badge-row { order: 1; justify-content: flex-start; margin-top: 0; margin-bottom: 16px; }
  .hero-copy h1 { order: 2; max-width: none; margin-left: 0; margin-right: 0; margin-bottom: 18px; }
  .hero-lead { order: 3; margin-left: 0; margin-right: 0; margin-bottom: 26px; }
  .hero-actions { order: 4; justify-content: center; margin-bottom: 24px; }
  .hero-stats { order: 5; justify-content: flex-start; }
  .hero-figures { order: 6; grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .demo-badge { font-size: 10px; padding: 7px 11px; }
  .badge { font-size: 11.5px; padding: 7px 13px; }
}

