/*
  print3dtechnologies-responsive-fix.css
  --------------------------------------
  Custom responsive overrides for PRINT3D Technologies website.
  - Adjusts responsive layout for desktop, tablet, and mobile
  - Shows/hides Contact Us button based on viewport
  - Fixes menu and logo positioning
  - Featured prints section responsive styles
*/

/* ===== FEATURED PRINTS SECTION ===== */
.featured-home-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.featured-home-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.featured-home-item:hover .featured-home-button {
  opacity: 1;
  transform: translateY(0);
}

.featured-home-button .button-icon-no-hover {
  background-color: var(--color--foreground);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.featured-home-button .button-icon-no-hover:hover {
  background-color: #333;
}

.featured-home-button .icon24 {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

.featured-home-button:hover .icon24 {
  transform: translateX(3px);
}
.featured-prints-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.featured-prints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 1400px;
}

.featured-home-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.featured-home-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .featured-prints-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (max-width: 767px) {
  .featured-prints-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .featured-prints-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --- DESKTOP: Layout for large screens (992px and above) --- */
@media screen and (min-width: 992px) {
  /* Ensure proper menu layout */
  .menu-content-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding-top: 0;
  }
  
  /* Normal logo size for desktop */
  .menu-logo-link, 
  .menu-logo-link.w--current {
    width: auto;
    margin: 0;
    display: block;
  }
  
  /* Show contact button properly on desktop */
  .element-trigger .button.w-inline-block {
    display: inline-flex !important;
  }
  
  /* Ensure menu links display correctly */
  .menu-links-grid {
    display: flex;
    align-items: center;
  }
  
  /* Hide mobile burger menu on desktop */
  .menu-burger-trigger {
    display: none !important;
  }
}

/* --- TABLET: Layout for medium screens (768px - 991px) --- */
@media screen and (min-width: 768px) and (max-width: 991px) {
  /* Keep menu content in a row for tablet */
  .menu-content-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    width: 100%;
    justify-content: space-between;
  }

  /* Adjust logo for tablet */
  .menu-logo-link,
  .menu-logo-link.w--current {
    max-width: 180px;
    width: auto;
    margin: 0;
    display: block;
  }
  
  .menu-logo-link img {
    max-width: 100%;
    height: auto;
  }

  /* Adjust menu items container */
  .menu-links-grid {
    display: flex;
    align-items: center;
    gap: 1.5em;
  }

  /* Show contact button on tablet */
  .element-trigger .button.w-inline-block {
    display: inline-flex !important;
  }
  
  /* Hide news link in tablet view to save space */
  .menu-link-item[href="https://print3dtechnologies.com/blog"] {
    display: none !important;
  }
}

/* --- MOBILE: Layout for small screens (below 768px) --- */
@media screen and (max-width: 767px) {
  /* Stack elements on mobile */
  .menu-content-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2em;
  }
  
  /* Adjust logo for mobile */
  .menu-logo-link,
  .menu-logo-link.w--current {
    max-width: 200px;
    width: 100%;
    margin: 0 0 1em 0;
    display: block;
  }
  
  /* Position burger menu */
  .menu-burger-trigger {
    position: absolute;
    top: 1.5em;
    right: 1em;
    margin: 0;
    z-index: 103;
  }
  
  /* Hide Contact Us button in mobile viewports */
  .element-trigger .button.w-inline-block {
    display: none !important;
  }
}


