/* ============================================
   ACHOW — Design System & Global Styles
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --brand-purple: #9333ea;
  --brand-purple-dark: #7e22ce;
  --brand-blue: #3b82f6;
  --brand-gradient: linear-gradient(135deg, #3b82f6, #9333ea);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-purple: 0 8px 24px rgba(147,51,234,0.25);

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Mobile nav height */
  --mobile-nav-height: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: #f9fafb;
  color: #1f2937;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
/* Montserrat em todo o projeto — herança pelo body, sem !important no * */


/* Tipografia — Montserrat com hierarquia de pesos */
h1, h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}
h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1f2937;
}
h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #374151;
}
p, span, div, button, input, select, textarea, label, a {
  font-family: 'Montserrat', sans-serif;
}
/* Pesos semânticos */
.font-black  { font-weight: 900 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-bold   { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-normal { font-weight: 400 !important; }
.font-light  { font-weight: 300 !important; }
/* Cor padrão de texto — grafite, nunca preto puro */
.text-gray-900 { color: #111827 !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-400 { color: #9ca3af !important; }

/* --- Scrollbar Hide --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Safe Area Utilities --- */
.safe-top    { padding-top:    var(--safe-top); }
.safe-bottom { padding-bottom: var(--safe-bottom); }

/* --- Glass Effect --- */
.glass {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.animate-fade-in    { animation: fadeInUp 0.35s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-scale-in   { animation: scaleIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-slide-up   { animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-pulse-dot  { animation: pulse 2s ease-in-out infinite; }

/* Staggered children */
.stagger > * { opacity: 0; animation: fadeInUp 0.35s cubic-bezier(0.16,1,0.3,1) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ============================================
   HEADER
   ============================================ */
#main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  /* Push down below iOS status bar */
  padding-top: var(--safe-top);
}

/* ============================================
   MOBILE NAV — Fixed Bottom
   ============================================ */
#mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
  /* Pad for home indicator */
  padding-bottom: var(--safe-bottom);
}

#mobile-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: color 0.2s, transform 0.15s;
  min-width: 52px;
  -webkit-tap-highlight-color: transparent;
}

#mobile-nav .nav-item:active {
  transform: scale(0.92);
}

#mobile-nav .nav-item.active {
  color: var(--brand-purple);
}

#mobile-nav .nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s;
}

#mobile-nav .nav-item.active svg {
  transform: scale(1.1);
}

/* FAB (Search button) */
#mobile-nav .nav-fab {
  position: relative;
  top: -22px;
  background: var(--brand-gradient);
  color: white;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(124,58,237,0.45), 0 2px 8px rgba(124,58,237,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

#mobile-nav .nav-fab:active {
  transform: scale(0.88);
  box-shadow: 0 3px 12px rgba(124,58,237,0.3);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-3xl);
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card:active {
  transform: scale(0.975);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-float);
}

.card-image {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* Save/Heart button on cards */
.btn-save {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-save:active {
  transform: scale(0.85);
}

.btn-save.saved svg {
  fill: var(--brand-purple);
  color: var(--brand-purple);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.badge-cat {
  /* color set dynamically per category */
}

.badge-seg {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
}

.badge-new {
  background: var(--brand-purple);
  color: white;
}

.badge-price {
  background: rgba(255,255,255,0.95);
  color: #111827;
  backdrop-filter: blur(4px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--brand-gradient);
  color: white;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-purple);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover  { opacity: 0.92; box-shadow: 0 12px 32px rgba(147,51,234,0.3); }
.btn-primary:active { transform: scale(0.96); }

.btn-secondary {
  background: white;
  color: #374151;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover  { background: #f9fafb; }
.btn-secondary:active { transform: scale(0.96); }

.btn-ghost {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-lg);
}

/* ============================================
   CATEGORY PILLS (Quick filter)
   ============================================ */
.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 70px;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.cat-pill:active { transform: scale(0.9); }

.cat-pill-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cat-pill.active .cat-pill-icon {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(147,51,234,0.15);
}

.cat-pill-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .cat-pill-icon { width: 72px; height: 72px; border-radius: 22px; }
  .cat-pill-label { font-size: 12px; }
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  border-radius: 0; /* Full bleed on mobile */
  overflow: hidden;
  height: 300px;
}

@media (min-width: 768px) {
  .hero-slider {
    border-radius: var(--radius-3xl);
    height: 460px;
  }
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s linear;
}

.hero-slide.active img {
  transform: scale(1.04);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.35) 50%,
    transparent 100%
  );
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  transition: width 0.35s, background 0.35s;
  width: 4px;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  width: 14px;
  background: white;
}

