/* ============================================================================
   Utility Classes
   Classes utilitárias para layout, espaçamento, cores, etc.
   ============================================================================ */



/* Display */
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }

/* Flex Direction */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Align Items */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

/* Justify Content */
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

/* Gap */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-13 { gap: 3.25rem; }
.gap-2-5 { gap: 0.625rem; }
.gap-42 { gap: 2.625rem; }
.gap-27 { gap: 1.6875rem; }
.gap-34 { gap: 2.125rem; }
.gap-240 { gap: 15rem; }
.gap-x-42 { column-gap: 2.625rem; }

/* Flex Grow */
.flex-1 { flex: 1; }

/* Width */
.w-full { width: 100%; }
.width-full { width: 100%; }
.w-logo { width: var(--width-logo, 4.4375rem); }

/* Height */
.h-logo { height: var(--height-logo, 1.5625rem); }
.min-h-92 { min-height: 5.75rem; }
.min-h-screen { min-height: 100vh; }

/* Max Width */
.max-w-full { max-width: 100%; }
.max-w-hero-inner { max-width: 56.125rem; }
.max-w-featured-desc { max-width: 44.875rem; }
.max-w-1280 { max-width: 80rem; }
.max-w-898 { max-width: 56.125rem; }
.max-w-768 { max-width: 42rem; }
.max-w-405 { max-width: 25.3125rem; }
.max-w-289 { max-width: 18.0625rem; }
.max-w-none { max-width: none; }


/* Height adicional */
.h-153 { height: 153.94%; } /* Mantido em % pois é relativo */

/* Padding */
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-30 { padding-top: 7.5rem; padding-bottom: 7.5rem; }
.py-52 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.p-0 { padding: 0; }
.p-3 { padding: var(--space-3); }

/* Margin */
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mb-4xl { margin-bottom: var(--space-4xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mt-4xl { margin-top: var(--space-4xl); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.left-0 { left: 0; }
.top-neg-17 { top: -17.77%; }

/* Z-index */
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Flex Grow/Shrink */
.flex-1 { flex: 1 1 0%; }

/* Margin Auto */
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Border */
.border-b { border-bottom: 0.0625rem solid; }
.border-secundary-700 { border-color: var(--color-secundary-700); }
.rounded-card { border-radius: var(--radius-card); }



/* Background - Classes semânticas */
.bg-primary { background-color: var(--color-primary-500); }
.bg-secondary { background-color: var(--color-secundary-800); }
.bg-surface { background-color: var(--color-neutral-0); }
.bg-card { background-color: var(--color-neutral-50); }


/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.col-span-full { grid-column: 1 / -1; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-featured { 
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--space-6);
  column-gap: 2.625rem;
}


/* Responsive Breakpoints */
/* Mobile: < 640px (default) */
/* Tablet: >= 640px (40rem) */
/* Desktop: >= 1024px (64rem) */

/* Tablet and up */
@media (min-width: 40rem) {
  .md\:flex {
    display: flex;
  }
  
  .md\:grid {
    display: grid;
  }
  
  .md\:hidden {
    display: none;
  }
  
  /* Grid responsivo: 2 colunas em tablet */
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop and up */
@media (min-width: 64rem) {
  /* Grid responsivo: 3 colunas em desktop */
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lg\:flex-row {
    flex-direction: row;
  }
  
  /* Gaps responsivos */
  .lg\:gap-42 {
    gap: 2.625rem;
  }
  
  .lg\:gap-13 {
    gap: 3.25rem;
  }
  
  .lg\:gap-240 {
    gap: 15rem;
  }
}
