/* ===============================
   HEADER
================================ */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-black);
  z-index: var(--z-header);
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 36px;
  width: auto;
}

/* ===============================
   MENU
================================ */

#menu {
  margin-left: auto;
}

#menu ul {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

#menu a {
  font-size: var(--font-size-sm);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-close {
  display: none;
}

/* ===============================
   HERO
================================ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: var(--space-sm);
}

#hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-top: 0;
  padding-bottom: var(--space-lg);
}

.hero-video {
  width: 100%;
  margin-left: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(180deg, #161616 0%, #090909 100%);
  border-radius: 0;
  order: -1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: contrast(1.05) saturate(0.95);
}

#hero h1 {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
}

.hero-cta {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  align-items: center;
}

.cta-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-md);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--color-white);
  padding: var(--space-sm) var(--space-lg);
}

.cta-link svg {
  flex-shrink: 0;
}

.cta-link:hover {
  color: var(--color-black);
  background-color: var(--color-white);
}

.cta-link:hover svg {
  color: var(--color-black);
}

/* ===============================
   GRIDS
================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

/* Produtos */
.produtos-grid {
  grid-template-columns: 1fr;
}

/* Ambientes */
.ambientes-grid {
  grid-template-columns: 1fr;
}

/* ===============================
   CLIENTES
================================ */

.clientes-carousel {
  overflow: hidden;
  white-space: nowrap;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.clientes-carousel.is-dragging {
  cursor: grabbing;
}

/* ===============================
   SOBRE NÓS
================================ */

.sobre-wrapper {
  width: 100%;
}

.sobre-wrapper h2 {
  margin-bottom: var(--space-lg);
}

.sobre-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sobre-texto {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sobre-texto p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.sobre-imagem img {
  width: 100%;
  height: auto;
}

.lojas {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: nowrap;
  overflow-x: visible;
  width: 100%;
}

.loja {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

/* ===============================
   DEPOIMENTOS
================================ */

.depoimentos-carousel {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.depoimentos-carousel.is-dragging {
  cursor: grabbing;
}

.depoimentos-lista {
  display: flex;
  gap: var(--space-md);
  width: max-content;
}

/* ===============================
   FOOTER
================================ */

#footer {
  background-color: var(--color-dark);
  padding-top: var(--space-xl);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-copy {
  text-align: center;
  padding: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-gray-light);
}

/* ===============================
   RESPONSIVO
================================ */

@media (max-width: 767px) {
  #menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-black);
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: var(--z-menu);
    margin-left: 0;
    padding: calc(var(--header-height) + var(--space-lg)) var(--container-padding) var(--space-lg);
  }

  .menu-close {
    display: inline-flex;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-white);
  }

  #menu ul {
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
  }

  #menu a {
    font-size: var(--font-size-lg);
    padding: var(--space-xs) 0;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.05em;
  }

  #hero {
    padding-top: var(--header-height);
    min-height: auto;
    padding-bottom: 0;
  }
  
  #hero .container {
    padding: 0;
  }
  
  .hero-video {
    width: 100%;
    margin: 0;
    aspect-ratio: unset;
    height: auto;
    overflow: visible;
    border-radius: 0;
  }
  
  .hero-video video {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    aspect-ratio: auto;
    border-radius: 0;
  }
  
  #hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    max-width: 100%;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .cta-link {
    font-size: var(--font-size-sm);
  }

  .lojas {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
  }

  .loja {
    flex: 1 1 auto;
    max-width: none;
  }
}

@media (min-width: 768px) {
  #menu {
    display: block !important;
    position: static;
    inset: auto;
    background-color: transparent;
    z-index: auto;
  }

  #hero {
    padding-top: var(--header-height);
  }

  .produtos-grid,
  .ambientes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-content {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-xl);
  }

  .sobre-texto {
    flex: 1.15;
    order: 1;
    justify-content: space-between;
    max-width: 62ch;
  }

  .sobre-imagem {
    flex: 0.85;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sobre-imagem img {
    width: 80%;
    max-width: 460px;
  }

  .sobre-texto p {
    font-size: clamp(1.06rem, 0.35vw + 0.95rem, 1.18rem);
    line-height: 1.7;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  #hero h1 {
    font-size: 2.8rem;
  }
}

@media (min-width: 1024px) {

  .produtos-grid,
  .ambientes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .logo {
    height: 40px;
  }
}