/* ============================================
   AGENDA TIMELINE
   ============================================ */
.timeline-group {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid #e5e7eb;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-purple);
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(147,51,234,0.2);
}

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease forwards;
}

/* Bottom sheet on mobile */
@media (max-width: 767px) {
  .modal-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 28px 28px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    padding-bottom: var(--safe-bottom);
    animation: slideUp 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
  }
}

.modal-card {
  background: white;
  border-radius: var(--radius-3xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: scaleIn 0.25s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ============================================
   WIZARD
   ============================================ */
.wizard-option {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-2xl);
  background: white;
  padding: 20px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 110px;
  text-align: center;
}

.wizard-option:active {
  transform: scale(0.94);
}

.wizard-option.selected {
  border-color: var(--brand-purple);
  background: rgba(147,51,234,0.04);
  box-shadow: 0 0 0 4px rgba(147,51,234,0.12);
}

.wizard-option:hover:not(.selected) {
  border-color: #d1d5db;
  background: #fafafa;
}

/* ============================================
   FORMS
   ============================================ */
.form-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  border-color: var(--brand-purple);
  background: white;
  box-shadow: 0 0 0 3px rgba(147,51,234,0.1);
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 6px;
}

/* Banner de filtro ativo — nunca deve aparecer no carregamento */
#active-filters-banner.hidden {
  display: none !important;
}
#active-filters-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #111827;
  color: white;
  padding: 1.25rem 1.25rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}



/* ============================================
   FLATPICKR OVERRIDES — Mobile First
   ============================================ */
.flatpickr-calendar {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14) !important;
  font-family: 'Montserrat', sans-serif !important;
  /* ocupa toda largura disponível no mobile */
  width: calc(100vw - 32px) !important;
  max-width: 380px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
}

/* No desktop volta ao comportamento padrão */
@media (min-width: 640px) {
  .flatpickr-calendar {
    width: 307.875px !important;
    left: auto !important;
    transform: none !important;
  }
}

.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
  width: 100% !important;
  min-width: unset !important;
  max-width: 100% !important;
}

