/* =========================================================
   ANBRO CUSTOM CSS - CLEAN STRUCTURE
   ========================================================= */

/* ===============================
   GLOBAL CONTENT WRAPPER
   Centers text and defines max width
   =============================== */
.content-wrapper, .content, .page-content, .section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .content-wrapper, .content, .page-content {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* ===============================
   PAGE TITLES
   =============================== */
.page-title {
  text-align: center;
  font-size: 2rem;
  margin: 2rem 0 1.5rem 0;
  color: #222;
  font-weight: 600;
}

/* ===============================
   HERO / BANNER SECTION
   =============================== */
.hero, #page-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.6s ease-in-out;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::after, #page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* overlay for readability */
  z-index: 1;
}

.hero h1, #page-hero .page-title {
  position: relative;
  z-index: 2;
  color: #fdfdfd;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  font-size: 2.5rem;
  margin: 5rem 0 1.5rem 0;
  font-weight: 600;
  letter-spacing: 1px;
}

#page-hero {
  padding-top: 7rem; /* prevents overlap with fixed navbar */
  animation: fadeInHero 0.8s ease-out forwards;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* ===============================
   PORTFOLIO GRID (GUITARS)
   =============================== */
.portfolio .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.guitar-item {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.guitar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block; /* new */
}

.guitar-item:hover img {
  transform: scale(1.1);
}

/* .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
  padding: 0.8rem;
  opacity: 0;
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
  transform: translateY(10px);
} */

.guitar-overlay {
  position: absolute;
  inset: 0;               /* fills parent */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 80%);
  color: #fff;
  padding: 1rem;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.guitar-item:hover .guitar-overlay {
  opacity: 1;
  /* transform: translateY(0); */
}

.guitar-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: #f5f5f5;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.guitar-overlay p {
  margin: 0;
  font-size: 0.95rem;
}
.guitar-overlay .desc {
  margin-top: 0.4rem;
  font-style: italic;
  font-size: 0.85rem;
}

/* ===============================
   NAVIGATION ARROWS (GUITAR NAV)
   =============================== */

/* === GUITAR ITEM PAGE === */
.guitar-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 2rem 1rem;
}

.guitar-images img {
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}

.guitar-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.nav-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin: 3rem 0;
}

.nav-arrows .arrow {
  background: #333;
  color: #fff;
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.nav-arrows .arrow:hover {
  background: #555;
}

/* ===============================
   MOBILE MENU
   =============================== */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(20,20,20,0.95);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.overlay.open {
  visibility: visible;
  opacity: 1;
}

.button_container.active .top {
  transform: rotate(45deg) translateY(8px);
}
.button_container.active .middle {
  opacity: 0;
}
.button_container.active .bottom {
  transform: rotate(-45deg) translateY(-8px);
}
/* Desktop horizontal nav */
.nav-horizontal {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-horizontal li { margin: 0; }
.nav-horizontal a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.35rem;
}
.nav-horizontal li.active a { color: #000; }

/* Mobile / overlay vertical nav */
.nav-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-vertical a {
  color: white;
  font-size: 1.25rem;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
}

/* Ensure overlay-menu uses vertical nav styles */
.overlay-menu { padding-top: 3.5rem; text-align:center; }

/* Ensure the header desktop menu hides on small screens and mobile toggle shows */
@media (max-width: 900px) {
  .desktop-menu { display: none !important; } /* hide desktop nav on mobile */
  .mobile-menu { display: block !important; }  /* ensure hamburger is visible */
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }   /* hide hamburger on desktop */
}
