/* ==========================
   🧠 CSS Variables
========================== */
:root {
  --background: hsl(0, 0%, 87.28%);
  --foreground: hsl(240, 10%, 3.9%);
  --card: #fff;
  --card-foreground: var(--foreground);
  --popover: #fff;
  --popover-foreground: var(--foreground);
  --primary: #1D202D;
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(240, 4.8%, 95.9%);
  --secondary-foreground: hsl(240, 5.9%, 10%);
  --muted: var(--secondary);
  --muted-foreground: hsl(240, 3.8%, 45%);
  --accent: var(--secondary);
  --accent-foreground: var(--secondary-foreground);
  --destructive: hsl(0, 72%, 51%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(240, 5.9%, 90%);
  --input: var(--border);
  --ring: hsl(240, 5.9%, 10%);
  --chart-1: hsl(173, 58%, 39%);
  --chart-2: hsl(12, 76%, 61%);
  --chart-3: hsl(197, 37%, 24%);
  --chart-4: hsl(43, 74%, 66%);
  --chart-5: hsl(27, 87%, 67%);
  --radius: 0.5rem;
  --font-sans-serif: 'Roboto', sans-serif;
}

/* ========== 🌐 Navbar Pro ========= */
.navbar {
  background-color: var(--primary);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-brand img {
  max-height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar-toggler {
  border: none;
  background: transparent;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-size: contain;
}

.navbar-nav {
  align-items: center;
  gap: 1rem;
}

.navbar-nav .nav-link {
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #f4f4f4;
}

.navbar-nav .nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background-color: white;
  transition: width 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 0;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-collapse {
  justify-content: space-between;
}

.whats {
  background-color: #25D366;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.whats:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .navbar-nav {
    gap: 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}


/* ==========================
   🔤 Tipografia e Fonts
========================== */
@font-face {
  font-family: 'Ariata';
  src: url('/fonts/Ariata-Display-Black.woff') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--font-sans-serif);
  background-color: var(--background);
  color: var(--foreground);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans-serif);
  font-weight: 800;
}

a {
  text-decoration: none;
  color: white;
}

/* ==========================
   🧱 Utilitários
========================== */
.bg-background { background-color: var(--background) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-muted { background-color: var(--muted) !important; }
.text-foreground { color: var(--foreground) !important; }
.border { border-color: var(--border); }
.rounded { border-radius: var(--radius); }
.input { background-color: var(--input) !important; }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.h-70 { height: 75%; }
.fs-16 { font-size: 8vw; }
.fs-12 { font-size: 5vw; }

.place-self-center { place-self: center; }

@media screen and (max-width: 1024px) {
  .resp-flex-col { flex-direction: column; }
  .w-50 { width: 100% !important; margin-top: 5rem; }
}

@media screen and (max-width: 992px) {
  .carousel-resp { height: 50vh; }
  .w-40 { width: 90%; }
  .resp-flex { flex-direction: column; }
}

/* ==========================
   🎨 Componentes e Layout
========================== */
.navbar.bg-primary {
  background-color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border: none;
}

.btn-secondary {
  background-color: var(--secondary) !important;
  color: var(--secondary-foreground) !important;
}

.btn-prod {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 2rem;
  z-index: 2;
}

.card {
  background-color: var(--card);
  color: var(--card-foreground);
}

.chart-1 { color: var(--chart-1); }
.chart-2 { color: var(--chart-2); }

.containerb {
  max-width: 100%;
  width: 100%;
  height: 340px;
  display: flex;
}

@media screen and (max-width: 1200px) {
  .aplicHome { flex-direction: column; }
  .containerb {
    flex-direction: column;
    height: 75vh;
  }
}

/* ==========================
   📦 Card Expandido Interativo
========================== */
.cardb {
  min-width: 70px;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  position: relative;
  cursor: pointer;
  border: none;
  transition: flex-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cardb:hover { flex-grow: 7; }

.cardb > .background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
  transition: 1s ease;
  z-index: 0;
}

.cardb:hover > .background { filter: brightness(0.9); }

.cardb > .card-content {
  display: flex;
  align-items: center;
  position: absolute;
  overflow: hidden;
  height: 100%;
  z-index: 10;
  color: white;
  transition: 1s ease;
}

.cardb:hover > .card-content {
  text-align: center;
  inset: 20px;
  top: auto;
}

.card-content > * {
  transition: 1s ease;
}

.cardb:hover .title {
  opacity: 1;
  transform: translateY(0);
  font-size: 2.5rem;
  margin-left: 10rem;
}

.cardb > .backdrop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.card-content > .title {
  white-space: pre;
  margin-left: 10px;
  transform: translateY(100%);
  opacity: 0;
}

/* Hover effects */
.cardb:hover .profile-image > svg {
  stroke: rgb(110, 252, 205);
}

.cardb:hover .profile-image {
  border: 1px solid rgb(110, 252, 205);
}

/* ==========================
   🎠 Carrossel de Produtos
========================== */
#produtos .product-carousel-rail {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

#produtos .carousel-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#produtos .carousel-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

#produtos .carousel-nav .carousel-control-prev-icon,
#produtos .carousel-nav .carousel-control-next-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

#produtos .product-carousel-rail .carousel {
  flex: 1 1 auto;
  width: 100%;
}

#produtos #blogCarousel .carousel-control-prev,
#produtos #blogCarousel .carousel-control-next {
  display: none !important;
}

@media (max-width: 768px) {
  #produtos .product-carousel-rail { gap: 0.5rem; }
  #produtos .carousel-nav { width: 36px; height: 36px; }
}

/* ==========================
   🌄 Imagens Placeholder
========================== */
img[src="/placeholder.svg"],
img[src="/placeholder-user.jpg"] {
  filter: sepia(0.3) hue-rotate(-60deg) saturate(0.5) opacity(0.8);
}

/* ==========================
   📝 Textos com sombra
========================== */
.h1mt h1,
.h1mt h2,
.h1mt h3,
.h1mt h4,
.h1mt a,
.h1mt p {
  text-shadow: 2px 2px rgba(0, 0, 0, 0.9);
}

//* ===== Coluna de imagens (sem thumbnails) ===== */
.format-stack {
  display: block;
  gap: .75rem;                     /* respiro entre imagens */
}

/* “Card” da imagem */
.format-stack .gallery-item {
  margin-bottom: 1em;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* Mantém padrão visual consistente (4/3); ajuste se quiser outra razão */
.format-stack .gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .45s ease;
  will-change: transform;
}

/* Leve zoom no hover (desktop) */
@media (hover: hover) {
  .format-stack .gallery-img.is-zoomable:hover {
    transform: scale(1.02);
    filter: saturate(1.02) contrast(1.02);
  }
}

/* (Opcional) Se quiser deixar a coluna esquerda “grudada” no topo enquanto rola:
.format-stack.is-sticky {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 16px);
} */


/* ===== Carrossel simples de formatos (sem botões) ===== */
#formatsRail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem .5rem .5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;                /* Firefox */
  /* “fade” nas bordas: indica que há mais conteúdo */
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

#formatsRail.dragging {
  cursor: grabbing;
  user-select: none;
}

#formatsRail:not(.dragging) {
  cursor: grab;
}

/* Chips de formato */
.format-chip {
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: .925rem;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.format-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  background: var(--secondary);
}

.format-chip.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
}


/* ===== Melhoria das cards de produto ===== */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}