.flatpickr-day {
  max-width: none !important;
  flex: 1 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.flatpickr-months {
  padding: 8px 4px 0 !important;
}

.flatpickr-current-month {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

.flatpickr-weekday {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  color: #9ca3af !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--brand-purple) !important;
  border-color: var(--brand-purple) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

.flatpickr-day.inRange {
  background: rgba(147,51,234,0.1) !important;
  border-color: rgba(147,51,234,0.1) !important;
  box-shadow: -5px 0 0 rgba(147,51,234,0.1), 5px 0 0 rgba(147,51,234,0.1) !important;
}

.flatpickr-day:hover:not(.selected):not(.disabled) {
  background: #f5f3ff !important;
  border-color: #e9d5ff !important;
}

.flatpickr-day.today:not(.selected) {
  border-color: var(--brand-purple) !important;
  color: var(--brand-purple) !important;
  font-weight: 800 !important;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  padding: 14px 20px;
  text-align: left;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f9fafb;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */
#pwa-install-banner {
  margin: 0 0 16px 0;
  border-radius: 0;
}

@media (min-width: 768px) {
  #pwa-install-banner {
    margin: 0 0 24px 0;
    border-radius: var(--radius-2xl);
  }
}

/* ============================================
   SKELETON LOADERS
   ============================================ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-lg);
}
.skeleton-hero {
  width: 100%;
  height: 260px;
  border-radius: 0;
}
.skeleton-card {
  min-width: 200px;
  height: 220px;
  border-radius: 16px;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .skeleton-hero { height: 380px; }
  .skeleton-card { height: 260px; min-width: 260px; }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
  position: fixed;
  bottom: calc(var(--mobile-nav-height) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 768px) {
  #toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
  }
}

.toast {
  background: #111827;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
  animation: slideUp 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
  pointer-events: auto;
}

.toast.success { background: #065f46; }
.toast.error   { background: #7f1d1d; }

/* ============================================
   ACTIVE FILTERS BANNER
   ============================================ */
#active-filters-banner {
  background: #111827;
  border-radius: var(--radius-2xl);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

/* Touch optimization */
.touch-target {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prevent text selection on interactive elements */
.no-select { user-select: none; -webkit-user-select: none; }

/* Prevent layout shift from images */
img { display: block; }
img[src=""], img:not([src]) { visibility: hidden; }

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

/* Section title */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .section-title { font-size: 26px; }
}

/* Grid layouts */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.grid-cards-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-cards-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE: GENERAL MOBILE FIXES
   ============================================ */
@media (max-width: 767px) {
  /* Full-width sections on mobile */
  .mobile-full { margin-left: -16px; margin-right: -16px; border-radius: 0 !important; }

  /* Larger touch targets on mobile */
  button, [role="button"] { min-height: 44px; }

  /* Readable text sizes */
  .mobile-text-base { font-size: 15px; line-height: 1.5; }

  /* Hero content sizing */
  .hero-title { font-size: 26px; line-height: 1.2; }

  /* Fix modals/sheets */
  .modal-card {
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }
}


/* ============================================================
   HEADER — 2 linhas compactas, estilo minimalista Montserrat
   ============================================================ */

/* Linha 1: nav tipos */
.type-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
  line-height: 1;
}
.type-nav-btn:hover { color: #111827; background: #f3f4f6; }
.type-nav-btn.active {
  background: #f5f3ff;
  color: #6d28d9;
  font-weight: 700;
}

/* Linha 2: barra wizard */
#wz-bar { position: relative; }

.wz-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 20px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 999px;
  transition: background .15s;
  white-space: nowrap;
  min-height: 56px;
}
.wz-pill:hover { background: #f5f5f5; }

.wz-pill-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6b7280;
  line-height: 1;
}
.wz-pill-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
}
.wz-pill-val.filled {
  color: #111827;
  font-weight: 600;
}

.wz-pill-active { background: white !important; box-shadow: 0 1px 8px rgba(0,0,0,.1); }

/* Dropdown animado — abre/fecha com .wz-dd-open */
#wz-dropdown {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  box-shadow: 0 8px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
  transition: opacity .2s cubic-bezier(.16,1,.3,1),
              transform .22s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
#wz-dropdown.wz-dd-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* "Novo" badge na Experiências */
.badge-novo {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}

/* Garante que o bloco desktop do header aparece em telas >= 768px */
@media (min-width: 768px) {
  #desktop-header-block { display: block !important; }
}

/* Mobile header block: visível só em mobile */
#mobile-header-block { display: block; }
@media (min-width: 768px) {
  #mobile-header-block { display: none !important; }
}

/* Empty state: sem margin do space-y-10 */
#empty-state {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}



/* ============================================
   MOBILE HEADER — mais respiro
   ============================================ */
@media (max-width: 767px) {
  #main-header > div {
    padding-top: .25rem;
    padding-bottom: .25rem;
  }
}

/* ── Blog section ─────────────────────────────────────────── */
@media (max-width: 640px) {
  #blog-cards {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  #blog-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #blog-cards > a:last-child {
    display: none;
  }
}
