/* ====== INSTRUMENTS PAGE ====== */

/* Hero */
.inst-hero {
  padding: calc(var(--header-height) + var(--space-12)) var(--side-padding) var(--space-8);
  text-align: center;
  background: var(--bg-cream);
}
.inst-hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-white);
  background: var(--accent);
  padding: 6px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.inst-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}
.inst-hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--primary);
  margin-bottom: var(--space-5);
}
.inst-hero-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====== STICKY CATEGORY NAV ====== */
.inst-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(202, 157, 117, 0.15);
  padding: var(--space-4) var(--side-padding);
  transition: box-shadow 0.3s ease;
}
.inst-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.inst-nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-2) 0;
}
.inst-nav-inner::-webkit-scrollbar { display: none; }

.inst-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  scroll-snap-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.inst-nav-item:hover { transform: translateY(-3px); }

.inst-nav-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.inst-nav-item:hover .inst-nav-img,
.inst-nav-item.active .inst-nav-img {
  box-shadow: 0 0 0 3px var(--primary), 0 6px 20px rgba(202, 157, 117, 0.3);
}
.inst-nav-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.inst-nav-item:hover .inst-nav-label,
.inst-nav-item.active .inst-nav-label {
  color: var(--primary);
}

/* ====== INSTRUMENT SHOWCASE SECTIONS ====== */
.inst-section {
  padding: var(--space-12) var(--side-padding);
  scroll-margin-top: 120px;
}
.inst-section:nth-child(even) {
  background: var(--bg-warm);
}
.inst-section:nth-child(odd) {
  background: var(--bg-cream);
}

.inst-container {
  max-width: 900px;
  margin: 0 auto;
}

.inst-section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: var(--space-3);
}

.inst-section-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--space-8);
}

.inst-description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.75;
  text-align: center;
  max-width: 750px;
  margin: 0 auto var(--space-5);
}

.inst-note {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Video */
.inst-video {
  margin: var(--space-8) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.inst-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #1a1210;
}
.inst-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* Lazy-load placeholder */
.inst-video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1210, #2a1a14);
  cursor: pointer;
}
.inst-video-placeholder::after {
  content: '';
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(202, 157, 117, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 28px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.inst-video-placeholder:hover::after {
  transform: scale(1.1);
  background-color: var(--primary);
}

/* Product Image */
.inst-image {
  margin: var(--space-8) 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.inst-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Availability note */
.inst-availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}
.inst-availability p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-body);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .inst-hero {
    padding-top: calc(70px + var(--space-10));
  }
  .inst-nav {
    top: 0;
  }
  .inst-nav-inner {
    justify-content: flex-start;
    gap: var(--space-5);
    padding: var(--space-2) var(--space-3);
  }
  .inst-section {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 768px) {
  .inst-hero-title {
    font-size: var(--text-3xl);
  }
  .inst-hero-subtitle {
    font-size: var(--text-lg);
  }
  .inst-nav-img {
    width: 100px;
    height: 100px;
  }
  .inst-nav-label {
    font-size: 10px;
  }
  .inst-section-title {
    font-size: var(--text-2xl);
  }
  .inst-section {
    padding: var(--space-10) var(--side-padding);
  }
}

@media (max-width: 480px) {
  .inst-hero {
    padding-top: calc(70px + var(--space-8));
    padding-bottom: var(--space-6);
  }
  .inst-hero-title {
    font-size: 1.75rem;
  }
  .inst-nav-inner {
    gap: var(--space-4);
  }
  .inst-nav-img {
    width: 80px;
    height: 80px;
  }
  .inst-section-title {
    font-size: 1.5rem;
  }
  .inst-container {
    padding: 0;
  }
}
