/* ============================================
   Trimbelt-Max 27 – Extended Styles
   ============================================ */

/* About image */
.about__img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border: 1px solid var(--divider);
}

.about__text--signature {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 20px;
}

/* Nav dropdown */
.nav__dropdown {
  position: relative;
}

.nav__link--dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  box-shadow: 0 8px 32px rgba(30,30,30,0.08);
  z-index: 50;
  /* Invisible padding bridges the gap between trigger and menu */
  padding-top: 12px;
}

.nav__dropdown-menu.open {
  display: block;
}

.nav__dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1px solid var(--divider);
  transition: color var(--transition), background var(--transition);
}

.nav__dropdown-item:last-child { border-bottom: none; }
.nav__dropdown-item:hover { color: var(--gold); background: var(--bg-main); }

/* ---- Products Section ---- */
.products-section {
  padding: 72px 0;
  background: var(--bg-main);
}

.products-section--alt {
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
}

.products-section__intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

/* Product Category */
.product-category {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.product-category__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 24px;
}

.product-category__title img {
  opacity: 0.7;
}

/* Product Tabs */
.product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0;
}

.tab-btn {
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--divider);
  border-bottom: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  position: relative;
  bottom: -1px;
}

.tab-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.tab-btn--active {
  background: var(--bg-card);
  color: var(--gold);
  border-color: var(--divider);
  border-bottom-color: var(--bg-card);
}

.products-section--alt .tab-btn--active {
  background: var(--bg-card);
  border-bottom-color: var(--bg-card);
}

.products-section .tab-btn--active {
  background: var(--bg-main);
  border-bottom-color: var(--bg-main);
}

/* Tab Panels */
.tab-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-top: none;
}

.tab-panel--active {
  display: block;
}

.products-section .tab-panel {
  background: var(--bg-card);
}

.tab-panel__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 28px 24px;
}

.tab-panel__inner--text-only {
  grid-template-columns: 1fr;
}

.tab-panel__text h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.tab-panel__text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.tab-panel__text p:last-child { margin-bottom: 0; }

.tab-panel__text strong {
  color: var(--dark);
  font-weight: 600;
}

.product-list {
  margin: 12px 0 0 20px;
  padding: 0;
}

.product-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-main);
  cursor: pointer;
}

.gallery-item[style*="display:none"] {
  display: none !important;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---- References Full ---- */
.references-full {
  padding: 72px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--divider);
}

.ref-group {
  margin-bottom: 48px;
}

.ref-group__title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

.ref-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ref-table thead tr {
  background: var(--bg-card);
}

.ref-table th {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--divider);
  white-space: nowrap;
}

.ref-table td {
  padding: 9px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider);
  line-height: 1.4;
  vertical-align: top;
}

.ref-table tbody tr:nth-child(odd) {
  background: var(--bg-card);
}

.ref-table tbody tr:hover {
  background: rgba(200, 155, 94, 0.05);
}

/* Contact CTA extended */
.contact-cta__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto 36px;
  max-width: 400px;
  text-align: left;
}

.contact-cta__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-cta__item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-cta__item a:hover {
  color: var(--gold);
}

/* Footer bottom */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.footer__privacy {
  font-size: 0.7rem;
  color: var(--gold);
  text-decoration: underline;
  letter-spacing: 0.04em;
}

.footer__privacy:hover {
  color: var(--gold-hover);
}

/* ============================================
   Tablet+
   ============================================ */
@media (min-width: 768px) {
  .tab-panel__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 28px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-cta__details {
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
    gap: 36px;
    flex-wrap: wrap;
  }

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

@media (min-width: 1024px) {
  .tab-panel__inner {
    gap: 52px;
    padding: 36px 32px;
  }
}
