/* Luke's Estampas CSS*/

:root {
  /* Cores */
  --luke-primary: #A84425;
  --luke-primary-dark: #8F3A1C;
  --luke-deep: #8C5542;
  --luke-muted: #59433C;
  --luke-ink: #332E2C;
  --luke-cream: #FAF6F2;      /* fundo geral: off-white quente */
  --luke-sand: #F2E9E2;       /* faixas e divisões: terroso claro */
  --luke-whatsapp: #25D366;
  --luke-danger: #C0392B;
  --luke-success: #3E7C4F;

  /* Raio consistente */
  --radius: 12px;
  --radius-pill: 9999px;

  /* Sombras quentes (baseiam o cinza no marrom da marca) */
  --shadow-card: 0 1px 3px rgba(89, 67, 60, 0.08), 0 6px 16px rgba(89, 67, 60, 0.08);
  --shadow-lift: 0 2px 6px rgba(89, 67, 60, 0.10), 0 12px 28px rgba(89, 67, 60, 0.14);

  /* Transição única */
  --ease: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--luke-cream);   /* fim do branco puro como fundo */
  text-rendering: optimizeLegibility;
}

:focus-visible { outline: 3px solid var(--luke-primary); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent; /* borda sempre presente: trocar a cor no hover não desloca o layout */
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25rem;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  will-change: transform;
  transition:
    transform 160ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 160ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 160ms cubic-bezier(0.4, 0, 0.2, 1),
    color 160ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Clique: compressão rápida, retorno suave ao soltar */
.btn:active:not(:disabled) {
  transform: scale(0.97);
  transition-duration: 60ms;
}

/* Foco por teclado: mesmo destaque do hover + outline acessível */
.btn:focus-visible {
  transform: scale(1.04);
  outline: 3px solid var(--luke-ink);
  outline-offset: 3px;
}

/* Hover apenas em dispositivos com ponteiro real (evita hover grudado no touch) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { transform: scale(1.04); }
}

/* ---------- Variantes ---------- */
.btn-primary {
  background-color: var(--luke-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(168, 68, 37, 0.28);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--luke-primary-dark);
  border-color: #F26A2E; /* laranja mais claro da própria marca */
  box-shadow: 0 4px 14px rgba(168, 68, 37, 0.4),
              0 0 0 3px rgba(168, 68, 37, 0.25); /* anel de seleção */
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--luke-deep);
  color: var(--luke-ink);
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--luke-deep);
  border-color: var(--luke-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(140, 85, 66, 0.35);
}

/* Versão escura do secundário, para seções com fundo ink */
.btn-ghost-dark {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-ghost-dark:hover:not(:disabled) {
  background-color: #fff;
  color: var(--luke-ink);
  border-color: var(--luke-primary);
}

.btn-whatsapp {
  background-color: var(--luke-whatsapp);
  color: var(--luke-ink);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover:not(:disabled) {
  filter: brightness(0.94);
  border-color: #4AE683; /* verde claro coerente com a identidade WhatsApp */
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35),
              0 0 0 3px rgba(37, 211, 102, 0.22);
}

/* Tamanhos controlados */
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* Reduced motion: sem crescimento nem compressão, o destaque de cor permanece */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover:not(:disabled),
  .btn:active:not(:disabled),
  .btn:focus-visible {
    transform: none;
    transition-duration: 0.01ms;
  }
}

/* ---------- Inputs ---------- */
.input {
  width: 100%;
  border-radius: var(--radius);
  border: 1.5px solid #E3D9D1;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--luke-ink);
  outline: none;
  font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}
.input::placeholder { color: #A69B92; }
.input:hover:not(:focus) { border-color: var(--luke-deep); }
.input:focus { border-color: var(--luke-primary); box-shadow: 0 0 0 3px rgba(168, 68, 37, 0.15); }
.input-error { border-color: var(--luke-danger); }
.input-error:focus { border-color: var(--luke-danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15); }

.field-error { font-size: 0.75rem; color: var(--luke-danger); margin-top: 0.3rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-primary { background-color: rgba(168, 68, 37, 0.12); color: #D63A05; }
.badge-success { background-color: rgba(62, 124, 79, 0.12); color: var(--luke-success); }
.badge-muted { background-color: #EFE7E0; color: var(--luke-muted); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid rgba(89, 67, 60, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.card-hover:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: rgba(89, 67, 60, 0.14); }

/* ---------- Navegação do header ---------- */
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--luke-ink);
  transition: color var(--ease);
  padding: 0.25rem 0;
}
.nav-link:hover { color: var(--luke-primary); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  background: var(--luke-primary);
  border-radius: 2px;
  transition: right var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--luke-primary); }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(51, 46, 44, 0.55); backdrop-filter: blur(2px); }

/* ---------- Polimento visual da navegação e da página inicial ---------- */
.site-header-brand {
  min-width: 0;
  text-decoration: none;
}
.site-header-brand img {
  display: block;
  flex-shrink: 0;
}
.site-header-brand-label {
  color: var(--luke-ink);
  line-height: 1.15;
}
.home-category-link {
  min-height: 9.5rem;
  text-decoration: none;
}
.home-category-icon {
  display: flex;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: var(--luke-cream);
  font-size: 2.25rem;
  line-height: 1;
  transition: transform var(--ease);
}
.home-category-link:hover .home-category-icon {
  transform: translateY(-2px) scale(1.04);
}
.home-cta-panel {
  border-radius: 1.25rem;
  background-color: var(--luke-sand);
}
@media (min-width: 640px) {
  .home-cta-panel {
    padding: 4rem 3rem;
  }
}

